/* QR Never Expires. Black and gold: warm paper, ink, gold accents; the code sits on a
   dotted canvas like an object on a desk. Figtree throughout (self-hosted, SIL OFL), so the page
   makes no third-party requests. */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/studio/figtree-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/studio/figtree-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f7f5ef; --surface: #ffffff; --surface-2: #f0ece2; --ink: #111111; --ink-2: #3f3b33; --muted: #75705f;
  --line: #e7e1d3; --line-2: #d6cfbd; --brand: #111111; --brand-hover: #2b2b2b; --brand-ink: #e3c158; --brand-soft: #f3e9c8;
  --brand-text: #8a6a12; /* gold dark enough to read as text on cream */
  --band-btn-bg: #e3c158; --band-btn-fg: #111111; --band-eyebrow: #e3c158; /* on the black bands */
  --ok: #13804f; --ok-soft: #dff3e8; --warn: #93600a; --warn-soft: #fbf0d8; --bad: #b8321c; --bad-soft: #fde5df;
  --dot: #ddd6c6; --radius: 20px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(17,17,17,.05), 0 12px 32px -18px rgba(17,17,17,.25);
  --lift: 0 2px 4px rgba(17,17,17,.06), 0 24px 48px -20px rgba(17,17,17,.35);
  --mark-bg: #111111; --mark-fg: #d4af37;
  --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --surface: #1a1916; --surface-2: #23211d; --ink: #f2eee4; --ink-2: #cfc8b8; --muted: #9a937f;
    --line: #2c2a25; --line-2: #3b3830; --brand: #d4af37; --brand-hover: #e0bf52; --brand-ink: #141210; --brand-soft: #3a3017;
    --brand-text: #e3c158;
    --band-btn-bg: #111111; --band-btn-fg: #e3c158; --band-eyebrow: #7a5c0c;
    --ok: #5fd39a; --ok-soft: #12301f; --warn: #f0b552; --warn-soft: #33270f; --bad: #ff8c75; --bad-soft: #3a1a14;
    --dot: #2a2823; --shadow: 0 12px 32px -18px rgba(0,0,0,.8); --lift: 0 24px 48px -20px rgba(0,0,0,.9);
    --mark-bg: #d4af37; --mark-fg: #111111;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s, opacity .15s, box-shadow .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 8px 13px; font-size: 14px; border-radius: 10px; }
.btn-big { padding: 16px 20px; font-size: 17px; width: 100%; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line-2) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1.5px var(--ink) inset; }
.btn-line { background: var(--surface); box-shadow: 0 0 0 1.5px var(--line-2) inset; color: var(--ink); }
.btn-line:hover:not(:disabled) { box-shadow: 0 0 0 1.5px var(--ink) inset; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-text); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* Header */
.bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: var(--mark-bg); }
.brand-mark .m { fill: var(--mark-fg); }
.brand-mark .l { fill: none; stroke: var(--mark-fg); stroke-width: 2; stroke-linecap: round; }
.bar-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.bar-nav a { text-decoration: none; color: var(--ink-2); }
.bar-nav a:hover { color: var(--ink); }
@media (max-width: 800px) { .bar-nav { display: none; } .bar-in .btn { margin-left: auto; } }
.narrow-only { display: none; }
.btn:has(> .wide-only) { gap: 0; } .btn > .wide-only { white-space: pre; } .btn:has(> .wide-only) > [aria-hidden] { margin-left: .4em; } /* word spaces, not the button gap */
@media (max-width: 420px) { .wide-only { display: none; } .narrow-only { display: inline; } .brand { font-size: 16px; gap: 8px; } .brand-mark { width: 26px; height: 26px; } .bar-in { gap: 12px; } .bar-in .btn-sm { padding-inline: 12px; } }

/* Intro: short, so the maker is above the fold */
.intro { padding: 30px 0 22px; }
h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 8px; max-width: 18ch; }
.hl { color: var(--brand-text); background: linear-gradient(transparent 62%, var(--brand-soft) 62%); padding: 0 .05em; }
.intro p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 60ch; }

/* Maker */
.maker { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 36vw, 430px); gap: 24px; align-items: start; padding-bottom: 72px; }
@media (max-width: 760px) { .maker { grid-template-columns: 1fr; } }
.flow { display: grid; gap: 12px; min-width: 0; }

.kind { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.kind-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--ink-2); }
.kind-btn b { font-size: 15px; }
.kind-btn small { font-size: 13px; color: var(--muted); }
.kind-btn.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kind-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); font-size: 14px; }

.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; container-type: inline-size; }
.step-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 0; background: none; text-align: left; cursor: pointer; }
.step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-weight: 800; font-size: 14px; }
.step.open .step-n { background: var(--ink); color: var(--bg); }
.step.done:not(.open) .step-n { background: var(--brand-soft); color: var(--brand-text); font-size: 0; }
.step.done:not(.open) .step-n::after { content: "✓"; font-size: 15px; }
.step-t { display: grid; min-width: 0; flex: 1; }
.step-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.step-sum { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.open .step-sum { display: none; }
.step-edit { font-size: 14px; font-weight: 700; color: var(--brand-text); }
.step.open .step-edit, .step:not(.done) .step-edit { display: none; }
.step-body { padding: 0 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; } /* minmax: a wide child (template grid, swatch row) must not stretch the card */
.step-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
@media (max-width: 560px) { .step-head { padding: 14px 16px; } .step-body { padding: 0 16px 16px; } .step-foot .btn { width: 100%; } }

/* Types as pills */
.types { display: flex; flex-wrap: wrap; gap: 6px; }
/* Phones: the kinds of code swipe sideways in two rows, so the box to type in stays on the first screen. */
@media (max-width: 560px) {
  .types { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; scroll-padding-inline: 16px; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent); }
  .types::-webkit-scrollbar { display: none; }
}
.type { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 650; color: var(--ink-2); transition: border-color .12s, background .12s; }
.type svg { width: 17px; height: 17px; fill: currentColor; }
.type:hover { border-color: var(--line-2); color: var(--ink); }
.type[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Fields */
.fields, .fields > div { display: grid; gap: 12px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f > span:first-child { font-size: 14px; font-weight: 700; }
.f i, .check i { font-style: normal; font-weight: 500; color: var(--muted); }
.f input:not([type="color"]):not([type="range"]), .f select, .f textarea {
  width: 100%; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 12px 13px; font-size: 16px; outline: none; transition: border-color .12s, box-shadow .12s;
}
.f textarea { resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.f-big input { font-size: 18px !important; padding: 15px 16px !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.row2.row-narrow { grid-template-columns: 170px 1fr; }
@container (max-width: 480px) { .row2, .row2.row-narrow { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.suggest { margin: -4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.err { margin: 0; font-size: 14px; color: var(--bad); font-weight: 650; }
.err:empty { display: none; }
.private { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.private svg { width: 14px; height: 14px; fill: var(--ok); flex: none; }
.more { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.more summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 700; }
.more summary i { font-style: normal; font-weight: 500; color: var(--muted); }
.more-body { display: grid; gap: 12px; padding-bottom: 14px; }

/* Style step */
.style-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.tpl-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tpl-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 560px) {
  /* Phones: the chip row fades out where it scrolls, and templates swipe sideways in two rows instead
     of scrolling inside the page (a scroll box inside a scrolling page traps the thumb). */
  .tpl-tabs { mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .tpl-grid { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 40%; max-height: none; overflow: auto hidden; scroll-snap-type: x mandatory; scroll-padding: 2px; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; }
  .tpl-grid::-webkit-scrollbar { display: none; }
  .tpl { scroll-snap-align: start; }
}
.tpl-tabs button { flex: none; border: 0; background: var(--surface-2); border-radius: 999px; padding: 7px 13px; font-weight: 650; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.tpl-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.undo { display: flex; gap: 4px; flex: none; }
.icon-btn-sm { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn-sm svg { width: 18px; height: 18px; fill: var(--ink); }
.icon-btn-sm:disabled { opacity: .35; cursor: default; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; margin: -2px; scrollbar-width: thin; }
.tpl { display: grid; gap: 6px; padding: 8px 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: center; transition: border-color .12s, transform .12s, box-shadow .12s; }
.tpl:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.tpl[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tpl .thumb { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; overflow: hidden; }
.tpl .thumb svg { width: 100%; height: 100%; }
.tpl b { font-size: 12.5px; font-weight: 700; line-height: 1.25; }

.tune { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tune-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tune-tabs button { border: 0; background: none; padding: 12px 6px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tune-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); background: var(--surface); }
.tune-panel { padding: 16px; display: grid; gap: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--brand); }
.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@container (max-width: 480px) { .colors { grid-template-columns: 1fr; } }
.c { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; min-width: 0; }
.c input[type="color"] { width: 38px; height: 38px; border: 0; padding: 0; background: none; border-radius: 9px; cursor: pointer; flex: none; }
.c input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.c input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line-2); border-radius: 9px; }
.c > span { display: grid; font-size: 13px; font-weight: 700; min-width: 0; }
.c > span input { border: 0; background: none; padding: 0; font: 500 13px/1.3 ui-monospace, monospace; color: var(--muted); width: 100%; outline: none; text-transform: lowercase; }
.c > span .link-btn { font-size: 12.5px; font-weight: 600; text-align: left; }
/* Touch screens: 16px fields (smaller ones make iPhones zoom the page on tap) with a taller tap area. */
@media (pointer: coarse) { .c > span input { font-size: 16px; padding: 4px 0; } }
.opt-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: -6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: grid; place-items: center; gap: 3px; width: 64px; padding: 8px 4px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.opt svg { width: 28px; height: 28px; fill: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; justify-self: start; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 650; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.drop { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 18px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .12s, background .12s; }
.drop svg { width: 26px; height: 26px; fill: var(--brand-text); flex: none; }
.drop small { display: block; color: var(--muted); font-size: 13px; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.logo-tools { display: grid; gap: 12px; }
.logo-tools .link-btn { justify-self: start; }
input[type="range"] { accent-color: var(--brand); width: 100%; }
.icons { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: var(--ink); }
.icon-btn[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 650; cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }
.chip-on { border-color: var(--brand); background: var(--brand-soft); }

/* Download step */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@container (max-width: 480px) { .uses { grid-template-columns: 1fr; } }
.use { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.use svg { grid-row: span 2; width: 26px; height: 26px; fill: var(--ink-2); }
.use b { font-size: 15px; }
.use small { font-size: 13px; color: var(--muted); }
.use[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.use[aria-checked="true"] svg { fill: var(--brand-text); }
.formats summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 4px 0; }
.fmt-row { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.fmt-row select { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 6px 10px; background: var(--surface); font-size: 14px; font-weight: 600; }
@media (pointer: coarse) { .fmt-row select { font-size: 16px; } }
.ask { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.ask p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ask b { color: var(--ink); }
@media (max-width: 560px) { .ask { flex-direction: column; align-items: stretch; } }

/* Stage: the code */
.stage { position: sticky; top: 78px; display: grid; gap: 12px; }
@media (max-width: 760px) { .stage { position: static; } }
.stage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.canvas { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(var(--dot) 1.2px, transparent 1.3px) 0 0/16px 16px, var(--surface-2); overflow: hidden; position: relative; }
.canvas > svg { width: 78%; height: 78%; filter: drop-shadow(0 18px 28px rgba(15,20,18,.18)); transition: opacity .15s; }
.empty { display: grid; justify-items: center; gap: 10px; color: var(--muted); text-align: center; padding: 20px; }
.empty svg { width: 54px; height: 54px; fill: var(--line-2); }
.empty p { margin: 0; max-width: 22ch; }
@media (max-width: 760px) { .canvas { aspect-ratio: auto; height: min(78vw, 340px); } .canvas > svg { width: auto; height: 86%; } }
.status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--muted); text-align: center; }
.status .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.status.ok { color: var(--ok); } .status.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.status.warn { color: var(--warn); } .status.warn .dot { background: var(--warn); }
.status.bad { color: var(--bad); } .status.bad .dot { background: var(--bad); }
.status.busy .dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.fixes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.fixes:empty { display: none; }
.fix { border: 0; background: var(--bad-soft); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.fix:hover { filter: brightness(.97); }
.describe { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.tip { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.stage-dl { display: grid; gap: 6px; }
.size { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* Below the maker */
.sec-head { max-width: 700px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0 0 10px; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 17px; }
.why { padding: 40px 0 72px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.feat-i { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.band { background: var(--surface-2); border-block: 1px solid var(--line); padding: 64px 0; }
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.c-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; border-top: 1px solid var(--line); }
.c-row:first-child { border-top: 0; }
.c-row > span { padding: 14px 16px; font-size: 15px; }
.c-row > span[role="rowheader"] { font-weight: 700; }
.c-head > span { font-size: 17px; font-weight: 800; }
.c-head small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.c-row > span:nth-child(3) { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.yes { color: var(--ok); } .no { color: var(--bad); }
@media (max-width: 640px) { .c-row { grid-template-columns: 1fr 1fr; } .c-row > span[role="rowheader"] { grid-column: 1 / -1; padding-bottom: 0; } .c-head > span:first-child { display: none; } }
.studio { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border-radius: 22px; background: var(--ink); color: var(--bg); }
.studio .btn-primary, .toast .btn-primary { background: var(--band-btn-bg); color: var(--band-btn-fg); box-shadow: none; }
.studio h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; margin: 4px 0 10px; }
.studio p { margin: 0 0 18px; opacity: .85; }
.eyebrow { margin: 0 !important; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--band-eyebrow); opacity: 1 !important; }
/* Five QR Studio badges fanned like a hand of cards: transparent images straight on the band. */
.studio-fan { position: relative; height: 270px; }
.studio-fan img { position: absolute; top: 50%; left: 50%; width: 34%; max-width: 200px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0,0,0,.35)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.studio-fan .f3 { z-index: 3; transform: translate(-50%, -50%) scale(1.12); }
.studio-fan .f2 { z-index: 2; transform: translate(-122%, -47%) rotate(-8deg) scale(.88); }
.studio-fan .f4 { z-index: 2; transform: translate(22%, -47%) rotate(8deg) scale(.88); }
.studio-fan .f1 { z-index: 1; transform: translate(-168%, -40%) rotate(-15deg) scale(.72); }
.studio-fan .f5 { z-index: 1; transform: translate(68%, -40%) rotate(15deg) scale(.72); }
.studio:hover .studio-fan .f2 { transform: translate(-130%, -49%) rotate(-10deg) scale(.88); }
.studio:hover .studio-fan .f4 { transform: translate(30%, -49%) rotate(10deg) scale(.88); }
.studio:hover .studio-fan .f1 { transform: translate(-180%, -42%) rotate(-18deg) scale(.72); }
.studio:hover .studio-fan .f5 { transform: translate(80%, -42%) rotate(18deg) scale(.72); }
@media (max-width: 820px) { .studio { gap: 8px; } .studio-fan { height: 210px; } .studio-fan img { width: 30%; } }
@media (max-width: 480px) {
  .studio-fan { height: 170px; } .studio-fan img { width: 35%; }
  .studio-fan .f2, .studio:hover .studio-fan .f2 { transform: translate(-114%, -47%) rotate(-8deg) scale(.88); }
  .studio-fan .f4, .studio:hover .studio-fan .f4 { transform: translate(14%, -47%) rotate(8deg) scale(.88); }
  .studio-fan .f1, .studio:hover .studio-fan .f1 { transform: translate(-150%, -40%) rotate(-15deg) scale(.72); }
  .studio-fan .f5, .studio:hover .studio-fan .f5 { transform: translate(50%, -40%) rotate(15deg) scale(.72); }
}
@media (max-width: 820px) { .studio { grid-template-columns: 1fr; } }
.faq { padding: 72px 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand-text); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--ink-2); }
.foot { border-top: 1px solid var(--line); padding: 32px 0 110px; color: var(--ink-2); font-size: 14px; }
.foot-in { display: grid; gap: 6px; text-align: center; justify-items: center; }
.powered { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); text-decoration: none; margin-bottom: 6px; transition: border-color .15s; }
.powered:hover { border-color: var(--ink); }
.powered-k { font-size: 13px; color: var(--muted); }
.powered b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.qcs-mark { width: 26px; height: 26px; }
.qcs-mark .qt { fill: #f4f4ef; } .qcs-mark .qs { fill: #4a6b00; } .qcs-mark .qd { fill: #111111; }
@media (prefers-color-scheme: dark) { .qcs-mark .qt { fill: #101010; } .qcs-mark .qs { fill: #d4f74a; } .qcs-mark .qd { fill: #f4f4ef; } }
.foot-sub { max-width: 52ch; margin-bottom: 6px !important; }
.tm { color: var(--muted); max-width: 64ch; margin-top: 8px !important; font-size: 11.5px !important; line-height: 1.45; }
.foot p { margin: 0; }

/* Checker (check.html) */
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intro-link { margin-top: 10px !important; font-size: 15px !important; }
.intro-link a { color: var(--brand-text); font-weight: 700; }
.ck { padding-bottom: 56px; display: grid; gap: 16px; max-width: 760px; }
.ck-body { padding-top: 20px; }
.ck-drop { padding: 28px 20px; justify-content: center; }
.ck-drop svg { width: 34px; height: 34px; }
.ck-drop strong { font-size: 17px; }
.drop.busy { opacity: .6; pointer-events: none; }
.ck-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ck-or::before, .ck-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ck-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; }
@container (max-width: 560px) { .ck-row { grid-template-columns: 1fr; } }
.ck-paste { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.ck-cam { position: relative; display: grid; gap: 10px; justify-items: center; }
.ck-cam video { width: 100%; max-height: 60vh; border-radius: 14px; background: #000; object-fit: cover; }
.ck-aim { position: absolute; top: 50%; left: 50%; width: min(56%, 260px); aspect-ratio: 1; transform: translate(-50%, calc(-50% - 22px)); border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.25); pointer-events: none; }
.ck-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-radius: 16px; background: var(--ok-soft); }
.verdict-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: var(--surface); font-size: 22px; font-weight: 900; }
.verdict-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.verdict h2 { margin: 2px 0 6px; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; letter-spacing: -.02em; outline: none; }
.verdict p:last-child { margin: 0; color: var(--ink-2); }
.ck-result[data-level="risk"] .verdict { background: var(--warn-soft); }
.ck-result[data-level="risk"] .verdict-i { background: var(--warn); }
.ck-result[data-level="risk"] .verdict-k { color: var(--warn); }
.ck-result[data-level="own"] .verdict { background: var(--brand-soft); }
.ck-result[data-level="own"] .verdict-i { background: var(--brand); }
.ck-result[data-level="own"] .verdict-k { color: var(--brand-text); }
.ck-facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ck-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.ck-facts div:first-child { border-top: 0; }
.ck-facts dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.ck-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 560px) { .ck-facts div { grid-template-columns: 1fr; gap: 2px; } }
.sw-mini { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-2); vertical-align: -1px; margin: 0 4px 0 0; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ck-actions .hint { flex-basis: 100%; }
.ck-again { justify-self: start; }
.steps-list { margin: 0 0 26px; padding-left: 22px; display: grid; gap: 12px; max-width: 760px; font-size: 16px; color: var(--ink-2); }
.steps-list b { color: var(--ink); }
.steps-list a { color: var(--brand-text); font-weight: 700; }

/* Languages: the header switcher (filled in by never/sync-engine.mjs) and the one-time offer */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.langs summary:hover, .langs[open] summary { background: var(--surface-2); color: var(--ink); }
.langs-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--lift); z-index: 40; }
.langs-menu a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.langs-menu a:hover { background: var(--surface-2); }
.langs-menu a[aria-current="true"] { color: var(--brand-text); }
.langs-menu a small { color: var(--muted); font-weight: 700; }
@media (max-width: 800px) { .bar-in .langs { margin-left: auto; } .bar-in .langs + .btn { margin-left: 0; } }
.lang-offer { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 9px 16px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; }
.lang-offer a { color: var(--band-btn-bg); font-weight: 800; }
.lang-offer button { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; padding: 0 4px; }

/* The "make it editable" popup (dynamic.js): a preview of QR Studio, a line, the ways to sign in.
   The preview uses QR Code Spot's own colours (black and lime) so it reads as the other site. */
.dyn { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(10,10,9,.55); backdrop-filter: blur(4px); animation: fade .18s ease; }
html.dyn-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
.dyn-card { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); background: var(--surface); border-radius: 24px; box-shadow: var(--lift); animation: pop .22s cubic-bezier(.2,.8,.2,1); }
.dyn-card::before { content: ""; grid-column: 2; grid-row: 1; background: var(--line-2); margin: 28px 0; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.dyn-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.dyn-preview { grid-column: 1; grid-row: 1; padding: 28px; display: grid; place-items: center; }
.dyn-side { grid-column: 3; grid-row: 1; padding: 36px 32px 28px; display: grid; align-content: center; gap: 12px; }
.dyn-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.dyn-side h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.dyn-lede { margin: 0 0 6px; color: var(--ink-2); }
.dyn-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; transition: border-color .12s, background .12s; }
.dyn-btn:hover { border-color: var(--ink); background: var(--surface-2); }
.dyn-btn svg { width: 20px; height: 20px; flex: none; }
.dyn-fine { margin: 0; font-size: 13px; color: var(--muted); }
.mock { width: 100%; max-width: 340px; background: #101010; color: #f4f4ef; border-radius: 18px; padding: 14px; display: grid; gap: 12px; font-family: var(--ui); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.mock-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.mock-mark { position: relative; width: 16px; height: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mock-mark i { background: #d4f74a; border-radius: 2px; }
.mock-mark b { background: #f4f4ef; border-radius: 1px; width: 60%; height: 60%; place-self: center; }
.mock-tab { margin-left: auto; font-size: 11px; font-weight: 700; background: #d4f74a; color: #101010; padding: 3px 8px; border-radius: 999px; }
.mock-stage { display: grid; place-items: center; padding: 18px; border-radius: 12px; background: repeating-conic-gradient(#1b1b1b 0 25%, #151515 0 50%) 0 0/14px 14px; }
.mock-code { width: 62%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 6px; }
.mock-code svg, .mock-code img { width: 100%; height: 100%; display: block; }
.mock-link { display: flex; align-items: center; gap: 6px; font: 600 12px ui-monospace, monospace; padding: 9px 10px; border: 1px solid #2b2b2b; border-radius: 10px; min-width: 0; }
.mock-short { color: #d4f74a; white-space: nowrap; }
.mock-arrow { color: #8a8a80; }
.mock-dest { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f4f4ef; }
.mock-edit { font-family: var(--ui); font-size: 11px; font-weight: 800; color: #101010; background: #d4f74a; padding: 3px 8px; border-radius: 6px; }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 54px; padding: 0 2px; }
.mock-chart i { flex: 1; background: #d4f74a; border-radius: 3px 3px 1px 1px; opacity: .85; }
.mock-chart i:last-child { opacity: 1; }
.mock-cap { display: flex; justify-content: space-between; font-size: 12px; color: #a3a39b; margin-top: -6px; }
.mock-cap b { color: #f4f4ef; }
/* The preview's loop (7s, CSS only): a cursor taps Edit, the destination swaps to a new page, the
   printed code is scanned and the count ticks up. Off for people who prefer reduced motion. */
.mock-stage, .mock-link { position: relative; }
.mock-dest, .mock-count { display: grid; }
.mock-dest > span, .mock-count > span { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-b { opacity: 0; color: #d4f74a; }
.mock-count .mock-b { color: #f4f4ef; }
.mock-cursor { position: absolute; right: 18px; top: 60%; width: 16px; height: 18px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M1 1v14l4-3.5 2.6 5.5 2.4-1.1-2.6-5.4H13z' fill='%23fff' stroke='%23101010' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.mock-scan { position: absolute; left: 19%; right: 19%; top: 14%; height: 2px; border-radius: 2px; background: #d4f74a; box-shadow: 0 0 12px 3px rgba(212,247,74,.55); opacity: 0; }
.dyn:not([hidden]) .mock-cursor { animation: m-cursor 7s infinite; }
.dyn:not([hidden]) .mock-edit { animation: m-edit 7s infinite; }
.dyn:not([hidden]) .mock-a { animation: m-out 7s infinite; }
.dyn:not([hidden]) .mock-b { animation: m-in 7s infinite; }
.dyn:not([hidden]) .mock-count > span { animation-delay: 1.75s; }
.dyn:not([hidden]) .mock-scan { animation: m-scan 7s infinite; }
.dyn:not([hidden]) .mock-chart i:last-child { animation: m-bar 7s infinite; }
@keyframes m-cursor { 0%, 8% { opacity: 0; transform: translate(34px, 40px); } 14% { opacity: 1; } 26% { transform: translate(0, 0); } 29% { transform: scale(.82); } 32% { transform: scale(1); opacity: 1; } 40%, 100% { opacity: 0; transform: translate(6px, 8px); } }
@keyframes m-edit { 0%, 28%, 34%, 100% { filter: none; } 30% { filter: brightness(.75); } }
@keyframes m-out { 0%, 31% { opacity: 1; transform: none; } 36%, 92% { opacity: 0; transform: translateY(-6px); } 97%, 100% { opacity: 1; transform: none; } }
@keyframes m-in { 0%, 31% { opacity: 0; transform: translateY(6px); } 36%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes m-scan { 0%, 46% { opacity: 0; top: 14%; } 49% { opacity: 1; } 60% { opacity: 1; top: 84%; } 63%, 100% { opacity: 0; top: 84%; } }
@keyframes m-bar { 0%, 60% { height: 76%; } 66%, 92% { height: 96%; } 98%, 100% { height: 76%; } }
@media (prefers-reduced-motion: reduce) { .dyn .mock-cursor, .dyn .mock-edit, .dyn .mock-a, .dyn .mock-b, .dyn .mock-scan, .dyn .mock-chart i { animation: none !important; } }
@media (max-width: 700px) {
  .dyn { align-items: end; padding: 0; }
  .dyn-card { grid-template-columns: 1fr; grid-template-rows: auto 1px auto; border-radius: 22px 22px 0 0; max-height: 92vh; }
  .dyn-card::before { grid-column: 1; grid-row: 2; margin: 0 24px; }
  .dyn-preview { grid-row: 1; padding: 20px 20px 16px; }
  .dyn-side { grid-column: 1; grid-row: 3; padding: 18px 20px 24px; }
  .mock { max-width: 280px; gap: 10px; }
  .mock-stage { padding: 12px; } .mock-code { width: 46%; }
  .mock-chart { height: 38px; }
}

/* Phone card, toast, going */
/* Phones: a portrait card with the code, its status and the next action. Draggable; it settles
   against the nearest side. Two sizes: a glance (112 px) and one you can scan from the screen. */
.pip { position: fixed; z-index: 40; top: 0; left: 0; width: 116px; display: grid; gap: 6px; padding: 16px 8px 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--lift); touch-action: none; user-select: none; -webkit-user-select: none; transition: width .2s ease, transform .22s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.pip.big { width: min(230px, 62vw); padding: 18px 10px 10px; border-radius: 22px; }
.pip { transform-origin: right bottom; } .pip[data-side="left"] { transform-origin: left bottom; }
.pip.dragging { transition: width .2s ease; cursor: grabbing; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.pip-qr { display: block; width: 100%; padding: 4px; border: 0; border-radius: 11px; background: #fff; cursor: pointer; }
.pip-qr svg { width: 100%; height: auto; max-height: 60vh; }
.pip-status { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; min-height: 14px; }
.pip-status .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.pip-status.ok { color: var(--ok); } .pip-status.ok .dot { background: var(--ok); }
.pip-status.warn { color: var(--warn); } .pip-status.warn .dot { background: var(--warn); }
.pip-status.bad { color: var(--bad); } .pip-status.bad .dot { background: var(--bad); }
.pip:not(.big) [data-pip-text] { display: none; }
.pip-go { width: 100%; padding: 8px 6px; font-size: 13px; }
.pip.big .pip-go { padding: 11px; font-size: 15px; }
.pip-grip { position: absolute; top: 6px; left: 50%; width: 28px; height: 4px; margin-left: -14px; border-radius: 2px; background: var(--line-2); cursor: grab; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; width: min(580px, calc(100% - 20px)); display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 14px 14px 18px; background: var(--ink); color: var(--bg); border-radius: 18px; box-shadow: var(--lift); animation: up .25s ease; }
.toast p { margin: 0; font-size: 14px; }
.toast > div { display: flex; align-items: center; gap: 6px; flex: none; }
.toast .x { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; opacity: .7; }
@media (max-width: 560px) { .toast { flex-direction: column; align-items: stretch; bottom: 12px; } .toast > div { justify-content: space-between; } }
@keyframes up { from { transform: translate(-50%, 12px); opacity: 0; } }
.going { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(6px); text-align: center; font-weight: 700; }
.spin { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
