/* ==========================================================================
   PersonalizedComics — comic reader ("the reading room")
   Paper + ink like the rest of the site: newsprint desk, the comic as a real object with an ink
   border and a hard shadow, sticker-style labels, cobalt for the one thing you should press.
   Layout (cover → two-page spreads on desktop, one page per slide on phones) is unchanged;
   tokens come from /css/tokens.css, loaded before this file.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body); color: var(--ink); min-height: 100vh; overflow-x: hidden;
    background-color: var(--newsprint);
    background-image: radial-gradient(rgba(20, 22, 26, .07) 1px, transparent 1.2px);
    background-size: 14px 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); }
img { height: auto; }

/* ---------- loading / error / processing ---------- */
.viewer-loading { text-align: center; padding: 6rem 2rem; color: var(--text-muted); font-weight: 500; }
.viewer-loading .spinner, .processing-spinner .spinner {
    width: 44px; height: 44px; border: 3px solid var(--newsprint-deep); border-top-color: var(--cobalt);
    border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 1.25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-error { text-align: center; padding: 5rem 1.5rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.viewer-error h2 { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.8rem; margin-bottom: .6rem; letter-spacing: -0.02em; }
.viewer-error a { color: var(--cobalt-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Failed comic (2026-09-30): one way forward, to support, and a quiet way back. The button is the viewer's own
   (the page does not load style.css, so .btn would render as bare text); it matches .open-comic-btn. */
.viewer-error-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem 1.4rem; margin-top: 1.6rem; }
.viewer-error a.viewer-error-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--cobalt); color: #fff; padding: .75rem 1.5rem; border-radius: var(--pill); border: 2px solid var(--ink);
    font-family: var(--font-body); font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
    box-shadow: 3px 3px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.viewer-error a.viewer-error-btn:hover { background: var(--cobalt-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.viewer-error a.viewer-error-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.processing-screen { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 2rem 1rem; }
.processing-card {
    background: var(--paper); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 2.6rem 2.2rem; max-width: 460px; width: 100%; text-align: center;
}
.processing-title { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: .6rem; }
.processing-msg { color: var(--text-soft); font-size: .95rem; line-height: 1.6; margin-bottom: .4rem; }
.processing-sub { color: var(--text-muted); font-size: .8rem; margin-bottom: 1.8rem; }
.processing-actions { display: flex; flex-direction: column; gap: .6rem; }
.processing-btn {
    display: block; padding: .8rem 1.4rem; border-radius: var(--pill); border: var(--border);
    background: var(--cobalt); color: #fff; font-weight: 600; font-size: .92rem; text-align: center;
    box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.processing-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.processing-btn.secondary { background: var(--paper); color: var(--ink); }

/* ---------- waiting for the cover (pre-sign-up) ---------- */
/* No exits on this screen by design: the customer has not made an account yet, so every link
   away is a lost cover reveal and a lost sign-up. */
.press-plate {
    position: relative; width: 176px; aspect-ratio: 2 / 3; margin: .2rem auto 1.6rem;
    border: var(--border); border-radius: var(--radius); background: var(--newsprint);
    box-shadow: var(--shadow); overflow: hidden;
}
/* halftone — the house texture, same dots as the panels */
.press-plate::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(var(--rule) 1.1px, transparent 1.2px);
    background-size: 7px 7px; opacity: .8;
}
/* the ink pass running down the plate */
.press-plate::after {
    content: ''; position: absolute; left: 0; right: 0; height: 46%; top: -46%;
    background: linear-gradient(180deg, rgba(46,75,255,0) 0%, rgba(46,75,255,.34) 52%, rgba(46,75,255,.10) 74%, rgba(46,75,255,0) 100%);
    animation: pressPass 2.6s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes pressPass { from { top: -46%; } to { top: 100%; } }
/* registration marks, like a real plate */
.press-marks { position: absolute; inset: 7px; pointer-events: none; }
.press-marks i {
    position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--ink); opacity: .55;
}
.press-marks i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.press-marks i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.press-marks i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.press-marks i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
/* the stage line: swaps every few seconds so the wait reads as work, not a hang */
.press-stage {
    font-family: var(--font-body); font-size: .9rem; color: var(--ink);
    min-height: 1.35em; margin-bottom: .35rem;
    animation: pressStageIn .45s ease both;
}
@keyframes pressStageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.press-keep { color: var(--text-muted); font-size: .8rem; }

/* ---------- pages stage: the finished cover is what is on the press ---------- */
/* Same plate, same registration marks, same ink pass — but the plate now carries the customer's
   own cover (set inline as background-image) while the first pages are drawn. The halftone is
   dropped here: dots over a real picture read as muddy, and the ink pass over their cover is
   the whole point. Slightly larger, since it is now showing them something. */
.press-plate.is-pages {
    width: 196px;
    background-color: var(--newsprint-deep);
    background-size: cover;
    background-position: center;
}
.press-plate.is-pages::before { opacity: 0; }
/* a touch more ink in the pass so it still reads over artwork */
.press-plate.is-pages::after {
    background: linear-gradient(180deg, rgba(46,75,255,0) 0%, rgba(46,75,255,.42) 52%, rgba(46,75,255,.14) 74%, rgba(46,75,255,0) 100%);
}
.press-plate.is-pages .press-marks i { border-color: #fff; opacity: .85; mix-blend-mode: difference; }

/* ---------- post-purchase: the rest of the book on the press, with tips ---------- */
.finish-track { height: 10px; border: 2px solid var(--ink); border-radius: var(--pill); background: var(--paper); overflow: hidden; margin: .6rem auto 1.2rem; max-width: 300px; }
.finish-bar { height: 100%; background: var(--cobalt); border-radius: var(--pill); transition: width .6s ease; }
.finish-tip { background: var(--newsprint); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm); padding: .95rem 1.1rem 1rem; margin: 0 auto 1.2rem; text-align: left; transition: opacity .26s ease, transform .26s ease; }
.finish-tip.is-out { opacity: 0; transform: translateY(4px); }
.finish-tip-k { font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin-bottom: .3rem; }
.finish-tip-t { font-size: .93rem; line-height: 1.5; color: var(--ink); margin: 0 0 .7rem; }
.finish-tip-t b { font-weight: 700; }
.finish-dots { display: flex; gap: 6px; }
.finish-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); display: block; transition: background .2s; }
.finish-dots i.on { background: var(--ink); }
.press-keep .textlink { color: var(--cobalt-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .finish-tip, .finish-bar { transition: none; } }

/* ---------- behind the account gate: the cover, ready ---------- */
/* renderComic() stops before painting when the gate takes over, so this is what the viewer shows
   under the frosted overlay — the finished cover, not whatever loader ran before it. */
.cover-reveal { display: flex; justify-content: center; align-items: flex-start; padding: 2.5rem 1rem 4rem; min-height: 80vh; }
.cover-reveal img {
    width: min(72vw, 340px); aspect-ratio: 2 / 3; object-fit: cover; display: block;
    border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .press-plate::after { animation: none; top: 28%; }
    .press-stage { animation: none; }
}

/* ---------- toolbar ---------- */
.v-toolbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .8rem; padding-top: calc(.55rem + env(safe-area-inset-top));
    background: var(--paper); border-bottom: var(--border);
}
.v-toolbar-back { flex: 1; display: flex; align-items: center; gap: .55rem; min-width: 0; color: var(--ink); }
.v-toolbar-arrow {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; background: var(--paper);
    transition: transform .15s ease, background .15s ease;
}
.v-toolbar-back:hover .v-toolbar-arrow { background: var(--sun); transform: translateX(-2px); }
.v-toolbar-title {
    flex: 1; min-width: 0;
    font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-toolbar-actions { display: flex; gap: .35rem; align-items: center; flex-wrap: nowrap; flex-shrink: 0; justify-content: flex-end; }
.v-tool-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    background: var(--paper); border: 2px solid var(--ink); border-radius: var(--pill);
    color: var(--ink); font-size: .9rem; line-height: 1; padding: .35rem .55rem; cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.v-tool-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); background: var(--sun-tint); }
.v-tool-btn.danger:hover { background: var(--kapow-tint); }
.v-tool-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.v-tool-pdf { font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.v-ending-owner { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.v-ending-pdf { font-family: inherit; }
.v-tool-print { background: var(--sun-tint); text-decoration: none; font-weight: 700; font-size: .8rem; padding: .38rem .7rem; white-space: nowrap; }
.v-tool-print:hover { background: var(--sun); }
.v-tool-print-note { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-left: 1px solid var(--ink); padding-left: .4rem; margin-left: .1rem; }
.v-tool-print-short { display: none; }
/* Admin tools: a second row under the toolbar, opened from the gear (2026-09-06). */
.v-admin-tools { position: fixed; left: 0; right: 0; top: calc(48px + env(safe-area-inset-top)); z-index: 99; display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem .8rem; background: var(--newsprint); border-bottom: var(--border); }
.v-admin-tools[hidden] { display: none; }
/* ---------- print state strip (2026-09-14): countdown to the printer, hold / send, lock notice after ---------- */
.v-print-strip {
    position: fixed; left: 0; right: 0; top: calc(48px + env(safe-area-inset-top)); z-index: 98;
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3rem .7rem; min-height: 40px;
    padding: .4rem .9rem; font-size: .84rem; line-height: 1.3; text-align: center;
    background: var(--sun-tint); border-bottom: var(--border); color: var(--ink);
}
.v-print-strip.sent { background: var(--cobalt-tint); }
.v-print-strip.held { background: var(--newsprint-deep); }
.v-print-strip b { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.v-print-strip .v-print-ico { font-size: 1rem; line-height: 1; }
.v-print-strip .v-print-text { display: inline; }
.v-print-btn {
    flex: 0 0 auto; appearance: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 700; font-size: .78rem; line-height: 1; letter-spacing: .01em;
    padding: .42rem .8rem; border: 2px solid var(--ink); border-radius: var(--pill);
    background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--ink);
    transition: transform .12s ease, box-shadow .12s ease;
}
.v-print-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.v-print-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.v-print-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.v-print-strip.held .v-print-btn { background: var(--sun); }
body.has-print-strip .v-viewport { padding-top: calc(56px + 42px + env(safe-area-inset-top)); }
body.has-print-strip .v-admin-tools { top: calc(48px + 42px + env(safe-area-inset-top)); }
@media (max-width: 640px) {
    .v-print-strip { font-size: .78rem; padding: .38rem .6rem .45rem; gap: .25rem .5rem; }
    .v-print-strip .v-print-text { flex: 1 1 100%; }
    .v-print-strip .v-print-ico { display: none; }
    .v-print-btn { font-size: .76rem; padding: .4rem .75rem; }
    body.has-print-strip .v-viewport { padding-top: calc(56px + 78px + env(safe-area-inset-top)); }
}
/* One row on phones: short print label, tighter buttons, no wrapping. */
@media (max-width: 640px) {
    .v-toolbar { gap: .45rem; padding-left: .6rem; padding-right: .6rem; }
    .v-tool-btn { padding: .3rem .48rem; font-size: .85rem; }
    .v-tool-print { padding: .34rem .55rem; font-size: .74rem; }
    .v-tool-print-long { display: none; }
    .v-tool-print-short { display: inline; }
}
.v-tool-btn.admin-btn { font-size: .7rem; font-weight: 600; letter-spacing: .02em; background: var(--cobalt-tint); color: var(--cobalt-deep); padding: .35rem .6rem; }
.v-tool-btn.admin-btn:hover { background: var(--cobalt); color: #fff; }
.v-edit-label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .06em; }

/* public / private toggle */
.v-pub-toggle {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--paper); border: 2px solid var(--ink); border-radius: var(--pill);
    padding: .3rem .7rem .3rem .5rem; color: var(--ink); font-size: .76rem; font-weight: 600;
    cursor: pointer; line-height: 1; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.v-pub-toggle .v-pub-icon { font-size: .85rem; line-height: 1; }
.v-pub-toggle .v-pub-label { white-space: nowrap; }
.v-pub-toggle:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.v-pub-toggle.is-public { background: var(--good); color: #fff; }
.v-pub-toggle.loading { pointer-events: none; opacity: .7; }
.v-pub-toggle.loading .v-pub-icon { display: none; }
.v-pub-toggle.loading .v-pub-label::before {
    content: ''; display: inline-block; width: 10px; height: 10px; border: 1.5px solid rgba(20,22,26,.2); border-top-color: currentColor;
    border-radius: 50%; animation: spin .6s linear infinite; margin-right: .35rem; vertical-align: middle;
}

/* toast */
.v-toast {
    position: fixed; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(10px);
    background: var(--ink); color: var(--paper); border: 2px solid var(--ink); padding: .65rem 1.2rem; border-radius: var(--pill);
    font-size: .82rem; font-weight: 600; z-index: 300; opacity: 0; transition: all .25s; pointer-events: none;
    box-shadow: 4px 4px 0 rgba(20,22,26,.25); max-width: 90vw; text-align: center;
}
.v-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.v-toast.error { background: var(--kapow); border-color: var(--ink); color: #fff; }

/* ---------- viewport ---------- */
.v-viewport {
    padding-top: calc(56px + env(safe-area-inset-top)); padding-bottom: calc(84px + env(safe-area-inset-bottom));
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.v-slide { width: 100%; transition: opacity .25s ease, transform .25s ease; }

/* cover */
.v-cover { position: relative; max-width: 440px; margin: 0 auto; padding: 1rem 1.25rem; }
.v-cover img {
    width: 100%; display: block; border: var(--border); border-radius: 6px; box-shadow: var(--shadow-lg); background: var(--paper);
}
.open-comic-btn {
    position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--cobalt); color: #fff; padding: .85rem 1.8rem; border-radius: var(--pill); border: var(--border);
    font-family: var(--font-body); font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap;
    box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.open-comic-btn:hover { background: var(--cobalt-deep); transform: translateX(-50%) translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.open-comic-btn::after {
    content: ''; display: inline-block; width: 7px; height: 7px; border-right: 2.5px solid currentColor; border-top: 2.5px solid currentColor;
    transform: rotate(45deg); margin-left: .1rem;
}

/* single page (phones, and the desktop fallback) */
.v-page { padding: 0 .75rem; }
.v-page img { width: 100%; display: block; background: var(--paper); border: var(--border); border-radius: 4px; box-shadow: var(--shadow); }
.v-page-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
@media (min-width: 901px) {
    .v-page { max-width: 600px; margin: 0 auto; padding: 0 1rem; }
}

/* two-page spread (desktop) */
.v-spread {
    display: inline-flex; position: relative; margin: 0 auto;
    background: var(--paper); border: var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.v-spread-page { display: block; background: var(--paper); overflow: hidden; line-height: 0; position: relative; }
.v-spread-page img { height: calc(100vh - 190px); max-height: 1000px; width: auto; display: block; }
.v-spread-empty { display: flex; align-items: center; justify-content: center; width: 300px; height: calc(100vh - 190px); color: var(--text-muted); font-size: .85rem; }
.v-spread-spine {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 46px; transform: translateX(-50%); pointer-events: none; z-index: 2;
    background: linear-gradient(to right, transparent 0%, rgba(20,22,26,.05) 35%, rgba(20,22,26,.14) 50%, rgba(20,22,26,.05) 65%, transparent 100%);
}
/* per-page redraw / replace buttons, shown on hover */
.spread-edit-btn {
    position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
    background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-size: .9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; opacity: 0; z-index: 3;
    box-shadow: 2px 2px 0 var(--ink); transition: opacity .15s ease, transform .12s ease, background .12s ease;
}
.v-spread-page:hover .spread-edit-btn, .v-page:hover .spread-edit-btn, .v-cover:hover .spread-edit-btn { opacity: 1; }
.spread-edit-btn:hover { background: var(--sun); transform: translate(-1px, -1px); }
@media (hover: none) { .spread-edit-btn { opacity: 1; } }
@media (min-width: 901px) { .v-viewport { text-align: center; } }

/* ---------- ending ---------- */
.v-ending { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 140px); padding: 2rem 1.25rem; }
.v-ending-inner {
    max-width: 420px; width: 100%; text-align: center;
    background: var(--paper); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.4rem 1.8rem 2rem;
}
.v-ending-flourish {
    display: inline-block; font-family: var(--font-sticker); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
    background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--pill); padding: .35rem 1.1rem;
    box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); margin-bottom: 1.4rem;
}
.v-ending-title { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: .35rem; text-wrap: balance; }
.v-ending-meta { color: var(--text-muted); font-size: .82rem; margin-bottom: 1.6rem; }
.v-ending-share { margin-bottom: 1.6rem; }
.v-ending-share-btn {
    display: inline-flex; align-items: center; gap: .6rem; background: var(--paper); border: var(--border); border-radius: var(--pill);
    color: var(--ink); padding: .7rem 1.6rem; font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.v-ending-share-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--sun-tint); }
.v-share-icon { font-size: 1rem; }
.v-ending-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.6rem; }
.v-ending-line { flex: 1; height: 2px; background: var(--rule); }
.v-ending-brand span { font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: -0.01em; white-space: nowrap; }
.v-ending-cta { margin-bottom: 1.2rem; }
.v-ending-cta-text { color: var(--text-soft); font-size: .9rem; margin-bottom: .8rem; }
.v-ending-cta-btn {
    display: inline-block; background: var(--cobalt); color: #fff; border: var(--border); padding: .8rem 1.9rem; border-radius: var(--pill);
    font-weight: 700; font-size: .95rem; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.v-ending-cta-btn:hover { background: var(--cobalt-deep); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.v-ending-owner { margin-bottom: 1.2rem; }
.v-ending-owner-btn {
    display: inline-block; background: var(--sun); color: var(--ink); border: var(--border); padding: .65rem 1.5rem; border-radius: var(--pill);
    font-size: .88rem; font-weight: 700; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.v-ending-owner-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.v-ending-browse { display: inline-block; color: var(--cobalt-deep); font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.v-ending-browse:hover { color: var(--cobalt); }

/* ---------- navigation ---------- */
.v-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem 1rem; padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: var(--border);
}
.v-nav-arrow {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--paper); border: var(--border); color: var(--ink); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--ink);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.v-nav-arrow:hover:not(:disabled) { background: var(--cobalt); color: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.v-nav-arrow:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.v-nav-arrow:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; }
.v-nav-center { flex: 1; text-align: center; min-width: 0; }
.v-page-label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: -0.01em; margin-bottom: .35rem; min-height: 1em; }
.v-dots { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.v-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.v-dot:hover { background: var(--sun); }
.v-dot.active { background: var(--cobalt); transform: scale(1.3); }
@media (max-width: 480px) { .v-dots { display: none; } }

/* ---------- edit modal ---------- */
.v-edit-modal {
    position: fixed; inset: 0; z-index: 200; background: rgba(20,22,26,.55); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity .2s;
}
.v-edit-modal.visible { opacity: 1; }
.v-edit-card {
    background: var(--paper); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 1.5rem; max-width: 440px; width: 100%; transform: scale(.97); transition: transform .2s; color: var(--ink);
}
.v-edit-modal.visible .v-edit-card { transform: scale(1); }
.v-edit-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.v-edit-header h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.v-edit-close { background: none; border: 2px solid transparent; border-radius: 50%; width: 32px; height: 32px; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.v-edit-close:hover { border-color: var(--ink); background: var(--sun-tint); }
.v-edit-toggle { display: flex; background: var(--newsprint); border: 2px solid var(--ink); border-radius: var(--pill); padding: 3px; margin-bottom: 1rem; }
.v-toggle-btn { flex: 1; padding: .5rem .4rem; border: none; border-radius: var(--pill); background: transparent; color: var(--ink-soft); font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.v-toggle-btn.active { background: var(--ink); color: var(--paper); }
.v-edit-hint { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; line-height: 1.45; }
.v-edit-input {
    width: 100%; padding: .75rem .9rem; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-sm);
    color: var(--ink); font-family: var(--font-body); font-size: .92rem; resize: none; outline: none; margin-bottom: 1rem; transition: box-shadow .15s ease;
}
.v-edit-input:focus { box-shadow: 3px 3px 0 var(--cobalt); border-color: var(--cobalt); }
.v-edit-input::placeholder { color: var(--muted); }
.v-edit-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.v-edit-cost { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.v-edit-submit {
    padding: .65rem 1.5rem; border-radius: var(--pill); border: var(--border); background: var(--cobalt); color: #fff;
    font-weight: 700; font-size: .9rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.v-edit-submit:hover { background: var(--cobalt-deep); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.v-edit-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }

/* regenerate overlay on a page */
.v-regen-overlay {
    position: absolute; inset: 0; z-index: 10; background: rgba(246,241,231,.82); backdrop-filter: blur(3px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
    color: var(--ink); font-size: .9rem; font-weight: 600;
}
.v-regen-spinner { width: 36px; height: 36px; border: 3px solid var(--newsprint-deep); border-top-color: var(--cobalt); border-radius: 50%; animation: spin .8s linear infinite; }

/* compare modal (old page vs new) */
.v-compare-modal {
    position: fixed; inset: 0; z-index: 200; background: rgba(20,22,26,.55); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity .25s;
}
.v-compare-modal.visible { opacity: 1; }
.v-compare-card {
    background: var(--paper); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 1.5rem; max-width: 720px; width: 100%; text-align: center; transform: scale(.97); transition: transform .25s; color: var(--ink);
}
.v-compare-modal.visible .v-compare-card { transform: scale(1); }
.v-compare-title { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; margin-bottom: .3rem; }
.v-compare-sub { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.2rem; }
.v-compare-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.v-compare-option { display: flex; flex-direction: column; gap: .6rem; }
.v-compare-option img { width: 100%; border: var(--border); border-radius: 6px; box-shadow: var(--shadow-sm); }
.v-compare-btn {
    padding: .6rem 1rem; border-radius: var(--pill); background: var(--paper); border: var(--border); color: var(--ink);
    font-weight: 700; font-size: .82rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.v-compare-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--sun-tint); }
.v-compare-btn.primary { background: var(--cobalt); color: #fff; }
.v-compare-btn.primary:hover { background: var(--cobalt-deep); }
@media (max-width: 500px) {
    .v-compare-images { gap: .5rem; }
    .v-compare-card { padding: 1rem; }
    .v-compare-btn { font-size: .75rem; padding: .5rem .6rem; }
}

/* ---------- desktop: toolbar and nav sit in the flow, not fixed ---------- */
@media (min-width: 901px) {
    .v-toolbar {
        position: sticky; top: 0; max-width: none; margin: 0; padding: .7rem 1.4rem; border-bottom: var(--border);
    }
    .v-viewport { padding: 1.5rem 1rem 0; min-height: auto; }
    .v-nav {
        position: static; background: none; border: none; max-width: 760px; margin: 1rem auto 2.5rem; padding: .5rem 0;
    }
    .v-cover { max-width: 400px; padding: 1.5rem 1rem; }
    .v-ending { min-height: auto; padding: 2.5rem 1.25rem 1rem; }   /* keep the arrows on screen under the ending card */
    .v-cover img { border-radius: 8px; }
}

/* The old v-paywall-* card was replaced by the .pw panel at the end of this
   file (2026-09-03, _brand/FUNNEL-SPEC.md §5). */

/* ══════════════════════════════════════════════════════════════════════════
   THE PAYWALL PANEL  ·  v3 (2026-09-03, _brand/FUNNEL-SPEC.md §5)
   The only place a price appears on this site, so it carries the whole sale.
   Concept: a comic panel pinned to the page — heavy ink border, hard offset
   shadow, a sun sticker on the option we want taken. Keepsake is primary and
   pre-selected; the reassurance sits BETWEEN the prices and the button, which
   is where the doubt actually lands. One tap from here to Stripe.
   ══════════════════════════════════════════════════════════════════════════ */

.v-paywall {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
}

.pw {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0 0 1.3rem;
    text-align: left;
}
/* Halftone strip across the top — the press texture, not decoration for its own sake. */
.pw::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 10px;
    border-radius: calc(var(--radius-lg) - 3px) calc(var(--radius-lg) - 3px) 0 0;
    background: var(--sun);
    background-image: radial-gradient(var(--ink) 1.1px, transparent 1.2px);
    background-size: 7px 7px;
    border-bottom: var(--border);
}

/* ── Head: the cover, named ─────────────────────────────────────────────── */
.pw__head {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem clamp(1rem, 3vw, 1.7rem) 1.1rem;
    border-bottom: var(--border);
}
.pw__cover {
    aspect-ratio: 3 / 4;
    border: var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--newsprint-deep);
}
.pw__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw__eyebrow {
    margin: 0 0 .35rem;
    font: 700 .72rem/1.2 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.pw__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    letter-spacing: -.02em;
    line-height: 1.12;
    margin: 0 0 .35rem;
    color: var(--ink);
    text-wrap: balance;
}
.pw__sub { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }

/* ── The two ways ───────────────────────────────────────────────────────── */
.pw__opts { display: grid; gap: .65rem; padding: 1.15rem clamp(1rem, 3vw, 1.7rem) .2rem; }
.pw__opt {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    grid-template-areas: "tick name price" ".  desc desc";
    gap: .2rem .8rem;
    align-items: center;
    padding: .95rem 1rem;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: box-shadow .14s ease, transform .14s ease, background .14s ease;
}
.pw__opt:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
/* The tilted sticker overhangs the top border, so the row beneath it needs headroom
   or it lands on the price. */
.pw__opt:has(.pw__stamp) { padding-top: 1.6rem; }
.pw__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pw__opt:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.pw__opt:has(input:checked) {
    background: var(--cobalt-tint);
    box-shadow: 5px 5px 0 var(--cobalt);
}

.pw__tick {
    grid-area: tick;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: var(--paper);
    display: grid; place-items: center;
}
.pw__tick::after {
    content: "";
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--cobalt);
    transform: scale(0);
    transition: transform .16s cubic-bezier(.2,1.4,.4,1);
}
.pw__opt:has(input:checked) .pw__tick::after { transform: scale(1); }

.pw__name  { grid-area: name;  font: 700 1.02rem/1.2 var(--font-body); color: var(--ink); }
.pw__price { grid-area: price; font-family: var(--font-sticker); font-size: 1.35rem; line-height: 1; color: var(--ink); white-space: nowrap; }
.pw__desc  { grid-area: desc;  font-size: .845rem; line-height: 1.45; color: var(--ink-soft); }

/* The sun sticker on the keepsake — tilted, like it was slapped on. */
.pw__stamp {
    position: absolute;
    top: -.7rem; right: .9rem;
    padding: .15rem .6rem;
    background: var(--sun);
    border: var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 2px 2px 0 var(--ink);
    font-family: var(--font-sticker);
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--ink);
    transform: rotate(-3deg);
}

/* ── Reassurance: between the prices and the button, on purpose ─────────── */
.pw__ease {
    list-style: none;
    margin: 1.15rem clamp(1rem, 3vw, 1.7rem) 0;
    padding: .9rem 1rem;
    background: var(--newsprint);
    border: 2px solid var(--rule);
    border-radius: var(--radius);
    display: grid;
    gap: .55rem;
}
.pw__ease li {
    position: relative;
    padding-left: 27px;
    font-size: .855rem;
    line-height: 1.45;
    color: var(--ink-soft);
    font-weight: 500;
}
/* A real tick: two borders on a rotated box. Drawn in CSS so it never depends on an
   icon font having loaded (a caret-shaped near-miss reads as an error state). */
.pw__ease li::before {
    content: "";
    position: absolute;
    left: 6px; top: 3px;
    width: 6px; height: 11px;
    border: solid var(--good);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* ── The one tap ────────────────────────────────────────────────────────── */
.pw__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: calc(100% - 2 * clamp(1rem, 3vw, 1.7rem));
    margin: 1.15rem clamp(1rem, 3vw, 1.7rem) 0;
    padding: .9rem 1.2rem;
    background: var(--cobalt);
    color: #fff;
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font: 700 1.02rem var(--font-body);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.pw__cta:hover { background: var(--cobalt-deep); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.pw__cta:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }
.pw__cta:disabled { opacity: .62; cursor: default; transform: none; box-shadow: var(--shadow-sm); }
.pw__cta__amt {
    font-family: var(--font-sticker);
    font-size: 1.15rem;
    padding-left: .7rem;
    border-left: 2px solid rgba(255,255,255,.45);
}
.pw__fine {
    display: block;
    margin: .65rem clamp(1rem, 3vw, 1.7rem) 0;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
}
.pw__foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: .8rem;
    padding: 0 clamp(1rem, 3vw, 1.7rem);
}
.pw__link {
    background: none; border: 0; padding: .25rem .15rem;
    color: var(--muted);
    font: 700 .86rem var(--font-body);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pw__link:hover { color: var(--ink); }
.pw__foot__sep { width: 2px; height: 14px; background: var(--rule); }

@media (max-width: 720px) {
    .v-paywall { padding: .6rem; align-items: flex-start; }
    .pw { max-width: 100%; }
    .pw__head { grid-template-columns: 62px 1fr; gap: .8rem; padding: 1.2rem .9rem .9rem; }
    .pw__opts, .pw__ease, .pw__fine, .pw__foot { padding-left: .9rem; padding-right: .9rem; }
    .pw__cta, .pw__ease { width: calc(100% - 1.8rem); margin-left: .9rem; margin-right: .9rem; }
    .pw__opt { padding: .8rem; }
    .pw__name { font-size: .96rem; }
    .pw__price { font-size: 1.2rem; }
    .pw__desc { font-size: .8rem; }
}
/* 360px: the sticker must not collide with the price. */
@media (max-width: 380px) {
    .pw__stamp { right: .6rem; font-size: .66rem; }
    .pw__opt { grid-template-areas: "tick name" "tick price" ". desc"; grid-template-columns: 20px 1fr; }
    .pw__price { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    .pw__opt, .pw__cta, .pw__tick::after { transition: none; }
    .pw__opt:hover, .pw__cta:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   THE ACCOUNT STEP  ·  (2026-09-03, _brand/FUNNEL-SPEC.md §2 step 4)
   Shown over the reader when the cover is drawn but the pages are not. It is an
   ask, not a wall — they have already seen their comic work, so it is framed as
   saving it. Same printed-panel language as the paywall.
   ══════════════════════════════════════════════════════════════════════════ */
.acct {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 28px);
    background: rgba(20, 22, 26, .78);
    -webkit-backdrop-filter: blur(3px);
            backdrop-filter: blur(3px);
    overflow-y: auto;
}
.acct[hidden] { display: none !important; }
.acct__card {
    width: 100%;
    max-width: 430px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.7rem clamp(1rem, 4vw, 1.7rem) 1.4rem;
    text-align: center;
}
.acct__cover {
    width: 104px;
    aspect-ratio: 3 / 4;
    margin: 0 auto 1rem;
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--newsprint-deep) center/cover no-repeat;
    box-shadow: var(--shadow-sm);
}
.acct__eyebrow {
    margin: 0 0 .35rem;
    font: 700 .72rem/1.2 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.acct__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    letter-spacing: -.02em;
    line-height: 1.14;
    margin: 0 0 .45rem;
    color: var(--ink);
}
.acct__sub { margin: 0 0 1.1rem; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }

.acct__google {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 1rem;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font: 700 .95rem var(--font-body);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease;
}
.acct__google:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.acct__google:disabled { opacity: .6; cursor: default; transform: none; }

.acct__or {
    position: relative;
    margin: 1rem 0;
    font: 700 .78rem var(--font-body);
    color: var(--muted);
}
.acct__or::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 50%;
    border-top: 2px solid var(--rule);
}
.acct__or span { position: relative; background: var(--paper); padding: 0 .75rem; }

.acct__form { display: grid; gap: .35rem; text-align: left; }
.acct__label { font: 700 .78rem var(--font-body); color: var(--ink-soft); }
.acct__input {
    width: 100%;
    padding: .7rem .8rem;
    border: 2px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font: 400 .95rem var(--font-body);
    color: var(--ink);
}
.acct__input:focus { outline: 3px solid var(--cobalt); outline-offset: 2px; border-color: var(--ink); }
.acct__error {
    margin: .25rem 0 0;
    font-size: .82rem;
    line-height: 1.4;
    color: var(--kapow);
    background: var(--kapow-tint);
    border-radius: var(--radius-sm);
    padding: .5rem .6rem;
}
.acct__error[hidden] { display: none !important; }
.acct__submit {
    margin-top: .6rem;
    width: 100%;
    padding: .9rem 1.1rem;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--cobalt);
    color: #fff;
    box-shadow: var(--shadow);
    font: 700 1rem var(--font-body);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.acct__submit:hover { background: var(--cobalt-deep); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.acct__submit:active { transform: none; box-shadow: 2px 2px 0 var(--ink); }
.acct__submit:disabled { opacity: .62; cursor: default; transform: none; box-shadow: var(--shadow-sm); }
.acct__fine { margin: .9rem 0 0; font-size: .78rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 420px) {
    .acct__card { padding: 1.2rem .9rem 1rem; }
    .acct__cover { width: 84px; margin-bottom: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .acct__google, .acct__submit { transition: none; }
    .acct__google:hover, .acct__submit:hover { transform: none; }
}

/* .acct__spin removed 2026-09-10. The card no longer runs its own spinner while the pages are
   drawn — it steps aside and the press plate (with the cover on it) is the one loader. */

/* Page history (2026-09-07): every version this page has had. */
.v-history-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
.v-history-item { margin: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.v-history-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: var(--newsprint); }
.v-history-item figcaption { font-size: .72rem; color: var(--text-muted); padding: .4rem .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-history-item.is-current { border-color: var(--ink); }
.v-history-item.is-current figcaption { font-weight: 700; color: var(--ink); }
.v-history-use { margin: 0 .5rem .5rem; padding: .35rem .5rem; font-size: .74rem; font-weight: 700; cursor: pointer;
    background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--pill); }
.v-history-use:hover { background: var(--sun-tint); }
@media (max-width: 420px) { .v-history-grid { grid-template-columns: 1fr 1fr; gap: .5rem; } }
