:root{--bg:#0f172a;--surface:#1e293b;--surface-elevated:#273449;--border:#334155;--text:#e2e8f0;--text-muted:#94a3b8;--primary:#3b82f6;--primary-hover:#2563eb;--success:#22c55e;--warning:#f59e0b;--danger:#ef4444;--radius:14px;--mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--sans:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;font-family:var(--sans);color:var(--text);background-color:var(--bg);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body{background:radial-gradient(circle at top,#1e293b 0%,#0f172a 65%);min-height:100dvh;margin:0;padding:0;overflow-x:hidden}#root{width:100%;min-height:100dvh}code{font-family:var(--mono);color:#93c5fd;word-break:break-all;background:#0f172ab3;border-radius:6px;padding:2px 6px;font-size:.85em}.app-shell{width:100%;max-width:540px;padding:max(14px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom));flex-direction:column;gap:14px;margin:0 auto;display:flex}.app-header{flex-direction:column;gap:2px;display:flex}.app-header h1{letter-spacing:-.02em;color:#f8fafc;margin:0;font-size:1.35rem;font-weight:700}.subtitle{color:var(--text-muted);margin:0;font-size:.85rem;line-height:1.35}.main-content{flex-direction:column;gap:14px;display:flex}.card,.scanner-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;box-shadow:0 10px 25px #00000040}.scanner-card{flex-direction:column;gap:12px;display:flex}.scanner-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.status-badge{background:var(--surface-elevated);border:1px solid var(--border);border-radius:999px;align-items:center;gap:8px;padding:6px 11px;font-size:.82rem;font-weight:600;display:inline-flex}.status-dot{background:var(--text-muted);border-radius:50%;flex-shrink:0;width:8px;height:8px}.status-active .status-dot{background:var(--success);box-shadow:0 0 8px var(--success)}.status-requesting .status-dot{background:var(--warning)}.status-error .status-dot{background:var(--danger)}.btn-flip{border-radius:999px;min-height:36px;padding:6px 12px;font-size:.8rem}.scanner-viewport-wrap{border:1px solid var(--border);background:#020617;border-radius:12px;width:100%;min-height:340px;position:relative;overflow:hidden}.scanner-viewport{width:100%}.scanner-viewport video{object-fit:cover;border-radius:12px;min-height:340px;max-height:65dvh;width:100%!important}.scanner-overlay{text-align:center;color:var(--text);background:#020617e0;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:20px;display:flex;position:absolute;inset:0}.error-overlay p{color:#fca5a5;max-width:340px;font-size:.92rem;line-height:1.5}.result-card{flex-direction:column;gap:16px;display:flex}.status-pill{text-transform:uppercase;letter-spacing:.05em;border-radius:999px;align-self:flex-start;padding:5px 12px;font-size:.82rem;font-weight:700}.status-pill-success{color:#86efac;background:#22c55e24;border:1px solid #22c55e59}.status-pill-sending{color:#fde68a;background:#f59e0b24;border:1px solid #f59e0b59}.status-pill-error{color:#fca5a5;background:#ef444424;border:1px solid #ef444459}.result-field{flex-direction:column;gap:6px;display:flex}.field-label{color:var(--text-muted);font-size:.84rem;font-weight:600}.serial-value{font-family:var(--mono);color:#f8fafc;background:var(--bg);border:1px solid var(--border);word-break:break-all;border-radius:10px;padding:12px 14px;font-size:1.25rem;font-weight:700}.success-message{color:#86efac;margin:0;font-size:.95rem;font-weight:500}.error-message{color:#fca5a5;margin:0;font-size:.92rem}.result-actions{flex-direction:column;gap:10px;display:flex}.result-actions .btn{width:100%}.btn{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;gap:6px;min-height:48px;padding:10px 16px;font-family:inherit;font-size:.95rem;font-weight:600;text-decoration:none;transition:background-color .15s,border-color .15s,transform 80ms;display:inline-flex}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface-elevated);color:var(--text);border-color:var(--border)}.btn-secondary:hover:not(:disabled){background:#334155}@media (width>=560px){.app-shell{max-width:640px;padding:24px 16px 48px}.app-header h1{font-size:1.65rem}.result-actions{flex-direction:row}.result-actions .btn{width:auto}.camera-select{width:auto;max-width:220px}}
