        :root {
            /* Native controls, scrollbars and the date picker follow the page
               instead of rendering light-on-dark (Android Chrome, iOS
               standalone, a Windows light theme). */
            color-scheme: light;
            /* The gallery: warm white, one serif, almost no chrome. The card
               is the art and the app is the placard beside it. */
            --bg: #f8f7f4;
            --panel: #ffffff;
            --panel-2: #f1efea;
            --line: #dcd9d1;
            --line-strong: #bdb9b0;
            --ink: #1c1c1c;
            --ink-dim: #6b6b66;
            --ink-faint: #8a8a86;
            /* Orange is the only colour in the building. Two grades of it: the
               text-safe one (5:1 on white) for words and rules, and the
               fluorescent dealer-sticker dot for the things a dealer would
               put a dot on — a price, a status, the one button. */
            --accent: #c2410c;
            --accent-dim: #f0b797;
            --dot: #ff5c00;
            /* Status trio chosen by measurement, not eye: the old green /
               orange / red sat at one lightness and were dE 9 apart under a
               deuteranopia simulation — the same colour. These three stay
               >= 20 apart from each other AND from the dim label grey under
               normal, protan, deutan and tritan vision (Machado 2009), and the
               warn yellow is deliberately lighter than the gold accent so a
               warning does not read as a highlight. Every status still prints
               a word beside the colour; see docs/UI-REVIEW-2026-08-22.md. */
            --good: #1f7a3e;
            --warn: #8f6400;
            --bad: #b3261e;
            /* The dot grades of the trio: the price-dot stickers every card
               dealer already uses. Dots never appear without the word. */
            --good-dot: #c6ff00;
            --warn-dot: #ffe600;
            --bad-dot: #ff2f92;
            --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
            /* Chrome — labels, tab names, table heads — is the sans in small
               caps now, not the monospace; mono goes back to being data. */
            --chrome: var(--sans);
            /* The title tier. Login.html set the voice (Fraunces); the app now
               speaks it too — titles in serif, chrome stays mono. */
            --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
            /* The reading size and tracking for chrome — section headings,
               table heads, field labels, tab names. 10px uppercase monospace
               was the single biggest legibility complaint; one knob now. */
            --label: 11.5px;
            --track: .12em;
            /* One height for a control that stands in a row with others: an
               outlined button, a select, a search box (0.128.0, report
               2b63d21f, "not a fan of offset boxes"). They were 36, 39 and
               32px side by side, so no two tops or bottoms met. The editor's
               field grid keeps its own 32px set. */
            --ctl: 38px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background: var(--bg);
            color: var(--ink);
            font: 15px/1.5 var(--sans);
        }

        /* A link with no colour of its own reads in its sentence's colour,
           underlined, not the browser's blue (0.128.0, report 2b63d21f: the
           Shows tab's "/shows", a listing's eBay item number). */
        a {
            color: inherit;
            text-underline-offset: 2px;
        }

        .wrap {
            max-width: 1100px;
            margin: 0 auto;
            /* Top inset: under viewport-fit=cover the installed app paints
               behind the status bar, so the header steps below it. */
            padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 60px;
        }

        header {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 6px;
        }

        h1 {
            font-family: var(--serif);
            font-size: 26px;
            font-weight: 400;
            margin: 0;
            letter-spacing: .01em;
        }

            h1 .tag {
                color: var(--ink);
            }

            /* The mark: the dealer's dot, as the dot of the i in
               "Centerpiece" (0.143.0; it was Kept's full stop). The letter
               is ı, U+0131, the dotless i, and the dot sits where
               Instrument Serif's own tittle sits, MEASURED: its centre
               .66em over the baseline, the font's ascent .99 and descent
               .31. line-height 1.3 makes this box exactly ascent+descent,
               so its top is the ascent line and .235em down from it
               (.99 - .66 - .095) centres the .19em dot. A guessed top
               floats the dot off the word. */
            h1 .ti {
                position: relative;
                display: inline-block;
                line-height: 1.3;
            }

            h1 .ti .mark {
                position: absolute;
                left: 50%;
                top: .235em;
                width: .19em;
                height: .19em;
                margin-left: -.095em;
                border-radius: 50%;
                background: var(--dot);
            }

        .sub {
            font-family: var(--chrome);
            font-size: var(--label);
            text-transform: uppercase;
            letter-spacing: var(--track);
            color: var(--ink-faint);
        }

            /* Daily AI allowance. Quiet until it starts to matter. */
            .sub .quota-low {
                color: var(--warn);
            }

            .sub .quota-out {
                color: var(--bad);
            }

        .build {
            text-align: center;
            font-family: var(--mono);
            font-size: 10px;
            letter-spacing: .12em;
            color: var(--ink-dim);
            opacity: .55;
            padding: 0 20px 26px;
        }

        /* Terms · Privacy, in the build stamp's voice, one line above it (0.125.0). */
        .legal {
            text-align: center;
            font-family: var(--mono);
            font-size: 10px;
            letter-spacing: .12em;
            color: var(--ink-dim);
            opacity: .7;
            padding: 0 20px 6px;
        }

            .legal a {
                color: inherit;
                text-decoration: none;
            }

                .legal a:hover {
                    color: var(--ink);
                    text-decoration: underline;
                }

        .banner {
            display: none;
            margin: 14px 0 0;
            padding: 10px 14px;
            border: 1px solid var(--line);
            border-left: 3px solid var(--ink);
            background: var(--panel);
            border-radius: 2px;
            font-size: 14px;
        }

            .banner.show {
                display: block;
            }

            /* Something broken (0.129.0): the scans-down line and a notice
               posted as a problem. The alarm colour on the edge only. */
            .banner.problem {
                border-left-color: var(--bad);
            }

        /* Sets view: what the library gained lately (0.141.0). One quiet
           line per product; the name is a button that searches for it. */
        .newsets {
            margin: 8px 0 12px;
            padding: 8px 0 4px;
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            font-size: 13px;
        }

            .newsets h3 {
                margin: 0 0 4px;
                font-size: 12.5px;
                font-weight: 600;
                color: var(--ink-dim);
            }

            .newsets .newset {
                display: flex;
                flex-wrap: wrap;
                align-items: baseline;
                gap: 2px 10px;
                padding: 3px 0;
            }

            .newsets .newset button {
                padding: 0;
                border: 0;
                background: none;
                color: var(--ink);
                font: inherit;
                text-align: left;
                text-decoration: underline;
                cursor: pointer;
            }

            .newsets .newset span {
                color: var(--ink-dim);
                white-space: nowrap;
            }

        .grid {
            display: grid;
            grid-template-columns: 340px 1fr;
            gap: 18px;
            margin-top: 18px;
        }

        /* The scan bench stands on its own until there is a result to sit
           beside it. Two columns with nothing in the second is the same empty
           column the old layout had, just moved - and the bench is the only
           thing on this screen until you photograph something.

           :has() rather than a class toggled from JS, because three different
           places show or hide #result and a fourth would eventually forget.

           At the content's left edge, where every other view's first panel
           starts, not centred in it (0.128.0, report 2b63d21f): centred, the
           bench began at x 720 of a 1707px screen while Vault, Sell and the
           rest began at 396 — and it jumped left when a result arrived. */
        #scanGrid:not(:has(#result.show)) {
            grid-template-columns: minmax(0, 460px);
            justify-content: start;
        }

        /* ------------------------------------------------------------------
           Views.

           Everything used to live in one column in the order features were
           added, so the page was a list of everything the app can do rather
           than what you are doing right now. Each view is one job; the nav
           switches between them and the URL hash records which, so the back
           button and a bookmark both work.

           Only the scan bench keeps the two-column grid - a camera on the left
           and its result on the right is the one place that pairing earns its
           keep. Every other view is full width, which is what reclaims the
           340px of empty air the old layout left below the bench.
           ------------------------------------------------------------------ */
        .view {
            display: none;
        }

            .view.on {
                display: block;
            }

            /* Panels standing one above another are 18px apart, the gap Home's
               grid and the scan bench already keep (0.128.0, report 2b63d21f).
               Flush, two borders made one heavy seam: Rips, Sell, and four on
               Settings > Account. A margin under each panel rather than over
               its neighbour, since a hidden panel between two shown ones
               would still count as the neighbour. The editor has its own. */
            .view > .panel:not(#editorPanel) {
                margin-bottom: 18px;
            }

        .views {
            display: flex;
            gap: 4px;
            margin-top: 16px;
            border-bottom: 1px solid var(--line);
        }

            .views button {
                appearance: none;
                background: none;
                border: none;
                border-bottom: 2px solid transparent;
                margin-bottom: -1px;
                padding: 9px 14px;
                font-family: var(--chrome);
                font-size: 12px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: var(--track);
                color: var(--ink-dim);
                cursor: pointer;
            }

                .views button:hover {
                    color: var(--ink);
                }

                .views button.on {
                    color: var(--ink);
                    border-bottom-color: var(--ink);
                }

                /* A count that wants attention - friend requests waiting on you. */
                .views button .pip {
                    display: inline-block;
                    margin-left: 6px;
                    padding: 1px 5px;
                    border-radius: 8px;
                    background: var(--dot);
                    color: var(--ink);
                    font-size: 10px;
                    letter-spacing: .04em;
                }

        /* "More" is the fifth slot in the phone bar and nothing on a desktop,
           where every view fits in the strip. The sheet it opens is built by
           buildMoreSheet(); both are hidden until the narrow layout below. */
        .views button.more {
            display: none;
        }

        /* Between the phone bar and the desktop rail the strip is one row with
           no room to spare: twelve tabs need ~936px (an admin's thirteen ~1000),
           so from 761px up it pushed the whole page wider than the screen and
           squeezed "Rip party" onto two lines. Here the strip scrolls inside
           itself instead - a swipe on a tablet, a thin scrollbar for a mouse -
           and revealTab() keeps the lit tab in view. The rule moves from a
           border to an inset shadow because a scrolling box clips the -1px
           margin the lit tab's underline uses to sit on a border. */
        @media (min-width: 761px) and (max-width: 1199px) {
            .views {
                overflow-x: auto;
                overflow-y: hidden;
                scrollbar-width: thin;
                scrollbar-color: var(--line) transparent;
                border-bottom: none;
                box-shadow: inset 0 -1px 0 var(--line);
            }

                .views button {
                    flex: none;
                    white-space: nowrap;
                    margin-bottom: 0;
                    padding: 9px 11px;
                }
        }

        .moresheet {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 29;            /* over the page, under the bar (30) */
            background: rgba(28, 28, 28, .38);
        }

            .moresheet.on {
                display: block;
            }

            .moresheet .sheet {
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                /* Runs under the bar; the bottom padding is the bar's height
                   plus the home-indicator inset, so the last item clears it. */
                padding: 8px 10px calc(62px + env(safe-area-inset-bottom, 0px));
                background: var(--panel);
                border-top: 1px solid var(--line);
                border-radius: 14px 14px 0 0;
            }

                .moresheet .sheet button {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    width: 100%;
                    appearance: none;
                    background: none;
                    border: none;
                    border-bottom: 1px solid var(--line);
                    padding: 14px 8px;
                    font: 500 15px var(--sans);
                    color: var(--ink);
                    text-align: left;
                    cursor: pointer;
                }

                    .moresheet .sheet button:last-child {
                        border-bottom: none;
                    }

                    .moresheet .sheet button.on {
                        color: var(--ink);
                        font-weight: 600;
                    }

                    .moresheet .sheet button .pip {
                        padding: 1px 7px;
                        border-radius: 9px;
                        background: var(--dot);
                        color: var(--ink);
                        font-family: var(--mono);
                        font-size: 11px;
                    }

        /* ------------------------------------------------------------------
           Toasts. The page's own voice for what toast() used to say: a short
           notice that names the outcome and gets out of the way. Errors keep
           the red edge and stay longer; anything can be dismissed by tapping.
           Fixed above the phone bar, centred on a desktop.
           ------------------------------------------------------------------ */
        .toasts {
            position: fixed;
            left: 50%;
            bottom: 20px;
            transform: translateX(-50%);
            z-index: 60;
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: min(520px, calc(100vw - 32px));
            pointer-events: none;
        }

            .toast {
                pointer-events: auto;
                position: relative;
                background: var(--panel);
                border: 1px solid var(--line);
                border-radius: 2px;
                padding: 10px 14px 10px 32px;
                font-size: 13.5px;
                line-height: 1.45;
                color: var(--ink);
                box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
                cursor: pointer;
                white-space: pre-wrap;
                word-break: break-word;
            }

                /* The sticker, not a coloured edge: a dot in the margin says
                   what kind of notice this is, the words say the rest. */
                .toast::before {
                    content: "";
                    position: absolute;
                    left: 12px;
                    top: 14px;
                    width: 11px;
                    height: 11px;
                    border-radius: 50%;
                    background: var(--dot);
                    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .15);
                }

                .toast.bad::before {
                    background: var(--bad-dot);
                }

                .toast.warn::before {
                    background: var(--warn-dot);
                }

                .toast.good::before {
                    background: var(--good-dot);
                }

        /* ------------------------------------------------------------------
           Home.

           What opening the app means now: the collection's number, what is
           waiting on you, the sets you are closest to finishing, what just
           landed, what is coming up. Nothing here is new data — every figure
           arrives through the refreshers the other views already run — it is
           the one screen where they are read together.
           ------------------------------------------------------------------ */
        .homehero {
            margin-top: 18px;
            padding: 22px 20px 20px;
            background: var(--panel);
            border-top: 2px solid var(--ink);
        }

            .homehero .eyebrow {
                font-family: var(--chrome);
                font-size: var(--label);
                text-transform: uppercase;
                letter-spacing: var(--track);
                color: var(--ink-faint);
            }

        /* The one number a collector wants first deserves the display face,
           not the dashboard's. Serif numerals, like a ledger total. */
        .homeval {
            margin-top: 6px;
            font-family: var(--serif);
            font-size: 48px;
            font-weight: 400;
            line-height: 1.1;
            letter-spacing: 0;
        }

        .homesub {
            margin-top: 6px;
            font-size: 14px;
            color: var(--ink-dim);
        }

        /* The value and its last ninety days, side by side. */
        .homeval-row {
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
        }

        svg.spark {
            width: 180px;
            height: 40px;
            overflow: visible;
        }

            svg.spark path.area {
                fill: var(--dot);
                opacity: .12;
            }

            svg.spark polyline {
                fill: none;
                stroke: var(--dot);
                stroke-width: 2;
                stroke-linejoin: round;
                stroke-linecap: round;
                vector-effect: non-scaling-stroke;
            }

        /* Up, down, or flat — a glyph and a sign as well as a colour. */
        .homedelta {
            margin-top: 6px;
            font-size: 13px;
            color: var(--ink-dim);
        }

            .homedelta b {
                font-weight: 600;
                color: var(--ink);
            }

            .homedelta b.up {
                color: var(--good);
            }

            .homedelta b.down {
                color: var(--bad);
            }

        .homeacts {
            margin-top: 16px;
        }

            .homeacts a.btn-accent {
                background: var(--ink);
                color: var(--bg);
                border-color: var(--ink);
                font-weight: 600;
            }

            /* Its partner takes the same box and the same small caps,
               outlined instead of filled. With the plain .actions padding
               and type beside the primary's, flex stretched the two boxes
               to one height and "Open the vault" rode 3px high in its own
               (22bd1094). */
            .homeacts a:not(.btn-accent) {
                padding: 10px 16px;
                min-height: var(--ctl);
                font: 600 12.5px var(--sans);
                letter-spacing: .12em;
                text-transform: uppercase;
            }

        .homegrid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
            gap: 18px;
            margin-top: 18px;
        }

            /* Rows reuse .setrow (name, optional bar, value) so Home reads
               like the views it points at. */
            .homegrid .setrow:last-child {
                border-bottom: none;
            }

            .homegrid .setrow .val {
                font-size: 13.5px;
                font-variant-numeric: tabular-nums;
                white-space: nowrap;
                color: var(--ink);
            }

            .homegrid .quiet {
                margin: 2px 0 0;
                font-size: 13.5px;
                color: var(--ink-dim);
            }

            .homegrid p.more {
                margin: 8px 0 0;
                font-size: 13px;
            }

                .homegrid .quiet a, .homegrid p.more a {
                    color: var(--accent);
                    text-decoration: none;
                }

        /* ------------------------------------------------------------------
           The binder page.

           A checklist is a spreadsheet of a thing people keep in nine-pocket
           sheets, and the sheet is the form the hobby actually thinks in.
           Same rows, same filter, same sort as the table — only the shape
           changes. Nine to a page on purpose: the page break is what makes it
           a binder rather than one more grid, and it makes each page a
           screenshot that explains itself.
           ------------------------------------------------------------------ */
        .binder-page {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 12px;
            margin: 10px auto 0;
            /* Capped, and centred in whatever is left. Three 5:7 pockets across
               a full desktop column make a sheet half again as tall as the
               screen — the ninth pocket and the page controls end up below the
               fold, which forfeits the one thing nine-to-a-page buys: a whole
               page you can see, and screenshot, at once. A real sheet is
               portrait and sits in the middle of the table; so does this. */
            max-width: 540px;
        }

        .pocket {
            position: relative;
            aspect-ratio: 5 / 7;
            border: 1px solid var(--line);
            border-radius: 6px;
            overflow: hidden;
            background: var(--panel-2);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 6px;
            text-align: center;
            min-width: 0;
        }

            /* An empty sleeve at the end of the last page: the sheet keeps its
               nine pockets, the way the real one does. */
            .pocket.blank {
                border-style: dashed;
                opacity: .35;
                background: none;
            }

            .pocket.need {
                border-style: dashed;
            }

            .pocket.have {
                border-color: var(--line-strong);
                cursor: pointer;
            }

                .pocket.have:hover {
                    border-color: var(--ink);
                }

            /* The photo leaves a caption strip at the foot of the pocket for
               the number and the copy count (0.75.1): they used to ride ON the
               photo as near-black chips — a dark-theme leftover that read as
               "black boxes over the card" once the app went light (487183d0)
               — and the number a pocket needs is quieter as a caption than as
               a box, the way a sleeve's index tab sits beside the card. */
            .pocket img {
                position: absolute;
                inset: 0 0 18px 0;
                width: 100%;
                height: calc(100% - 18px);
                object-fit: cover;
            }

            /* Sits under any photo, and IS the pocket when there is none. */
            .pocket .pnum {
                font-family: var(--chrome);
                font-size: var(--label);
                letter-spacing: var(--track);
                color: var(--ink-dim);
            }

            .pocket .pname {
                font-size: 12px;
                line-height: 1.25;
                color: var(--ink-dim);
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
            }

            .pocket.have .pname {
                color: var(--ink);
            }

            /* A row you do not have whose card is on your wishlist (0.101.0):
               still an empty sleeve, dashed, with no photo, because it is not
               had. Its border and one word say it is wanted, and it opens. */
            .pocket.need.wanted {
                border-color: var(--accent-dim);
                cursor: pointer;
            }

                .pocket.need.wanted:hover {
                    border-color: var(--accent);
                }

            /* The card open in the inspector docked beside this sheet
               (0.131.2): the vault's .vtile.editing, in the checklist's sleeve. */
            .pocket.editing {
                border-color: var(--ink);
                border-style: solid;
                box-shadow: 0 0 0 1px var(--ink);
            }

            .pocket .pwant {
                font-family: var(--mono);
                font-size: 10px;
                letter-spacing: var(--track);
                text-transform: uppercase;
                color: var(--accent);
            }

            /* On a photographed pocket the number is the caption under the
               photo — no box, no background, the pocket's own ground. */
            .pocket .chip {
                position: absolute;
                left: 6px;
                bottom: 2px;
                z-index: 1;
                /* "#12 Photo Variation SP" must stay one line, not become a
                   paragraph under the card. */
                max-width: calc(100% - 40px);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-family: var(--mono);
                font-size: 10.5px;
                line-height: 14px;
                letter-spacing: .04em;
                color: var(--ink-dim);
            }

            .pocket .dupe {
                position: absolute;
                right: 6px;
                bottom: 2px;
                z-index: 1;
                font-family: var(--mono);
                font-size: 10.5px;
                line-height: 14px;
                color: var(--accent);
            }

        /* While a checklist is open, the set list above it folds away — you
           arrived from a row you already found, and scrolling past the whole
           library to reach the binder was the reported pain. The breadcrumb
           in #checklistView is the way back. */
        #v-sets .panel.cl-open > .vaulthead,
        #v-sets .panel.cl-open > .row,
        #v-sets .panel.cl-open > #setList {
            display: none;
        }

        #v-sets .panel.cl-open > #checklistView {
            border-top: none;
            margin-top: 0;
            padding-top: 0;
        }

        /* The source line names publisher files like
           2025_Topps_Update_Series_Baseball_Checklist.pdf — one "word" wider
           than a phone. URLs are already shortened to their host (app.js
           provenanceText); this lets anything else long break too, instead of
           widening the page (report 6e96ff5b). */
        #checklistProvenance {
            overflow-wrap: anywhere;
        }

        /* The team rides under the player only on a phone (see the 760px block). */
        #checklistTable .cl-sub {
            display: none;
        }

        #checklistTable td.num {
            white-space: nowrap;
        }

        .binder-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin-top: 10px;
        }

            .binder-nav .page {
                font-family: var(--chrome);
                font-size: var(--label);
                letter-spacing: var(--track);
                text-transform: uppercase;
                color: var(--ink-dim);
                white-space: nowrap;
            }

        /* ------------------------------------------------------------------
           The vault as a binder.

           The nine-pocket vinyl sheet is the shape this hobby has thought in
           since the eighties — the checklist's binder view already proved it
           here — so the vault's visual mode is the collection in that object:
           smoky welded pockets, punched holes, rings. A desktop shows the
           binder lying open, two sheets on the rings; a phone holds one
           sheet. Same rows, same sort, same selection as the list — only the
           shape changes.
           ------------------------------------------------------------------ */
        .vgrid {
            margin-top: 10px;
        }

        /* A horizontal touch drag on a binder is the page-turn swipe;
           vertical stays the page's own scroll, pinch stays the browser's
           zoom. Without this line the browser may claim a sloppy diagonal
           for scrolling and cancel the pointer mid-swipe. */
        .vgrid, #checklistBinder {
            touch-action: pan-y pinch-zoom;
        }

        /* A finger that rests before it slides is still a page turn. Without
           these, iOS hands that touch to its long-press recogniser (the image
           callout, the selection loupe on a pocket's text) and cancels it
           before the drag can lock — "put your finger down and nothing
           happens". Spreads only: the list views keep selectable text. */
        .bspread, .binder-spread {
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }

        .vtile img, .pocket img {
            -webkit-user-drag: none;
        }

        .bspread {
            display: flex;
            align-items: stretch;
            justify-content: center;
        }

        /* The checklist binder's spread: two sheets side by side at desktop,
           one on a phone — the vault binder's rule, so the two binders agree
           on what "a binder" shows. Each sheet splits the row evenly. */
        .binder-spread {
            display: flex;
            gap: 18px;
            align-items: flex-start;
        }

            .binder-spread .binder-page {
                flex: 1 1 0;
                min-width: 0;
            }

        /* The vinyl. The checklist's sheet is the same object, so it shares
           the material; layout (columns, cap, gap) stays each view's own. */
        .bsheet, .binder-page {
            position: relative;
            /* Clear vinyl over white paper: the same sheet, lit from a window
               instead of a desk lamp. */
            background: linear-gradient(172deg, #ffffff 0%, #faf9f6 46%, #f4f2ed 100%);
            border: 1px solid var(--line);
            border-top-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, .10), 0 1px 2px rgba(0, 0, 0, .06);
        }

            /* Nothing is drawn over the pockets. A white sheen used to cross the
               sheet from its upper-left corner ("light across the plastic") and
               it washed out the cards in the first pockets (report 01c1d16f). */

            /* The punched holes, on whichever edge faces the rings. */
            .bsheet::before, .binder-page::before {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                width: 16px;
                background-image:
                    radial-gradient(circle 5px at 8px 12%, #dcd9d1 98%, transparent),
                    radial-gradient(circle 5px at 8px 50%, #dcd9d1 98%, transparent),
                    radial-gradient(circle 5px at 8px 88%, #dcd9d1 98%, transparent);
            }

        .bsheet {
            width: min(430px, 100%);
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 9px;
            padding: 14px 16px;
        }

            .bsheet.lp::before {
                right: 0;
            }

            .bsheet.rp::before {
                left: 0;
            }

        /* A checklist page stands alone, holes to the left, like a sheet
           lifted out of the binder. */
        .binder-page::before {
            left: 0;
        }

        /* The rings. Stretched to the spread's height so the three line up
           with the holes; the negative margin threads them over both edges. */
        .brings {
            flex: 0 0 34px;
            position: relative;
            z-index: 2;
            margin: 0 -8px;
        }

            .brings i {
                position: absolute;
                left: 50%;
                width: 30px;
                height: 30px;
                margin-left: -15px;
                border: 3px solid #b9bec7;
                border-radius: 50%;
                box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), 0 2px 3px rgba(0, 0, 0, .25);
            }

                .brings i:nth-child(1) { top: calc(12% - 15px); }
                .brings i:nth-child(2) { top: calc(50% - 15px); }
                .brings i:nth-child(3) { top: calc(88% - 15px); }

        /* One pocket of the vault's sheet. The card sits INSIDE the sleeve —
           inset, behind the plastic — rather than filling a tile. */
        .vtile {
            position: relative;
            aspect-ratio: 5 / 7;
            background: rgba(28, 28, 28, .05);
            border: 1px solid rgba(28, 28, 28, .09);
            border-top-color: rgba(28, 28, 28, .16);  /* the opening catches light */
            border-radius: 7px;
            overflow: hidden;
            cursor: pointer;
        }

            /* The plastic in front of the card. */
            .vtile::after, .pocket::after {
                content: "";
                position: absolute;
                inset: 0;
                pointer-events: none;
                background: linear-gradient(160deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .12) 26%, rgba(255, 255, 255, 0) 46%, rgba(28, 28, 28, .06) 100%);
            }

            .vtile:hover {
                border-color: var(--line-strong);
            }

            .vtile.selected {
                outline: 2px solid var(--ink);
                outline-offset: -2px;
            }

            /* The card open in the editor — the pocket equivalent of tr.selected. */
            .vtile.editing {
                border-color: var(--ink);
                box-shadow: 0 0 0 1px var(--ink);
            }

            /* An empty sleeve past the end of the collection. NOT dashed —
               dashed is the checklist's word for "need", and the vault makes
               no such claim. */
            .vtile.sleeve {
                background: rgba(28, 28, 28, .03);
                box-shadow: inset 0 2px 9px rgba(0, 0, 0, .08);
                cursor: default;
            }

            /* The dealer's dot on a sleeve: only on the cards that need a
               look — a finish the scanner could not call, a card it doubts.
               A green dot on every ordinary card would be noise, so
               "linked and fine" is the absence of a dot. The word lives in
               the editor and the list; the dot is the glance. */
            .vtile .vdot {
                position: absolute;
                right: -5px;
                top: -5px;
                z-index: 3;
                width: 15px;
                height: 15px;
                border-radius: 50%;
                box-shadow: 0 1px 2px rgba(0, 0, 0, .28), inset 0 -1px 2px rgba(0, 0, 0, .12);
            }

                .vtile .vdot.warn {
                    background: var(--warn-dot);
                }

                .vtile .vdot.bad {
                    background: var(--bad-dot);
                }

            /* ---- listed, sold (0.122.0, report 01da774b) ----
               The sale word, wherever cards are picked to list: beside the
               tick of a checklist row, at the top corner of its pocket, on
               the vault row's status cell and in the editor's heading
               (app.js saleTag / saleWord). The mono uppercase of WANTED and
               PRICE CHECK; orange for listed, since that is the card to pass
               over, and quiet for sold, which is a record. Like the dealer's
               dot above it is drawn only when there is something to say. */
            .saletag {
                font-family: var(--mono);
                font-size: 10.5px;
                letter-spacing: var(--track);
                text-transform: uppercase;
                white-space: nowrap;
                color: var(--ink-dim);
            }

                .saletag.listed {
                    color: var(--accent);
                }

            /* The vault row's status cell is the tag when it says listed or
               sold: the id outweighs the phone layout's dim 12.5px cell. */
            #vaultRows td.c-status.saletag {
                font-family: var(--mono);
                font-size: 10.5px;
                letter-spacing: var(--track);
                text-transform: uppercase;
                color: var(--ink-dim);
            }

            /* The row's line, so the tag sits on it at the desk (0.128.1); the
               phone grid lines up on its own. */
            @media (min-width: 761px) {
                #vaultRows td.c-status.saletag {
                    line-height: 20.25px;
                }
            }

                #vaultRows td.c-status.saletag.listed {
                    color: var(--accent);
                }

            /* Beside the tick, a word's width away. */
            #checklistTable td .saletag {
                margin-left: 6px;
            }

            /* On the pocket: a label at the top corner, over the photo, on
               the panel's ground so it reads on any card; the chip and the
               ×2 keep the bottom corners. */
            .pocket .saletag {
                position: absolute;
                right: 5px;
                top: 4px;
                z-index: 2;
                padding: 1px 5px;
                border-radius: 3px;
                background: var(--panel);
                border: 1px solid var(--line);
                line-height: 1.3;
            }

                .pocket .saletag.listed {
                    border-color: var(--accent-dim);
                }

            /* In the editor's heading: a press shows the listing. */
            #editorTitle .saletag {
                cursor: pointer;
                vertical-align: 2px;
            }

                #editorTitle .saletag:hover,
                #editorTitle .saletag:focus-visible {
                    text-decoration: underline;
                }

            .vtile img {
                position: absolute;
                inset: 4px;
                width: calc(100% - 8px);
                height: calc(100% - 8px);
                object-fit: cover;
                border-radius: 4px;
            }

            /* No photo: the card is in the pocket face down. Cardboard, not
               chrome — the one warm thing on the sheet, like the real thing. */
            .vtile .bback {
                position: absolute;
                inset: 4px;
                border-radius: 4px;
                background: linear-gradient(173deg, #c7b48d 0%, #b8a37a 100%);
                box-shadow: inset 0 0 0 3px rgba(96, 76, 44, .28);
                display: flex;
                align-items: center;
                justify-content: center;
            }

                .vtile .bback span {
                    font-family: var(--mono);
                    font-size: 10.5px;
                    letter-spacing: .06em;
                    text-transform: uppercase;
                    color: #6d5b39;
                }

            /* Quiet until it matters: nothing on a real sheet sits in that
               corner, so the box fades up on hover, focus, or once checked. */
            .vtile .tsel {
                position: absolute;
                top: 7px;
                left: 7px;
                z-index: 2;
                width: 18px;
                height: 18px;
                margin: 0;
                accent-color: var(--ink);
                cursor: pointer;
                opacity: .45;
            }

                .vtile:hover .tsel, .vtile .tsel:checked, .vtile .tsel:focus {
                    opacity: 1;
                }

            /* What the eye can't read off a photo alone: RC / AUTO / grade.
               A small label in the page's own paper, not the dark-theme
               chip it used to be (0.75.1 — see .pocket .chip). */
            .vtile .bflag {
                position: absolute;
                right: 6px;
                top: 6px;
                z-index: 2;
                max-width: calc(100% - 34px);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                padding: 1px 5px;
                border-radius: 3px;
                background: var(--panel);
                border: 1px solid var(--line);
                font-family: var(--mono);
                font-size: 10.5px;
                letter-spacing: .04em;
                color: var(--ink);
            }

            /* What a card you do not hold is: PRICE CHECK or WANTED (0.101.0).
               Its own label under the top row, the full width of the sleeve
               and free to wrap, because inside the flag a phone's narrow
               sleeve cut both words short. The accent, since it changes what
               the sleeve means. */
            .vtile .bstate {
                position: absolute;
                left: 6px;
                top: 30px;
                z-index: 2;
                max-width: calc(100% - 12px);
                padding: 1px 5px;
                border-radius: 3px;
                background: var(--panel);
                border: 1px solid var(--accent-dim);
                font-family: var(--mono);
                font-size: 10.5px;
                line-height: 1.3;
                letter-spacing: .04em;
                color: var(--accent);
                overflow-wrap: anywhere;
            }

                /* With no photo, the label says what the card is and the
                   cardboard keeps quiet: on a phone's 81px sleeve PRICE CHECK
                   wraps to two lines, over the "no photo" at its middle, and
                   there is no room lower down above the price tag. */
                .vtile.said .bback span {
                    display: none;
                }

            /* The price, as the little sticker a dealer would leave on the
               sleeve. Cream, square corners, sits ON the plastic. */
            .vtile .btag {
                position: absolute;
                right: 6px;
                bottom: 6px;
                z-index: 2;
                padding: 1px 6px 2px;
                border-radius: 2px;
                background: #f0e9d8;
                color: #37301e;
                font-family: var(--mono);
                font-size: 10.5px;
                font-variant-numeric: tabular-nums;
                box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
            }

            /* ×N on a tile the vault holds more than once (0.134.0), in the
               value tag's accent, a line above the tag so the two never meet
               on a phone's narrow sleeve (the checklist's pocket keeps its own
               ×N in the corner the tile's value tag has). */
            .vtile .dupe {
                position: absolute;
                left: 6px;
                bottom: 28px;
                z-index: 2;
                padding: 1px 5px 2px;
                border-radius: 2px;
                background: var(--panel);
                color: var(--accent);
                font-family: var(--mono);
                font-size: 10.5px;
                line-height: 14px;
                box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
            }

        /* Turning a page hinges the new sheets in at the rings; one page on
           a phone just settles. Skipped entirely under reduced motion. */
        @media (prefers-reduced-motion: no-preference) {
            .bspread.turn .bsheet.rp {
                transform-origin: left center;
                animation: bflipR .24s ease-out;
            }

            .bspread.turn .bsheet.lp {
                transform-origin: right center;
                animation: bflipL .24s ease-out;
            }

            /* The checklist binder's turn. Its sheets draw the punched holes
               on the LEFT of every page and there are no rings between them
               (see .binder-page::before), so every sheet hinges at its left
               edge — the desktop pair and a lone phone sheet alike. The
               vault's mirrored left-page rule was copied here once and
               swung the left sheet on its hole-less free edge. */
            .binder-spread.turn .binder-page {
                transform-origin: left center;
                animation: bflipR .24s ease-out;
            }
        }

        /* On a phone each binder holds ONE sheet with the punched holes on
           the left — both binders hinge there, and hinge the SAME way. The
           vault's lone sheet is .lp, whose desktop rule hinges at the right;
           this override keeps the twins from animating mirror-imaged. */
        @media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
            .bspread.turn .bsheet.lp {
                transform-origin: left center;
                animation: bflipR .24s ease-out;
            }
        }

        @keyframes bflipR {
            from {
                transform: perspective(1200px) rotateY(-14deg);
                opacity: .35;
            }
        }

        @keyframes bflipL {
            from {
                transform: perspective(1200px) rotateY(9deg);
                opacity: .55;
            }
        }

        /* One sheet in the hand below 760px: the right page and the rings go,
           and the lone sheet's holes move to its left edge. */
        @media (max-width: 760px) {
            .bsheet.rp, .brings {
                display: none;
            }

            .bsheet.lp::before {
                right: auto;
                left: 0;
            }
        }

        /* The grid has no column heads, so the sort select that the phone
           layout shows is the sort control here too. */
        .vault-grid .onnarrow {
            display: inline;
        }

        /* A small photo on a Home row — in a sleeve, like everything else.
           The padding IS the pocket: vinyl showing around the card. */
        .setrow img.rthumb,
        .setrow span.rthumb.none,
        #vaultRows td.c-thumb .rthumb {
            flex: 0 0 auto;
            width: 38px;
            aspect-ratio: 5 / 7;
            object-fit: cover;
            padding: 2px;
            border-radius: 4px;
            border: 1px solid rgba(28, 28, 28, .12);
            border-top-color: rgba(28, 28, 28, .2);
            background: rgba(28, 28, 28, .05);
        }

        /* The search / filter / sort row stays put while the list scrolls
           under it — a long vault is the one place this page scrolls far. */
        #vaultTools {
            position: sticky;
            top: 0;
            z-index: 5;
            background: var(--panel);
            padding-top: 6px;
            padding-bottom: 6px;
        }

        #vaultSearch {
            flex: 1;
        }

        /* The box the vault is filtered to (0.107.0): a chip at the head of
           the tools row, the box's name and count, and the x that clears it.
           One line always — a long product name is cut short, and the title
           carries it whole. The phone block below gives it the row to itself. */
        .boxchip {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            max-width: 100%;
            min-width: 0;
            padding: 0 2px 0 12px;
            border: 1px solid var(--line-strong);
            border-radius: 999px;
            background: var(--panel-2);
            font: 500 12.5px var(--sans);
            color: var(--ink);
            white-space: nowrap;
        }

            .boxchip span {
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .boxchip .chipx {
                flex: 0 0 auto;
                background: none;
                border: 0;
                margin: 0;
                padding: 6px 8px;
                font: 500 17px/1 var(--sans);
                letter-spacing: 0;
                text-transform: none;
                color: var(--ink-dim);
                cursor: pointer;
            }

                .boxchip .chipx:hover {
                    color: var(--ink);
                }

        /* The sets search shares its line with the filter and sort selects at
           desk widths; the phone block gives it a line of its own. It was an
           inline style, which no stylesheet rule can override. */
        #setSearch {
            flex: 1;
            min-width: 160px;
        }


        /* ------------------------------------------------------------------
           Desktop: the strip becomes a rail.

           At 1200px and up the tab strip moves to a left rail and the view
           takes the rest — one column of panels left two-thirds of a wide
           screen as air. Same buttons, same ids, same router: CSS on the
           markup that was already there. The header and banners span both
           columns; anything else in .wrap lands in the content column, so a
           dialog or overlay added later cannot fall into the rail by accident.
           ------------------------------------------------------------------ */
        @media (min-width: 1200px) {
            .wrap {
                max-width: 1340px;
                display: grid;
                grid-template-columns: 164px minmax(0, 1fr);
                column-gap: 28px;
                align-items: start;
            }

                .wrap > header, .wrap > .banner {
                    grid-column: 1 / -1;
                }

                .wrap > :not(header):not(.banner):not(.views) {
                    grid-column: 2;
                }

                .wrap > .views {
                    grid-column: 1;
                    position: sticky;
                    top: 20px;
                    flex-direction: column;
                    gap: 2px;
                    margin-top: 18px;
                    padding-right: 10px;
                    border-bottom: none;
                    border-right: 1px solid var(--line);
                }

                    .wrap > .views button {
                        text-align: left;
                        padding: 9px 10px;
                        margin-bottom: 0;
                        border-bottom: none;
                        border-left: 2px solid transparent;
                        border-radius: 0 6px 6px 0;
                    }

                        .wrap > .views button.on {
                            border-left-color: var(--ink);
                            background: var(--panel);
                        }

                .wrap > .view {
                    margin-top: 18px;
                }

                    /* These carried the gap the rail now provides. */
                    .wrap > .view > .grid, .wrap > .view > .homehero {
                        margin-top: 0;
                    }
        }

        /* ------------------------------------------------------------------
           The scan queue. Sits under the bench, shows only what is unfinished,
           and disappears entirely when there is nothing in flight — the vault
           is where finished cards live.
           ------------------------------------------------------------------ */
        .queue {
            margin-top: 14px;
            border-top: 1px solid var(--line);
            padding-top: 10px;
        }

            .queue h3 {
                margin: 0 0 6px;
                font-family: var(--chrome);
                font-size: var(--label);
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: var(--track);
                color: var(--ink-dim);
            }

        .qrow {
            display: flex;
            align-items: center;
            gap: 9px;
            padding: 5px 0;
            border-bottom: 1px solid var(--line);
            font-size: 13px;
        }

            .qrow img {
                width: 26px;
                height: 36px;
                object-fit: cover;
                border-radius: 3px;
                border: 1px solid var(--line);
                flex: 0 0 auto;
            }

            .qrow .qlabel {
                flex: 1;
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                color: var(--ink-dim);
            }

            .qrow .qstate {
                font-family: var(--chrome);
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: .06em;
                color: var(--ink-dim);
                white-space: nowrap;
            }

                .qrow .qstate::before {
                    content: "";
                    display: inline-block;
                    width: 9px;
                    height: 9px;
                    margin-right: 6px;
                    border-radius: 50%;
                    background: var(--line-strong);
                    vertical-align: -1px;
                }

                .qrow.working .qstate::before {
                    background: var(--dot);
                }

                .qrow.done .qstate::before {
                    background: var(--good-dot);
                }

                .qrow.failed .qstate::before {
                    background: var(--bad-dot);
                }

            .qrow .qactions {
                font-family: var(--mono);
                font-size: 11px;
                white-space: nowrap;
            }

            .qrow.working .qstate {
                color: var(--accent);
            }

            .qrow.done .qlabel {
                color: var(--ink);
            }

            .qrow.done .qstate {
                color: var(--good);
            }

            .qrow.failed .qstate {
                color: var(--bad);
            }

        /* ------------------------------------------------------------------
           The photo viewer.

           Tapping a thumbnail used to open a new browser tab, which loses the
           page you were on and, on a phone, dumps you in a tab you then have to
           close. It shows the image over the card instead — and the new-tab
           behaviour stays, as a deliberate choice rather than the only one:
           the thumbnail is still a real <a href>, so cmd/ctrl/middle-click and
           long-press-open-in-new-tab all keep working untouched.
           ------------------------------------------------------------------ */
        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 100;
            color: #f2f2f4;
            /* Opaque, not a 95% scrim. At 95% the editor's own labels ghosted
               through hard enough that "FRONT" landed on top of "EDIT CARD" and
               the nav bar was still legible underneath — a see-through overlay
               reads as a rendering fault, not as depth. */
            background: #0b1017;
            flex-direction: column;
            /* A dark viewing room inside a white gallery. The tokens are
               re-declared here so the chrome inside stays legible on black. */
            --ink: #f2f2f4;
            --ink-dim: #a0a3ad;
            --line: #26282e;
            --panel-2: #17181c;
            --accent: #ff8a4c;
            --accent-dim: #c4460a;
        }

            /* The photo eases in instead of snapping — the one-frame jump was
               most of the "clunky" in the report. A keyframe, not a
               transition: the box itself goes display:none → flex, and only
               an animation runs from nothing. On the STAGE, not the img: a
               running animation overrides inline transforms, and the img's
               transform now belongs to the zoom/pan gestures. */
            .lightbox.on .lb-stage {
                animation: lbin .18s ease-out;
            }

            /* When the photo FLIES from its thumbnail (0.65.0), the stage
               must hold still — the flight measures real rects, and the img
               carries the motion. The backdrop and bar fade in around it. */
            .lightbox.on.flying {
                animation: lbbg .22s ease-out;
            }

                .lightbox.on.flying .lb-stage {
                    animation: none;
                }

                .lightbox.on.flying .lb-bar {
                    animation: lbfade .22s ease-out;
                }

            .lb-stage img.flying {
                transition: transform .22s cubic-bezier(.2, .7, .3, 1);
            }

        @keyframes lbin {
            from { opacity: 0; transform: scale(.965); }
            to { opacity: 1; transform: scale(1); }
        }

        @keyframes lbbg {
            from { background: rgba(11, 16, 23, 0); }
            to { background: rgba(11, 16, 23, 1); }
        }

        @keyframes lbfade {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @media (prefers-reduced-motion: reduce) {
            .lightbox.on .lb-stage,
            .lightbox.on.flying,
            .lightbox.on.flying .lb-bar {
                animation: none;
            }
        }

            .lightbox.on {
                display: flex;
            }

        .lb-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 14px;
            border-bottom: 1px solid var(--line);
            font-family: var(--chrome);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: var(--track);
            color: var(--ink-dim);
            /* Notch and status bar on a phone. */
            padding-top: calc(10px + env(safe-area-inset-top, 0px));
        }

        .lb-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }

            .lb-actions button, .lb-actions a {
                appearance: none;
                background: var(--panel-2);
                border: 1px solid var(--line);
                border-radius: 0;
                color: var(--ink);
                font: inherit;
                text-transform: uppercase;
                text-decoration: none;
                /* 34px tall: a thumb target, not a mouse target. */
                padding: 8px 12px;
                cursor: pointer;
            }

                .lb-actions button:hover, .lb-actions a:hover {
                    border-color: var(--accent-dim);
                    color: var(--accent);
                }

        /* "open ↗" is a desk tool: a new tab beside the app, raw image, back
           where you were with one click. On a phone that tab is a different
           place — the installed app hands it to Safari, no bar, no way home —
           and the viewer already pinch-zooms, so the link only got you lost
           (ba8a1750). Touch-first devices lose it; a mouse keeps it. Keyed on
           the input, not the width: a phone turned sideways is wider than the
           760px layout break and just as lost. */
        @media (hover: none) and (pointer: coarse) {
            #lbOpen {
                display: none;
            }
        }

        /* The side switch (front | back). Same chrome as the actions so the
           bar reads as one row of controls; the pressed side is inked and
           inert, the other dim and live. With one photo the group is a
           label: no border, no pointer — a bordered button that does
           nothing is exactly the ghost that was reported. */
        .lb-sides {
            display: flex;
            align-items: center;
            gap: 6px;
        }

            .lb-sides button {
                appearance: none;
                background: var(--panel-2);
                border: 1px solid var(--line);
                border-radius: 0;
                color: var(--ink-dim);
                font: inherit;
                text-transform: uppercase;
                padding: 8px 12px;
                cursor: pointer;
            }

                .lb-sides button:hover {
                    border-color: var(--accent-dim);
                    color: var(--accent);
                }

                .lb-sides button[aria-pressed="true"] {
                    color: var(--ink);
                    border-color: var(--ink-dim);
                    cursor: default;
                }

            .lb-sides.lone button {
                background: transparent;
                border-color: transparent;
                padding-left: 0;
                cursor: default;
            }

        .lb-stage {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 0;          /* or the image can push the flex item past the viewport */
            padding: 12px;
            padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
            cursor: zoom-out;
            /* Our pinch, not the browser's page-zoom; our swipe, not a
               scroll. The page behind is frozen anyway (body overflow). */
            touch-action: none;
            overflow: hidden;       /* a zoomed image pans inside the stage, never over the bar */
        }

            .lb-stage img {
                max-width: 100%;
                max-height: 100%;
                object-fit: contain;
                border-radius: 6px;
                /* zoom-in, not default: the image is a GESTURE target now —
                   still never a close target, which stays the space around
                   it. Grab cursors say "this pans" once zoomed. */
                cursor: zoom-in;
                will-change: transform;
            }

                .lb-stage img.zoomed {
                    cursor: grab;
                }

                    .lb-stage img.zoomed:active {
                        cursor: grabbing;
                    }

        /* The thumbnails say they can be enlarged. */
        .cardphotos a {
            cursor: zoom-in;
        }

        /* What a view says when it has nothing to show. Roomy on purpose — the
           point is to fill space that would otherwise read as a dead end, so
           cramping it back down would defeat the exercise. */
        .emptystate {
            padding: 22px 2px 26px;
            max-width: 46em;
        }

            .emptystate p {
                margin: 0;
                font-size: 14px;
                line-height: 1.6;
                color: var(--ink-dim);
            }

            .emptystate a {
                display: inline-block;
                margin-top: 10px;
                font-family: var(--chrome);
                font-size: 12px;
                text-transform: uppercase;
                letter-spacing: var(--track);
            }

        /* Shown only when the vault folds to two lines. Declared BEFORE the
           media query on purpose: same specificity, so whichever rule comes
           last wins, and a base rule sitting after the query would silently
           beat it at every width. */
        .onnarrow {
            display: none;
        }

        @media (max-width: 760px) {
            .grid {
                grid-template-columns: 1fr;
            }

            /* The tab strip becomes a thumb-reachable bar pinned to the bottom.
               Scan and Vault are the two you actually open on a phone, so they
               lead; the rest stay one tap away instead of a scroll away. */
            .views {
                position: fixed;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 30;
                margin: 0;
                gap: 0;
                background: var(--panel);
                border-top: 1px solid var(--line);
                border-bottom: none;
                padding-bottom: env(safe-area-inset-bottom, 0);
            }

                /* Five slots — Home, Scan, Vault, Sets, More — at ~78px each in
                   390px, which is room for a label a thumb can read. The other
                   views are not gone: they are the More sheet, which is how every
                   phone platform handles a bar with more jobs than slots. Nowrap
                   keeps a long label a clipped label rather than a second line
                   that pushes the bar over the padding the page reserves. */
                .views button {
                    flex: 1;
                    min-width: 0;
                    white-space: nowrap;
                    overflow: hidden;
                    margin-bottom: 0;
                    padding: 12px 1px;
                    min-height: 46px;
                    font-size: 10.5px;
                    letter-spacing: .02em;
                    border-bottom: none;
                    border-top: 2px solid transparent;
                }

                    .views button.overflow {
                        display: none;
                    }

                    .views button.more {
                        display: block;
                    }

            /* Toasts sit above the bar, not under it. */
            .toasts {
                bottom: calc(58px + env(safe-area-inset-bottom, 0px));
            }

                    .views button.on {
                        border-top-color: var(--ink);
                    }

                    .views button .pip {
                        margin-left: 4px;
                        padding: 0 4px;
                    }

            /* The accounts table is four columns of mostly numbers, and on a
               390px screen "0 / 100000" wrapping is what pushes a row to four
               lines. Keeping the numbers on one line each and letting only the
               actions wrap holds every row to the height of the name beside it.
               Admin is a desk job; this is the version that stays READABLE on a
               phone rather than the version that pretends it's comfortable. */
            #adminUserRows td.num {
                white-space: nowrap;
                font-size: 11.5px;
            }

            /* Clear the fixed bar, or the last row of anything — and the build
               stamp, which sits outside .wrap — is under it. On the body, so
               both clear it; the bar is 46px plus the home-indicator inset. */
            body {
                padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
            }

            .wrap {
                padding-bottom: 20px;
            }

            /* --------------------------------------------------------------
               The vault, folded.

               Five columns in 390px meant "Topps Series 1" and "Team 14" each
               wrapped, so every row was double height and you read a
               spreadsheet through a mail slot. Same cells, same click target,
               same selection checkbox — laid out as two lines instead:

                   [x]  1999 Player 14 · RC PSA 9        $518.00
                        Topps Series 1 · Team 14          listed

               Done in CSS rather than by rendering different markup, so there
               is one row builder to keep correct and rotating the phone can't
               desync anything.
               -------------------------------------------------------------- */
            #vaultRows tr {
                display: grid;
                grid-template-columns: 26px 34px minmax(0, 1fr) auto;
                grid-template-areas:
                    "sel thumb name value"
                    "sel thumb meta status";
                align-items: baseline;
                column-gap: 8px;
                padding: 8px 0;
                border-bottom: 1px solid var(--line);
            }

                #vaultRows td {
                    border: none;
                    padding: 0;
                    white-space: normal;
                }

                    #vaultRows td.selcol {
                        grid-area: sel;
                        align-self: center;
                    }

                    /* The photo spans both lines (report 8280a966). */
                    #vaultRows td.c-thumb {
                        grid-area: thumb;
                        align-self: center;
                    }

                    #vaultRows td.c-name {
                        grid-area: name;
                        font-weight: 600;
                    }

                    #vaultRows td.c-set {
                        grid-area: meta;
                        color: var(--ink-dim);
                        font-size: 12.5px;
                    }

                    /* Both folded into .c-set above — there is no column for
                       them once the row is two lines. */
                    #vaultRows td.c-team,
                    #vaultRows td.c-added {
                        display: none;
                    }

                    #vaultRows td.num {
                        grid-area: value;
                        text-align: right;
                    }

                    #vaultRows td.c-status {
                        grid-area: status;
                        text-align: right;
                        color: var(--ink-dim);
                        font-size: 12.5px;
                    }

                    /* The empty-state row spans the lot rather than landing in
                       whichever grid cell it fell into. */
                    #vaultRows td.empty {
                        grid-area: name / name / status / status;
                        text-align: left;
                    }

            /* One thing at a time. With the editor open there is no room for the
               list as well, and leaving it below means scrolling past a form to
               reach rows you can't act on while a card is open. Close brings it
               straight back. Any view the inspector is docked in (0.131.2): the
               vault, or the set a card was opened from. */
            .view.editing > .panel:not(#editorPanel) {
                display: none;
            }

            /* Column headings describe a table that isn't on screen any more.
               Sorting moves to the select beside the search box. */
            #vaultTable thead {
                display: none;
            }

            /* Search, status and sort don't fit on one 390px line — sharing it
               squeezed the search box down to "Sear". Search takes the row and
               the two selects share the next. */
            .row {
                flex-wrap: wrap;
            }

            #vaultSearch {
                flex: 1 0 100%;
            }

            #vaultStatus, #vaultSort {
                flex: 1;
                min-width: 0;
            }

            /* The box chip takes the first line whole, a bar with its x at
               the far end where a thumb finds it. */
            #vaultBox {
                flex: 1 0 100%;
                justify-content: space-between;
                border-radius: 6px;
            }

            /* Sets on a phone. Four lines of controls stood between the title
               and the first set — the three text buttons, the search, the two
               selects and the count — and the list started a screen down
               (45bb2edc: "too many buttons here… it forces an up and down
               scroll"). The two import buttons are a desktop job (a bulk
               checklist file from a file picker) and go; the count is what the
               list's own "Load more (N left)" already says. What is left is the
               title with "+ add set", the search on a line of its own and the
               two selects sharing the next — and they stay put while the list
               scrolls under them, the same as the vault's tools.
               INSIDE this block on purpose: the first cut sat after a closed
               media block and hid the import buttons at every width (0.77.0–
               0.77.1); SetsAndHomeContractTests walks the braces now. */
            #importChecklistBtn,
            #previewChecklistBtn,
            #setStats {
                display: none;
            }

            #setTools {
                position: sticky;
                top: 0;
                z-index: 5;
                background: var(--panel);
                padding-top: 6px;
                padding-bottom: 6px;
            }

            #setSearch {
                flex: 1 0 100%;
            }

            #setFilter, #setSort {
                flex: 1;
                min-width: 0;
            }

            /* --------------------------------------------------------------
               The rip tables, folded — the vault treatment for the same
               reason: six and seven columns in 390px pushed "2026 Topps
               Flagship Football · 87%" clean off the screen edge. Same
               cells, same renderer, laid out as short lines instead:

                   C&S Hobbies · Mega Box            196 · 149m
                   8/29/2026 4:21 PM                  46 sec/card
                   $100.37 · $95.10 at rip · +$35.37 on cost
                   $0.51/card · cost $0.33/card
                   2026 Topps Series 2 · 92%
                   183 of 196 finish unknown             delete
               -------------------------------------------------------------- */
            #v-rips thead {
                display: none;
            }

            #ripRecRows tr, #ripRows tr {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto;
                grid-template-areas:
                    "name  cards"
                    "sub   pace"
                    "val   val"
                    "most  most"
                    "unk   act";
                align-items: baseline;
                column-gap: 8px;
                padding: 8px 0;
                border-bottom: 1px solid var(--line);
            }

                /* A box's odds opened (0.127.0): the name cell takes the
                   whole width while the list is out, and the count and pace
                   drop under it, so eleven lines read at the screen's width
                   rather than in the 140px the name keeps beside the count.
                   Closed, the row folds exactly as above. */
                #ripRecRows tr.oddsopen {
                    grid-template-areas:
                        "name  name"
                        "cards pace"
                        "sub   sub"
                        "val   val"
                        "most  most"
                        "unk   act";
                }

                /* Value (0.127.1, the switch): no count, pace or finish
                   unknown beside the name, so the name and every line under
                   it take the whole width, and the buttons a line of their
                   own. Stats folds as above. */
                #v-rips:not([data-ripcols="stats"]) #ripRecRows tr,
                #v-rips:not([data-ripcols="stats"]) #ripRows tr {
                    grid-template-areas:
                        "name  name"
                        "sub   sub"
                        "val   val"
                        "most  most"
                        "act   act";
                }

                #ripRecRows td, #ripRows td {
                    border: none;
                    padding: 0;
                }

                    #ripRecRows td.c-name, #ripRows td.c-name {
                        grid-area: name;
                        font-weight: 600;
                    }

                        /* The box photo at the right of the name, so the name
                           and every line under it keep the row's left edge
                           (0.128.0, report 2b63d21f). */
                        #ripRecRows td.c-name .boxthumb {
                            float: right;
                            margin: 0 0 6px 10px;
                        }

                    #ripRecRows td.c-sub, #ripRows td.c-sub {
                        grid-area: sub;
                    }

                    /* The value line gets its own full-width row: it is the
                       number the fold must not bury, and it can run long once
                       at-rip and cost ride along. A sitting with no value at
                       all drops the line entirely here — a floating "—" with
                       no column heading above it explains nothing on a phone,
                       while the desktop table keeps it for column alignment. */
                    #ripRecRows td.c-val, #ripRows td.c-val {
                        grid-area: val;
                        text-align: left;
                    }

                        #ripRecRows td.c-val.novalue, #ripRows td.c-val.novalue {
                            display: none;
                        }

                    /* Right, against the row's edge: the desk's numbers read
                       from the left since 0.128.0, and the fold's count and
                       pace went with them (0.128.1). */
                    #ripRecRows td.c-cards, #ripRows td.c-cards {
                        grid-area: cards;
                        text-align: right;
                    }

                    #ripRecRows td.c-pace, #ripRows td.c-pace {
                        grid-area: pace;
                        color: var(--ink-dim);
                        font-size: 12.5px;
                        text-align: right;
                    }

                    #ripRecRows td.c-mostly, #ripRows td.c-mostly {
                        grid-area: most;
                        color: var(--ink-dim);
                        font-size: 12.5px;
                    }

                    /* The column heading that named this count is display:none
                       up there, so the count carries its own label down here. */
                    #ripRecRows td.c-unk, #ripRows td.c-unk {
                        grid-area: unk;
                        text-align: left;
                        font-size: 12.5px;
                    }

                        #ripRecRows td.c-unk::after, #ripRows td.c-unk::after {
                            content: " finish unknown";
                        }

                    /* The buttons start at the row's left edge like every line
                       above them (0.128.0, report 2b63d21f), as the Sell
                       fold's do; right-aligned, edit stood at a different x
                       under every box. */
                    #ripRecRows td.c-act, #ripRows td.c-act {
                        grid-area: act;
                        text-align: left;
                    }

                    /* On the fold the buttons share one left-aligned cluster —
                       delete's own margin keeps a thumb aimed at the cost from
                       landing on it. */

                    /* Empty-state and error rows span the whole fold. */
                    #ripRecRows td[colspan], #ripRows td[colspan] {
                        grid-column: 1 / -1;
                    }

            /* --------------------------------------------------------------
               The listing rows, folded (0.104.1, report c4f8d90b: "some of
               the text seems to be slipping off the right side of the
               screen"). Four columns and up to six buttons were wider than a
               440px screen, and the panel cut the right side off. Same cells,
               same renderer, laid out as short lines instead:

                   2026 Topps Update Series Veteran Combos Kyle Tucker /
                   Shohei Ohtani #US102
                   2026 · Kyle Tucker / Shohei Ohtani
                   leaves about $0.56 after fees and postage
                   $1.00                             listed #168797860950
                   end on eBay  mark sold  back to draft
                   edit item #  delete
               -------------------------------------------------------------- */
            #v-sell thead {
                display: none;
            }

            #v-sell #listingRows tr {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto;
                grid-template-areas:
                    "title title"
                    "price status"
                    "act   act";
                align-items: baseline;
                column-gap: 8px;
                padding: 8px 0;
                border-bottom: 1px solid var(--line);
            }

                #v-sell #listingRows td {
                    border: none;
                    padding: 0;
                    min-width: 0;
                }

                    #v-sell #listingRows td.c-title {
                        grid-area: title;
                    }

                    #v-sell #listingRows td.c-price {
                        grid-area: price;
                        text-align: left;
                    }

                    #v-sell #listingRows td.c-status {
                        grid-area: status;
                        text-align: right;
                    }

                    /* The buttons start at the left edge, where a thumb
                       reaches first, and wrap as they need. */
                    #v-sell #listingRows td.c-act {
                        grid-area: act;
                        text-align: left;
                        margin-top: 4px;
                    }

                    #v-sell #listingRows td.c-act .acts {
                        justify-content: flex-start;
                    }

                    /* Empty-state rows span the whole fold. */
                    #v-sell #listingRows td[colspan] {
                        grid-column: 1 / -1;
                    }

            .onnarrow {
                display: inline;
            }

            /* Six columns don't fit a phone; the team is the one that can
               ride along, so it moves under the player (renderChecklist
               writes it both places) and the money keeps its columns. */
            #checklistTable .cl-team {
                display: none;
            }

            #checklistTable .cl-sub {
                display: block;
                font-size: 12px;
                color: var(--ink-dim);
            }

            #checklistTable th,
            #checklistTable td {
                padding-left: 5px;
                padding-right: 5px;
            }
        }

        /* How many of this card you own. Silent at 1; loud enough to notice
           when it isn't, because that is the whole point of tracking it. */
        .qty {
            display: inline-block;
            margin-left: 7px;
            padding: 0 5px;
            border: 1px solid var(--line-strong);
            border-radius: 4px;
            font-family: var(--mono);
            font-size: 11px;
            color: var(--ink);
            vertical-align: 1px;
        }

        /* ×N: how many cards in the vault are this one (0.134.0), in the
           pocket's accent, beside the quantity pill when both apply. */
        td .copies {
            margin-left: 7px;
            font-family: var(--mono);
            font-size: 11px;
            color: var(--accent);
            white-space: nowrap;
        }

        .panel {
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 2px;
            padding: 16px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
        }

        /* The right column owns the spacing between its panels. Flex gaps skip
           hidden children, so the top panel always sits flush with the left
           column no matter which panels happen to be visible. */
        .rightcol {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        /* Panel titles carried the same whisper as every label — 12.5px mono
           uppercase — so hierarchy inside a panel was position alone. Titles
           now hold the serif tier; mono goes back to being data-chrome. */
        .panel h2 {
            margin: 0 0 12px;
            font-family: var(--serif);
            font-size: 21px;
            font-weight: 400;
            letter-spacing: 0;
            color: var(--ink);
        }

        .slots {
            display: flex;
            gap: 12px;
        }

        .slot {
            flex: 1;
        }

            .slot label {
                display: block;
                font-family: var(--chrome);
                font-size: var(--label);
                text-transform: uppercase;
                letter-spacing: var(--track);
                color: var(--ink-dim);
                margin-bottom: 6px;
            }

        .drop {
            position: relative;
            aspect-ratio: 5 / 7;
            border: 1px dashed var(--line);
            border-radius: 6px;
            background: var(--panel-2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            cursor: pointer;
            color: var(--ink-dim);
            font-size: 14px;
            text-align: center;
            padding: 8px;
        }

            .drop:hover, .drop:focus-within {
                border-color: var(--ink);
            }

            .drop img {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .drop input {
                position: absolute;
                inset: 0;
                opacity: 0;
                cursor: pointer;
            }

        .slotctl {
            display: flex;
            gap: 10px;
        }

        /* Text buttons. 10px with zero padding was a mouse target on a page
           used by thumbs; the hit box is now 32px tall without the label
           getting any louder. */
        .clear {
            margin-top: 2px;
            background: none;
            border: none;
            color: var(--ink-dim);
            font-family: var(--chrome);
            font-size: var(--label);
            text-transform: uppercase;
            letter-spacing: var(--track);
            cursor: pointer;
            padding: 6px 2px;
            min-height: 32px;
            display: none;
        }

            .clear.show {
                display: inline-block;
            }

            .clear:hover {
                color: var(--ink);
            }

        .row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 14px;
        }

        select {
            background: var(--panel);
            color: var(--ink);
            border: 1px solid var(--line-strong);
            border-radius: 3px;
            padding: 0 10px;
            font: inherit;
            height: var(--ctl);
        }

        /* The one button. Black, square, small caps — and the dealer's
           orange dot on its corner, which is the only colour it has. Shared
           by every primary action so the dot means "this is the thing to
           press" everywhere. */
        button.primary, button.save, .homeacts a.btn-accent {
            position: relative;
            background: var(--ink);
            color: var(--bg);
            border: 1px solid var(--ink);
            border-radius: 0;
            padding: 10px 16px;
            font: 600 12.5px var(--sans);
            letter-spacing: .12em;
            text-transform: uppercase;
            cursor: pointer;
            min-height: var(--ctl);
        }

        button.primary {
            flex: 1;
        }

        /* Identify & Add stays one line beside New card and the status, so
           the bench's three controls share a height on a phone too (it was
           two lines and 54px tall at 440px, report 2b63d21f). */
        #scanBtn {
            white-space: nowrap;
        }

        /* ...and its row wraps at the desk too (0.128.1, review of 0.128.0):
           once a scan's result opens, the bench is 340px wide and the one-line
           button ran 56px out of the panel into the result column. It takes a
           line of its own there, as on a phone. */
        #v-scan .row:has(> #scanBtn) {
            flex-wrap: wrap;
        }

            button.primary::after, button.save::after, .homeacts a.btn-accent::after {
                content: "";
                position: absolute;
                right: -6px;
                top: -6px;
                width: 13px;
                height: 13px;
                border-radius: 50%;
                background: var(--dot);
                box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
            }

            button.primary:hover, button.save:hover, .homeacts a.btn-accent:hover {
                background: #000;
                border-color: #000;
            }

            button.primary:disabled, button.save:disabled {
                background: var(--ink-dim);
                border-color: var(--ink-dim);
                cursor: wait;
                color: var(--bg);
            }

                button.primary:disabled::after, button.save:disabled::after {
                    background: var(--line-strong);
                }

        .hint {
            margin-top: 10px;
            font-size: 13px;
            color: var(--ink-dim);
        }

        /* A panel's standing explanation, folded. Open the first time a panel
           is seen and remembered closed once dismissed — prose that is read
           once and skimmed forever should not push the controls down a phone
           screen for ever. */
        details.about {
            margin: 10px 0 0;
        }

            details.about summary {
                cursor: pointer;
                list-style: none;
                font-family: var(--chrome);
                font-size: var(--label);
                text-transform: uppercase;
                letter-spacing: var(--track);
                color: var(--ink-dim);
                padding: 4px 0;
            }

                details.about summary::-webkit-details-marker {
                    display: none;
                }

                details.about summary::before {
                    content: "\25B8  ";
                    color: var(--ink-faint);
                }

                details.about[open] summary::before {
                    content: "\25BE  ";
                }

                details.about summary:hover {
                    color: var(--ink);
                }

            details.about .hint {
                margin: 4px 0 6px;
            }

            /* The invite how-to. Numbered rather than bulleted because it is a
               sequence you perform, not a set of facts you read. */
            ol.hint {
                margin: 10px 0 0;
                padding-left: 20px;
                line-height: 1.55;
            }

                ol.hint li {
                    margin-bottom: 5px;
                }

                ol.hint b {
                    color: var(--ink);
                    font-weight: 500;
                }

        .error {
            margin-top: 10px;
            font-size: 13px;
            color: var(--bad);
            display: none;
            white-space: pre-wrap;
        }

            .error.show {
                display: block;
            }

        /* Result — the "slab flip label" */
        #result {
            display: none;
        }

            #result.show {
                display: block;
            }

        .slabline {
            font-family: var(--chrome);
            font-size: var(--label);
            text-transform: uppercase;
            letter-spacing: var(--track);
            color: var(--ink-faint);
            border-bottom: 1px solid var(--ink);
            padding-bottom: 8px;
            margin-bottom: 10px;
        }

        .cardname {
            font-family: var(--serif);
            font-size: 26px;
            font-weight: 400;
            line-height: 1.15;
            margin: 0 0 2px;
        }

        .setline {
            color: var(--ink-dim);
            font-size: 14px;
            margin: 0 0 10px;
        }

        .badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 0 0 12px;
        }

        .badge {
            font-family: var(--chrome);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: var(--track);
            border: 1px solid var(--line);
            border-radius: 4px;
            padding: 3px 8px;
            color: var(--ink-dim);
        }

            .badge.hot {
                border-color: var(--ink);
                color: var(--ink);
            }

        .value {
            font-family: var(--serif);
            font-size: 30px;
            font-weight: 400;
        }

            .value small {
                font-size: 12px;
                font-weight: 400;
                color: var(--ink-dim);
                margin-left: 8px;
            }

        .notes {
            font-size: 13px;
            color: var(--ink-dim);
            margin-top: 8px;
        }

        .actions {
            display: flex;
            gap: 10px;
            margin-top: 14px;
            flex-wrap: wrap;
        }

            .actions a, .actions button {
                font: 500 13px var(--sans);
                background: var(--panel);
                color: var(--ink);
                border: 1px solid var(--line-strong);
                border-radius: 0;
                padding: 8px 12px;
                cursor: pointer;
                text-decoration: none;
            }

            /* A group with the primary button takes its height on every line
               (0.128.1): Save is --ctl since 0.128.0, so the editor's five
               buttons wrapped to 38px on Save's line and 34px on the next. */
            .actions:has(> button.save) > button {
                min-height: var(--ctl);
            }

                .actions a:hover, .actions button:hover {
                    border-color: var(--ink);
                }

        .alert {
            border: 1px solid var(--bad);
            border-left: 3px solid var(--bad);
            border-radius: 2px;
            background: rgba(179, 38, 30, .05);
            padding: 10px 12px;
            margin: 0 0 12px;
            font-size: 13.5px;
            line-height: 1.45;
            color: #7a1a14;
        }

            .alert.warn {
                border-color: var(--warn);
                border-left-color: var(--warn);
                color: #5c4200;
                background: rgba(143, 100, 0, .06);
            }

            .alert b {
                display: block;
                font-family: var(--chrome);
                font-size: 10px;
                letter-spacing: .14em;
                text-transform: uppercase;
                margin-bottom: 3px;
            }

        td .flag {
            color: var(--bad);
            font-weight: 700;
            margin-left: 6px;
        }

            /* Shared, not wrong — so it reads as information rather than alarm. */
            td .flag.share {
                color: var(--accent);
                font-weight: 400;
            }

            /* The word beside the "!" — a title tooltip says nothing on a phone. */
            td .flagword {
                margin-left: 4px;
                font-size: 11.5px;
                font-weight: 500;
                color: var(--bad);
                white-space: nowrap;
            }

                /* The dot beside the word — the sticker a dealer puts on a
                   card that needs a second look. */
                td .flagword::before {
                    content: "";
                    display: inline-block;
                    width: 9px;
                    height: 9px;
                    margin-right: 4px;
                    border-radius: 50%;
                    background: var(--bad-dot);
                    vertical-align: -1px;
                }

        .pricehist {
            margin-top: 14px;
            border-top: 1px solid var(--line);
            padding-top: 10px;
        }

            .pricehist h3 {
                margin: 0 0 6px;
                font-family: var(--chrome);
                font-size: var(--label);
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: var(--track);
                color: var(--ink-dim);
            }

            .pricehist div.row2 {
                display: flex;
                justify-content: space-between;
                gap: 10px;
                font-size: 13px;
                padding: 3px 0;
                border-bottom: 1px solid var(--line);
            }

            /* Your page's two addresses keep their actions beside them
               (0.128.0, report 2b63d21f): spread to the panel's edges, "copy"
               and "create" sat 1,000px from the link they act on. */
            #pageBox div.row2 {
                justify-content: flex-start;
                gap: 14px;
                align-items: baseline;
            }

            .pricehist span.src {
                color: var(--ink-dim);
                font-family: var(--mono);
                font-size: 11px;
            }

        /* ------------------------------------------------------------------
           "Why this price?" — the estimate showing its work.

           The value is the most opaque thing on a card: a model produced it and
           the collector has to take it on faith. This is the affordance that
           turns it into something you can interrogate; the answer is built only
           from records the vault already holds.
           ------------------------------------------------------------------ */
        .explain {
            margin: 0 0 14px;
        }

            .explain button {
                appearance: none;
                background: var(--panel-2);
                border: 1px solid var(--line);
                border-radius: 6px;
                color: var(--accent);
                font: 500 12.5px var(--sans);
                padding: 7px 11px;
                cursor: pointer;
            }

                .explain button:hover:not(:disabled) {
                    border-color: var(--accent-dim);
                }

                .explain button:disabled {
                    color: var(--ink-dim);
                    cursor: default;
                }

            .explain .answer {
                display: none;
                margin-top: 9px;
                background: var(--panel-2);
                border-left: 2px solid var(--ink);
                border-radius: 0 6px 6px 0;
                padding: 10px 12px;
                font-size: 13px;
                line-height: 1.55;
                white-space: pre-wrap;
            }

                .explain .answer.show {
                    display: block;
                }

                .explain .answer .src {
                    display: block;
                    margin-top: 7px;
                    font-family: var(--chrome);
                    font-size: var(--label);
                    letter-spacing: var(--track);
                    text-transform: uppercase;
                    color: var(--ink-dim);
                }

                /* The personal lines under a card's story (0.83.0) are
                   sentences about YOUR collection, not provenance labels:
                   in capitals "One of 3 Derek Jeter cards you own" reads
                   like a log line. Same size and colour, ordinary case. */
                .explain .answer .yours {
                    display: block;
                    margin-top: 4px;
                    font-size: 12.5px;
                    color: var(--ink-dim);
                }

        .basisnote {
            font-size: 12.5px;
            line-height: 1.45;
            color: var(--ink-dim);
            border-left: 2px solid var(--line);
            padding: 2px 0 2px 10px;
            margin-bottom: 14px;
        }

        /* What a single sale of a cheap card leaves (take-home, renderTakeHome):
           one muted line under the value, a press shows the estimate's parts.
           In the editor it is a whole-width row of the field grid, placed
           after Est. value; the grid flows dense so Cost basis and the fields
           after it fill Est. value's row first, and the line sits under that
           row instead of opening a hole beside the field. Hidden, it takes no
           cell, and the grid is laid out as before. */
        #editGrid {
            grid-auto-flow: row dense;
        }

            #editGrid > .takehome {
                grid-column: 1 / -1;
                margin-top: -4px;
            }

        #resultTakeHome {
            margin-top: 2px;
        }

            .takehome-line {
                appearance: none;
                background: none;
                border: 0;
                padding: 2px 0;
                font: 12.5px var(--sans);
                line-height: 1.45;
                color: var(--ink-dim);
                text-align: left;
                text-decoration: underline dotted;
                text-underline-offset: 3px;
                cursor: pointer;
            }

                .takehome-line:hover {
                    color: var(--ink);
                }

            .takehome.stale .takehome-line {
                opacity: .55;
                text-decoration: none;
                cursor: default;
            }

                .takehome.stale .takehome-line:hover {
                    color: var(--ink-dim);
                }

            .takehome-why {
                display: none;
                margin-top: 4px;
                font-size: 12.5px;
                line-height: 1.5;
                color: var(--ink-dim);
                white-space: pre-line;
                border-left: 2px solid var(--line);
                padding: 2px 0 2px 10px;
            }

                .takehome-why.show {
                    display: block;
                }

        /* The account line sits beside the wordmark and the two tools at the
           right (0.128.0, report 2b63d21f): four items spread evenly across
           the header put the account line and "report a problem" in the
           middle of nowhere. */
        #whoami {
            margin-right: auto;
        }

        #whoami a {
            color: var(--accent);
            text-decoration: none;
            margin-left: 10px;
        }

            #whoami a:hover {
                text-decoration: underline;
            }

        button.ghost {
            background: var(--panel);
            color: var(--ink-dim);
            border: 1px solid var(--line-strong);
            border-radius: 0;
            padding: 9px 12px;
            font: 500 13px var(--sans);
            cursor: pointer;
            white-space: nowrap;
            min-height: var(--ctl);
        }

            button.ghost:hover {
                color: var(--ink);
                border-color: var(--ink);
            }

        th[data-sort] {
            cursor: pointer;
            user-select: none;
        }

            th[data-sort]:hover {
                color: var(--ink);
            }

            th[data-sort] span.arrow {
                color: var(--accent);
                margin-left: 4px;
            }

        .setrow {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 0;
            border-bottom: 1px solid var(--line);
            cursor: pointer;
        }

            .setrow:hover .setname {
                text-decoration: underline;
                text-underline-offset: 3px;
            }

        .setname {
            flex: 1;
            font-size: 14px;
        }

            .setname small {
                display: block;
                color: var(--ink-dim);
                font-size: 12px;
            }

        .bar {
            width: 110px;
            height: 6px;
            background: var(--panel-2);
            border-radius: 3px;
            overflow: hidden;
        }

            .bar i {
                display: block;
                height: 100%;
                background: var(--dot);
            }

        /* Home's sets in progress, a third of the page wide: the name and its
           line take the row, the bar and its percent the line under them
           (0.128.0, report 2b63d21f). Side by side in 357px a long set name
           broke over three lines with the bar centred against them, and
           "21 to go" was left on a line of its own. */
        #homeSets .setrow {
            flex-wrap: wrap;
            row-gap: 6px;
        }

            #homeSets .setrow .setname {
                flex: 1 1 100%;
            }

            #homeSets .setrow .bar {
                flex: 1 1 auto;
                width: auto;
            }

            /* One slot for "5%" to "100%", so every bar ends at one x
               (0.128.1). */
            #homeSets .setrow .pct {
                width: auto;
                min-width: 4ch;
            }

        .pct {
            font-family: var(--mono);
            font-size: 12px;
            color: var(--ink-dim);
            width: 78px;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        /* The Sets list on a phone (0.139.0): the name takes a line of its
           own and the bar and its percent the line under it, as Home's sets
           in progress do (0.128.0). Side by side at 375px the name had 93px
           and broke a word a line; the cover took 48px more. With covers on
           the page (#setList.covers) the sleeve spans both lines. */
        @media (max-width: 760px) {
            #setList .setrow {
                display: grid;
                grid-template-columns: 1fr auto;
                column-gap: 10px;
                row-gap: 6px;
            }

            #setList .setrow .setname {
                grid-column: 1 / -1;
            }

            #setList .setrow .bar {
                width: auto;
            }

            #setList .setrow .pct {
                width: auto;
                min-width: 4ch;
            }

            #setList.covers .setrow {
                grid-template-columns: auto 1fr auto;
            }

            #setList.covers .setrow .rthumb {
                grid-column: 1;
                grid-row: 1 / span 2;
            }

            #setList.covers .setrow .setname {
                grid-column: 2 / -1;
                grid-row: 1;
            }

            #setList.covers .setrow .bar {
                grid-column: 2;
                grid-row: 2;
            }

            #setList.covers .setrow .pct {
                grid-column: 3;
                grid-row: 2;
            }
        }

        tr.need td {
            color: var(--ink-dim);
        }

        tr.have td:first-child {
            box-shadow: inset 3px 0 0 var(--good-dot);
        }

        /* Where a wanted row's tick would be (0.101.0): a word, not a tick. */
        #checklistTable td.cl-want {
            line-height: 20.25px; /* the row's line, so the word sits on it (0.128.1) */
            font-family: var(--mono);
            font-size: 10.5px;
            letter-spacing: var(--track);
            text-transform: uppercase;
            color: var(--accent);
        }

        .cardphotos {
            display: flex;
            gap: 10px;
            margin-bottom: 14px;
        }

            /* 150px, up from 92: "people really care about the item/card most
               of all" — the photos lead the editor, so they get to read as the
               card rather than as icons. The WRAPS (photo + its retake label)
               are the flex children, so the size lives on them and the photo
               fills its wrap — a percentage on the anchor resolves against the
               wrap and quietly shrank the tile to half itself. Two still fit
               a narrow phone (flex splits the row), .missing holds the same
               footprint as a real side, and the lightbox remains the
               full-size path. */
            .cardphotos > div {
                flex: 1 1 0;
                max-width: 150px;
                min-width: 0;
            }

            .cardphotos a, .cardphotos .missing {
                display: block;
                width: 100%;
                aspect-ratio: 5 / 7;
                border: 1px solid var(--line);
                border-radius: 5px;
                overflow: hidden;
                background: var(--panel-2);
            }

                .cardphotos a:hover {
                    border-color: var(--ink);
                }

            .cardphotos img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

            .cardphotos .missing {
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                font-family: var(--chrome);
                font-size: 9px;
                letter-spacing: .1em;
                text-transform: uppercase;
                color: var(--ink-dim);
                padding: 6px;
            }

        /* The card's copies (CardTwins, 0.134.0), each captioned with its box;
           a checklist row's own copies stand in when the card has none. A
           horizontal strip — native scroll IS the swipe on a phone. */
        #copyStrip {
            display: none;
            align-items: center;
            gap: 8px;
            margin: -6px 0 14px;
            overflow-x: auto;
            padding-bottom: 4px;
        }

            #copyStrip .striplabel {
                font-family: var(--chrome);
                font-size: 10px;
                letter-spacing: .08em;
                text-transform: uppercase;
                color: var(--ink-dim);
                white-space: nowrap;
                flex: 0 0 auto;
            }

            #copyStrip button {
                flex: 0 0 auto;
                width: 46px;
                aspect-ratio: 5 / 7;
                padding: 0;
                border: 2px solid var(--line);
                border-radius: 5px;
                overflow: hidden;
                background: var(--panel-2);
                cursor: pointer;
                color: var(--ink-dim);
                font-family: var(--mono);
                font-size: 10px;
            }

                #copyStrip button:hover {
                    border-color: var(--accent-dim);
                }

                #copyStrip button.current {
                    border-color: var(--accent);
                    cursor: default;
                }

                #copyStrip button img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                }

            /* A copy with its caption (0.134.0): the box it came out of on up
               to two lines ("Target" / "10/17/2026"), the day it was scanned
               or its sale word on one more; anything longer is cut with an
               ellipsis, and the hover carries it whole. */
            #copyStrip .copy {
                display: flex;
                flex-direction: column;
                align-items: center;
                flex: 0 0 auto;
                width: 84px;
            }

                #copyStrip .copycap,
                #copyStrip .copywhen {
                    max-width: 84px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    font-family: var(--mono);
                    font-size: 10px;
                    line-height: 13px;
                    color: var(--ink-dim);
                    text-align: center;
                }

                #copyStrip .copycap {
                    white-space: normal;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow-wrap: anywhere;
                }

                #copyStrip .copy.current .copycap {
                    color: var(--accent);
                }

                #copyStrip .copywhen.listed,
                #copyStrip .copywhen.sold {
                    text-transform: uppercase;
                    letter-spacing: var(--track);
                }

                #copyStrip .copywhen.listed {
                    color: var(--accent);
                }

        /* The box a card counts in (0.90.0), as a line of text with Move... and
           Take out beside it (0.110.0, report b014b992: "Why is there a dropdown
           where it says box?"); the picker is put away until one of them is
           pressed. The select is 16px because iOS zooms the page for anything
           smaller. */
        #editorBox {
            margin: -4px 0 14px;
        }

            #editorBox .said {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 0 10px;
            }

            #editorBox .said .name {
                flex: 1 1 260px;
                min-width: 0;
                font-size: 13px;
                color: var(--ink);
            }

            /* The buttons, one unit: at the right of the name where there is
               room, on a line of their own under it where there is not. */
            #editorBox .said .acts {
                display: flex;
                gap: 10px;
                margin-left: auto;
            }

            #editorBox .said button {
                margin-top: 0;
                white-space: nowrap;
            }

            #editorBox .lbl, #editorBox label {
                display: flex;
                align-items: center;
                gap: 10px;
                font-family: var(--chrome);
                font-size: 10px;
                letter-spacing: .08em;
                text-transform: uppercase;
                color: var(--ink-dim);
            }

            #editorBox select {
                flex: 1 1 auto;
                min-width: 0;
                font: 16px var(--sans);
                letter-spacing: 0;
                text-transform: none;
            }

        /* The card's copies in its box (0.108.0): the scan notice's strip,
           in the editor. Red edge while this copy is asked about, green once
           it is answered, plain on the first copy. */
        #editorRepeat {
            margin: -4px 0 14px;
            padding: 8px 10px;
            background: var(--panel-2);
            border-left: 3px solid var(--line);
            border-radius: 0 6px 6px 0;
            font-size: 13px;
        }

            #editorRepeat.asking {
                border-left-color: var(--bad);
            }

            #editorRepeat.settled {
                border-left-color: var(--good);
            }

        .editgrid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
        }

            /* One package to a line, in Settings' What you ship in (report
               6e9cc087). auto-fill keeps the empty tracks, so the envelope's
               four cells and Ground Advantage's five stand in the same columns
               as the full grids above them instead of stretching across the
               row. Same minimum as .editgrid, or the columns part. */
            .editgrid.pkgrow {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }

            /* Each package's name, 12px under the block above like every
               other hint in the form (What a sale costs you, What you ship in). */
            .hint.pkghead {
                margin: 12px 0 6px;
            }

            .editgrid label, label.fullwidth {
                display: block;
                font-family: var(--chrome);
                font-size: 10px;
                text-transform: uppercase;
                letter-spacing: .12em;
                color: var(--ink-dim);
            }

        label.fullwidth {
            margin-top: 10px;
        }

            .editgrid input, .editgrid select, label.fullwidth textarea, #vaultSearch, #setSearch, #friendSearch {
                display: block;
                width: 100%;
                margin-top: 4px;
                background: var(--panel);
                color: var(--ink);
                border: 1px solid var(--line-strong);
                border-radius: 3px;
                padding: 7px 9px;
                font: 13px var(--sans);
                letter-spacing: 0;
                text-transform: none;
            }

            /* Inputs and selects apply vertical padding differently (Windows
               especially), so sharing padding still leaves a select's text
               floating off-center next to its input neighbours. Identical
               fixed boxes make the grid line up; a select centers its text
               within its height on its own. Textareas keep their auto height. */
            .editgrid input, .editgrid select {
                box-sizing: border-box;
                height: 32px;
            }

            /* The three search boxes share the rule above for their look, but
               they stand in a row of selects and buttons, not in the editor's
               grid: the control height, and no top margin. At 32px with 4px
               above, the Sets search sat 6px below the selects beside it. */
            #vaultSearch, #setSearch, #friendSearch {
                height: var(--ctl);
                margin-top: 0;
            }

            /* A text box standing in a row of controls with no rule of its own
               — Scanner's printed-signature fields, the email change, the
               referral link, Admin's repair — was the browser's 21px box
               beside a 38px button. The search boxes' look, the row's height. */
            .row > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
                height: var(--ctl);
                background: var(--panel);
                color: var(--ink);
                border: 1px solid var(--line-strong);
                border-radius: 3px;
                padding: 0 9px;
                font: 13px var(--sans);
            }

            /* The other half of "off center", measured from a problem report's
               snapshot: a control whose label wraps to two lines sits 15px
               lower than a neighbour whose label fits on one — the row's
               controls didn't share a bottom edge. Each cell is a flex column
               and the control takes the slack ABOVE itself (margin-top auto),
               so label text stays at the top, controls align at the bottom,
               and the flex gap keeps the 4px breathing room the old margin
               provided in the tallest cell. */
            .editgrid label {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            .editgrid label > input, .editgrid label > select {
                margin-top: auto;
            }

            /* Money fields read as money. The input stays type=number — a
               browser rejects "$11.00" in one, and the save path parses it as a
               number — so the currency mark sits beside the field rather than
               inside its value. Reported as "can we have est value as currency?"
               against a field showing a bare 11. */
            .editgrid label > .money {
                display: flex;
                align-items: center;
                gap: 6px;
                margin-top: auto;
            }

            .editgrid label > .money::before {
                content: attr(data-cur);
                color: var(--muted);
                font-variant-numeric: tabular-nums;
            }

            .editgrid label > .money > input {
                flex: 1;
                min-width: 0;
                margin-top: 0;
            }

            /* Use $0.28, in the Cost basis field's eyebrow row while its box
               offers a cost (0.110.0, a70e3d04), so the field keeps its whole
               width for "0.28 from the box": beside the field it left room for
               "0.36 from t" at 1024px and less in the inspector. The button is
               padded out to a thumb's hit box and pulled back in with negative
               margins, so the eyebrow row stays the height of every other. */
            .editgrid label > .head {
                display: flex;
                justify-content: space-between;
                align-items: baseline;
                gap: 8px;
            }

            #edCostUse {
                position: relative;
                min-height: 0;
                line-height: 12px;
                margin: -10px 0;
                padding: 10px 2px;
                white-space: nowrap;
                color: var(--accent);
            }

            label.fullwidth textarea {
                resize: vertical;
                font-family: inherit;
            }

        .checkrow {
            display: flex;
            gap: 18px;
            margin-top: 12px;
        }

        label.check {
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: var(--chrome);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .12em;
            color: var(--ink-dim);
            cursor: pointer;
        }

            label.check input {
                accent-color: var(--ink);
            }

            /* A choice that runs to two lines hangs from its own text, the
               dot beside the first line (0.128.0, report 2b63d21f): as a
               block, the second line ran back under the dot. The words are
               one span, so the flex row has two items, not one per word run. */
            label.check.choice {
                align-items: flex-start;
            }

                label.check.choice input {
                    flex: none;
                    margin: 0 2px 0 0;
                }

        /* The rips rows' delete: a ghost, but a visibly DESTRUCTIVE ghost,
           held a full gap away from the box-cost button beside it. */
        button.ghost.ripdel {
            color: var(--bad);
            margin-left: 14px;
        }

        /* The box itself (0.75.0): the packaging thumbnail beside a recorded
           box's name, and the odds-panel readout — "box says ~6, you logged
           2" — as a quiet second line under it. */
        .boxthumb {
            height: 40px;
            width: auto;
            border-radius: 3px;
            border: 1px solid var(--line);
            vertical-align: middle;
            margin-right: 8px;
            cursor: zoom-in;
        }

        .boxline {
            display: block;
            font-weight: 400;
            font-size: 12px;
            color: var(--ink-dim);
            margin-top: 3px;
            line-height: 1.4;
        }

            .boxline b {
                color: var(--ink);
                font-weight: 600;
            }

            /* The picked format the box's own printing contradicts (0.85.1). */
            .boxline.clash {
                color: var(--bad);
            }

            /* The sentence and its use / keep answers wrap as one run, each
               piece starting flush left on a new line (0.128.0, report
               2b63d21f): inline, "keep Mega Box" fell to a line of its own
               5px in from the sentence above it. Its own class: the red
               repeats line is a .clash too, and its names must wrap as words. */
            .boxline.fmtline {
                display: flex;
                flex-wrap: wrap;
                align-items: baseline;
                gap: 6px 8px;
            }


            /* A box's name on the Rips row opens its cards in the vault
               (0.107.0): a link, in the name's own weight and colour. */
            td.c-name a.boxopen {
                color: inherit;
                text-decoration: underline;
                text-underline-offset: 3px;
                text-decoration-color: var(--line-strong);
            }

                td.c-name a.boxopen:hover {
                    text-decoration-color: var(--ink);
                }

            /* A doubled card's name on the Rips row. It opens that card's
               copies, so it reads as a link inside the sentence (0.90.0). */
            .boxline button.copylink {
                background: none;
                border: 0;
                margin: 0;
                padding: 3px 0;
                font: inherit;
                letter-spacing: 0;
                text-transform: none;
                color: inherit;
                text-decoration: underline;
                text-underline-offset: 2px;
                cursor: pointer;
                /* A long name wraps as words (0.127.0): as a block it moved
                   whole to the next line and left its comma behind. Flush
                   left when it does: a button centres its text, and the
                   second line sat in the middle (0.128.0, report 2b63d21f). */
                white-space: normal;
                text-align: left;
            }

            /* The box's odds, folded (0.127.0, report 3aeb6827): three lines
               or more sit behind their count — "box says 11 parallel lines ▸,
               you logged 11" — a link inside the sentence the way a doubled
               card's name is, and the list opens under the line, one line
               each, in the name cell at every width. One or two lines read in
               full as they always did. */
            .boxline button.oddstog {
                background: none;
                border: 0;
                margin: 0;
                padding: 3px 0;
                font: inherit;
                letter-spacing: 0;
                text-transform: none;
                color: var(--ink);
                text-decoration: underline;
                text-underline-offset: 2px;
                cursor: pointer;
                white-space: normal;
                text-align: left;
            }

                .boxline button.oddstog::after {
                    content: " \25B8";
                    color: var(--ink-faint);
                }

                .boxline button.oddstog.open::after {
                    content: " \25BE";
                }

            .boxline ul.oddslist {
                display: none;
                margin: 4px 0 2px;
                padding-left: 14px;
            }

                .boxline ul.oddslist.open {
                    display: block;
                }

                .boxline ul.oddslist li {
                    margin: 1px 0;
                }

        button.danger {
            color: var(--bad);
        }

            button.danger:hover {
                border-color: var(--bad);
            }

        tr.clickable {
            cursor: pointer;
        }

            tr.clickable:hover td {
                background: var(--panel-2);
            }

        /* The row you have open in the editor. Was a 2px inset line, which on a
           dark table is close to invisible — and the whole job of this state is
           to answer "which of these am I editing?" from across the page. */
        tr.selected td {
            background: var(--panel-2);
            box-shadow: inset 0 1px 0 var(--line-strong), inset 0 -1px 0 var(--line-strong);
        }

            tr.selected td:first-child {
                box-shadow: inset 4px 0 0 var(--dot), inset 0 1px 0 var(--line-strong), inset 0 -1px 0 var(--line-strong);
            }

            tr.selected td.c-name {
                color: var(--ink);
                font-weight: 600;
            }

        /* ------------------------------------------------------------------
           The editor is not a peer of the list it came from.

           Both were the same panel — same fill, same border, same weight — so
           opening a card gave you two identical slabs and no signal about which
           one you were working in. The accent edge and the lifted fill say "this
           is the thing you are in"; the list below stays a list.
           ------------------------------------------------------------------ */
        #editorPanel {
            border-color: var(--line);
            border-top: 2px solid var(--ink);
            background: var(--panel);
        }

            /* The heading stays pinned while the form scrolls, carrying a
               Close (report 970b355c: on a phone the only Close sat below
               twenty fields, a long scroll from anywhere). Sticky to whatever
               scrolls the editor: the page on a phone, the inspector's own
               box at rail widths. It spans the panel edge to edge (the
               panel's 16px padding, undone) so the form slides under an
               opaque strip, and it clears an installed iPhone's status bar. */
            #editorPanel > .vaulthead {
                position: sticky;
                top: env(safe-area-inset-top, 0px);
                z-index: 4;
                margin: -16px -16px 12px;
                padding: 12px 16px 10px;
                background: var(--panel);
                border-bottom: 1px solid var(--line);
                align-items: center;
            }

                /* Name and Close share the first line, the scan date takes
                   the second: the strip stays two short lines, and Close
                   sits beside the card it closes rather than under a date. */
                #editorPanel > .vaulthead #editorTitle {
                    flex: 1 1 auto;
                    min-width: 0;
                }

                #editorPanel > .vaulthead .edclose {
                    flex: none;
                }

                #editorPanel > .vaulthead #editorMeta {
                    order: 3;
                    flex-basis: 100%;
                }

        /* ------------------------------------------------------------------
           D3: rail | vault | inspector. At rail widths the editor stops being
           a panel that shoves the list away and becomes a persistent right-hand
           inspector: the list stays where you were, the row stays highlighted,
           and closing is no longer a navigation. Same markup, moved by CSS —
           the 0.35.0 rail trick one level down. The gate matches the rail's
           (1200px) so "desktop" means one thing. Below it, nothing changes:
           the phone's full-width editor is right, and the tablet keeps the
           stacked panels it has today.

           The inspector scrolls INSIDE itself (sticky + max-height): a card's
           form plus price history outruns any viewport, and the page scrollbar
           must keep belonging to the list. overscroll-behavior keeps a wheel
           at the inspector's end from grabbing the page.
           ------------------------------------------------------------------ */
        @media (min-width: 1200px) {
            /* Whichever view the inspector is docked in (0.131.2, report
               d8ed8f0f): the vault, or the set a card was opened from, whose
               checklist then sits in the left column beside the card. */
            .view.editing.on {
                display: grid;
                grid-template-columns: minmax(0, 1fr) 380px;
                gap: 18px;
                align-items: start;
            }

                .view.editing.on > #editorPanel {
                    order: 2;
                    position: sticky;
                    top: 16px;
                    max-height: calc(100vh - 32px);
                    overflow-y: auto;
                    overscroll-behavior: contain;
                }

                    /* Pinned inside the inspector, a sticky heading stops at
                       the panel's CONTENT edge, 16px down - the form showed
                       through the gap above it. Undo the padding here; on a
                       phone the page scrolls and there is no padding to undo. */
                    .view.editing.on > #editorPanel > .vaulthead {
                        top: -16px;
                    }
        }

        /* A card opening over one left open earlier: the old card's content is
           hidden, not removed, so the panel keeps its height and the new one
           lands without a jump. The heading reads "Opening…" meanwhile. */
        #editorPanel.opening > :not(.vaulthead) {
            visibility: hidden;
        }

        /* The card being edited, named in the heading. "Edit card" is true of
           every card and therefore tells you nothing. */
        #editorTitle {
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 0;
            text-transform: none;
            color: var(--ink);
        }

            #editorTitle .eyebrow {
                display: block;
                font-family: var(--chrome);
                font-size: 11px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: .14em;
                color: var(--ink-faint);
                margin-bottom: 3px;
            }

        th.selcol, td.selcol {
            width: 22px;
            padding-right: 0;
        }

        /* The vault row's photo (report 8280a966). A block, so an empty
           sleeve (no front) takes the same room as a photo. */
        th.thumbcol, td.c-thumb {
            width: 34px;
            padding-right: 0;
        }

            #vaultRows td.c-thumb .rthumb {
                display: block;
                box-sizing: border-box;
                width: 34px;
            }

            th.selcol input, td.selcol input {
                accent-color: var(--ink);
                cursor: pointer;
                display: block;
                margin: 0;
            }

            /* A row's cells start at the top since 0.128.0, so the box sat on
               the cell's padding and 3.5px above the name's letters (0.128.1):
               it moves down onto the first line. The phone grid aligns its own. */
            @media (min-width: 761px) {
                td.selcol input {
                    margin-top: 3.5px;
                }
            }

        #batchOut {
            display: none;
            margin-top: 12px;
            border: 1px solid var(--line);
            border-left: 3px solid var(--ink);
            border-radius: 2px;
            padding: 10px 12px;
            font-size: 12.5px;
            line-height: 1.6;
        }

            #batchOut b {
                display: block;
                font-family: var(--chrome);
                font-size: var(--label);
                letter-spacing: var(--track);
                text-transform: uppercase;
                color: var(--ink-dim);
                margin-bottom: 4px;
            }

            #batchOut .fail {
                color: var(--bad);
            }

            #batchOut .note {
                color: var(--ink-dim);
                margin-top: 4px;
            }

        .listingbox {
            display: none;
            margin-top: 16px;
            border-top: 1px solid var(--line);
            padding-top: 14px;
        }

            .listingbox.show {
                display: block;
            }

            /* The box's state row (0.106.0): a sentence beside a button, with
               the item # linked inside the sentence rather than drawn as a
               button, which is what .actions makes of a bare link. */
            #listingState span {
                align-self: center;
                font-size: 13px;
            }

                #listingState span a {
                    font: inherit;
                    background: none;
                    border: 0;
                    padding: 0;
                    color: var(--accent);
                    text-decoration: underline;
                }

            /* A draft's Change price button (0.109.0), inline after the Buy
               It Now line of the pricing field, and the line under a live
               listing's price that says the price is eBay's. */
            #listingPricing .clear {
                margin: 0 0 0 10px;
                vertical-align: middle;
            }

            /* The line above the price (0.120.0): the numbers the start was chosen from. */
            #listingPricing .from {
                color: var(--ink-3);
            }
            #listingPricing .note {
                display: block;
                margin-top: 6px;
                color: var(--ink-3);
            }

        .fieldrow {
            margin-bottom: 14px;
        }

        .fieldlabel {
            font-family: var(--chrome);
            font-size: var(--label);
            text-transform: uppercase;
            letter-spacing: var(--track);
            color: var(--ink-dim);
            margin-bottom: 5px;
        }

        .fieldval {
            background: var(--panel-2);
            border: 1px solid var(--line);
            border-radius: 6px;
            padding: 9px 11px;
            font: 13px/1.5 var(--mono);
            white-space: pre-wrap;
            word-break: break-word;
        }

        #titleCount {
            color: var(--accent);
            letter-spacing: 0;
        }

            #titleCount.over {
                color: var(--bad);
            }

        table.specifics {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

            table.specifics td {
                padding: 4px 8px;
                border-bottom: 1px solid var(--line);
                vertical-align: top;
            }

                table.specifics td:first-child {
                    color: var(--ink-dim);
                    width: 45%;
                }

        .warnings {
            margin-bottom: 14px;
        }

            .warnings div {
                font-size: 13px;
                color: var(--warn);
                border-left: 2px solid var(--warn);
                padding: 4px 10px;
                margin-bottom: 6px;
            }

        #listingPreview {
            width: 100%;
            height: 620px;
            margin-top: 10px;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: #fff;
        }

        pre.listing {
            display: none;
            margin: 12px 0 0;
            padding: 12px;
            background: var(--panel-2);
            border: 1px solid var(--line);
            border-radius: 6px;
            font: 12px/1.5 var(--mono);
            white-space: pre-wrap;
            color: var(--ink);
        }

            pre.listing.show {
                display: block;
            }

        /* Vault table */
        .vaulthead {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }

            /* A heading's count sits beside its title, and anything after it
               (a select, a button) at the right (0.128.0, report 2b63d21f).
               Spread evenly, a title, a count and a control put the count in
               the middle of the panel: the sittings' at x 803 of 1,108. */
            .vaulthead > .stats {
                margin-right: auto;
            }

        .stats {
            font-family: var(--chrome);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: var(--track);
            color: var(--ink-dim);
        }

            .stats b {
                color: var(--ink);
                font-weight: 600;
            }

        /* Help view: reference prose. Measure capped where lines stay readable;
           section heads reuse the app's eyebrow voice so Help looks like the
           app explaining itself, not a pasted-in document. */
        #v-help .helpbody {
            max-width: 68ch;
        }

            #v-help .helpbody h3 {
                font-family: var(--serif);
                font-size: 20px;
                font-weight: 400;
                text-transform: none;
                letter-spacing: 0;
                color: var(--ink);
                margin: 26px 0 8px;
            }

            #v-help .helpbody p {
                font-size: 14.5px;
                line-height: 1.55;
                margin: 0 0 10px;
            }

            /* Numbered steps (Selling on eBay, 0.112.0), in the prose's voice. */
            #v-help .helpbody ol {
                font-size: 14.5px;
                line-height: 1.55;
                margin: 0 0 10px;
                padding-left: 1.4em;
            }

                #v-help .helpbody ol li {
                    margin: 0 0 8px;
                }

            #v-help .helpbody h3[id] {
                scroll-margin-top: 72px;
            }

        .helptable {
            border-collapse: collapse;
            width: 100%;
            margin: 8px 0 10px;
            font-size: 13.5px;
        }

            .helptable th, .helptable td {
                text-align: left;
                padding: 6px 12px 6px 0;
                border-bottom: 1px solid var(--line);
                vertical-align: top;
            }

            .helptable th {
                font-family: var(--chrome);
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: .1em;
                color: var(--ink-dim);
            }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            font-size: 13.5px;
        }

        th {
            text-align: left;
            font-family: var(--chrome);
            font-size: var(--label);
            text-transform: uppercase;
            letter-spacing: var(--track);
            color: var(--ink-dim);
            font-weight: 600;
            padding: 6px 8px;
            border-bottom: 1px solid var(--line);
        }

        /* A row's cells start on one line (0.128.0, report 2b63d21f). The
           default centres each cell in the row's height, so a Rips row's
           name, date, value and buttons began at five heights 35px apart. */
        td {
            padding: 7px 8px;
            border-bottom: 1px solid var(--line);
            vertical-align: top;
        }

            /* Numbers read from the left like every other column, header and
               all (same report: "Value header and column should be left
               justified"); tabular figures still stack the digits. */
            td.num {
                text-align: left;
                font-variant-numeric: tabular-nums;
            }

        /* The per-card line under a Rips row's value (report 714fa7a8): value
           per card, and cost per card where a box cost is set. A line of its
           own in both layouts, small and dim like the pace, so the value
           column keeps its width at the desk and the phone fold's value row
           reads as two short lines rather than one long one. Neither figure
           breaks from its unit: the table gives the column the width the
           line needs, as it does the pace below, which otherwise wrapped to
           "50" over "sec/card" even at 1280px. */
        #ripRecRows .c-percard, #ripRows .c-percard {
            display: block;
            color: var(--ink-dim);
            font-size: 12.5px;
            white-space: nowrap;
        }

        /* Every box with a cost, added up (0.117.0), under the Recorded boxes
           heading. Since 0.127.0 (report 3aeb6827) a strip of five labelled
           figures under a one-line caption, not a sentence: "am I making money
           ripping?" is answered by five numbers, and a labelled number is
           found faster than a word in a line. The figures wrap at a phone's
           width; the sentence lives on as the strip's tooltip. */
        #ripLedgerTotal {
            margin: 10px 0 0;
            display: flex;
            flex-wrap: wrap;
            gap: 6px 26px;
            align-items: flex-end;
        }

            #ripLedgerTotal .cap {
                flex-basis: 100%;
                font-size: 12.5px;
                color: var(--ink-dim);
            }

            #ripLedgerTotal .fig {
                min-width: 0;
            }

                #ripLedgerTotal .fig .l {
                    display: block;
                    font-family: var(--chrome);
                    font-size: 10.5px;
                    letter-spacing: .12em;
                    text-transform: uppercase;
                    color: var(--ink-dim);
                    white-space: nowrap;
                }

                #ripLedgerTotal .fig b {
                    display: block;
                    font-family: var(--serif);
                    font-weight: 400;
                    font-size: 22px;
                    line-height: 1.15;
                    color: var(--ink);
                    font-variant-numeric: tabular-nums;
                    white-space: nowrap;
                }

                #ripLedgerTotal .fig.good b {
                    color: var(--good);
                }

                #ripLedgerTotal .fig.bad b {
                    color: var(--bad);
                }

        #ripRecRows td.c-pace, #ripRows td.c-pace {
            white-space: nowrap;
        }

        /* Value or Stats (0.127.1, report db133765): the Rips switch shows the
           value, or the count, the pace and the finish unknown, never both.
           The heading cells carry the same classes as the cells under them,
           so a column goes whole; on the phone fold an empty grid area simply
           closes up. An attribute, since showView rewrites the view's class.
           Every width, one rule. */
        #v-rips:not([data-ripcols="stats"]) .c-cards,
        #v-rips:not([data-ripcols="stats"]) .c-pace,
        #v-rips:not([data-ripcols="stats"]) .c-unk,
        #v-rips[data-ripcols="stats"] .c-val {
            display: none;
        }

        /* A box's three buttons on one line at the desk (0.127.1, report
           db133765: "the buttons are a little funky"). The column was
           narrower than the three, so edit, box cost and delete stacked at
           three widths and set the row's height. The phone fold keeps its own
           wrapping cluster. */
        @media (min-width: 761px) {
            #ripRecRows td.c-act {
                white-space: nowrap;
            }

        }

        /* Where the table has room (1200px and up, beside the rail): the box
           photo in a gutter of its own (0.128.0, report 2b63d21f). Inline, it
           pushed the name's first line 49px in and the second wrapped back
           under it. Once any box has a photo every name keeps the gutter, so
           the names still start at one x down the table. Between 761 and
           1199px the gutter and the wide Mostly column made the table 890px
           (961 in Stats) and the page scrolled sideways on an iPad (0.128.1,
           review of 0.128.0); there the photo floats at the name's right, as
           on a phone. */
        @media (min-width: 1200px) {
            #ripRecRows:has(.boxthumb) td.c-name {
                position: relative;
                padding-left: 62px;
            }

                #ripRecRows:has(.boxthumb) td.c-name .boxthumb {
                    position: absolute;
                    left: 8px;
                    top: 7px;
                    margin: 0;
                }

            /* "2026 Panini Prizm Baseball · 96%" broke over three lines in a
               115px column. */
            #ripRecRows td.c-mostly, #ripRows td.c-mostly {
                min-width: 150px;
            }
        }

        @media (min-width: 761px) and (max-width: 1199px) {
            #ripRecRows td.c-name .boxthumb {
                float: right;
                margin: 0 0 6px 10px;
            }
        }

        /* The cost button in a slot of one width, at every width (0.128.0,
           report 2b63d21f): it read "box cost?", "box $0.00" or "box $40.00"
           at three widths, so delete stood at x 1403, 1407 and 1414 down the
           table, and 190, 194 and 201 on a phone. Edit and delete never change
           their words. A box dearer than $999.99 still widens its slot. */
        #ripRecRows td.c-act button.ripcost {
            min-width: 104px;
        }

        /* ...but not in the phone's Stats fold (0.128.1, review of 0.128.0):
           there the buttons sit in a column beside the name, and the wider
           slot took 20px from every box name, so every row wrapped once more. */
        @media (max-width: 760px) {
            #v-rips[data-ripcols="stats"] #ripRecRows td.c-act button.ripcost {
                min-width: 0;
            }
        }

        /* The Sell tab's listing rows (renderListings). At desk widths the
           title column keeps room to breathe and the action buttons wrap in a
           left-aligned row; the phone block below folds the whole row. The
           cells carry only classes (0.104.1), so these rules decide.
           Left since 0.128.0 (report 2b63d21f): right-aligned, each row broke
           its actions where its own words ran out, so the first action (then
           "copy title", gone since report a3bc2148) began at x 1103, 1015,
           1015 and 1053 down the list. From the left, the first action starts
           at one x on every row. */
        #listingRows td.c-title {
            min-width: 160px;
        }

        #listingRows td.c-act {
            text-align: left;
            padding-top: 0; /* the button's own padding puts its label on the title's line (0.128.1) */
        }

        #listingRows .acts {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 10px;
            justify-content: flex-start;
        }

        /* The Sell header's two boxes, which rows and in what order
           (0.111.0), stay side by side and wrap to a line as a pair. */
        #v-sell .listpick {
            display: inline-flex;
            gap: 6px;
            white-space: nowrap;
        }

        #listingRows td.c-status {
            white-space: nowrap;
        }

        .empty {
            color: var(--ink-dim);
            font-size: 13.5px;
            padding: 10px 8px;
        }

        a.plain {
            color: var(--accent);
            text-decoration: none;
        }

            a.plain:hover {
                text-decoration: underline;
            }

        :focus-visible {
            outline: 2px solid var(--dot);
            outline-offset: 2px;
        }

        /* ---- Command palette (D4) ----
           Top-anchored, not centered: results grow and shrink as you type, and
           a centered box would bounce its own input around. Above the issue
           overlay (210) — the palette can be summoned from anywhere and must
           never open UNDER something. */

        .pal-overlay {
            position: fixed;
            inset: 0;
            z-index: 220;
            background: rgba(28, 28, 28, .42);
            padding-top: 12vh;
        }

        .pal {
            width: min(560px, calc(100vw - 32px));
            margin: 0 auto;
            background: var(--panel);
            border: 1px solid var(--ink);
            border-radius: 2px;
            box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
            overflow: hidden;
        }

            .pal input {
                width: 100%;
                border: none;
                border-bottom: 1px solid var(--line);
                border-radius: 0;
                background: transparent;
                padding: 14px 16px;
                font-size: 16px;   /* ≥16px: iOS zooms smaller inputs on focus */
            }

                .pal input:focus {
                    outline: none;
                }

        .pal-results {
            max-height: min(48vh, 420px);
            overflow-y: auto;
            overscroll-behavior: contain;
        }

            .pal-results .pal-head {
                padding: 8px 16px 2px;
                font-family: var(--chrome);
                font-size: 10.5px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: .14em;
                color: var(--ink-dim);
            }

            .pal-results .pal-row {
                display: flex;
                align-items: baseline;
                gap: 10px;
                padding: 8px 16px;
                cursor: pointer;
            }

                .pal-results .pal-row .t {
                    flex: 0 1 auto;
                    min-width: 0;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

                .pal-results .pal-row .s {
                    flex: 1 1 auto;
                    min-width: 0;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    color: var(--ink-dim);
                    font-size: 12.5px;
                    text-align: right;
                }

                .pal-results .pal-row.sel {
                    background: var(--panel-2);
                    box-shadow: inset 3px 0 0 var(--dot);
                }

            .pal-results .pal-none {
                padding: 14px 16px;
                color: var(--ink-dim);
            }

        .pal-hint {
            padding: 8px 16px;
            border-top: 1px solid var(--line);
            font-family: var(--mono);
            font-size: 10.5px;
            letter-spacing: .08em;
            color: var(--ink-dim);
        }

        /* The discoverable half of Ctrl-K, next to "report a problem". Hidden
           on touch-narrow screens: no hardware keyboard, no palette. */
        #palBtn {
            display: none;
        }

        @media (min-width: 1200px) {
            #palBtn {
                display: inline-block;
            }
        }

        /* Your problem reports (Settings): when, what and the badge on one
           line; the answer, and an open-card button, under the what and
           starting where it starts (0.128.0, report 2b63d21f). The answer was
           a grey box spanning the row from the date's edge, a box inside the
           list beginning 177px left of the words it answers. */
        .myrep {
            display: grid;
            grid-template-columns: 13em minmax(0, 1fr) auto;
            column-gap: 8px;
            align-items: baseline;
            padding: 7px 0;
            border-bottom: 1px solid var(--line);
        }

            .myrep > .hint {
                margin: 0;
            }

            .myrep > button.ghost, .myrep > .myrep-answer {
                grid-column: 2 / -1;
                justify-self: start;
                margin-top: 6px;
            }

            .myrep > .myrep-answer {
                padding: 1px 0 1px 10px;
                border-left: 2px solid var(--good);
            }

            #myReportsList > button.ghost + div {
                margin-top: 8px;
            }

        /* A phone: the date over the words, the badge beside them, and the
           answer under them at the same left edge. */
        @media (max-width: 760px) {
            .myrep {
                grid-template-columns: minmax(0, 1fr) auto;
            }

                .myrep > .hint {
                    grid-column: 1 / -1;
                }

                .myrep > button.ghost, .myrep > .myrep-answer {
                    grid-column: 1 / -1;
                }
        }

        /* ---- Sub-tabs (Settings, Admin) ----
           One group of panels on screen at a time — seven same-looking
           sections in one scroll was the report, three times over. The row
           borrows the rail's voice (mono, uppercase, accent for the active
           one) so orientation is typographic, not positional. .taboff hides
           with !important on purpose: gated panels keep their own inline
           display for "does this section exist for this account", and the
           tab's class must win over an inline "block" when the group is
           inactive. */

        .subnav {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

            .subnav button {
                background: none;
                border: 1px solid var(--line);
                border-radius: 999px;
                padding: 5px 14px;
                font-family: var(--chrome);
                font-size: 11px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: .1em;
                color: var(--ink-dim);
                cursor: pointer;
            }

                .subnav button:hover {
                    color: var(--ink);
                    border-color: var(--ink);
                }

                .subnav button.on {
                    color: var(--bg);
                    border-color: var(--ink);
                    background: var(--ink);
                }

                /* Answers waiting on the "Your reports" sub-tab (0.112.0),
                   the nav pip's colours. */
                .subnav button .pip {
                    display: inline-block;
                    margin-left: 6px;
                    padding: 0 5px;
                    border-radius: 8px;
                    background: var(--dot);
                    color: var(--ink);
                    font-size: 10px;
                    letter-spacing: .04em;
                }

        .panel.taboff {
            display: none !important;
        }

        /* ---- One question, one answer (askText) ----
           The styled replacement for prompt(): the native dialog is unthemed,
           blocking, and in an installed app titled with the origin — "the
           Report a Problem popup is more consistent to what I'd expect" was
           the report, and it was right. Sits under the palette (220), above
           the issue overlay (210): a question asked from a form must never
           open beneath the thing that asked it. */

        .ask-overlay {
            position: fixed;
            inset: 0;
            z-index: 215;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 16vh;
            background: rgba(28, 28, 28, .42);
        }

        .ask-card {
            background: var(--panel);
            border: 1px solid var(--ink);
            border-radius: 2px;
            padding: 20px 22px;
            width: min(460px, calc(100vw - 32px));
            box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
        }

            .ask-card h3 {
                margin: 0;
                font-size: 15px;
                font-weight: 600;
            }

            .ask-card .hint {
                margin: 8px 0 0;
            }

            .ask-card input {
                width: 100%;
                margin-top: 12px;
                font-size: 16px;   /* ≥16px: iOS zooms smaller inputs on focus */
            }

            /* Labelled fields — the box editor's (0.85.0), the one dialog
               that asks more than one thing. */
            .ask-card label {
                display: block;
                margin-top: 12px;
                font-size: 13px;
                color: var(--ink-dim);
            }

                /* One fixed box for both, the .editgrid lesson: inputs and
                   selects pad differently, so shared padding alone leaves
                   them different heights side by side. */
                .ask-card label input, .ask-card label select {
                    display: block;
                    box-sizing: border-box;
                    width: 100%;
                    height: 40px;
                    margin-top: 4px;
                    background: var(--panel);
                    color: var(--ink);
                    border: 1px solid var(--line-strong);
                    border-radius: 3px;
                    padding: 0 10px;
                    font: 16px var(--sans);   /* same iOS zoom floor as the plain input */
                }

            .ask-card .actions {
                margin-top: 14px;
            }

            /* askConfirm's OK button when the action destroys something. It
               borrows the app's existing destructive voice — button.danger's
               red label on a plain button, the same as End session and the
               rips rows' delete — rather than inventing a filled red button
               for the one dialog. */
            .ask-card button.danger {
                font-weight: 600;
            }

        /* ---- Report a problem (see reportIssue) ----
           A dock, not a dialog (0.88.3) — the landing feedback box's twin
           (a3740125 asked for it there first). Nothing dims and nothing
           blocks, so the screen being reported stays in view and scrolls
           while you describe it: along the bottom of a phone, in the corner
           of a desktop. When the page is pinch-zoomed, dockBox redraws it at
           its unzoomed size on whatever part of the page is on screen. */

        .issue-overlay {
            position: fixed;
            z-index: 210;
            right: 18px;
            bottom: 18px;
            width: min(420px, calc(100vw - 36px));
            transition: opacity .16s ease-out;
        }

            .issue-overlay.placed {
                left: 0;
                top: 0;
                right: auto;
                bottom: auto;
                transform-origin: 0 0;
            }

            /* Out of the way while a pinch is moving, back with a short
               fade once it holds (onViewport in reportIssue): gone at once,
               so it never lurches on its way out. */
            .issue-overlay.zooming {
                opacity: 0;
                pointer-events: none;
                transition: none;
            }

        .issue-card {
            position: relative;
            background: var(--panel);
            border: 1px solid var(--ink);
            border-radius: 2px;
            padding: 18px 20px 16px;
            box-shadow: 0 18px 60px rgba(0, 0, 0, .26);
        }

            .issue-card h3 {
                margin: 0 0 6px;
                font-size: 16px;
            }

            /* It had no rule of its own, so it drew in the browser's default
               13px monospace — and iOS zooms the page into any field under
               16px the moment it's tapped. Every report from a phone started
               with the screen being reported jumping out of view. */
            .issue-card textarea {
                display: block;
                box-sizing: border-box;
                width: 100%;
                min-height: 96px;
                margin-top: 10px;
                resize: vertical;
                background: var(--panel);
                color: var(--ink);
                border: 1px solid var(--line-strong);
                border-radius: 3px;
                padding: 9px 11px;
                font: 16px/1.45 var(--sans);
            }

                .issue-card textarea:focus {
                    outline: none;
                    border-color: var(--ink);
                }

            /* Files on a report (0.89.0): a quiet link to add, a chip each. */
            .issue-files {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 8px;
                margin-top: 8px;
            }

                .issue-files > button {
                    font-size: 13px;
                    padding: 4px 0;
                    border: none;
                    background: none;
                    color: var(--ink);
                    text-decoration: underline;
                    text-underline-offset: 3px;
                    cursor: pointer;
                }

            .issue-chips {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                width: 100%;
            }

                .issue-chips:empty {
                    display: none;
                }

            .issue-chip {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                max-width: 100%;
                border: 1px solid var(--line-strong);
                border-radius: 3px;
                padding: 3px 3px 3px 3px;
                font-size: 12.5px;
                background: var(--panel);
            }

                .issue-chip img, .issue-chip b {
                    width: 30px;
                    height: 30px;
                    flex: none;
                    object-fit: cover;
                    border-radius: 2px;
                }

                .issue-chip b {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 9.5px;
                    letter-spacing: .06em;
                    background: var(--panel-2);
                }

                .issue-chip span {
                    min-width: 0;
                    max-width: 150px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                .issue-chip button {
                    flex: none;
                    border: none;
                    background: none;
                    font-size: 16px;
                    line-height: 1;
                    padding: 4px 6px;
                    color: var(--ink-dim);
                    cursor: pointer;
                }

        /* The admin's view of them, under the report. */
        .issue-files-admin {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 10px;
        }

            .issue-file {
                max-width: 240px;
            }

                .issue-file img {
                    display: block;
                    max-width: 240px;
                    max-height: 320px;
                    border: 1px solid var(--line);
                    background: var(--panel);
                }

                .issue-file-pdf {
                    display: inline-block;
                    padding: 18px 22px;
                    border: 1px solid var(--line-strong);
                    font-weight: 600;
                    text-decoration: none;
                    color: var(--ink);
                }

        /* A phone: edge to edge along the bottom, over the tab bar, about a
           third of the screen. */
        @media (max-width: 760px) {
            .issue-overlay {
                left: 0;
                right: 0;
                bottom: 0;
                width: auto;
            }

            .issue-card {
                border-width: 1px 0 0;
                border-radius: 0;
                padding: 14px 18px calc(12px + env(safe-area-inset-bottom, 0px));
                box-shadow: 0 -10px 36px rgba(0, 0, 0, .18);
            }

                .issue-card textarea {
                    min-height: 76px;
                }
        }

        /* In the header's own voice (0.128.0, report 2b63d21f): with no font
           of their own these two were the browser's Arial, lower case, beside
           the account line's tracked capitals. No side padding, so on a phone,
           where "report a problem" takes a line of its own, it starts at the
           wordmark's edge. */
        #reportIssueBtn, #palBtn {
            background: none;
            border: none;
            color: var(--ink-dim);
            font-family: var(--chrome);
            font-size: var(--label);
            text-transform: uppercase;
            letter-spacing: var(--track);
            cursor: pointer;
            padding: 2px 0;
        }

            #reportIssueBtn:hover, #palBtn:hover {
                color: var(--accent);
                text-decoration: underline;
            }

        .issue-snap-frame {
            width: 100%;
            height: 420px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: #fff;
        }

        /* ---- Life list: the "new card!" party (see showLifer) ---- */

        .lifer-overlay {
            position: fixed;
            inset: 0;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            /* A light scrim, not a blackout: the party used to dim the whole
               screen to 42% and bounce in, and landing over the vault while a
               background scan caught up it read as "whatever that fade is"
               (58bee4f5, "make it less dramatic"). */
            background: rgba(28, 28, 28, .16);
            animation: liferFade .16s ease-out;
            cursor: pointer;
            overflow: hidden;
        }

        .lifer-card {
            position: relative;
            background: var(--panel);
            border: 1px solid var(--ink);
            border-radius: 2px;
            padding: 28px 36px 24px;
            max-width: 420px;
            width: calc(100% - 48px);
            text-align: center;
            box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
            animation: liferPop .22s ease-out;   /* no overshoot */
        }

        .lifer-kicker {
            font-family: var(--chrome);
            font-size: 12px;
            letter-spacing: .35em;
            color: var(--accent);
            margin-bottom: 10px;
        }

            .lifer-kicker.complete {
                color: var(--good);
            }

            /* The chase banner (0.126.0): the same card, a hotter word. */
            .lifer-kicker.chase {
                color: var(--bad);
            }

            /* The "new card" party: the confetti is the dealer's dots. */

        .lifer-title {
            font-family: var(--serif);
            font-size: 28px;
            font-weight: 400;
            margin-bottom: 4px;
        }

        .lifer-sub {
            color: var(--ink-dim);
            font-size: 13.5px;
            margin-bottom: 16px;
        }

        /* What made the card a chase hit: "/25", "autograph", "Gold Rainbow
           Foil, 1 per 4 boxes" (showChase). */
        .lifer-why {
            font-family: var(--mono);
            font-size: 13.5px;
            color: var(--ink);
            margin: -8px 0 14px;
        }

        .lifer-bar {
            height: 6px;
            border-radius: 3px;
            background: var(--panel-2);
            overflow: hidden;
            margin-bottom: 8px;
        }

            .lifer-bar > i {
                display: block;
                height: 100%;
                border-radius: 3px;
                background: var(--dot);
                width: 0;
                transition: width .9s cubic-bezier(.25, .1, .25, 1) .35s;
            }

            .lifer-bar.complete > i {
                background: var(--good-dot);
            }

        .lifer-count {
            font-family: var(--mono);
            font-size: 12.5px;
            color: var(--ink-dim);
        }

            .lifer-count b {
                color: var(--ink);
            }

        .lifer-dismiss {
            margin-top: 14px;
            font-size: 11.5px;
            color: var(--ink-dim);
            opacity: .7;
        }

        .lifer-confetti {
            position: absolute;
            top: -8px;
            width: 7px;
            height: 11px;
            border-radius: 1px;
            opacity: 0;
            animation: liferDrop 1.6s ease-in forwards;
        }

        @keyframes liferFade {
            from { opacity: 0; }
        }

        @keyframes liferPop {
            from { transform: scale(.96); opacity: 0; }
        }

        @keyframes liferDrop {
            0% { opacity: 0; transform: translateY(-10px) rotate(0deg); }
            8% { opacity: 1; }
            100% { opacity: 0; transform: translateY(105vh) rotate(300deg); }
        }

        @media (prefers-reduced-motion: reduce) {
            .lifer-overlay, .lifer-card { animation: none; }
            .lifer-confetti { display: none; }
            .lifer-bar > i { transition: none; }
        }
        /* ------------------------------------------------------------------
           Rip party (0.72.0). The join code is the one thing on the screen
           that must be readable across a table, so it gets the display face
           at a size nothing else in the app uses. The feed reuses the vault's
           sleeve (.vtile) so a pull looks like a pull, with the owner's handle
           on it and the dealer's sticker for the price.
           ------------------------------------------------------------------ */
        /* The bench's "Ripping a box?" bar: a section under a rule, not a grey
           box with a black bar inside the panel's white one (0.128.0, report
           2b63d21f). It was an inline style. */
        #ripBar {
            margin: 14px 0 8px;
            padding: 12px 0 0;
            border-top: 1px solid var(--line);
            font-size: 13px;
        }

        .partyline {
            margin-top: 6px;
            font-size: 13px;
        }

            .partyline b {
                font-weight: 600;
            }

        /* The join code between two rules, not a grey box inside the panel's
           white one (0.128.0, report 2b63d21f): no box inside a box. */
        .partycode {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
            margin-top: 12px;
            padding: 14px 0;
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
        }

            .partycode .code {
                font-family: var(--serif);
                font-size: 46px;
                letter-spacing: .18em;
                line-height: 1;
                margin-top: 4px;
            }

        .partytotals {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 14px;
            margin-top: 16px;
        }

            .partytotals .n {
                font-family: var(--serif);
                font-size: 30px;
                line-height: 1;
            }

            .partytotals .l {
                margin-top: 5px;
                font-family: var(--chrome);
                font-size: var(--label);
                letter-spacing: var(--track);
                text-transform: uppercase;
                color: var(--ink-faint);
            }

        .partymembers {
            margin-top: 16px;
            border-top: 1px solid var(--line);
        }

            .partymembers .who {
                display: flex;
                align-items: baseline;
                gap: 10px;
                padding: 8px 0;
                border-bottom: 1px solid var(--line);
                font-size: 13.5px;
            }

                .partymembers .who .h {
                    flex: 1;
                    min-width: 0;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                .partymembers .who .box {
                    color: var(--ink-dim);
                    font-size: 12.5px;
                }

                .partymembers .who .v {
                    font-variant-numeric: tabular-nums;
                    white-space: nowrap;
                }

                .partymembers .who.gone {
                    opacity: .55;
                }

        .partyh3 {
            margin: 18px 0 8px;
            font-family: var(--chrome);
            font-size: var(--label);
            letter-spacing: var(--track);
            text-transform: uppercase;
            color: var(--ink-faint);
        }

        .pfeed {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
            gap: 10px;
        }

            .pfeed .vtile {
                cursor: default;
            }

                .pfeed .vtile.mine {
                    cursor: pointer;
                }

                /* Landed in the last minute: the dealer's orange, so the
                   newest pull on the table is the one every eye goes to. */
                .pfeed .vtile.fresh {
                    outline: 2px solid var(--dot);
                    outline-offset: -2px;
                }

            .pfeed .pwho {
                position: absolute;
                left: 6px;
                bottom: 6px;
                z-index: 2;
                max-width: calc(100% - 12px);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                padding: 1px 5px;
                border-radius: 3px;
                background: var(--panel);
                border: 1px solid var(--line);
                color: var(--ink);
                font-family: var(--chrome);
                font-size: 10px;
                letter-spacing: .06em;
            }

            /* The price sticker moves up when the handle takes the corner. */
            .pfeed .vtile .btag {
                bottom: 26px;
            }

        /* A photo the scanner judged to be a different physical card from its
           partner — kept, but never shown without saying so. */
        a.mismatched img { outline: 2px solid var(--bad); outline-offset: -2px; }

