:root{--bg:#f6f5f2;--surface:#fff;--text:#141414;--muted:#6b6b66;--line:#e3e1da;--brand:#f59e0b;--brand-ink:#1a1203;--ok:#15803d;--ok-bg:#e7f5ec;--warn:#a16207;--warn-bg:#fdf3d8;--bad:#b42318;--bad-bg:#fde8e6;--radius:14px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0f0f0e;--surface:#1a1a18;--text:#f1f0ec;--muted:#a3a29b;--line:#2d2d29;--ok:#4ade80;--ok-bg:#12261a;--warn:#fbbf24;--warn-bg:#2a2110;--bad:#f87171;--bad-bg:#2c1513}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0}body{-webkit-text-size-adjust:100%;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1,h2{margin:0 0 .25rem;line-height:1.2}h1{font-size:1.4rem}h2{font-size:1.15rem}p{margin:.25rem 0 .75rem}a{color:inherit}.muted{color:var(--muted);font-weight:400}.app{flex-direction:column;min-height:100dvh;display:flex}.topbar{z-index:5;padding:.6rem max(16px, env(safe-area-inset-right)) .6rem max(16px, env(safe-area-inset-left));padding-top:max(.6rem, env(safe-area-inset-top));background:var(--bg);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;display:flex;position:sticky;top:0}.brand{align-items:center;gap:.5rem;font-weight:700;text-decoration:none;display:flex}.topbar nav{gap:.25rem;display:flex}.topbar nav a{color:var(--muted);border-radius:999px;align-items:center;min-height:44px;padding:.5rem .85rem;text-decoration:none;display:inline-flex}.topbar nav a[aria-current=page]{background:var(--text);color:var(--bg)}main{width:100%;max-width:640px;padding:16px;padding-bottom:max(16px, env(safe-area-inset-bottom));flex:1;margin:0 auto}button,.button{appearance:none;cursor:pointer;font:inherit;border-radius:var(--radius);background:var(--brand);min-height:48px;color:var(--brand-ink);border:0;justify-content:center;align-items:center;padding:.65rem 1.1rem;font-weight:600;text-decoration:none;display:inline-flex}button:disabled,.button.disabled{opacity:.5;cursor:not-allowed}button.secondary,.button.secondary{color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line);background:0 0}button.danger{background:var(--bad-bg);color:var(--bad)}:focus-visible{outline:3px solid var(--brand);outline-offset:2px}.button input[type=file]{display:none}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin:0 0 12px;padding:16px;display:block}.card.narrow{margin-top:8vh}fieldset.card{min-width:0}legend{padding:0 .25rem;font-weight:700}label{margin-bottom:.75rem;font-weight:600;display:block}input:not([type=radio]):not([type=file]){width:100%;min-height:48px;font-weight:400;font:inherit;color:var(--text);background:var(--bg);border:1.5px solid var(--line);border-radius:10px;margin-top:.3rem;padding:.6rem .8rem;display:block}.grid2{grid-template-columns:1fr 1fr;gap:0 12px;display:grid}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.row.between{justify-content:space-between;margin-bottom:.75rem}.error{color:var(--bad);font-weight:600}.back{color:var(--muted);min-height:32px;margin-bottom:.75rem;text-decoration:none;display:inline-block}.list{margin:0;padding:0;list-style:none}.card.link{gap:.2rem;text-decoration:none;display:grid}.card.link:active{border-color:var(--brand)}.badges{flex-wrap:wrap;gap:.4rem;margin-top:.3rem;display:flex}.badge{background:var(--line);border-radius:999px;padding:.15rem .6rem;font-size:.78rem;font-weight:700}.badge.active,.badge.has{background:var(--ok-bg);color:var(--ok)}.badge.blocked,.badge.lost_sticker{background:var(--bad-bg);color:var(--bad)}.badge.retired,.badge.none{background:var(--line);color:var(--muted)}.variants{gap:.5rem;margin-bottom:1rem;display:grid}.variant{border:1.5px solid var(--line);cursor:pointer;border-radius:12px;grid-template-columns:auto 1fr;align-items:center;column-gap:.75rem;min-height:56px;margin:0;padding:.75rem;display:grid}.variant input{width:20px;height:20px;accent-color:var(--brand);grid-row:span 2}.variant.selected{border-color:var(--brand);background:color-mix(in srgb, var(--brand) 10%, transparent)}.sticker img{background:#fff;border-radius:12px;width:100%;max-width:420px;margin:0 auto 12px;display:block}.sticker .button{width:100%;margin-bottom:8px}.sticker-skeleton{aspect-ratio:1;background:var(--line);border-radius:12px;max-width:420px;margin:0 auto 12px}.sticker-card.revoked{opacity:.7}.sticker-card button.danger{width:100%}.print-panel{border-top:1px solid var(--line);margin-top:1rem;padding-top:1rem}.print-panel h3{margin:0 0 .5rem;font-size:1.05rem}select{width:100%;min-height:48px;font:inherit;color:var(--text);background:var(--bg);border:1.5px solid var(--line);border-radius:10px;margin-top:.3rem;padding:.6rem .8rem;font-weight:400;display:block}.chips{flex-wrap:wrap;gap:.4rem;margin:0 0 .75rem;display:flex}.chip{min-height:40px;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line);background:0 0;border-radius:999px;padding:.35rem .9rem;font-weight:600}.chip.selected{background:var(--text);color:var(--bg)}.print-verdict{border-radius:12px;gap:.15rem;margin:0 0 .75rem;padding:.7rem .9rem;font-size:.95rem;display:grid}.print-verdict.ok{background:var(--ok-bg);color:var(--ok)}.print-verdict.warn{background:var(--warn-bg);color:var(--warn)}.print-verdict.bad{background:var(--bad-bg);color:var(--bad)}.print-verdict span{color:var(--text)}.warning{color:var(--warn);font-weight:600}.print-panel>button{width:100%}details{margin-top:.75rem}summary{cursor:pointer;min-height:32px;font-weight:600}details ol{color:var(--muted);margin:.5rem 0 0;padding-left:1.2rem}details li{margin-bottom:.35rem}.scan{gap:12px;display:grid}.viewfinder{aspect-ratio:3/4;border-radius:var(--radius);background:#000;place-items:center;width:100%;max-height:62dvh;display:grid;position:relative;overflow:hidden}.viewfinder video{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.overlay{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.ring{fill:none;stroke-width:4px;vector-effect:non-scaling-stroke}.ring.unreadable{stroke:var(--brand);stroke-dasharray:10 7}.ring.decoded,.ring.unknown_code{stroke:#4ade80;stroke-width:5px}.camera-note{color:#fff;text-align:center;padding:0 24px;position:relative}.live-status{text-align:center;color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0000009e;border-radius:999px;margin:0;padding:.5rem .9rem;font-size:.95rem;font-weight:600;position:absolute;bottom:12px;left:12px;right:12px}.actions{gap:8px;display:grid}.result{border-radius:var(--radius);border:1.5px solid;padding:18px}.result h2{font-size:1.4rem}.result.ok{background:var(--ok-bg);color:var(--ok)}.result.warn{background:var(--warn-bg);color:var(--warn)}.result.bad{background:var(--bad-bg);color:var(--bad)}.result.neutral{background:var(--surface)}.result p{color:var(--text)}.result .meta{color:var(--muted);font-size:.9rem}.result button{background:var(--text);width:100%;color:var(--bg);margin-top:.5rem}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
