/* CardAutoSnap web. Dark, quiet surfaces like the desktop app; the one loud thing is the status
   band on the Snap screen, which takes the colour of what to do next. */
:root {
  /* same palette as the CardAutoSnap desktop app */
  --mat: #15161a; --mat-2: #1f2127; --mat-3: #30333c; --line: rgba(255, 255, 255, .07);
  --stock: #1f2127; --tile: #292c34; --edge: #3a3d46; --ink: #f2f3f5; --ink-2: #9aa0aa; --on-mat: #f2f3f5; --on-mat-2: #9aa0aa;
  --volt: #3b82f6; --volt-2: #2f6ad0;
  --ready: #238636; --busy: #2563eb; --done: #7c3aed; --todo: #b45309; --warn: #da3633; --wait: #3a3d46;
  --round: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --plain: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--mat); color: var(--on-mat); font: 16px/1.4 var(--round); -webkit-text-size-adjust: 100%; }
header.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(21, 22, 26, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.bar #home { display: flex; align-items: center; gap: 10px; flex: 1; color: inherit; text-decoration: none; border-radius: 8px; }
header.bar b { font-size: 1.05rem; letter-spacing: .2px; flex: 1; }
header.bar img { border-radius: 7px; }
.pill { min-height: 0; padding: 6px 12px; border-radius: 999px; background: var(--tile); color: var(--ink-2); font-size: .82rem; font-weight: 650; }
.pill[data-low="1"] { background: #4a3410; color: #ffd28a; }
main { max-width: 760px; margin: 0 auto; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
main > section { padding: 0 14px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; border-radius: 14px; padding: 12px 16px; background: var(--mat-3); color: var(--on-mat); font-weight: 650; min-height: 44px; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--volt); color: #fff; }
button.primary:hover { background: var(--volt-2); }
button:hover { filter: brightness(1.12); }
button.quiet { background: var(--mat-3); box-shadow: none; min-height: 38px; padding: 8px 12px; }
.card button.danger, button.danger { color: #ff8b85; }
button.wide { width: 100%; margin: 4px 0 14px; }
button.linkish { background: none; padding: 0 0 0 8px; min-height: 0; color: var(--on-mat-2); font-weight: 500; }
button.linkish[data-bad="1"] { color: #ff9d96; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }

/* ---------- Snap: laid out like the desktop app ---------- */
#view-snap { padding: 10px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.status { margin: 0; padding: 16px; min-height: 64px; display: grid; place-items: center; text-align: center; border-radius: 14px;
  font-size: 1.3rem; font-weight: 750; line-height: 1.2; color: #fff; background: var(--wait); transition: background .2s; }
.status[data-kind="ready"] { background: var(--ready); } .status[data-kind="busy"] { background: var(--busy); }
.status[data-kind="done"] { background: var(--done); } .status[data-kind="todo"] { background: var(--todo); }
.status[data-kind="warn"] { background: var(--warn); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; counter-reset: step; }
.steps li { flex: 1; counter-increment: step; text-align: center; padding: 7px 4px; border-radius: 999px; background: var(--tile); color: var(--ink-2); font-weight: 650; font-size: .88rem; white-space: nowrap; }
.steps li::before { content: counter(step) "\2002"; }
.steps li[aria-current="step"] { background: var(--volt); color: #fff; }
.panel { background: var(--stock); border-radius: 14px; padding: 14px; min-width: 0; }
.panel h2 { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.panelhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .panelhead h2 { margin: 0; }
.panelhead button { min-height: 32px; padding: 4px 12px; font-size: .85rem; }
.finder { overflow: hidden; }
.finder { position: relative; display: grid; place-items: center; min-height: 40vh; border-radius: 10px; background: var(--mat); }
.finder video { width: 100%; max-height: 58vh; object-fit: contain; display: block; border-radius: 10px; }
.finder #start { position: absolute; font-size: 1.1rem; padding: 16px 26px; }
.finder.flash video { opacity: .3; }
#novideo { position: absolute; margin: 0; padding: 0 16px; text-align: center; color: var(--ink-2); }
.phone-hint { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 14px; background: var(--tile); border-radius: 12px; }
.phone-hint .qr { flex: none; width: 190px; height: 190px; border-radius: 10px; overflow: hidden; }
.phone-hint .qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
body[data-desk] .finder #start { display: none; } body[data-desk]:not([data-on]) .finder { display: none; }
.phone-hint .own { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.phone-hint .own select { flex: 1 1 auto; min-width: 0; max-width: 320px; min-height: 40px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--mat-3); color: var(--ink); padding: 6px 10px; }
.phone-hint b { font-size: 1.05rem; } .phone-hint p { margin: 4px 0 8px; color: var(--ink-2); font-size: .92rem; }
.phone-hint code { font-family: var(--plain); font-size: .85rem; color: var(--ink-2); background: var(--mat-3); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bgrow { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.bgthumb { flex: none; width: 84px; min-height: 112px; border-radius: 8px; background: var(--tile); display: grid; place-items: center; color: var(--ink-2); font-size: .72rem; font-weight: 650; overflow: hidden; }
.bgthumb img { width: 100%; display: block; }
#bg-state { color: #f0a53a; } #bg-state[data-set="1"] { color: #4cc26a; }
.bgrow p { margin: 4px 0 0; color: var(--ink-2); font-size: .82rem; }
.panel.bg button { width: 100%; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats div { background: var(--tile); border-radius: 10px; padding: 8px 12px; display: grid; }
.stats b { font-size: 1.3rem; font-variant-numeric: tabular-nums; } .stats span { color: var(--ink-2); font-size: .8rem; }
#n-up { margin-top: 8px; } #n-up:empty { display: none; }
#folder-note { margin: -4px 0 6px; } #folder-note b { color: var(--ink); font-weight: 650; }
.strip { display: flex; gap: 10px; overflow-x: auto; min-height: 104px; padding: 8px 8px 0 0; }
.strip:empty::before { content: "Photos you take will show up here."; color: var(--ink-2); font-size: .9rem; margin: auto; }
.shot { position: relative; margin: 0; flex: none; }
.shot img { height: 76px; border-radius: 6px; display: block; background: var(--mat-3); }
.shot figcaption { font-size: .75rem; color: var(--on-mat-2); text-align: center; }
.shot .x, .rule .x { position: absolute; top: -6px; right: -6px; min-height: 0; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: var(--warn); color: #fff; line-height: 1; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tools > button { flex: 1 1 0; white-space: nowrap; }
.tools button[aria-pressed="true"] { background: var(--todo); color: #fff; }
.tools .stop { background: var(--warn); color: #fff; }
body:not([data-on]) .tools > button { display: none; }      /* camera buttons appear once a camera is on */
.per { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .92rem; }
.per span { flex: 1; } .per button { min-height: 40px; width: 44px; padding: 0; font-size: 1.2rem; }
.per output { min-width: 1.6em; text-align: center; color: var(--ink); font-weight: 750; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
body[data-capture="auto"] .manual-only, body[data-capture="manual"] .auto-only { display: none; }
/* phone: buttons right under the camera, the rest below */
.tools { order: 1; } .side { order: 2; } .latest { order: 3; }
#btn-more { order: 2; align-self: center; }
/* phone: just the banner, the camera and the buttons. Everything else is behind More */
@media (max-width: 899px) {
  .bgrow p { display: none; } .bgthumb { width: 54px; min-height: 54px; } .bgrow { align-items: center; }
  .side { order: 1; } .tools { order: 1; } .latest { order: 3; }
  body:not([data-more]) :is(.steps, .latest, .per, .side > .panel:not(.bg), .panel.bg h2, .bgrow) { display: none; }
  body:not([data-more]) .panel.bg { background: none; padding: 0; }
  body[data-more] .side { order: 3; }
}
@media (min-width: 900px) {
  body[data-view="snap"] main { max-width: 1040px; }
  #view-snap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; padding-top: 14px; }
  .status, .steps, .latest, .tools { grid-column: 1 / -1; }
  .tools, .latest, .side { order: 0; } #btn-more { display: none; }
  .per { flex: 1 1 auto; } .per span { flex: none; }
  .tools > button { flex: 0 0 auto; min-width: 110px; }
  .finder { min-height: 260px; } .finder video { max-height: max(260px, calc(100vh - 560px)); }
  .phone-hint { margin-top: 0; } .finder:has(#start:not([hidden])) { min-height: 90px; }
}

/* nothing is shown until the app knows which screen this visitor should see */
body:not([data-view]) main > section { display: none !important; }
body[data-view] #boot { display: none; }
.boot { margin: 18vh auto 0; max-width: 34ch; text-align: center; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }

.savewhere { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-width: 0; }
.savewhere legend { padding: 0; margin-bottom: 6px; font-size: .86rem; font-weight: 650; color: var(--ink-2); }
.savewhere label { display: flex; align-items: center; gap: 7px; min-height: 36px; cursor: pointer; font-size: .92rem; }
.savewhere input { width: 18px; height: 18px; accent-color: var(--volt); margin: 0; }
.savewhere button { min-height: 34px; padding: 6px 12px; }

/* ---------- Email code (a browser this account has not used before) ---------- */
body[data-view="code"] header.bar nav, body[data-view="code"] #reads-pill { display: none; }
#view-code { padding: 9vh 18px 40px; }
.codebox { max-width: 400px; margin: 0 auto; display: grid; gap: 12px; }
.codebox h1 { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; }
.codebox .lede { margin: 0 0 6px; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.codebox label[for] { font-weight: 650; font-size: .9rem; margin-bottom: -6px; }
#code { width: 100%; min-height: 64px; padding: 8px 8px 8px calc(8px + .42em); border: 1.5px solid var(--edge); border-radius: 14px; background: var(--tile); color: var(--ink);
  font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .42em; text-align: center; }
#code:focus-visible { outline-offset: 0; border-color: var(--volt); }
.codebox .stay { margin: 2px 0; }
.codebox button.primary { min-height: 50px; font-size: 1.05rem; }
.codebox .note { min-height: 1.3em; } .codebox .note[data-bad="1"] { color: #ff9d96; }
button.textlink { background: none; padding: 0; min-height: 0; border-radius: 4px; color: #8ab4ff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.codebox .links { margin-top: 8px; } .codebox .links button { min-height: 32px; }

/* ---------- Welcome (before sign-in) ---------- */
body[data-view="welcome"] header.bar nav, body[data-view="welcome"] #reads-pill { display: none; }
body[data-view="welcome"] main { max-width: 1040px; }
#view-welcome { padding: 28px 18px 40px; display: grid; gap: 28px 40px; }
.pitch h1 { margin: 0 0 14px; font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.pitch > p { margin: 0 0 20px; font-size: 1.1rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.pitch .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pitch .cta button { min-height: 50px; padding: 12px 22px; font-size: 1.05rem; }
.stay { display: flex; align-items: center; gap: 9px; margin: 2px 0 12px; color: var(--ink-2); font-size: .92rem; cursor: pointer; width: fit-content; }
.stay input { width: 20px; height: 20px; accent-color: var(--volt); }
.pitch .cta button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo { background: var(--stock); border-radius: 16px; padding: 14px; align-self: start; }
.demo .status { min-height: 58px; font-size: 1.15rem; transition: background .35s; }
.demo-listing { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin-top: 12px; padding: 14px; background: var(--tile); border-radius: 10px; align-items: baseline; }
.demo-listing span { color: var(--ink-2); font-size: .82rem; }
.demo-listing b { font-weight: 650; min-height: 1.4em; transition: opacity .3s; }
.how { list-style: none; margin: 0; padding: 0; counter-reset: how; display: grid; gap: 18px; }
.how li { counter-increment: how; position: relative; padding-left: 46px; color: var(--ink-2); line-height: 1.5; max-width: 60ch; }
.how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--ink); font-weight: 750; }
.how b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.prices { margin: 0; padding: 14px 16px; background: var(--stock); border-radius: 12px; line-height: 1.5; }
.small { margin: 0; color: var(--ink-2); font-size: .86rem; max-width: 70ch; }
.links { display: flex; gap: 18px; flex-wrap: wrap; } .links a, .doc a { color: #8ab4ff; }
@media (min-width: 900px) {
  #view-welcome { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding-top: 56px; }
  .how, .prices, #view-welcome > .small { grid-column: 1 / -1; }
  .how { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
/* ---------- Terms and privacy pages ---------- */
.doc { max-width: 68ch; margin: 0 auto; padding: 28px 18px 60px; line-height: 1.6; }
.doc h1 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 4px; } .doc h2 { font-size: 1.15rem; margin: 30px 0 6px; }
.doc p, .doc li { color: #c9cdd4; } .doc ul { padding-left: 20px; } .doc .note { margin-bottom: 18px; }

/* ---------- Cards ---------- */
.chips { display: flex; gap: 8px; padding: 14px 0 12px; position: sticky; top: var(--bar, 61px); background: var(--mat); z-index: 2; }
.chip { flex: 1; padding: 10px 6px; font-size: .95rem; white-space: nowrap; background: var(--mat-2); color: var(--on-mat-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--volt); color: #fff; }
.card, #settings section { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
button, .card input, .card select, .card textarea, #settings input, #settings select, #settings textarea { transition: background .15s, border-color .15s, filter .15s; }
.card input:focus, .card select:focus, .card textarea:focus, #settings input:focus, #settings select:focus, #settings textarea:focus { border-color: var(--volt); outline: 0; box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; background: var(--stock); color: var(--ink); border-radius: 14px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); }
.card[data-status="approved"], .card[data-status="exported"] { border-left: 6px solid var(--ready); }
.photos { display: grid; gap: 6px; align-content: start; }
.photos:has(a:nth-child(3)) { grid-template-columns: 1fr 1fr; }      /* extra photos: smaller, two across, so the card stays compact */
.photos img { width: 100%; border-radius: 4px; display: block; background: var(--tile); aspect-ratio: 5 / 7; object-fit: cover; }
.fields { min-width: 0; display: grid; gap: 8px; align-content: start; }
.card input, .card select, .card textarea, #settings input, #settings select, #settings textarea {
  width: 100%; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--tile); color: var(--ink); color-scheme: dark; padding: 9px 10px; font-family: var(--plain); min-height: 42px; }
.titlebox { position: relative; } .title { resize: vertical; padding-bottom: 30px !important; font-weight: 600; field-sizing: content; min-height: 4.6em; }
.copy { position: absolute; left: 6px; bottom: 6px; min-height: 0; padding: 2px 8px; font-size: .72rem; border-radius: 6px; background: var(--mat-3); color: var(--ink-2); }
.title { padding-bottom: 26px !important; }
.count { position: absolute; right: 9px; bottom: 7px; font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.line { display: flex; gap: 8px; flex-wrap: wrap; }
.money { display: flex; align-items: center; gap: 4px; font-weight: 750; flex: 0 0 122px; } .money input { font-variant-numeric: tabular-nums; font-weight: 700; }
.line select { flex: 1 1 140px; }
.why summary { color: var(--ink-2); font-size: .86rem; cursor: pointer; } .why ul { margin: 6px 0; padding-left: 18px; font-size: .86rem; }
.why a { margin-left: 8px; color: #7fb0ff; } .addcomp { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .addcomp input { flex: 1 1 150px; } .addcomp select { flex: 0 0 96px; }
.note { margin: 0; font-size: .86rem; color: var(--ink-2); }
.flags { display: flex; gap: 6px; flex-wrap: wrap; } .flags:empty { display: none; }
.flag { background: #4a3410; color: #ffd28a; border-radius: 6px; padding: 3px 8px; font-size: .8rem; font-weight: 650; margin: 0; } .flag.bad { background: #4d1a18; color: #ffb3ae; }
.acts { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .acts button { flex: 1 1 auto; } }
dialog.similar { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--stock); color: var(--ink); padding: 18px; }
dialog.similar::backdrop { background: rgba(0, 0, 0, .6); }
dialog.similar h2 { margin: 0 0 4px; font-size: 1.2rem; }
dialog.similar .addcomp input { min-height: 44px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--tile); color: var(--ink); padding: 9px 10px; }
.found { margin: 12px 0; display: grid; gap: 8px; } .found:empty { display: none; }
.found .src { display: flex; gap: 12px; align-items: center; } .found .src img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--tile); } .found .src a { color: #7fb0ff; }
.pick { display: flex; gap: 10px; align-items: flex-start; background: var(--tile); border-radius: 10px; padding: 10px; cursor: pointer; }
.pick input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--volt); }
.pick > span { display: grid; gap: 2px; min-width: 0; } .pick .val { color: var(--ink-2); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 7.5em; overflow: auto; } .pick small { color: #ffd28a; }
.empty { color: var(--on-mat-2); text-align: center; padding: 40px 20px; }

/* ---------- Settings ---------- */
#settings section { background: var(--stock); color: var(--ink); border-radius: 14px; padding: 16px; margin: 14px 0; border: 1px solid var(--line); }
#settings h2 { margin: 0 0 4px; font-size: 1.2rem; } #settings h3 { margin: 18px 0 2px; font-size: 1rem; }
.lede { margin: 0 0 12px; color: var(--ink-2); font-size: .9rem; max-width: 60ch; }
.steprow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; } .steprow > span { font-weight: 650; }
.seg { display: inline-flex; background: var(--tile); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg button { background: transparent; color: var(--ink-2); min-height: 36px; padding: 6px 13px; border-radius: 8px; }
.seg button[aria-pressed="true"] { background: var(--volt); color: #fff; }
.field { display: grid; gap: 4px; margin: 10px 0; } .field > span { font-weight: 650; font-size: .9rem; } .field small { color: var(--ink-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; } .pair.tight { gap: 8px; }
.switch { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 650; } .switch input { width: 22px !important; min-height: 22px !important; height: 22px; accent-color: var(--volt); }
.rule { position: relative; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--tile); border-radius: 10px; padding: 8px 30px 8px 8px; margin: 8px 0; font-size: .9rem; }
.rule input[type="number"] { width: 72px !important; } .rule input[type="text"] { flex: 1 1 140px; width: auto !important; } .rule select { width: auto !important; flex: 1 1 150px; }
.promptview { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--tile); border-radius: 10px; padding: 12px; font: .82rem/1.45 ui-monospace, Consolas, monospace; max-height: 50vh; overflow: auto; }
#settings details { margin-top: 14px; } #settings details summary { cursor: pointer; font-weight: 650; }
.savebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(732px, calc(100% - 28px)); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); z-index: 3; }

/* ---------- chrome ---------- */
/* the three sections, in the top bar */
nav { display: flex; gap: 4px; }
nav button { background: none; display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 12px; border-radius: 10px; font-size: .92rem; color: var(--on-mat-2); }
nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav button[aria-current="page"] { color: #fff; background: var(--volt); }
@media (max-width: 360px) { header.bar nav button { padding: 6px 8px; gap: 5px; font-size: .86rem; } }
@media (max-width: 560px) {
  header.bar { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
  header.bar nav { order: 3; flex: 1 1 100%; } header.bar nav button { flex: 1; justify-content: center; }
}
#toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--bar, 61px) + 10px); z-index: 9; background: var(--tile); color: var(--ink); border: 1px solid var(--edge); padding: 10px 16px; border-radius: 10px; font-weight: 650; z-index: 9; max-width: calc(100% - 28px); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
#toast[data-bad="1"] { background: var(--warn); color: #fff; }
@media (max-width: 420px) { .pair { grid-template-columns: 1fr; } .pair.tight { grid-template-columns: 1fr 1fr; } .card { grid-template-columns: 72px 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
#settings .links { margin-top: 14px; }
