:root{--ink:#17263d;--muted:#64748b;--line:#dfe5ee;--blue:#175cff;--blue-light:#edf3ff;--nav:#101d35;--bg:#f4f6fa;--white:#fff;--good:#127653;--warning:#946009;--danger:#b63343;--radius:14px;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--blue);text-decoration:none}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #84adff;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:1.9rem;line-height:1.2;letter-spacing:-.035em;margin-bottom:.5rem}h2{font-size:1.15rem;letter-spacing:-.02em;margin-bottom:.6rem}h3{font-size:1rem;margin-bottom:.6rem}small{font-size:.8rem}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:white;padding:.72rem .85rem;color:var(--ink);min-height:44px}textarea{resize:vertical;line-height:1.5}label{display:block;font-size:.875rem;font-weight:600;margin-bottom:.45rem}.field{margin-bottom:1rem}.hint{font-size:.82rem;line-height:1.55;color:var(--muted);margin:.4rem 0 0}.muted{color:var(--muted)}.btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:.7rem 1.15rem;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;font-weight:600;font-size:.875rem}.btn svg,.icon-button svg,.nav-item svg{width:20px;height:20px;flex-shrink:0}.btn.primary{color:white;background:var(--blue);border-color:var(--blue)}.btn.primary:hover{background:#0947d4}.btn.subtle{background:#f8fafc}.btn.danger{color:var(--danger);border-color:#f0d3d8}.btn.small{min-height:36px;padding:.4rem .7rem;font-size:.82rem}.btn.wide{width:100%}.icon-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;background:white;color:var(--muted)}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:12px}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;line-height:1.2;border-radius:6px;font-size:.75rem;font-weight:600;background:#edf1f6;color:#52627a;white-space:nowrap}.badge.blue{color:#2459b7;background:#edf3ff}.badge.green{color:var(--good);background:#e7f6ef}.badge.amber{color:var(--warning);background:#fff5dd}.badge.red{color:var(--danger);background:#fcebee}.dot{height:7px;width:7px;background:#5be1ab;border-radius:50%;display:inline-block}.dot.off{background:#f4b66a}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.15em;color:var(--blue)}.brandmark{width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:white;background:var(--blue);font-size:1.4rem;font-weight:900;border-radius:9px;flex-shrink:0}.wordmark{display:flex;align-items:center;gap:11px;color:white;font-size:.98rem;font-weight:750;letter-spacing:.06em}.wordmark small{display:block;font-size:.63rem;letter-spacing:.22em;font-weight:400;color:#9fadc4;margin-top:4px}.startup{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:16px;color:var(--muted)}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:var(--nav);padding:48px 9%;display:flex;flex-direction:column;justify-content:space-between;gap:70px;min-height:100vh}.auth-story h1{font-size:3.8rem;color:white;line-height:1.07;margin-top:20px}.auth-story p{max-width:380px;color:#acbbd2;line-height:1.7}.auth-story .eyebrow{color:#88afff}.muted-light{color:#7f91ac;font-size:.8rem}.auth-panel{padding:44px;display:grid;place-items:center;background:white}.auth-panel>div{width:100%;max-width:430px}.auth-panel h1{margin-bottom:12px}.auth-panel .description{color:var(--muted);line-height:1.65;margin-bottom:30px}.error-box{background:#fff0f2;border:1px solid #f2cfd5;color:#9c2d3f;border-radius:9px;padding:13px;font-size:.875rem;line-height:1.6;margin:16px 0}.notice{background:#edf3ff;border:1px solid #d5e3ff;border-radius:10px;padding:14px 16px;font-size:.875rem;line-height:1.6;color:#2b4d86}.notice.amber{background:#fff8e8;border-color:#f2e3bc;color:#845e16}.workspace{display:flex;min-height:100vh}.sidebar{width:236px;background:var(--nav);padding:30px 18px 24px;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;color:#b9c6dc;z-index:10}.sidebar .wordmark{padding:0 10px;margin-bottom:50px}.nav-caption{padding:0 13px;font-size:.65rem;letter-spacing:.16em;color:#71829e;font-weight:600;margin-bottom:15px}.nav-item{border:0;width:100%;display:flex;align-items:center;gap:13px;padding:14px 13px;background:transparent;color:#a6b5cd;text-align:left;border-radius:9px;font-size:.875rem;margin-bottom:6px;line-height:1.4}.nav-item:hover{background:#1b2b48;color:white}.nav-item.active{background:#243b65;color:#fff;box-shadow:inset 3px 0 0 #70a1ff}.sidebar-footer{margin-top:auto;padding:24px 12px 0;display:grid;gap:9px;font-size:.8rem}.sidebar-footer small{font-size:.72rem;color:#7f92af}.connection{display:flex;align-items:center;gap:9px}.sidebar-line{height:1px;background:#263550;margin:14px 0}.main-shell{margin-left:236px;width:calc(100% - 236px);min-width:0;display:flex;flex-direction:column}.topbar{height:78px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--line);gap:15px;font-size:.82rem}.breadcrumb{color:#7d8aa0}.breadcrumb-sep{margin:0 13px;color:#b2bdcd}.topbar-right{display:flex;gap:17px;align-items:center}.date-label{font-size:.75rem;color:#718096}.user-chip{display:flex;align-items:center;gap:9px;border:0;background:none;color:var(--ink);font-size:.8rem}.avatar{width:30px;height:30px;border-radius:50%;background:#edf1f8;color:#455675;display:grid;place-items:center;font-weight:700}.main-footer{margin-top:auto;padding:18px 34px;border-top:1px solid var(--line);color:#8290a4;display:flex;justify-content:space-between;gap:12px;font-size:.72rem}main{padding:29px 34px 34px;max-width:1740px;width:100%;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-head p{color:var(--muted);font-size:.875rem;margin:0;line-height:1.5}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.metric{background:white;border:1px solid var(--line);padding:19px 20px;border-radius:var(--radius);display:flex;justify-content:space-between;align-items:flex-start}.metric-label{font-size:.78rem;color:var(--muted)}.metric strong{display:block;font-size:1.9rem;letter-spacing:-.04em;margin-top:9px;line-height:1.1}.metric-icon{color:#5c7aa6;background:#f0f4fa;border-radius:9px;padding:9px;display:flex}.metric-icon svg{height:18px;width:18px}.metric:nth-child(3) .metric-icon{color:#b27b19;background:#fff6e4}.scan-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:22px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-head{padding:19px 21px;border-bottom:1px solid #e8edf4;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{margin:0}.panel-body{padding:21px}.session-select{margin-bottom:17px}.select-row{display:flex;gap:9px}.select-row select{min-width:0}.camera-stage{position:relative;background:#101b2d;border-radius:11px;min-height:274px;display:flex;justify-content:center;align-items:center;overflow:hidden;color:white;border:1px solid #20324d}.camera-stage img,.camera-stage video{width:100%;height:310px;object-fit:contain;display:block}.camera-empty{display:grid;justify-items:center;padding:28px;gap:12px;text-align:center;max-width:330px}.camera-empty .camera-glyph{width:58px;height:58px;border-radius:13px;background:#20324e;display:grid;place-items:center;color:#a1b5d6;margin-bottom:3px}.camera-glyph svg{width:28px;height:28px}.camera-empty h3{color:#e4ebf7;font-size:.95rem;margin:0}.camera-empty p{font-size:.8rem;color:#8e9fba;line-height:1.6;margin:0}.stage-label{position:absolute;top:12px;left:12px;border-radius:5px;background:#172843db;padding:6px 9px;font-size:.7rem;color:#adc0df;z-index:2}.stage-status{position:absolute;right:12px;top:12px;border-radius:5px;background:#172843db;padding:6px 9px;font-size:.7rem;color:#c8d5eb}.camera-actions{display:flex;gap:9px;margin:16px 0 12px;flex-wrap:wrap}.camera-actions .btn{flex:1}.camera-picker{margin-top:13px}.capture-meta{display:flex;justify-content:space-between;gap:10px;font-size:.75rem;color:var(--muted);padding-top:5px}.section-tabs{display:flex;gap:7px;margin-bottom:17px}.tab{border:1px solid var(--line);border-radius:7px;background:white;padding:7px 12px;font-size:.78rem;color:var(--muted)}.tab.active{background:var(--blue-light);border-color:#caddff;color:#2156b0}.result-placeholder{min-height:220px;display:grid;place-content:center;text-align:center;color:#8b99ad;padding:22px}.result-placeholder svg{width:38px;height:38px;margin:0 auto 17px;color:#a8b6cc}.result-placeholder p{font-size:.85rem;line-height:1.7;max-width:265px}.result-fields{display:grid;gap:0}.result-field{padding:12px 0;border-bottom:1px solid #eef1f5}.result-field:last-child{border:0}.result-field span{display:block;font-size:.74rem;color:var(--muted);margin-bottom:7px}.result-field strong{font-size:.9rem;font-weight:600;line-height:1.55;overflow-wrap:anywhere}.result-field .qty{font-size:1.75rem;letter-spacing:-.035em}.result-field .qty em{font-size:.82rem;color:var(--muted);font-style:normal;letter-spacing:0;margin-left:7px}.mono{font-family:ui-monospace,Consolas,monospace;font-size:.85rem;overflow-wrap:anywhere}.raw-box{background:#f5f7fb;border-radius:8px;padding:11px;font-family:ui-monospace,Consolas,monospace;font-size:.74rem;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.result-footer{margin-top:18px}.recent-panel{margin-top:24px}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:.82rem}.data-table th{text-align:left;font-size:.7rem;text-transform:uppercase;letter-spacing:.055em;color:#8390a3;font-weight:650;background:#fbfcfe;padding:13px 19px;white-space:nowrap;border-bottom:1px solid var(--line)}.data-table td{padding:15px 19px;border-bottom:1px solid #eef1f6;vertical-align:middle;line-height:1.55}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fafcff}.data-table .primary-cell{font-weight:650;color:#263b59}.data-table small{display:block;font-size:.73rem;color:#8692a5;max-width:250px}.thumb{width:42px;height:42px;object-fit:cover;border:1px solid var(--line);border-radius:6px;background:#edf1f7}.empty-state{text-align:center;padding:42px 20px;color:var(--muted);font-size:.85rem}.empty-state strong{display:block;color:#455a75;margin-bottom:8px}.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.filters input{flex:2;min-width:190px}.filters select{flex:1;min-width:160px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}.device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.device-card{padding:24px;background:white;border:1px solid var(--line);border-radius:var(--radius)}.device-head{display:flex;gap:15px;align-items:center;margin-bottom:22px}.device-symbol{background:#ecf2ff;color:#4168a5;border-radius:12px;padding:15px;display:flex}.device-symbol svg{width:30px;height:30px}.device-head h2{margin:0 0 7px}.device-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0;color:var(--muted);font-size:.75rem}.device-details strong{display:block;margin-top:7px;color:var(--ink);font-weight:500;font-size:.85rem}.device-actions{display:flex;gap:9px;flex-wrap:wrap}.token-box{padding:17px;border:1px solid #d5e3ff;border-radius:9px;background:#f3f7ff;overflow-wrap:anywhere;font-family:ui-monospace,Consolas,monospace;line-height:1.65;font-size:.8rem;user-select:all}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.section-gap{margin-top:22px}.queue-list{display:grid;gap:10px;margin-top:18px}.queue-row{display:flex;gap:12px;align-items:center;padding:12px;background:#f6f8fc;border-radius:9px}.queue-row>div{flex:1;min-width:0}.queue-row strong{font-size:.8rem;display:block}.queue-row small{font-size:.73rem;display:block;line-height:1.5;overflow-wrap:anywhere;color:var(--muted)}.pending-banner{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:18px;border-radius:10px;background:#fff8e8;border:1px solid #f2e3bc;padding:12px 16px;font-size:.82rem;color:#87600f}.audit-list{display:grid;gap:12px;font-size:.8rem}.audit-item{border-left:2px solid #d8e3f4;padding:2px 0 2px 12px}.audit-item strong{display:block;margin-bottom:4px}.audit-item small{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;width:min(780px,calc(100vw - 32px));max-height:90vh;padding:0;box-shadow:0 25px 100px #14284630;color:var(--ink)}dialog::backdrop{background:#0d193e66;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.modal-head h2{margin:0}.modal-head .icon-button{border:0}.modal-body,#modal-body{padding:24px}.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.evidence{width:100%;height:300px;object-fit:contain;background:#edf1f7;border-radius:10px;border:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.toast-region{position:fixed;bottom:25px;right:25px;display:grid;gap:10px;z-index:100;max-width:420px}.toast{background:#17263d;color:white;padding:15px 19px;border-radius:10px;box-shadow:0 8px 30px #12243c25;font-size:.875rem;line-height:1.55}.toast.error{background:#912c3b}.toast.success{background:#196447}.code-label{display:flex;align-items:center;justify-content:space-between;font-size:.75rem;color:var(--muted);margin-top:18px;margin-bottom:8px}.online-capture-note{font-size:.8rem;line-height:1.65;color:var(--muted)}.settings-list{display:grid;gap:17px}.settings-list>div{display:flex;justify-content:space-between;gap:15px;font-size:.85rem;border-bottom:1px solid #edf1f6;padding-bottom:12px}.help-steps{padding-left:20px;color:var(--muted);font-size:.875rem;line-height:1.9}.filter-inline{display:flex;align-items:center;gap:8px;font-size:.8rem}.filter-inline input{width:16px;min-height:16px}.stats-caption{font-size:.75rem;color:var(--muted);margin:16px 0 0}.mobile-brand{display:none}
@media(min-width:1500px){.camera-stage{min-height:340px}.camera-stage img,.camera-stage video{height:380px}.scan-grid{grid-template-columns:1.55fr 1fr}}
@media(max-width:1120px){.sidebar{width:205px;padding:26px 12px}.main-shell{margin-left:205px;width:calc(100% - 205px)}main{padding:24px}.topbar{padding:0 24px}.metric{padding:16px 14px}.metric-icon{display:none}.scan-grid{grid-template-columns:minmax(0,1.2fr) minmax(270px,1fr);gap:16px}.camera-actions{gap:7px}.camera-actions .btn{padding:.65rem .55rem}.date-label{display:none}.panel-body{padding:17px}.panel-head{padding:17px}.main-footer{padding:16px 24px}}
@media(max-width:850px){.sidebar{width:76px;padding:24px 10px}.sidebar .wordmark{padding:0 10px;margin-bottom:32px}.sidebar .wordmark>span:last-child,.nav-caption,.sidebar-footer{display:none}.nav-item{font-size:0;gap:0;justify-content:center;padding:16px}.nav-item svg{width:22px;height:22px}.main-shell{margin-left:76px;width:calc(100% - 76px)}.scan-grid{grid-template-columns:1fr}.device-grid,.settings-grid{grid-template-columns:1fr}.metrics{gap:10px}.metric-label{font-size:.7rem}.metric strong{font-size:1.6rem}.auth-story h1{font-size:3rem}.auth-story{padding:40px 30px}.auth-panel{padding:30px}.result-placeholder{min-height:130px}.main-footer{display:block}.main-footer>span:last-child{display:none}}
@media(max-width:560px){.sidebar{position:static;width:100%;height:auto;padding:13px 14px;flex-direction:row;align-items:center;gap:14px;overflow:auto}.sidebar .wordmark{margin:0;padding:0}.sidebar nav{display:flex;gap:4px}.nav-item{width:44px;margin:0;padding:11px}.workspace{display:block}.main-shell{margin:0;width:100%}.topbar{height:65px;padding:0 17px;font-size:.75rem}.topbar-right{gap:8px}.user-chip #user-name{display:none}.breadcrumb{display:none}.breadcrumb-sep{display:none}main{padding:21px 16px}.page-head{align-items:flex-start;gap:12px;margin-bottom:20px}.page-head h1{font-size:1.6rem}.page-head .btn{padding:.6rem .75rem;font-size:.75rem}.page-head p{font-size:.8rem}.metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.metric{padding:15px}.metric-label{font-size:.75rem}.metric strong{font-size:1.7rem}.panel-head{padding:16px}.panel-head h2{font-size:1rem}.panel-body{padding:15px}.camera-stage{min-height:240px}.camera-stage img,.camera-stage video{height:270px}.modal-grid,.form-grid{grid-template-columns:1fr}.modal-head{padding:18px}#modal-body{padding:18px}.auth-shell{grid-template-columns:1fr}.auth-story{min-height:auto;padding:24px}.auth-story>div:nth-child(2),.muted-light{display:none}.auth-panel{padding:35px 25px}.auth-panel h1{font-size:1.7rem}.camera-actions .btn{font-size:.78rem}.toast-region{left:16px;right:16px;bottom:16px}.main-footer{padding:15px 18px;font-size:.68rem}.select-row{flex-wrap:wrap}.select-row select{width:100%;flex:1;min-width:170px}.filters{gap:8px}.filters input,.filters select{min-width:100%;}.data-table th,.data-table td{padding:13px}.capture-meta{flex-wrap:wrap}}
