:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#192b36;background:#f5f6f3;font-synthesis:none;font-weight:400;--ink:#192b36;--muted:#75818a;--line:#e3e8e7;--teal:#24776d;--navy:#193b4a}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.38}button:focus-visible,label:focus-within,a:focus-visible,#workspace:focus-visible{outline:3px solid #83bcb2;outline-offset:4px}[hidden]{display:none!important}svg{display:block}.app-shell{max-width:1600px;margin:auto;padding:0 38px}.app-header{min-height:98px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:46px;border-radius:13px;background:var(--navy);color:#fff;display:grid;place-items:center}.brand-mark svg{width:27px;height:27px}.eyebrow{margin:0 0 3px;font-size:9px;font-weight:700;letter-spacing:1.65px;color:var(--muted)}h1{font-size:23px;line-height:1.2;letter-spacing:1px;margin:0;font-weight:650}.local-badge{font-size:11px;letter-spacing:.5px;color:#60746e;display:flex;align-items:center;gap:7px}.local-badge>span{width:6px;height:6px;border-radius:50%;background:#459586}.intro{display:flex;align-items:center;justify-content:space-between;padding:26px 0 23px;gap:16px}.intro h2{margin:0 0 9px;font-weight:580;font-size:26px;letter-spacing:-.4px}.intro p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}.intro .intro-note{font-size:10px;text-align:right;letter-spacing:.7px;color:#8a949a}.toolbar{background:#fff;border:1px solid var(--line);border-radius:13px 13px 0 0;min-height:68px;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:9px 12px;min-height:37px;line-height:1.3;font-size:12px;white-space:nowrap;transition:background .16s,border-color .16s,color .16s}.button svg{width:17px;height:17px;flex:0 0 auto}.button-primary{background:var(--navy);color:#fff;font-weight:550}.button-primary:hover{background:#275364}.button-secondary{background:#f3f6f5;border-color:#dfe6e4;color:#34524f}.button-secondary:hover{background:#e9efed;border-color:#c9d6d2}.button-plain{background:transparent;color:#5f707b}.button-plain:hover:not(:disabled){background:#f0f4f3;color:var(--ink)}.import-button{position:relative;cursor:pointer}.visually-hidden{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;overflow:hidden}.toolbar-separator{height:22px;width:1px;background:var(--line);margin:0 5px}.status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;line-height:1.6;max-width:290px}.status:before{content:"";display:block;flex:0 0 auto;width:5px;height:5px;background:#aab7b3;border-radius:50%}.workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:0;border:1px solid var(--line);border-top:0;border-radius:0 0 13px 13px;overflow:hidden;background:white}.viewer-panel{min-width:0;border-right:1px solid var(--line)}.panel-heading{height:49px;display:flex;align-items:center;justify-content:space-between;padding:0 21px;gap:16px}.panel-title{font-size:12px;font-weight:600}.panel-caption{font-size:10px;letter-spacing:.3px;color:#8b979b}#workspace{height:calc(100vh - 364px);min-height:420px;max-height:1100px;overflow:auto;padding:28px;background:#eaf0ee;background-image:radial-gradient(#d4deda .65px,transparent .65px);background-size:13px 13px;scrollbar-width:thin;scrollbar-color:#bdccc6 transparent;overscroll-behavior:contain}#workspace::-webkit-scrollbar{width:9px;height:9px}#workspace::-webkit-scrollbar-thumb{background:#bccbc6;border:2px solid #eaf0ee;border-radius:8px}.empty-state{min-height:100%;padding:36px 10px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.empty-illustration{position:relative;width:160px;height:133px;display:grid;place-items:center;margin-bottom:17px;color:#526c73}.illustration-grid{position:absolute;inset:20px 4px 0;border:1px solid #d3deda;border-radius:22px;transform:rotate(-9deg);background:linear-gradient(145deg,#f5f8f6,#e2eae6)}.empty-illustration>svg{height:114px;width:100px;position:relative;transform:rotate(7deg);filter:drop-shadow(0 6px 5px #1a3f4310)}.illustration-cursor{position:absolute;right:13px;bottom:7px;font-size:23px;width:36px;height:36px;color:#fff;background:#3e8376;border-radius:50%;box-shadow:0 3px 10px #1b53432b;display:grid;place-items:center}.empty-state h3{font-size:17px;font-weight:550;margin:0 0 11px;letter-spacing:.2px}.empty-state p{font-size:12px;color:#7e8d8e;line-height:1.95;margin:0}.empty-hint{font-size:10px;letter-spacing:.2px;color:#92a29d;border-top:1px solid #d9e3de;padding-top:17px;margin-top:21px}#photo-stage{position:relative;width:min(100%,430px);margin:0 auto;box-shadow:0 10px 35px #163d4724;background:#fff;line-height:0}#source-image{display:block;width:100%;height:auto;user-select:none}#hotspots{position:absolute;inset:0;pointer-events:none}.hotspot{position:absolute;pointer-events:auto;appearance:none;cursor:pointer;border:2px solid #3f9c8c;border-radius:5px;background:#58b29f14;box-shadow:0 0 0 1px #ffffffb0;transition:background .15s,box-shadow .15s;min-width:12px;min-height:12px;padding:0;color:#fff;line-height:1.4}.hotspot:hover,.hotspot:focus-visible{background:#58b29f30;box-shadow:0 0 0 3px #ffffffd0;outline:0}.hotspot--barcode,.hotspot.barcode{border-color:#8a8dc7;background:#8a8dc711}.hotspot--card,.hotspot.card{border-color:#d5a363;background:#d5a36312}.hotspot-label{position:absolute;left:-2px;bottom:calc(100% + 3px);padding:3px 7px;background:#2e7a6d;color:#fff;border-radius:4px;font-size:10px;line-height:1.5;white-space:nowrap;box-shadow:0 2px 6px #163d4720}.hotspot--barcode .hotspot-label,.hotspot.barcode .hotspot-label{background:#6d6fa1}.hotspot--card .hotspot-label,.hotspot.card .hotspot-label{background:#a87535}.viewer-footer{display:flex;align-items:center;gap:6px;padding:0 21px;height:37px;font-size:10px;color:#8b989c;border-top:1px solid var(--line);background:#fdfefe}.legend-dot{width:5px;height:5px;border:1px solid #438e7d;border-radius:1px}.viewer-footer-end{margin-left:auto;color:#a4adb1}.results-panel{padding:24px 23px 20px;background:#fff}.results-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.results-heading h2{font-size:15px;font-weight:600;margin:0}.tiny-label{font-size:8px;letter-spacing:1.7px;color:#a6b1b5}.result-section{padding:23px 0 20px;border-bottom:1px solid #edf0ef}.section-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:17px}.section-heading h3{font-size:11px;font-weight:600;color:#5e737b;margin:0}.section-heading>svg{height:17px;width:17px;color:#91a2a5}.section-micro{font-size:9px;color:#9ba7aa}.card-fields{margin:0;display:grid;gap:15px}.card-fields>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.card-fields dt{font-size:11px;color:#8c989f}.card-fields dd{margin:0;color:#2b4650;font-size:12px;font-weight:500;text-align:right;overflow-wrap:anywhere}#last-four{font-variant-numeric:tabular-nums;letter-spacing:1px}.placeholder-text{margin:0;color:#a1adaf;font-size:11px;line-height:1.7}.result-list{display:grid;gap:8px}.result-list button,.code-item{width:100%;border:1px solid #e1e9e6;border-radius:7px;background:#f5f8f7;color:#2d6056;font-size:11px;text-align:left;padding:11px;line-height:1.7;cursor:pointer;overflow-wrap:anywhere}.result-list button:hover,.code-item:hover{background:#eaf3ef;border-color:#c7dcd4}.result-list button:focus-visible{outline:2px solid #83bcb2;outline-offset:2px}.result-list small,.code-item small{display:block;font-size:10px;color:#8c9d9a}.text-list{font-size:11px;color:#657982;line-height:1.9;max-height:180px;overflow:auto;overflow-wrap:anywhere}.text-list p{margin:0 0 4px}.recognition-note{font-size:10px;line-height:1.85;color:#9aa6aa;margin:15px 0 20px}.help-card{display:flex;gap:10px;background:#f4f7f5;border:1px solid #e6ede9;border-radius:8px;padding:13px 12px}.help-symbol{display:grid;place-items:center;width:15px;height:15px;flex:0 0 15px;margin-top:1px;color:#718e83;border:1px solid #a4b9ae;border-radius:50%;font-size:10px;font-family:Georgia,serif;font-style:italic}.help-card h3{font-size:10px;font-weight:600;margin:0 0 7px;color:#698377}.help-card p{font-size:10px;line-height:1.85;color:#90a097;margin:0}.help-card .help-footnote{margin-top:8px;color:#9baa9f}.app-footer{display:flex;justify-content:space-between;padding:17px 1px 22px;color:#a1abad;font-size:9px;letter-spacing:.3px}.app-footer>span:first-child{color:#7d9090;font-weight:550}dialog{border:1px solid #dce5e1;border-radius:14px;padding:0;width:min(640px,calc(100vw - 36px));max-height:calc(100vh - 64px);color:var(--ink);box-shadow:0 30px 100px #102d3b38}dialog::backdrop{background:#10273370;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 23px;border-bottom:1px solid var(--line)}.dialog-header h2{margin:0;font-size:17px;font-weight:600}.icon-button{display:grid;place-items:center;background:#f1f5f3;border:0;border-radius:50%;height:29px;width:29px;color:#697d82}.icon-button:hover{background:#e1eae5}.icon-button svg{height:17px;width:17px}.dialog-body{padding:25px;overflow:auto;max-height:calc(100vh - 232px)}#dialog-image{display:block;max-width:100%;max-height:52vh;margin:0 auto 20px;object-fit:contain;image-rendering:auto;border:1px solid #edf0ee}#dialog-payload{font-family:ui-monospace,SFMono-Regular,Consolas,"Microsoft YaHei",monospace;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:12px;background:#f4f7f5;border-radius:8px;margin:0;padding:16px;color:#3e5c62}#dialog-payload:empty{display:none}#dialog-note{font-size:11px;color:#8a999e;line-height:1.85;margin:17px 0 0}#dialog-note:empty{display:none}.dialog-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 23px;border-top:1px solid var(--line);background:#fbfcfb}.dialog-footer>span{font-size:10px;color:#a0adaa}@media(min-width:1450px){.workspace-layout{grid-template-columns:minmax(0,1fr) 340px}.results-panel{padding-left:28px;padding-right:28px}#workspace{min-height:500px}}@media(max-width:1050px){.app-shell{padding:0 22px}.workspace-layout{grid-template-columns:minmax(0,1fr) 285px}.toolbar{align-items:flex-start;flex-direction:column;gap:8px}.status{max-width:none;font-size:10px;padding-left:2px}.toolbar-actions{gap:3px}.button{font-size:11px;padding:8px 10px}.results-panel{padding:22px 19px}#workspace{height:calc(100vh - 400px);min-height:440px}.panel-caption{font-size:9px}}@media(max-width:720px){.app-shell{padding:0 14px}.app-header{min-height:81px}.brand-mark{height:39px;width:36px;border-radius:10px}.brand-mark svg{height:23px;width:23px}.eyebrow{font-size:7px;letter-spacing:1.2px}h1{font-size:20px}.local-badge{font-size:9px}.intro{padding:23px 0 21px}.intro h2{font-size:22px;margin-bottom:8px}.intro p{font-size:11px}.intro .intro-note{display:none}.toolbar{padding:12px}.toolbar-actions{gap:5px}.toolbar-separator{display:none}.button{padding:9px 10px;font-size:11px}.button svg{height:15px;width:15px}.toolbar .button-plain{padding-left:8px;padding-right:8px}.workspace-layout{grid-template-columns:1fr}.viewer-panel{border-right:0;border-bottom:1px solid var(--line)}#workspace{height:65vh;min-height:390px;padding:22px 17px}.panel-heading{height:45px;padding:0 16px}.panel-caption{font-size:9px}.viewer-footer{padding:0 16px}.results-panel{padding:22px 20px}.card-fields{gap:12px}.result-section{padding:20px 0}.results-heading{margin-bottom:0}.recognition-note{margin-bottom:17px}.text-list{max-height:140px}.help-card{max-width:none}.app-footer{font-size:8px}.dialog-body{padding:20px}.dialog-header{padding:18px 20px}.dialog-footer{padding:12px 20px}}
.screen-control{display:inline-flex;align-items:center;gap:7px;color:#5f707b;font-size:11px;white-space:nowrap}.screen-control select{font:inherit;border:1px solid #dfe6e4;border-radius:6px;padding:7px;background:white;color:#193b4a}.screen-control select:focus-visible{outline:2px solid #83bcb2;outline-offset:2px}
#ios-clock{position:absolute;display:flex;align-items:center;justify-content:center;background:#eff0f5;color:#000;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:600;font-variant-numeric:tabular-nums;line-height:1;letter-spacing:-.02em;white-space:nowrap;pointer-events:none;z-index:1}
.code-symbol{position:absolute;display:flex;align-items:center;justify-content:center}#code-overlays .code-symbol--barcode img{object-fit:fill}#code-overlays .code-symbol--qr img{object-fit:contain;image-rendering:auto}.qr-brand{position:absolute;display:block;border-radius:18%;background:white;pointer-events:none}.hotspot{border-color:transparent;background:transparent;box-shadow:none}.hotspot-label{opacity:0}.hotspot:hover .hotspot-label,.hotspot:focus-visible .hotspot-label{opacity:1}.hotspot:hover,.hotspot:focus-visible{border-color:#3f9c8c}
#card-tail{width:66px;border:1px solid #dfe6e4;border-radius:6px;padding:7px;font:inherit;color:#193b4a;background:white}#card-tail[aria-invalid="true"]{border-color:#b44a44}#card-tail-overlay{position:absolute;display:flex;align-items:center;justify-content:center;background:#e7dcbc;color:white;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:500;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;z-index:1}#code-overlays{position:absolute;inset:0;pointer-events:none}.code-fill{position:absolute;background:white;display:flex;align-items:center;justify-content:center;color:#60746e;font-size:11px;line-height:1.5;text-align:center;overflow:hidden}.code-fill img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}#source-details{margin:15px 0;color:#60746e;font-size:11px}#imported-image{display:block;width:100%;height:auto;margin-top:10px;border:1px solid #e3e8e7;border-radius:5px}

/* Desktop image workflow: actions above, device and template controls below. */
:root{--navy:#9c2938;--teal:#ac3341;background:#f6f5f3}
.app-shell{padding-left:28px;padding-right:28px}
.app-header{min-height:76px}
.brand-mark{height:40px;width:38px;border-radius:11px}
h1{font-size:21px;letter-spacing:.3px}
.intro{padding:19px 0 18px}
.intro h2{font-size:23px;margin-bottom:6px}
.intro .intro-note{line-height:1.9}
.toolbar{display:block;padding:11px 14px;min-height:0}
.toolbar-actions{gap:7px}
.toolbar-main-row{min-height:36px;flex-wrap:nowrap}
.toolbar-settings-row{padding-top:10px;margin-top:10px;border-top:1px solid #edf0ef;gap:20px;min-height:40px}
.toolbar .button{min-height:34px;padding:8px 11px}
.button-primary:hover{background:#b23646}
.copy-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
.button-accent{background:#9c2938;border-color:#9c2938;color:#fff;font-weight:550}
.button-accent:hover:not(:disabled){background:#b23646;border-color:#b23646}
.screen-control select{min-height:31px;max-width:290px;padding:6px 8px}
.device-control select{width:235px}
.screen-control input[type="checkbox"]{accent-color:#9c2938}
.toolbar-settings-row .status{margin-left:auto;max-width:340px;min-width:0;overflow-wrap:anywhere}
.panel-heading{height:43px}
#workspace{height:calc(100vh - 345px);min-height:400px;background-color:#eeefec;background-image:radial-gradient(#d7dcd6 .65px,transparent .65px)}
.results-panel{padding-top:20px}
.viewer-footer{height:32px}
.app-footer{padding-top:13px;padding-bottom:15px}
.drop-hint{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:30px;background:#fff8f4e8;backdrop-filter:blur(5px);pointer-events:none}
.drop-hint:before{content:"";position:absolute;inset:18px;border:2px dashed #ac3341;border-radius:20px}
.drop-hint-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;padding:48px 52px;background:#fff;border:1px solid #eadedb;border-radius:20px;box-shadow:0 15px 65px #6f28391a;color:#7d2532}
.drop-hint-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#f8edef;font-size:36px;font-weight:400;line-height:1}
.drop-hint-card strong{font-size:25px;font-weight:600}
.drop-hint-card>span:last-child{font-size:13px;color:#857477;line-height:1.8}
#code-overlays .code-symbol img{image-rendering:crisp-edges;image-rendering:pixelated}
@media(max-width:1100px){.toolbar-main-row{flex-wrap:wrap}.toolbar-settings-row{gap:14px}.toolbar-settings-row .status{max-width:270px}.toolbar .button{padding-left:9px;padding-right:9px}.device-control select{width:220px}.app-shell{padding-left:20px;padding-right:20px}}
@media(max-width:850px){.toolbar-settings-row{flex-wrap:wrap}.toolbar-settings-row .status{margin-left:0;max-width:none;flex-basis:100%}.copy-actions{margin-left:5px}.intro h2{font-size:21px}.intro .intro-note{display:none}.screen-control select{max-width:240px}#workspace{height:calc(100vh - 380px)}}
@media(max-width:720px){.app-shell{padding-left:14px;padding-right:14px}.app-header{min-height:72px}h1{font-size:19px}.intro{padding-top:18px;padding-bottom:17px}.intro h2{font-size:20px;line-height:1.5}.intro p{font-size:11px;line-height:1.9}.toolbar{padding:11px}.toolbar-main-row{gap:6px}.copy-actions{margin-left:0}.toolbar-settings-row{gap:12px}.toolbar .button{font-size:11px}.device-control select{width:225px;max-width:calc(100vw - 105px)}#workspace{height:65vh;min-height:380px}.panel-caption{font-size:8px}.drop-hint{padding:24px}.drop-hint-card{padding:35px 25px}.drop-hint-card strong{font-size:22px}.drop-hint-card>span:last-child{font-size:12px}}
#photo-stage{touch-action:manipulation}
.image-viewer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3000;display:flex;flex-direction:column;overflow:hidden;background:#202326;color:#fff}
.image-viewer-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;padding-top:calc(12px + env(safe-area-inset-top,0px));border-bottom:1px solid #ffffff26;background:#262a2e}
.image-viewer-header h2{margin:0;font-size:15px;font-weight:600;line-height:1.5}
.image-viewer-header p{margin:3px 0 0;font-size:11px;line-height:1.6;color:#bdc6c9;overflow-wrap:anywhere}
.image-viewer-close{flex:0 0 auto;min-width:64px;min-height:40px;padding:8px 14px;border:1px solid #637075;border-radius:8px;background:#384247;color:#fff;font-size:13px}
.image-viewer-close:hover{background:#4a565b}
.image-viewer-close:focus-visible,.image-viewer-scroll:focus-visible{outline:3px solid #a5ded3;outline-offset:-4px}
.image-viewer-scroll{flex:1 1 auto;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 0 env(safe-area-inset-bottom,0px)}
.image-viewer-image{display:block;width:100%;height:auto;margin:0 auto;user-select:none;-webkit-user-drag:none}
.image-viewer-status{margin:0;padding:50px 20px;text-align:center;font-size:14px;line-height:1.8;color:#dce4e6}
@media(max-width:480px){.image-viewer-header{padding-left:12px;padding-right:12px;gap:10px}.image-viewer-header p{font-size:10px}}
