:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background:#f5f5f5;--surface:#fff;--layer:#f5f5f5;--input:#fff;--hover:#ebebeb;--border:#dedede;--outline:#a3a3a3;--ink:#171717;--muted:#5f5f5f;--accent:#202020;--accent-ink:#fff;--accent-hover:#383838;--security-surface:#fff5f5;--security-border:#eccfd1;--security-ink:#a51f30;--backdrop:#15151566;--shadow:0 16px 56px #0003;--mono:"Cascadia Code", "SFMono-Regular", Consolas, monospace;font-family:Inter,PingFang SC,Microsoft YaHei,Noto Sans SC,system-ui,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#101010;--surface:#171717;--layer:#202020;--input:#121212;--hover:#2a2a2a;--border:#343434;--outline:#565656;--ink:#f4f4f4;--muted:#b2b2b2;--accent:#eee;--accent-ink:#181818;--accent-hover:#fff;--security-surface:#251b1d;--security-border:#563035;--security-ink:#ff8a91;--backdrop:#050505b3;--shadow:0 16px 56px #0008}*{box-sizing:border-box}body{background:var(--background);min-width:280px;min-height:100vh;color:var(--ink);margin:0;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button,summary{-webkit-tap-highlight-color:transparent}:is(button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible){outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,h4,p{margin:0}svg{flex-shrink:0}.muted{color:var(--muted)}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.shell{width:min(100% - 64px,1260px);margin-inline:auto}.topbar{background:var(--surface);border-bottom:1px solid var(--border)}.topbar-inner{justify-content:space-between;align-items:center;gap:14px;min-height:64px;display:flex}.brand{color:var(--ink);letter-spacing:-.03em;white-space:nowrap;align-items:center;gap:11px;font-size:1.22rem;font-weight:730;display:inline-flex}.brand-icon{width:40px;height:40px;box-shadow:0 0 0 1px var(--border);border-radius:11px;flex:none;display:block}.topbar-actions{align-items:center;gap:6px;min-width:0;display:flex}.model-status{text-overflow:ellipsis;white-space:nowrap;max-width:165px;color:var(--muted);margin-right:5px;font-size:.875rem;overflow:hidden}.pill{border:1px solid var(--border);color:var(--muted);background:var(--layer);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:3px 8px;font-size:.8125rem;font-weight:650;display:inline-flex}.pill.connected{color:var(--ink)}.indicator{background:currentColor;border-radius:50%;width:6px;height:6px}.button{white-space:nowrap;min-height:44px;color:var(--ink);background:0 0;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:9px;padding:9px 14px;font-size:.9rem;font-weight:670;line-height:1.3;transition:background-color .16s,color .16s,border-color .16s;display:inline-flex}.button.primary{color:var(--accent-ink);background:var(--accent)}.button.primary:hover:not(:disabled){background:var(--accent-hover)}.button.secondary{background:var(--layer);border-color:var(--border)}.button.secondary:hover:not(:disabled),.button.settings-button:hover:not(:disabled){background:var(--hover);border-color:var(--outline)}.button.text-button,.button.settings-button{color:var(--muted)}.button.text-button:hover:not(:disabled){background:var(--hover);color:var(--ink)}.settings-button{min-height:40px;padding-inline:9px}.theme-toggle{min-width:40px;padding-inline:8px}.switch-to-dark,:root[data-theme=dark] .switch-to-light{display:inline-flex}.switch-to-light,:root[data-theme=dark] .switch-to-dark{display:none}.intro{margin:29px 0 20px}.intro h1{letter-spacing:-.045em;font-size:clamp(1.7rem,2.9vw,2.5rem);font-weight:750;line-height:1.19}.intro p{color:var(--muted);margin-top:7px;font-size:1rem}.workspace{grid-template-columns:minmax(0,1.62fr) minmax(352px,1fr);align-items:start;gap:18px;display:grid}.panel{border:1px solid var(--border);background:var(--surface);border-radius:14px;min-width:0;overflow:hidden}.panel-heading{justify-content:space-between;align-items:center;gap:9px;min-height:52px;padding:12px 17px;display:flex}.panel-heading h2{letter-spacing:.02em;align-items:center;gap:9px;font-size:1.035rem;font-weight:730;line-height:1.2;display:flex}.panel-heading h2 svg{width:19px;height:19px;color:var(--muted)}.viewfinder{aspect-ratio:16/10;isolation:isolate;border:1px solid var(--border);background:#101010;border-radius:9px;margin:0 15px;position:relative;overflow:hidden}.viewfinder img,.viewfinder video{object-fit:cover;width:100%;height:100%;display:block}.viewfinder.uploaded img{object-fit:contain}.finder-overlay{pointer-events:none;background:linear-gradient(#1112,#0000 30% 58%,#1010109c);position:absolute;inset:0}.aim{color:#fff;place-items:center;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@property --ring-angle{syntax:"<angle>";inherits:true;initial-value:0deg}.reticle{aspect-ratio:1;background:#14141440;border:1px solid #ffffffe0;border-radius:50%;place-items:center;width:clamp(64px,7vw,88px);display:grid;position:relative;box-shadow:0 0 0 4px #1115}.reticle.locking{transition:--ring-angle .19s linear}.reticle.demo{animation:1.5s linear both lock-demo}@keyframes lock-demo{0%{--ring-angle:0deg}to{--ring-angle:360deg}}.reticle-progress{background:conic-gradient(white var(--ring-angle), transparent 0deg);border-radius:50%;position:absolute;inset:-2px;-webkit-mask-image:radial-gradient(farthest-side,#0000 calc(100% - 4px),#000 calc(100% - 3px));mask-image:radial-gradient(farthest-side,#0000 calc(100% - 4px),#000 calc(100% - 3px))}.aim-label{color:#f7f7f7;white-space:nowrap;background:#111d;border:1px solid #ffffff40;border-radius:6px;padding:5px 10px;font-size:.875rem;font-weight:700;position:absolute;top:calc(100% + 14px)}.viewfinder-caption{color:#f5f5f5;text-shadow:0 1px 5px #000,0 1px 8px #000;justify-content:space-between;gap:12px;font-size:.8125rem;font-weight:650;display:flex;position:absolute;bottom:14px;left:15px;right:15px}.scanning-line{background:#fff;height:2px;animation:1.6s ease-in-out infinite alternate scan-line;position:absolute;left:5%;right:5%;box-shadow:0 0 18px #fffc}@keyframes scan-line{0%{top:11%}to{top:89%}}.scanner-actions{flex-wrap:wrap;align-items:center;gap:9px;padding:15px 16px 0;display:flex}.scanner-bottom{color:var(--muted);padding:12px 17px 16px;font-size:.875rem}.note-field{margin-top:9px}.note-field summary{cursor:pointer;width:fit-content;color:var(--ink);align-items:center;gap:4px;list-style:none;display:flex}.note-field summary::-webkit-details-marker{display:none}.note-field[open] summary svg{transform:rotate(180deg)}.note-field label{margin-block:8px;display:block}.note-field textarea{resize:vertical;width:100%}.mode-tabs{flex-wrap:wrap;gap:5px;margin:12px 16px -4px;display:flex}.mode-tabs button{background:var(--layer);border:1px solid var(--border);min-height:36px;color:var(--muted);border-radius:7px;padding:4px 11px;font-size:.875rem}.mode-tabs button[aria-pressed=true]{border-color:var(--outline);color:var(--ink);background:var(--hover)}.report{flex-direction:column;display:flex}.report>.panel-heading{border-bottom:1px solid var(--border)}.report-heading-actions{align-items:center;gap:6px;display:flex}.report-body{overflow-wrap:anywhere;gap:13px;padding:15px 17px 16px;display:grid}.report-title-card{padding:1px 2px 0}.report-title-meta{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px 9px;display:flex}.kind-label{color:var(--muted);align-items:center;gap:6px;font-size:.875rem;font-weight:700;display:flex}.report-confidence{color:var(--muted);font-size:.8125rem}.report-title-card h3{letter-spacing:-.035em;margin-top:5px;font-size:clamp(1.7rem,3vw,2.32rem);font-weight:800;line-height:1.2}.subtitle{color:var(--muted);margin-top:3px;font-size:.92rem}.summary{color:var(--muted);font-size:.875rem}.report-group{min-width:0}.report-group h4{color:var(--ink);margin:0 0 5px 1px;font-size:.875rem;font-weight:720}.report-table{background:var(--layer);border:1px solid var(--border);border-radius:9px;margin:0;overflow:hidden}.report-row{grid-template-columns:minmax(5.5rem,.8fr) minmax(0,1.2fr);align-items:start;gap:3px 9px;padding:7px 11px;font-size:.9375rem;display:grid}.report-row+.report-row{border-top:1px solid var(--border)}.report-row dt{color:var(--muted)}.report-row dd{margin:0}.row-value{color:var(--ink);text-align:right;font-size:1rem;font-weight:740}.security-list{background:var(--security-surface);border-color:var(--security-border)}.security-row{padding-block:8px}.security-row+.security-row{border-color:var(--security-border)}.security-row .feature-label,.security-value{color:var(--security-ink);font-weight:800}.feature-label{align-items:center;gap:6px;display:flex}.security-value{font-size:clamp(1.03rem,1.6vw,1.2rem);line-height:1.3}.security-context{color:var(--muted);flex-wrap:wrap;grid-column:1/-1;align-items:baseline;gap:3px 7px;font-size:.8125rem;display:flex}.attribute{background:var(--surface);border:1px solid var(--security-border);white-space:nowrap;border-radius:4px;padding:1px 5px;font-size:.75rem}.security-evidence{flex:135px}.price-row{align-items:baseline}.price-number{font-size:clamp(1.12rem,1.9vw,1.44rem);font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.04em;font-weight:800;line-height:1.25}.report-references{gap:5px;font-size:.875rem;display:grid}.report-references a{color:var(--ink);text-underline-offset:2px}.report-source{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.8125rem;overflow:hidden}.report-empty{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;min-height:clamp(220px,32vw,400px);max-height:560px;padding:24px 18px;display:flex}.empty-icon{background:var(--layer);border:1px solid var(--border);width:64px;height:64px;color:var(--muted);border-radius:17px;place-items:center;margin-bottom:5px;display:grid}.report-empty strong{font-size:1.13rem}.report-empty p{color:var(--muted);font-size:.9rem}.error-message{color:var(--security-ink);background:var(--security-surface);border:1px solid var(--security-border);border-radius:8px;padding:9px 11px;font-size:.9rem}.scan-error{margin:12px 16px 0}.footer{padding-bottom:env(safe-area-inset-bottom);color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin:22px 0;font-size:.8125rem;display:flex}.settings-dialog{border:1px solid var(--border);background:var(--surface);width:min(100% - 28px,460px);max-height:calc(100% - 28px);color:var(--ink);box-shadow:var(--shadow);border-radius:14px;padding:23px}.settings-dialog::backdrop{background:var(--backdrop)}:root:has(.result-sheet[open]){overflow:hidden}.result-sheet{width:100%;max-width:none;max-height:88vh;max-height:min(88dvh, calc(100dvh - env(safe-area-inset-top)));border:1px solid var(--border);color:var(--ink);background:var(--surface);box-shadow:var(--shadow);border-bottom:0;border-radius:20px 20px 0 0;margin:0;padding:0;position:fixed;inset:auto 0 0;overflow:hidden}.result-sheet[open]{grid-template-rows:minmax(0,1fr) auto;animation:.22s ease-out both result-sheet-enter;display:grid}.result-sheet::backdrop{background:var(--backdrop)}@keyframes result-sheet-enter{0%{transform:translateY(100%)}}.result-sheet-scroll{overscroll-behavior-y:contain;min-height:0;overflow-y:auto}.result-sheet .report{border:0;border-radius:0;overflow:visible}.result-sheet .panel-heading{z-index:1;background:var(--surface);position:sticky;top:0}.result-sheet .icon-button{min-width:44px;min-height:44px}.result-sheet-actions{padding:12px 16px max(12px, env(safe-area-inset-bottom));border-top:1px solid var(--border)}.result-sheet-actions .button{width:100%}.dialog-heading{justify-content:space-between;align-items:flex-start;margin-bottom:9px;display:flex}.dialog-icon{width:43px;height:43px;color:var(--ink);background:var(--layer);border-radius:12px;place-items:center;display:grid}.icon-button{min-width:40px;min-height:40px;color:var(--muted);background:0 0;border:none;border-radius:8px;place-items:center;padding:0;display:grid}.icon-button:hover{color:var(--ink);background:var(--hover)}.settings-dialog h2{letter-spacing:-.035em;font-size:1.61rem}.dialog-intro{margin:3px 0 16px;font-size:.92rem}.settings-dialog .settings-modes{margin:12px 0 9px}.field{margin-block:11px;display:block}.field>span:first-child,.field>label{margin-bottom:5px;font-size:.9rem;font-weight:650;display:block}.field small{color:var(--muted);margin-top:5px;font-size:.82rem;display:block}.field input,.field select,.note-field textarea{width:100%;min-width:0;color:var(--ink);background:var(--input);border:1px solid var(--outline);border-radius:8px;min-height:42px;padding:9px 11px;font-size:1rem}.field select{-webkit-appearance:none;appearance:none;padding-right:34px}.select-shell,.secret-field{display:block;position:relative}.select-shell svg{pointer-events:none;color:var(--muted);position:absolute;top:50%;right:11px;transform:translateY(-50%)}.secret-field input{padding-right:46px}.secret-field .icon-button{position:absolute;top:1px;right:2px}.privacy-note{color:var(--muted);align-items:center;gap:7px;margin:10px 0;font-size:.84rem;display:flex}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:15px;display:flex}.history-dialog{width:min(100% - 28px,660px);max-height:min(100% - 28px,780px)}.history-heading{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:12px;margin-bottom:15px;display:grid}.history-heading p{font-size:.875rem}.history-empty{color:var(--muted);text-align:center;padding:28px 12px}.history-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.history-entry{text-align:left;width:100%;color:inherit;background:var(--layer);border:1px solid var(--border);border-radius:10px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:7px;display:grid}.history-entry:hover{border-color:var(--outline);background:var(--hover)}.history-thumbnail,.history-frame{background:var(--layer);border-radius:6px;display:block}.history-thumbnail{object-fit:cover;width:76px;height:55px}.history-entry-content{gap:3px;min-width:0;display:grid}.history-entry-content strong{overflow-wrap:anywhere;font-size:.95rem}.history-entry-meta{color:var(--muted);flex-wrap:wrap;gap:0 7px;font-size:.8125rem;display:flex}.history-entry-meta>*{white-space:nowrap}.history-more{margin:11px auto 0;display:flex}.history-detail-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 10px;margin:0 0 9px;font-size:.875rem;display:flex}.history-detail-top button{padding-inline:8px}.history-frame{object-fit:contain;width:100%;min-height:115px;max-height:min(45vh,360px);margin-bottom:14px}.history-outcome{gap:4px;padding:4px 0 10px;display:grid}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:930px){.shell{width:min(100% - 40px,1320px)}.workspace{grid-template-columns:minmax(0,1.25fr) minmax(312px,1fr);gap:12px}.panel-heading,.report-body{padding-inline:13px}.viewfinder{margin-inline:12px}.scanner-actions,.scanner-bottom{padding-inline:13px}}@media (max-width:740px){.intro{margin:26px 0 18px}.workspace{grid-template-columns:minmax(0,1fr)}.viewfinder{aspect-ratio:4/3}.report-empty{min-height:180px}}@media (max-width:460px){.shell{width:calc(100% - 24px)}.topbar-inner{min-height:62px}.topbar-actions{gap:7px}.brand{gap:7px;font-size:1.17rem}.brand-icon{border-radius:8px;width:34px;height:34px}.intro p{margin-top:9px}.panel{border-radius:14px}.panel-heading{min-height:50px}.scanner-actions{gap:6px;padding-top:12px}.scanner-actions .button{gap:5px;padding-inline:9px}.viewfinder-caption{bottom:14px}.report-body{padding-block:14px}.history-dialog{padding:14px}.history-thumbnail{width:52px;height:45px}.history-entry{gap:7px}.history-entry .pill{padding-inline:6px}}@media (max-width:720px){.model-status{display:none}}@media (max-width:520px){.toolbar-label{display:none}.settings-button{min-width:40px}.security-context{gap:4px 6px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.001ms!important;animation-duration:.001ms!important}}
