:root { --teal:#0f766e; --teal2:#14b8a6; --ink:#1c1917; --mut:#78716c; --bg:#f6f5f1; --card:#fff; --gold:#f59e0b; --red:#dc2626; --green:#15803d; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin:0; font: 18px/1.4 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
.top { position:sticky; top:0; z-index:5; display:flex; justify-content:space-between; align-items:center; padding:12px 16px; background:var(--teal); color:#fff; }
#brand { font-weight:800; font-size:24px; letter-spacing:.3px; }
.icon { background:none; border:0; font-size:26px; color:#fff; }
main { max-width:560px; margin:0 auto; padding:14px 14px 40px; }
.hidden { display:none !important; }
.banner { background:#fef3c7; color:#78350f; padding:10px 14px; font-size:15px; font-weight:600; text-align:center; border-bottom:2px solid var(--gold); }
.tagline { font-size:22px; font-weight:700; text-align:center; margin:8px 0 16px; }
.big { display:block; width:100%; text-align:center; border:0; border-radius:16px; padding:20px; font-size:22px; font-weight:800; margin:10px 0; cursor:pointer; }
.primary { background:var(--teal); color:#fff; box-shadow:0 4px 0 #0b5751; }
.secondary { background:#fff; color:var(--teal); border:3px solid var(--teal); }
.go { background:var(--gold); color:#1c1917; box-shadow:0 4px 0 #b45309; }
.link { display:block; margin:14px auto; background:none; border:0; color:var(--teal); font-size:17px; text-decoration:underline; }
.card { background:var(--card); border-radius:16px; padding:14px; margin:12px 0; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.label { font-weight:700; margin-bottom:8px; }
.hint { color:var(--mut); font-size:15px; margin:6px 0; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chips button { flex:1; min-width:60px; padding:14px 0; font-size:20px; font-weight:800; border-radius:12px; border:2px solid #d6d3d1; background:#fff; }
.chips button.on { background:var(--teal); color:#fff; border-color:var(--teal); }
.thumbs { display:flex; gap:8px; overflow-x:auto; }
.thumbs img { height:90px; border-radius:10px; }
.spinner { width:64px; height:64px; margin:40px auto 10px; border:7px solid #d6d3d1; border-top-color:var(--teal); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
#working { text-align:center; }
.bar { height:14px; background:#e7e5e4; border-radius:8px; overflow:hidden; }
#workBar { height:100%; width:0; background:var(--teal2); transition:width .3s; }
h2 { font-size:22px; margin:22px 0 8px; }
.summary { background:var(--teal); color:#fff; border-radius:16px; padding:14px; font-size:17px; }
.summary b { font-size:26px; }
.item { background:#fff; border-radius:16px; padding:14px; margin:10px 0; box-shadow:0 1px 3px rgba(0,0,0,.08); position:relative; }
.item.grab { border-left:8px solid var(--green); }
.item.check { border-left:8px solid var(--gold); }
.rank { position:absolute; top:-10px; left:-4px; background:var(--green); color:#fff; font-weight:900; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.t { font-weight:800; font-size:19px; }
.sub { color:var(--mut); font-size:15px; }
.where { display:inline-block; margin-top:6px; background:#ecfeff; color:#155e75; padding:4px 10px; border-radius:20px; font-size:15px; font-weight:700; }
.q { font-weight:700; margin:8px 0; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.actions button { flex:1; min-width:120px; padding:14px 8px; font-size:17px; font-weight:800; border-radius:12px; border:0; background:var(--teal); color:#fff; }
.actions button.alt { background:#e7e5e4; color:var(--ink); }
.tag { font-size:12px; font-weight:800; padding:2px 7px; border-radius:6px; background:#e7e5e4; margin-right:4px; text-transform:uppercase; }
.form label { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid #f0efed; font-size:17px; }
.form input { width:90px; font-size:18px; padding:8px; border:2px solid #d6d3d1; border-radius:8px; text-align:right; }
.demo-pill { background:var(--gold); color:#1c1917; font-size:12px; font-weight:900; padding:2px 8px; border-radius:8px; }
a { color:var(--teal); }
.form label.tog input { width:28px; height:28px; }
.gatecode { display:block; width:100%; font-size:40px; letter-spacing:12px; text-align:center; padding:18px; border:3px solid var(--teal); border-radius:16px; margin:16px 0 8px; }
.gateerr { background:#fee2e2; color:#7f1d1d; font-weight:800; text-align:center; padding:10px; border-radius:12px; }

/* --- simple results cards --- */
.summary { font-size:20px; line-height:1.5; }
.summary b { font-size:24px; }
.sumsmall { font-size:17px; opacity:.9; }
.notice { background:#fef3c7; color:#78350f; border:2px solid var(--gold); border-radius:14px; padding:14px; margin:12px 0; font-size:18px; font-weight:700; }
.item.nogo { border-left:8px solid var(--red); }
.item.low { border-left:8px solid #d6d3d1; }
.verdict { display:flex; align-items:center; gap:12px; margin-top:10px; padding:10px 12px; border-radius:14px; }
.verdict.yes { background:#dcfce7; }
.verdict.no { background:#fee2e2; }
.vword { font-size:32px; font-weight:900; letter-spacing:1px; color:#fff; border-radius:12px; padding:6px 12px; min-width:108px; text-align:center; }
.verdict.yes .vword { background:var(--green); }
.verdict.no .vword { background:var(--red); }
.vinfo { flex:1; min-width:0; }
.vpay { font-size:21px; font-weight:900; line-height:1.2; }
.verdict.yes .vpay { color:#14532d; }
.verdict.no .vpay { color:#7f1d1d; font-size:18px; }
.speed { display:inline-block; margin-top:4px; font-size:16px; font-weight:800; padding:2px 10px; border-radius:20px; background:#fff; }
.speed.fast { color:#15803d; } .speed.ok { color:#a16207; } .speed.slow { color:#78716c; }
.unsure { margin-top:8px; font-size:16px; font-weight:700; color:#92400e; }
.more { margin-top:10px; }
.more summary { display:inline-flex; align-items:center; min-height:44px; padding:6px 14px; border-radius:22px; border:2px solid #d6d3d1; background:#fafaf9; font-size:16px; font-weight:800; color:var(--teal); cursor:pointer; list-style:none; }
.more summary::-webkit-details-marker { display:none; }
.more summary::after { content:" ▾"; margin-left:4px; }
.more[open] summary::after { content:" ▴"; }
.more ul { margin:10px 0 0; padding-left:20px; font-size:16px; color:#44403c; }
.more li { margin:6px 0; }
.exlinks { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.exlinks a { display:inline-block; padding:8px 12px; border:2px solid var(--teal); border-radius:10px; text-decoration:none; font-weight:700; }
.skipped { display:flex; align-items:center; gap:10px; margin-top:10px; font-size:17px; color:var(--mut); font-weight:700; }
.skipped span { flex:1; }
.chk { min-height:48px; padding:10px 14px; border-radius:12px; border:2px solid var(--teal); background:#fff; color:var(--teal); font-weight:800; font-size:16px; white-space:nowrap; }
.form label.field { gap:12px; }
.ftext { display:flex; flex-direction:column; flex:1; min-width:0; }
.fname { font-weight:700; }
.fhint { font-size:14px; color:var(--mut); line-height:1.3; margin-top:2px; }
.form input { flex:none; min-height:48px; }
.icon { min-width:48px; min-height:48px; }
@media (max-width:380px) { .vword { font-size:26px; min-width:90px; padding:6px 8px; } .vpay { font-size:19px; } }

/* --- category picker (scan screen) --- */
.catlabel { margin-top:4px; }
.cats { display:grid; grid-template-columns:repeat(auto-fit, minmax(104px, 1fr)); gap:8px; margin-bottom:6px; }
.cats button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:84px; padding:10px 6px; border-radius:16px; border:3px solid #d6d3d1; background:#fff; color:var(--ink); font-size:17px; font-weight:800; line-height:1.15; cursor:pointer; }
.cats button .cicon { font-size:28px; }
.cats button.on { border-color:var(--teal); background:#ccfbf1; color:#134e4a; box-shadow:0 3px 0 var(--teal); }
button, input, select { font-family: inherit; }
.item .rank + .t { padding-left:24px; }
