*{box-sizing:border-box}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111827;background:#f8fafc;font-synthesis:none;text-rendering:optimizeLegibility}body{margin:0;background:#f8fafc}button,input,textarea{font:inherit}button{min-height:48px}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.app-shell{width:min(100%,760px);margin:0 auto;padding:18px 16px 128px}.topbar,.section-heading,.history-row,.client-row,.actions{display:flex;align-items:center}.topbar{justify-content:space-between;gap:16px;margin-bottom:16px}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(1.65rem,7vw,2.15rem)}h2{margin-bottom:0;font-size:1.2rem}h3{margin-bottom:8px}.eyebrow{margin-bottom:4px;font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#64748b}.pill{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border-radius:999px;background:#dcfce7;color:#166534;font-size:.84rem;font-weight:800;white-space:nowrap}.pill.neutral{background:#e2e8f0;color:#334155}.notice{margin:0 0 14px;padding:12px 14px;border-radius:12px;font-weight:700;line-height:1.35}.notice.ok{background:#dcfce7;color:#166534}.notice.warn,.notice.error{background:#fee2e2;color:#991b1b}.notice.info{background:#dcfce7;color:#166534}.notice-toast{position:fixed;top:calc(10px + env(safe-area-inset-top));left:50%;transform:translate(-50%);z-index:200;width:min(calc(100% - 32px),720px);margin:0;box-shadow:0 10px 30px #0f172a38}.scan-actions{flex-direction:column;align-items:stretch}.scan-actions>button{width:100%}.card{margin-bottom:14px;padding:16px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.scanner-card{padding-bottom:14px}.section-heading{justify-content:space-between;gap:16px;margin-bottom:14px}.section-heading.compact{align-items:flex-start}.scan-title{white-space:nowrap;font-size:clamp(.88rem,4.2vw,1.2rem)}.count{min-width:82px;text-align:right}.count strong{display:block;font-size:2.1rem;line-height:1}.count span{color:#64748b;font-size:.8rem}.video-wrap{position:relative;overflow:hidden;aspect-ratio:4/5;max-height:520px;min-height:clamp(200px,48vh,520px);border-radius:16px;background:#0f172a}.video-wrap video{width:100%;height:100%;object-fit:cover}.video-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-content:center;gap:8px;padding:32px;text-align:center;color:#cbd5e1}.video-placeholder span{display:block;font-size:2rem}.video-placeholder p{margin-bottom:0}.scan-frame{position:absolute;top:22%;right:12%;bottom:22%;left:12%;border:3px solid rgba(255,255,255,.9);border-radius:18px;box-shadow:0 0 0 9999px #0f172a40;pointer-events:none}.actions{gap:10px;flex-wrap:wrap;margin-top:12px}button{border:0;border-radius:12px;padding:0 16px;cursor:pointer;font-weight:800}button:disabled{cursor:not-allowed;opacity:.45}.primary{background:#111827;color:#fff}.secondary{background:#e2e8f0;color:#0f172a}.success{background:#16a34a;color:#fff}.danger{background:#dc2626;color:#fff}.full-width{width:100%}.text-button{min-height:40px;padding:4px 0;background:transparent;color:#334155}.text-button.danger{color:#b91c1c}.warning-card{border-color:#fcd34d;background:#fffbeb}.stack{display:grid;gap:12px}label{display:grid;gap:6px;font-weight:700}input,textarea{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:12px;background:#fff;color:#111827;font-size:16px}textarea{resize:vertical}details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:800}.history-list,.client-list{display:grid}.history-row,.client-row{justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #e2e8f0}.history-row:first-child,.client-row:first-child{border-top:0}.history-row strong,.client-row strong{display:block}.history-row span,.client-row span,.muted,footer{color:#64748b;font-size:.86rem}.history-count{text-align:right}.small-card{font-size:.95rem}footer{padding:8px 4px;text-align:center}footer p{margin-bottom:0}@media(min-width:640px){.app-shell{padding-top:28px}.video-wrap{aspect-ratio:16/10}}.photo-frame{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:82%;aspect-ratio:3/5;max-width:88%;border:3px solid rgba(255,255,255,.9);border-radius:18px;box-shadow:0 0 0 9999px #0f172a40;pointer-events:none}.video-instruction{position:absolute;left:0;right:0;bottom:10px;margin:0;padding:0 12px;text-align:center;color:#e2e8f0;font-size:.86rem;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.65);pointer-events:none}.video-instruction.qr-live{left:auto;right:10px;top:8px;bottom:auto;max-width:calc(100% - 20px);padding:4px 10px;text-align:right;font-size:.76rem;line-height:1.2;white-space:nowrap;color:#dcfce7;background:#0f172ac7;border:1px solid rgba(220,252,231,.35);border-radius:999px;text-shadow:none;box-shadow:0 1px 6px #00000059;z-index:2}.qr-live-check{margin:12px 0 0;padding:12px;border:1px solid #fca5a5;border-radius:12px;background:#fef2f2}.qr-live-check.warn{border-color:#fcd34d;background:#fffbeb}.qr-live-check .notice{margin:0 0 8px}.qr-live-check .actions{margin-top:0}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;max-width:760px;margin:0 auto;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e2e8f0;box-shadow:0 -2px 12px #0f172a0f}.tab-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;padding:6px 4px;border-radius:12px;background:transparent;color:#64748b;font-weight:800}.tab-button .tab-icon{font-size:1.3rem;line-height:1}.tab-button .tab-label{font-size:.72rem;letter-spacing:.01em}.tab-button.active{background:#111827;color:#fff}.tab-button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.label-photo{width:100%;max-height:320px;object-fit:contain;border-radius:12px;background:#0f172a}.photo-ready{margin:0;font-weight:800;color:#166534}.label-reading{display:grid;gap:6px;margin:0}.label-reading progress{width:100%;height:10px;border-radius:999px}.label-results{display:grid;gap:8px}.label-fields{display:grid;gap:6px;margin:0}.label-field{display:flex;justify-content:space-between;gap:12px;padding-top:6px;border-top:1px solid #e2e8f0}.label-field:first-child{padding-top:0;border-top:0}.label-field dt{margin:0;font-weight:800;color:#334155}.label-field dd{margin:0;text-align:right;word-break:break-word}.label-field dd.missing{color:#94a3b8;font-weight:700}.label-missing{margin:0;color:#92400e;font-weight:700}.photo-error{margin:0;color:#991b1b;font-weight:700}.label-diagnostics{margin:0;padding:6px 0}.label-diagnostics summary{cursor:pointer;color:#334155;font-weight:700;padding:6px 0}.label-raw{margin:0;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#0f172a;color:#f1f5f9;max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-family:monospace;font-size:11px;line-height:1.4}.label-note{margin:0;color:#64748b;font-size:.85rem;line-height:1.35;font-weight:600}.label-form{display:grid;gap:10px;margin-top:2px}.field-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.field-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:800;letter-spacing:.02em}.field-tag.verified{background:#dcfce7;color:#166534}.field-tag.ocr{background:#e2e8f0;color:#334155}input[readonly]{background:#f1f5f9;color:#334155}.pending-photos{display:grid;gap:10px;margin:0 0 14px}.pending-photo{margin:0;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.pending-photo span{font-weight:700;line-height:1.3}.pending-photo button{min-height:40px}.commune-autocomplete{position:relative}.commune-autocomplete input{width:100%}.commune-suggestions{position:absolute;left:0;right:0;top:100%;z-index:30;max-height:240px;overflow-y:auto;margin-top:4px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 8px 24px #0f172a1f}.commune-suggestions button{display:block;width:100%;min-height:48px;padding:10px 12px;border:0;border-bottom:1px solid #f1f5f9;background:#fff;text-align:left;font-size:.95rem}.commune-suggestions button:last-child{border-bottom:0}.commune-suggestions button:active{background:#f1f5f9}.commune-warning{margin:6px 0 0;font-size:.86rem;font-weight:700;color:#92400e}.commune-pending{margin:12px 0;padding:12px;border:1px solid #fcd34d;border-radius:12px;background:#fffbeb}.commune-pending .eyebrow{margin:0 0 6px}.commune-pending .notice{margin:0 0 8px}.history-row.history-package{display:block}.history-package-main{display:grid;gap:4px;min-width:0}.history-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.history-line-top{font-weight:700}.history-line-bottom{font-size:.84rem;color:#64748b}.history-seller,.history-commune{min-width:0;overflow-wrap:anywhere}.history-chip{display:inline-flex;align-items:center;padding:1px 8px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:.72rem;font-weight:800;white-space:nowrap}.history-tracking{font-variant-numeric:tabular-nums}.manual-ingress-head{flex-wrap:wrap}.manual-ingress-toggle{min-height:44px;padding:0 14px}.manual-ingress-note{margin:0;color:#64748b;font-size:.9rem;line-height:1.4;font-weight:600}.manual-ingress-form{margin-top:14px}.manual-ingress-field{display:grid;gap:6px}.manual-ingress-field>label{display:block;font-weight:700}.field-error{margin:0;font-size:.86rem;font-weight:700;color:#991b1b}.field-hint{margin:0;font-size:.82rem;font-weight:600;color:#64748b;line-height:1.35}.selected-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 12px;border:1px solid #bbf7d0;border-radius:12px;background:#f0fdf4;font-weight:700}.selected-chip button{min-height:40px;padding:4px 12px;border-radius:10px;background:#dcfce7;color:#166534;font-weight:800}.selected-chip button:disabled{opacity:.45}.manual-ingress-photo{margin:0 0 4px;display:grid;gap:8px}.manual-ingress-photo img{width:100%;max-height:220px;object-fit:contain;border-radius:12px;background:#0f172a}.manual-ingress-photo figcaption{color:#64748b;font-size:.82rem;font-weight:600;line-height:1.35}.photo-decision-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:2px}.photo-decision-actions>button{width:100%;min-width:0;min-height:48px;padding:10px 12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}.photo-decision-actions>.photo-decision-cancel{grid-column:1/-1;justify-self:center;width:auto;min-width:148px;padding:10px 24px}.client-list .seller-item{padding:14px 0;border-top:1px solid #e2e8f0;display:grid;gap:8px}.client-list .seller-item:first-child{border-top:0;padding-top:0}.seller-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.seller-name-link{min-height:44px;padding:0;border:0;background:transparent;color:#0f172a;font:inherit;font-weight:800;text-align:left;text-decoration:underline;text-decoration-color:#94a3b8;text-underline-offset:3px;cursor:pointer;line-height:1.35}.seller-name-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8}.seller-name-link:focus-visible{outline:3px solid #93c5fd;outline-offset:2px;border-radius:4px}.seller-edit-button{flex-shrink:0;min-height:40px;padding:4px 0}.seller-contact-line{margin:0;color:#475569;font-size:.92rem;line-height:1.35;word-break:break-word}.seller-operational-actions.actions{margin-top:0;gap:8px}.seller-operational-actions .secondary{min-height:44px;padding:0 14px;font-size:.92rem}.seller-invite-block{gap:8px}.seller-invite-block .actions{margin-top:0;gap:8px}.seller-detail-card{padding:14px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc;margin-bottom:14px}.seller-detail-card .section-heading{margin-bottom:0}.seller-detail-list{display:grid;gap:0;margin:0}.seller-detail-item{display:grid;gap:2px;padding:10px 0;border-top:1px solid #e2e8f0}.seller-detail-item:first-child{border-top:0;padding-top:0}.seller-detail-item:last-child{padding-bottom:0}.seller-detail-item dt{font-size:.78rem;font-weight:800;letter-spacing:.04em;color:#64748b;text-transform:uppercase}.seller-detail-item dd{margin:0;font-size:.98rem;color:#0f172a;line-height:1.4;word-break:break-word}@media(max-width:430px){.seller-item-top{gap:8px}.seller-operational-actions.actions,.seller-invite-block .actions{align-items:stretch}.seller-operational-actions .secondary,.seller-invite-block .secondary{flex:1 1 auto}}.topbar{gap:12px}.topbar-brand{min-width:0;flex:1 1 auto}.account-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:min(46vw,220px);padding:8px 12px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#0f172a;font-size:.88rem;font-weight:700;line-height:1.2;flex:0 1 auto}.account-chip-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}.account-chip-icon{flex:0 0 auto;color:#475569}.account-card{scroll-margin-top:16px}.account-divider{width:100%;border:0;border-top:1px solid #e2e8f0;margin:4px 0}.account-card h3{margin-bottom:0;font-size:1rem}@media(max-width:430px){.topbar{align-items:flex-start}.account-chip{max-width:44vw;padding:7px 10px;font-size:.82rem}}
