/* /Components/Archive/ArchiveCalendar.razor.rz.scp.css */
/* The mockups' _pages.css .cal, .cal-head, .cal-grid, .cal-dow, .cal-day, .cal-foot and .legend. Tokens only.
   ::deep reaches Card's and IconButton's own elements; everything else is this component's markup. */
/* The component's wrapper is the grid item the page places; the card fills it. The mockups' body sets a
   24px line height that small text inherits as a length (the app's is 1.5), so set it here to match. */
.cal-wrap[b-bihjao9nuj] { line-height: var(--lh-body); }
.cal-wrap[b-bihjao9nuj]  .cal { padding: var(--s4) var(--s5) var(--s5); }

.cal-head[b-bihjao9nuj] {
    display: flex;
    align-items: center;
    gap: var(--s2);
    margin-bottom: var(--s3);
}

.cal-title[b-bihjao9nuj] {
    flex: 1;
    margin: 0;
    font: 600 var(--t-title)/var(--lh-title) var(--font-display);
    white-space: nowrap;
}

/* Mockup: a disabled ‹ › at 35%. */
.cal-head[b-bihjao9nuj]  .cal-nav:disabled { opacity: .35; cursor: default; background: transparent; }

.cal-grid[b-bihjao9nuj] {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.cal-dow[b-bihjao9nuj] {
    padding: 6px 0;
    color: var(--ink-3);
    font-size: var(--t-small);
    font-weight: 600;
    text-align: center;
}

.cal-day[b-bihjao9nuj] {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: start;
    min-height: 76px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    color: var(--ink);
    text-decoration: none;
}

.cal-day:hover[b-bihjao9nuj] { background: var(--surface-2); text-decoration: none; }

.cal-day:focus-visible[b-bihjao9nuj] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.cal-day .n[b-bihjao9nuj] {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cal-day .marks[b-bihjao9nuj] {
    display: flex;
    align-self: end;
    gap: 4px;
}

/* Playable, out of month: lighter grey (5.7 / 6.2:1), no fade, so it reads above an inert day. */
.cal-day.is-out[b-bihjao9nuj] { color: var(--ink-3); }
.cal-day.is-future[b-bihjao9nuj] { min-height: 44px; }

/* Inert: future days, and past days a filter rules out. line-strong on surface is 3.5:1 light / 4.5:1
   dark, so the month stays readable. */
.cal-day.is-off[b-bihjao9nuj] { color: var(--line-strong); cursor: default; }
.cal-day.is-off:hover[b-bihjao9nuj] { background: transparent; }
.cal-day.is-off .n[b-bihjao9nuj] { font-weight: 400; }

.cal-day.is-today[b-bihjao9nuj] { border-color: var(--accent); }
.cal-day.is-sel[b-bihjao9nuj],
.cal-day.is-sel:hover[b-bihjao9nuj] { border-color: var(--accent-soft); background: var(--accent-soft); }
.cal-day.is-sel.is-today[b-bihjao9nuj] { border-color: var(--accent); }
/* A selected day that stops matching keeps its selection (4.8 / 4.7:1 on accent-soft). */
.cal-day.is-off.is-sel[b-bihjao9nuj] { color: var(--ink-3); }

.cal-day.is-today .n[b-bihjao9nuj]::after {
    content: 'Today';
    margin-left: 6px;
    color: var(--accent-text);
    font-size: var(--t-small);
    font-weight: 600;
}

.cal-foot[b-bihjao9nuj] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3) var(--s5);
    margin-top: var(--s4);
    padding-top: var(--s4);
    border-top: 1px solid var(--line);
}

.legend[b-bihjao9nuj] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s4);
    color: var(--ink-3);
    font-size: var(--t-small);
}

.legend span[b-bihjao9nuj] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Phone: tighter card and cells, centred numbers, no "Today" word and no legend (the day panel's rows
   say each status). */
@media (max-width: 699px) {
    .cal-wrap[b-bihjao9nuj]  .cal { padding: var(--s3) var(--s2) var(--s4); }
    .cal-head[b-bihjao9nuj] { gap: 0; margin-bottom: 0; padding: 0 var(--s2); }
    .cal-grid[b-bihjao9nuj] { gap: 2px; }
    .cal-day[b-bihjao9nuj] {
        justify-items: center;
        min-height: 56px;
        padding: 6px 0 8px;
    }
    .cal-day .marks[b-bihjao9nuj] { gap: 3px; }
    .cal-day.is-future[b-bihjao9nuj] { min-height: 36px; padding: 4px 0; }
    .cal-day.is-today .n[b-bihjao9nuj]::after { content: none; }
    .cal-foot[b-bihjao9nuj] { display: none; }
}
/* /Components/Archive/ArchiveDayPanel.razor.rz.scp.css */
/* The mockups' _pages.css .dayp and .pzrow, _shared.css .rows and .status. Tokens only. ::deep reaches
   Card's own element. */
.dayp-wrap[b-uea2mf045u] { line-height: var(--lh-body); } /* the mockups' inherited 24px, as in ArchiveCalendar */
.dayp-wrap[b-uea2mf045u]  .dayp { padding: var(--s5); }

.dayp-title[b-uea2mf045u] {
    margin: 0;
    font: 600 var(--t-title)/var(--lh-title) var(--font-display);
}

.rows[b-uea2mf045u] {
    margin-top: var(--s4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.rows > * + *[b-uea2mf045u] { border-top: 1px solid var(--line); }

.rows--mini[b-uea2mf045u] { margin-top: var(--s3); }

.pzrow[b-uea2mf045u] {
    display: flex;
    align-items: center;
    gap: var(--s3);
    min-height: 64px;
    padding: var(--s2) var(--s2) var(--s2) var(--s3);
}

.grow[b-uea2mf045u] {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.name[b-uea2mf045u] {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-weight: 600;
}

.tag[b-uea2mf045u] {
    color: var(--ink-2);
    font-size: var(--t-small);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.status[b-uea2mf045u] {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    color: var(--ink-2);
    font-size: var(--t-small);
    font-variant-numeric: tabular-nums;
}

.dayp-empty[b-uea2mf045u] {
    margin: var(--s3) 0 0;
    color: var(--ink-2);
}

.dayp-goto[b-uea2mf045u] { margin-top: var(--s4); }

@media (max-width: 699px) {
    .dayp-wrap[b-uea2mf045u]  .dayp { padding: var(--s4); }
}
/* /Components/Archive/ArchiveFilters.razor.rz.scp.css */
/* The mockups' _pages.css .filters, .filter-row, .filter-sep and .filter-label. Tokens only. */
.filters[b-r2yrpk6uis] {
    display: grid;
    line-height: var(--lh-body); /* the mockups' inherited 24px */
    gap: var(--s3);
    margin-bottom: var(--s5);
}

.filter-row[b-r2yrpk6uis] {
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.chips[b-r2yrpk6uis] {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--s2);
}

.filter-sep[b-r2yrpk6uis] {
    flex: none;
    align-self: stretch;
    width: 1px;
    margin: 4px var(--s2);
    background: var(--line);
}

.filter-label[b-r2yrpk6uis] {
    align-self: center;
    min-width: 48px;
    color: var(--ink-3);
    font-size: var(--t-small);
    font-weight: 600;
}

@media (max-width: 1049px) {
    .filter-row[b-r2yrpk6uis] { flex-wrap: wrap; }
}

/* Phone: the chips wrap onto a second line rather than scroll out of sight (owner review). The Level
   group lays its chips out in the row itself (display: contents keeps the group and its label for
   assistive tech), so the lines fill evenly: Unplayed, the divider and the first levels on line one,
   the rest under them from the left edge. The divider always has Easy after it on its line (Unplayed,
   the divider and Easy need about 200px), so it never ends or starts a line. Lines are 8px apart, so
   each chip's 44px hit area meets the next line's without overlapping. No Level label. */
@media (max-width: 699px) {
    .filters[b-r2yrpk6uis] { margin-bottom: var(--s4); }
    .filter-row[b-r2yrpk6uis] {
        flex-wrap: wrap;
        gap: var(--s2);
    }
    .chips[b-r2yrpk6uis] { display: contents; }
    .filter-sep[b-r2yrpk6uis] { margin: 4px 0; }
    .filter-label[b-r2yrpk6uis] { display: none; }
}
/* /Components/Builder/SumChips.razor.rz.scp.css */
/* Sum chips (the mockups' .sumgrid and .sumchip): 7 to a row at every width; 40px tall (44 on phones, 40
   again below 640px tall), set by the page through --sumchip-h and --sumchip-gap. */
.sumgrid[b-r529c9lrvg] {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--sumchip-gap, 4px);
}

.sumchip[b-r529c9lrvg] {
    height: var(--sumchip-h, 40px);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--btn-line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font: 600 var(--t-body)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.sumchip:hover[b-r529c9lrvg] { background: var(--surface-2); }

.sumchip[aria-pressed="true"][b-r529c9lrvg],
.sumchip[aria-pressed="true"]:hover[b-r529c9lrvg] {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-text);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.sumchip:focus-visible[b-r529c9lrvg] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.sum-reason[b-r529c9lrvg] {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--t-body);
    line-height: var(--lh-body);
}
/* /Components/ContactEmail.razor.rz.scp.css */
.contact-email button[b-1zl29lx37p] {
    border: 0;
    padding: 0;
    background: none;
    color: var(--accent-text);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.contact-email button:hover[b-1zl29lx37p] { text-decoration-thickness: 2px; }
.contact-email button:focus-visible[b-1zl29lx37p] { outline: 2px solid currentColor; outline-offset: 3px; }
.contact-email a[b-1zl29lx37p] { overflow-wrap: anywhere; }
.contact-email a:focus-visible[b-1zl29lx37p] { outline: 2px solid currentColor; outline-offset: 3px; }
/* /Components/DailyCataloguePanel.razor.rz.scp.css */
.daily-catalogue[b-dies8d0mtp] {
    display: grid;
    gap: 1rem;
}

.daily-catalogue__today[b-dies8d0mtp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.daily-catalogue__today h3[b-dies8d0mtp] { margin: 0.15rem 0 0; }

.daily-catalogue__eyebrow[b-dies8d0mtp] {
    color: var(--ink-2);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.daily-catalogue__difficulty[b-dies8d0mtp] {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
}

.daily-catalogue__archive[b-dies8d0mtp] {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.55rem;
    padding-top: 1rem;
}

.daily-catalogue__archive label[b-dies8d0mtp] { font-weight: 700; }
.daily-catalogue__archive select[b-dies8d0mtp] { width: 100%; }
/* /Components/HelpTooltip.razor.rz.scp.css */
.help-tooltip[b-4k88gw1kjk] { display: inline-block; position: static; vertical-align: middle; font-weight: normal; }
button[b-4k88gw1kjk] {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.5rem; height: 1.5rem; border: 1px solid var(--line-strong); border-radius: 50%;
    color: var(--ink-2); background: var(--surface-2); font-size: 0.85rem;
    cursor: pointer; list-style: none;
}
button:focus-visible[b-4k88gw1kjk] { outline: 2px solid var(--focus); outline-offset: 2px; }
.help-tooltip-text[b-4k88gw1kjk] {
    pointer-events: none;
    display: none; position: absolute; top: calc(100% + 0.35rem); left: 0;
    width: 16rem; max-width: 100%; box-sizing: border-box; padding: 0.65rem 0.8rem;
    border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink);
    font-size: 0.85rem; line-height: 1.45; text-align: left;
    box-shadow: var(--shadow-pop); z-index: 20;
}
.help-tooltip:hover .help-tooltip-text[b-4k88gw1kjk],
.help-tooltip:focus-within .help-tooltip-text[b-4k88gw1kjk] { display: block; }
/* /Components/InstallGame.razor.rz.scp.css */
.install-invite[b-frq9h6j0lq], .install-steps[b-frq9h6j0lq] {
    box-sizing: border-box;
    padding: var(--s4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
}
.install-invite[b-frq9h6j0lq] {
    position: fixed;
    z-index: 80;
    top: calc(64px + var(--safe-top));
    right: var(--s4);
    width: min(340px, calc(100vw - 2 * var(--s4)));
    border-color: var(--accent);
    box-shadow: var(--shadow-pop);
}
.install-eyebrow[b-frq9h6j0lq] {
    display: block;
    margin-bottom: var(--s2);
    color: var(--ink-3);
    font: 600 var(--t-small)/var(--lh-small) var(--font-ui);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.install-invite h3[b-frq9h6j0lq] { margin: 0 0 var(--s2); font: 500 var(--t-title)/var(--lh-title) var(--font-display); }
.install-invite p[b-frq9h6j0lq], .install-steps p[b-frq9h6j0lq] { margin: 0 0 var(--s3); color: var(--ink-2); }
.install-actions[b-frq9h6j0lq] { display: flex; flex-wrap: wrap; gap: var(--s2); }
.install-steps--invite[b-frq9h6j0lq] {
    position: fixed;
    z-index: 81;
    top: calc(245px + var(--safe-top));
    right: var(--s4);
    width: min(340px, calc(100vw - 2 * var(--s4)));
    max-height: calc(100vh - 260px - var(--safe-top));
    overflow-y: auto;
    box-shadow: var(--shadow-pop);
}

/* SettingsSheet's scoped rules do not reach markup rendered by this component. */
.set-group[b-frq9h6j0lq] { margin-bottom: var(--s5); }
.set-group.is-expanded[b-frq9h6j0lq] { margin-bottom: 0; }
.set-rows[b-frq9h6j0lq] {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
.set-row[b-frq9h6j0lq] {
    display: flex;
    align-items: center;
    gap: var(--s4);
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: var(--s3) var(--s4);
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--ink);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
    text-align: left;
    cursor: pointer;
}
.set-row:hover[b-frq9h6j0lq] { background: var(--surface-2); }
.set-row:focus-visible[b-frq9h6j0lq] { outline: 2px solid var(--focus); outline-offset: -2px; }
.set-grow[b-frq9h6j0lq] { flex: 1; min-width: 0; }
.set-grow b[b-frq9h6j0lq] { display: block; font-weight: 600; }
.set-why[b-frq9h6j0lq] { display: block; margin-top: 2px; color: var(--ink-3); font: 400 var(--t-small)/var(--lh-small) var(--font-ui); }
.set-row[b-frq9h6j0lq]  .set-chev { color: var(--ink-3); }
.install-steps:not(.install-steps--invite)[b-frq9h6j0lq] { margin-top: var(--s2); margin-bottom: var(--s5); }

/* The finish panel's invitation (a first solve) is a row of the panel, below its actions, not an overlay: the panel's
   width, its hairline border, no shadow. Its steps (after "Install game") open under it in the same flow. */
.install-invite--panel[b-frq9h6j0lq], .install-steps--invite:not(.install-steps--browse)[b-frq9h6j0lq] {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
}
.install-invite--panel[b-frq9h6j0lq] { border-color: var(--line); }

/* A short mobile browser tab offers installation before the player opens a board. */
.install-invite--browse[b-frq9h6j0lq], .install-steps--browse[b-frq9h6j0lq] {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% - 2 * var(--s4));
    max-width: 600px;
    margin: var(--s3) auto;
    box-shadow: none;
}
/* /Components/Library/ImportSheet.razor.rz.scp.css */
/* The mockups' _pages.css .imp, .or and .disclosure. Tokens only. */
.imp-body[b-6uxt37slnd] { display: grid; gap: var(--s4); line-height: var(--lh-body); }

/* The primary button's look (Button.razor.css .ui-btn--primary .ui-btn--block) on the file input's label. */
.imp-pick[b-6uxt37slnd] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: var(--on-accent);
    font: 600 var(--t-body)/1 var(--font-ui);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease);
}
.imp-pick:hover[b-6uxt37slnd] { background: var(--accent-hover); }
.imp-pick:has(:focus-visible)[b-6uxt37slnd] { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Visually hidden, still in the tab order: focus shows on the label. */
.imp-pick[b-6uxt37slnd]  .imp-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.imp-or[b-6uxt37slnd] {
    display: flex;
    align-items: center;
    gap: var(--s3);
    color: var(--ink-3);
    font-size: var(--t-small);
}
.imp-or[b-6uxt37slnd]::before,
.imp-or[b-6uxt37slnd]::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.imp-paste[b-6uxt37slnd] { display: grid; gap: var(--s3); }

.imp-disclosure[b-6uxt37slnd] {
    display: flex;
    align-items: center;
    gap: var(--s2);
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-text);
    font: 600 var(--t-body)/var(--lh-body) var(--font-ui);
    cursor: pointer;
}
.imp-disclosure:focus-visible[b-6uxt37slnd] { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }

.imp-paste-body[b-6uxt37slnd] { display: grid; gap: var(--s2); }
.imp-paste-body[hidden][b-6uxt37slnd] { display: none; }
.imp-label[b-6uxt37slnd] { color: var(--ink-2); font: 600 var(--t-small)/var(--lh-small) var(--font-ui); }
.imp-text[b-6uxt37slnd] {
    display: block;
    width: 100%;
    min-height: 140px;
    padding: var(--s2) var(--s3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font: 400 var(--t-small)/var(--lh-small) ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    resize: vertical;
}
.imp-text:focus-visible[b-6uxt37slnd] { outline: 2px solid var(--focus); outline-offset: 1px; }

.imp-row[b-6uxt37slnd] { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.imp-row[b-6uxt37slnd]  .imp-open { min-width: 112px; }

/* The status region and the note share one grid row, so the region takes no space (and adds no gap) while
   it is empty; the error line brings its own space below. */
.imp-foot[b-6uxt37slnd] { display: grid; }

.imp-error[b-6uxt37slnd] {
    display: flex;
    align-items: flex-start;
    gap: var(--s2);
    margin: 0 0 var(--s4);
    color: var(--danger);
    font: 600 var(--t-small)/var(--lh-small) var(--font-ui);
}
.imp-error[b-6uxt37slnd]  .ui-icon { flex: none; margin-top: 1px; }

.imp-help[b-6uxt37slnd] {
    margin: 0;
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-small);
}
/* /Components/Library/LibraryEmpty.razor.rz.scp.css */
/* The mockups' _pages.css .empty inside a _shared.css .card. Tokens only. */
.lib-empty[b-4t8kg2ux44] {
    display: grid;
    justify-items: center;
    gap: var(--s3);
    max-width: 520px;
    margin: var(--s5) auto 0;
    padding: var(--s8) var(--s5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    line-height: var(--lh-body);
}

.lib-empty-art[b-4t8kg2ux44] { width: 96px; height: 96px; margin-bottom: var(--s2); }
.lib-art-frame[b-4t8kg2ux44] { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.lib-art-grid[b-4t8kg2ux44] { fill: none; stroke: var(--line); stroke-width: 2; }
.lib-art-cage[b-4t8kg2ux44] { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; stroke-linejoin: round; }
.lib-art-cage-2[b-4t8kg2ux44] { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 4 3; stroke-linejoin: round; }
.lib-art-sum[b-4t8kg2ux44] { fill: var(--accent-text); font: 600 12px var(--font-ui); }

.lib-empty-title[b-4t8kg2ux44] { margin: 0; font: 600 var(--t-title)/var(--lh-title) var(--font-display); }
.lib-empty-text[b-4t8kg2ux44] { margin: 0; color: var(--ink-2); }

.lib-empty-actions[b-4t8kg2ux44] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s2);
    margin-top: var(--s3);
}

@media (max-width: 699px) {
    .lib-empty[b-4t8kg2ux44] { padding: var(--s7) var(--s2); }
}
/* /Components/Library/LibraryReview.razor.rz.scp.css */
/* The review of a My puzzles board. A solved one is SolvedReview (the play stage); this styles the page heading
   (visually hidden: the play bar names the puzzle) and the not-solved-yet state. */
.lib-review[b-kkoz1qjpwu] {
    display: grid;
    justify-content: center;
    align-items: start;
    gap: var(--s5);
    padding-top: var(--s4);
}

.lib-review-h[b-kkoz1qjpwu] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lib-review-none[b-kkoz1qjpwu] { display: grid; justify-items: start; gap: var(--s3); color: var(--ink-2); }
.lib-review-none p[b-kkoz1qjpwu] { margin: 0; }
/* /Components/Library/LibraryRow.razor.rz.scp.css */
/* The mockups' _pages.css .mine-row and _shared.css .status / .meta. Tokens only. ::deep reaches the
   thumbnail's, the button's and the menu button's own elements. */
.lib-row[b-30ow8dt47c] {
    display: flex;
    align-items: center;
    gap: var(--s4);
    min-height: 80px;
    padding: var(--s3) var(--s2) var(--s3) var(--s4);
    line-height: var(--lh-body);
}

.lib-text[b-30ow8dt47c] {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.lib-name[b-30ow8dt47c] {
    font: 600 var(--t-body)/var(--lh-body) var(--font-ui);
    overflow-wrap: anywhere;
}

/* 13px on the body's 24px line, so the mark sits centred in it, as the mockups' .status. */
.lib-status[b-30ow8dt47c] {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    color: var(--ink-2);
    font: 400 var(--t-small)/var(--lh-body) var(--font-ui);
    font-variant-numeric: tabular-nums;
}

.lib-meta[b-30ow8dt47c] {
    overflow: hidden;
    color: var(--ink-3);
    font: 400 var(--t-small)/var(--lh-small) var(--font-ui);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* One column of verbs, not a ragged edge. */
.lib-row[b-30ow8dt47c]  .lib-verb { flex: none; min-width: 112px; }

@media (max-width: 699px) {
    .lib-row[b-30ow8dt47c] { gap: var(--s3); padding: var(--s3) 0 var(--s3) var(--s3); }
    .lib-row[b-30ow8dt47c]  .lib-thumb { display: none; }
    .lib-row[b-30ow8dt47c]  .lib-verb { padding: 0 12px; }
    .lib-status[b-30ow8dt47c]  .lib-tail { display: none; }
    /* A draft's "40 of 81 cells caged · Sun 11 Oct" doesn't fit beside the verb: the date takes its own
       line, as the other rows' date does under their status. */
    .lib-meta[b-30ow8dt47c] { display: grid; white-space: normal; }
    .lib-sep[b-30ow8dt47c] { display: none; }
}
/* /Components/Play/BoardCell.razor.rz.scp.css */
/* One cell of the play board (BoardCell.razor, drawn by PlayBoard): the cell, its cage outline and sum, its value
   or pencil marks, and every state it shows. Scoped CSS applies only to the elements of the component that draws
   them, so these rules live here rather than in PlayBoard.razor.css; their order is the order they had there.
   The grid, its frame and the coach target's pulse stay in PlayBoard.razor.css. */

.play-cell[b-f3k0fgje2w] {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    background: var(--board-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--cell-text);
    overflow: hidden;
    transition: background-color 0.1s ease, transform 0.12s ease;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

/* Hover lifts the whole cage, not the one cell: a cage is the unit a sum applies to, and its
   dotted outline alone is easy to lose among nine of them. play-input.js puts data-hover-cage on every
   cell of the cage under the pointer (CSS cannot select non-adjacent siblings by shared cage), and
   because each cell shifts by the same amount the group rises as one shape. Pointer devices only --
   on touch, pointerenter fires on tap and a whole cage left standing proud reads as a bug. */
@media (hover: hover) {
    .play-cell[data-hover-cage][b-f3k0fgje2w] {
        transform: translateY(-1px);
    }
}

.play-cell.box-border-right[b-f3k0fgje2w] { border-right: 2px solid var(--box-border); }
.play-cell.box-border-bottom[b-f3k0fgje2w] { border-bottom: 2px solid var(--box-border); }
/* Close the board's own right and bottom edges. See the .grid-row comment in PlayBoard.razor.css
   for why the bottom edge is a :last-child selector rather than :nth-child. */
.play-cell:nth-child(9n)[b-f3k0fgje2w] { border-right: 2px solid var(--board-surface); }
.grid-row:last-child .play-cell[b-f3k0fgje2w] { border-bottom: 2px solid var(--board-surface); }

/* ---- the dashed cage outline, seamless ----
   Two things make it a continuous line rather than a row of per-cell stubs.

   1. Each edge div spans its cell edge to edge, and is pulled in by
      --cage-inset only at an end where a perpendicular cage boundary meets it —
      i.e. at an actual corner (the .cage-border-* classes below, which the razor
      already adds per cell for exactly this purpose). Along a straight run the
      segments butt up against each other, so a cage's top edge across three
      cells is one line, not three.
   2. The dash period is a *percentage* of the segment (background-size: 12.5%),
      so every segment holds a whole number of periods and always ends on a
      period boundary. The next segment therefore starts in phase, at any board
      size, and the pattern never visibly restarts. A fixed pixel period could
      not do this: cell width is board width / 9 and almost never divides evenly
      by it.
   3. The line's thickness is a transparent border with the dash painted across the border box, not a
      height or width. The browser keeps a border to whole device pixels at any screen scale, so a line's
      thickness can't change with where the line falls on the board (owner #57); the corner caps below
      are borders of the same width. */
.cage-edge[b-f3k0fgje2w] {
    display: block;
    position: absolute;
    pointer-events: none;
    z-index: 3;
    border: 0 solid transparent;
    background-origin: border-box;
    background-clip: border-box;
    background-repeat: repeat;
}

.cage-edge--top[b-f3k0fgje2w], .cage-edge--bottom[b-f3k0fgje2w] {
    left: 0;
    right: 0;
    height: 0;
    border-top-width: var(--cage-w);
    background-image: linear-gradient(to right, var(--cage-edge) 0 54%, transparent 54%);
    background-size: 12.5% 100%;
}
.cage-edge--top[b-f3k0fgje2w] { top: var(--cage-inset); }
.cage-edge--bottom[b-f3k0fgje2w] { bottom: var(--cage-inset); }

.cage-edge--left[b-f3k0fgje2w], .cage-edge--right[b-f3k0fgje2w] {
    top: 0;
    bottom: 0;
    width: 0;
    border-left-width: var(--cage-w);
    background-image: linear-gradient(to bottom, var(--cage-edge) 0 54%, transparent 54%);
    background-size: 100% 12.5%;
}
.cage-edge--left[b-f3k0fgje2w] { left: var(--cage-inset); }
.cage-edge--right[b-f3k0fgje2w] { right: var(--cage-inset); }

/* Corners: pull an edge in only where a perpendicular edge shares the corner.
   .cage-border-left/right/top/bottom mark which sides of THIS cell carry a
   cage boundary (set in CellClass from the same CellRenderInfo that decides
   whether a .cage-edge div is rendered on that side at all). */
.play-cell.cage-border-left .cage-edge--top[b-f3k0fgje2w],
.play-cell.cage-border-left .cage-edge--bottom[b-f3k0fgje2w] { left: var(--cage-inset); }
.play-cell.cage-border-right .cage-edge--top[b-f3k0fgje2w],
.play-cell.cage-border-right .cage-edge--bottom[b-f3k0fgje2w] { right: var(--cage-inset); }
.play-cell.cage-border-top .cage-edge--left[b-f3k0fgje2w],
.play-cell.cage-border-top .cage-edge--right[b-f3k0fgje2w] { top: var(--cage-inset); }
.play-cell.cage-border-bottom .cage-edge--left[b-f3k0fgje2w],
.play-cell.cage-border-bottom .cage-edge--right[b-f3k0fgje2w] { bottom: var(--cage-inset); }

/* Corner caps (CageCorners in PlayBoard.razor): a short solid L where the outline turns, on the same
   2px lines the edges draw. An outer corner sits at the cell's own inset corner; an inner one fills
   the inset square in the cell's corner, joining the two neighbours' edges, which stop at the cell
   boundary. */
.cage-corner[b-f3k0fgje2w] {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    border: 0 solid var(--cage-edge);
}
.cage-corner[class*="--out-"][b-f3k0fgje2w] { width: 7%; height: 7%; }
.cage-corner--out-tl[b-f3k0fgje2w] { top: var(--cage-inset); left: var(--cage-inset); border-top-width: var(--cage-w); border-left-width: var(--cage-w); }
.cage-corner--out-tr[b-f3k0fgje2w] { top: var(--cage-inset); right: var(--cage-inset); border-top-width: var(--cage-w); border-right-width: var(--cage-w); }
.cage-corner--out-bl[b-f3k0fgje2w] { bottom: var(--cage-inset); left: var(--cage-inset); border-bottom-width: var(--cage-w); border-left-width: var(--cage-w); }
.cage-corner--out-br[b-f3k0fgje2w] { bottom: var(--cage-inset); right: var(--cage-inset); border-bottom-width: var(--cage-w); border-right-width: var(--cage-w); }
.cage-corner[class*="--in-"][b-f3k0fgje2w] { width: calc(var(--cage-inset) + var(--cage-w)); height: calc(var(--cage-inset) + var(--cage-w)); }
.cage-corner--in-tl[b-f3k0fgje2w] { top: 0; left: 0; border-right-width: var(--cage-w); border-bottom-width: var(--cage-w); }
.cage-corner--in-tr[b-f3k0fgje2w] { top: 0; right: 0; border-left-width: var(--cage-w); border-bottom-width: var(--cage-w); }
.cage-corner--in-bl[b-f3k0fgje2w] { bottom: 0; left: 0; border-right-width: var(--cage-w); border-top-width: var(--cage-w); }
.cage-corner--in-br[b-f3k0fgje2w] { bottom: 0; right: 0; border-left-width: var(--cage-w); border-top-width: var(--cage-w); }

.cage-label[b-f3k0fgje2w] {
    /* Anchored flush at the cell's own corner (0,0) rather than offset from it,
       with the visual inset supplied entirely by padding. The two rules this
       label needs to interrupt begin at var(--cage-inset) from that same
       corner -- a *percentage*, so its pixel value moves with cell size. An
       offset positioned box (the old top/left rem values) can drift to the
       wrong side of that inset at some board sizes, leaving a sliver of rule
       exposed next to the label instead of under it (measured: a 1px stub of
       the left rule at a size where the rule's 4% inset fell inside the box's
       offset but outside its background). Starting the box at the true corner
       means its background always covers the point each rule starts from,
       regardless of cell size. */
    position: absolute;
    /* The v5 mockups' sum (_board.js): 21% of the cell in the UI face at 600, its text from 9% across with
       its baseline 24% down (23% here, a touch higher to clear mark 1), on a knock-out box from 4%
       (owner #39), cut off just under the sum's figures (they end about 0.86em down their 1em line, which
       overflows the box unchanged) so the box never clips mark 1's figure below it (measured, 27-85px cells). */
    top: max(0px, calc(var(--cell) * 0.03 - 0.5px));   /* without round() (see the @supports below) */
    top: round(down, max(0px, calc(var(--cell) * 0.03 - 0.5px)), 1px);
    left: calc(var(--cell) * 0.04);
    padding: calc(var(--cell) * 0.0187) calc(var(--cell) * 0.05) 0;
    box-sizing: content-box;
    height: 0.9em;
    font-size: calc(var(--cell) * 0.21);
    font-size: round(down, calc(var(--cell) * 0.21), 1px);
    font-family: var(--font-ui);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--cage-label-text);
    /* Not a chip — it inherits whatever the cell is currently painted, so it
       simply interrupts the dashed outline where the sum sits, the way a label
       breaks a contour line on a map. That is what lets the sum sit in the
       corner without the dashes striking through it, and without reserving a
       gutter that would push the digits off centre. */
    background-color: inherit;
    box-shadow: none;
    border-radius: 0;
    z-index: 4;
    line-height: 1;
}

.value[b-f3k0fgje2w] {
    /* The mockups' digit: half the cell, its figures centred about 52% down (where the mockups draw them
       and their disc, so a highlighted 9's disc clears the cage sum; a top margin, not a transform,
       which would make the value the digit-highlight disc's containing block). */
    font-size: calc(var(--cell) * 0.5);
    margin-top: calc(var(--cell) * 0.08);
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    z-index: 2;
}

.value--given[b-f3k0fgje2w] {
    font-weight: 600;
    color: var(--value-given);
}

.value--player[b-f3k0fgje2w] {
    font-weight: 600;
    color: var(--value-player);
}

/* A value the coach applied, not one the player reasoned out. Violet at the same
   weight as player values, so it reads as "entered" (not an immutable given) yet is
   unmistakably distinct from the player's blue. Clears WCAG AA (≥4.5:1) on the flat
   board surface in both themes; measured, see the contrast block in app.css and
   tools/contrast-check.py. */
.value--coach[b-f3k0fgje2w] {
    font-weight: 600;
    color: var(--value-coach);
}

/* A lone mark left by a removal (PlayState.CanPromote): a "ghost value" that reads as
   decided-not-yet-penned. It sits where a placed value would (the .value box's centring), but
   mid-size, upright, in the accent ink on a soft accent disc: the old full-size italic grey read as
   one more placed value (users could not tell them apart). The centring is still the affordance: a
   non-promotable single mark keeps the small pencil-cluster rendering instead. The digit sits on
   its own opaque disc whatever the cell shows, so the digit/disc pair is the one gated in
   tools/contrast-check.py. */
/* About a third of the cell (13px in a 390px phone's 41px cell), never under 12px: the smallest phone
   boards' 36px cells would otherwise make it 11.5px, and unlike the marks and sums it is not allowed
   below the text floor in tools/ui-capture/small-text-allow.json. */
.value--ghost[b-f3k0fgje2w] {
    font-size: max(12px, calc(var(--cell) * 0.32));
    font-weight: 600;
    color: var(--value-ghost-text);
}

/* The disc: about 0.54 of the cell, whole pixels, centred on the figure's ink the way the digit-highlight
   disc is (Inter's figures sit 0.04em above the line box's middle and 0.02em right of it, measured,
   owner #40), and drawn in the value's own stacking context (z-index -1) so it stays under the digit. */
.value--ghost[b-f3k0fgje2w]::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--cell) * 0.54);
    height: calc(var(--cell) * 0.54);
    width: round(nearest, calc(var(--cell) * 0.54), 1px);
    height: round(nearest, calc(var(--cell) * 0.54), 1px);
    border-radius: 50%;
    background: var(--value-ghost-disc);
    transform: translate(calc(-50% + 0.02em), calc(-50% - 0.04em));
    z-index: -1;
    pointer-events: none;
}

.pencil[b-f3k0fgje2w] {
    /* A compact cluster, identical in every cell, centred as far as the cage-sum
       label lets it be, so labeled cells don't need their own layout.
       No height: the cluster is exactly as tall as its three rows of marks.
       Pinning it to a fraction of the cell forced each row to a third of that,
       which on a phone is smaller than the mark's own line box -- so the rows
       overlapped and the marks read as squashed and pushed down the cell. */
    position: absolute;
    /* The largest marks the cell has room for, worked out from what bounds them because the sum's whole-pixel
       font makes that room step unevenly. --mark-clear is the first whole pixel from which mark 1's figure
       (which starts about 0.7px into its row) clears the sum's knock-out box; --mark-room runs from there to
       0.5px above the bottom cage dash, which sits up to a pixel higher in the row above a box line (measured: this gives
       a 41px cell, a 390px phone's, 9px marks with 1px of clear ink to the dash; no margin at all makes a 36px cell's touch it).
       The three rows and the third row's underline fit in that room. --mark-clear and --mark-room only size
       the marks: where the block then sits is --mark-top-clear and top, below. Columns sit nearer the middle than the
       mockups' 25, 50 and 75% (the 62% width), which keeps a third-column mark off the corner's check flag and
       about tangent to the scratch-colour dot's halo at the smallest phone cells. */
    --mark-clear: round(up, calc(round(down, max(0px, calc(var(--cell) * 0.03 - 0.5px)), 1px) + round(down, calc(var(--cell) * 0.21), 1px) + var(--cell) * 0.0387 - 0.7px), 1px);
    --mark-room: calc(var(--cell) * 0.92 - max(1px, calc(var(--cell) * 0.025)) - 0.5px - var(--mark-clear));
    --mark-pitch: round(down, calc(var(--mark-room) / 3), 1px);
    --mark-size: round(down, calc(var(--mark-pitch) / 0.88 - clamp(0px, 10px - var(--mark-pitch), 0.5px)), 1px);
    /* Whole-pixel columns, so a full cell's ink is the same width in every cell of a fractional-width board. */
    --mark-col: round(calc(var(--cell) * 0.62 / 3), 1px);
    /* Centred in the cell's padding box (the area between its grid lines), unless that puts the first row's
       figures under the sum: then the first whole pixel that clears it, the sum's top + its padding + its
       one-line height, less the gap above a figure in its row (Inter's figures are 0.727em tall), plus 0.12px
       because a figure's ink can start that much early (at a 36px cell it otherwise touches the sum at 2x).
       Every cell uses the same position, sum or not, so rows of marks stay level across the board. */
    --mark-top-clear: round(up, calc(round(down, max(0px, calc(var(--cell) * 0.03 - 0.5px)), 1px) + round(down, calc(var(--cell) * 0.21), 1px) + var(--cell) * 0.0237 - (var(--mark-pitch) - var(--mark-size) * 0.727) / 2 + 0.12px), 1px);
    top: max(var(--mark-top-clear), round(up, calc(50% - var(--mark-pitch) * 1.5), 1px));
    /* A whole-pixel start too: the browser places a figure on a whole pixel but a disc exactly, so a fractional
       start would leave a highlighted mark's disc off its figure (owner #55). */
    left: round(down, calc(50% - var(--mark-col) * 1.5), 1px);
    width: calc(var(--mark-col) * 3);
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.pencil-row[b-f3k0fgje2w] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Content-sized, not stretched to a share of a fixed cluster height: each
       row is its own line box, which is what keeps the rows from overlapping
       once the cluster stopped being given a height. */
    flex: none;
}

.pencil-cell[b-f3k0fgje2w] {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Larger and darker than the old pastel-tint version: with no tint to fight
       for contrast, the marks can afford to read as legibly as the digits. */
    font-size: clamp(0.48rem, 1.3vw, 0.8rem);
    line-height: 1;
    font-weight: 500;
    color: var(--mark);
    font-family: 'Fira Code', 'Consolas', monospace;
}

/* Marks scale with the cell too: three rows fill the cell under the cage sum's line. */
.play-grid .pencil-cell[b-f3k0fgje2w] {
    /* The UI face at 500, as large as the row pitch (set on .pencil) allows: Inter's figures are 0.727em
       tall, so this is the biggest whole-pixel size that leaves about 0.15em between one row's figures and
       the next's, which keeps the rows of a full cell apart. Below a 10px pitch that gap can't hold a 1px
       underline clear of the row below, so the size drops by half a pixel before rounding: the size equals the
       pitch there (8px at pitch 8, 9px at 9), which leaves the rule about a pixel above the next figure. */
    font-size: var(--mark-size);
    font-family: var(--font-ui);
    font-variant-numeric: tabular-nums;
    height: var(--mark-pitch);
    line-height: var(--mark-pitch);
}

/* Without CSS round() the custom properties above would be invalid where they are used (unlike the
   properties that repeat a plain value before their round()): the unrounded sizes and a plain position
   instead, top-anchored under the cage sum's line. */
@supports not (width: round(down, 1px, 1px)) {
    .pencil[b-f3k0fgje2w] {
        top: calc(var(--cell) * 0.24);
        left: 12.5%;
        width: 75%;
    }

    .play-grid .pencil-cell[b-f3k0fgje2w] {
        --mark-size: calc(var(--cell) * 0.15);
        --mark-pitch: max(calc(var(--cell) * 0.205 - 1.5px), calc(var(--cell) * 0.109 + 2.5px));
    }
}

/* A player-underlined mark (PlayState.ToggleMarkUnderline): colour-free emphasis that
   reads for anyone who cannot separate the three scratch-colour hues.
   Drawn as a positioned rule rather than text-decoration, because the cluster has no vertical
   slack to lend a text underline: on a phone the row is exactly the mark's size (8px at a pitch of
   8), so a line placed well below the baseline lands on the next row's digit -- an underlined 3
   sitting over a 6 read as the fraction 3/6. Anchoring to the span keeps the rule with its own
   figure at any board size. Its width is about one figure's advance, so it tracks the digit rather
   than the flex cell, and it scales in em. */
.pencil-cell--underlined[b-f3k0fgje2w] {
    position: relative;
}

.pencil-cell--underlined[b-f3k0fgje2w]::after {
    content: '';
    position: absolute;
    /* just under the figure's baseline (half the line box plus 0.36em, for Inter), not at the bottom of
       the mark's row, so a third-row underline clears the bottom cage dash too */
    top: calc(50% + 0.36em - 0.45px);
    top: round(up, calc(50% + 0.36em - 0.45px), 1px);   /* the first whole pixel from the baseline, up to 0.45px into the figure, so it stays nearer its own figure than the next */
    left: 50%;
    width: 0.62em;
    transform: translateX(-50%);
    height: 1px;
    background: currentColor;
    pointer-events: none;
}

/* A doomed candidate: struck on the diagonal, in the hint's own colour, so it reads
   as "this is what the step removes" rather than as an error -- see hint-states.html's
   cand-strike. Only ever applied to a mark the player actually pencilled (BoardCell.razor);
   a digit that was never pencilled has no span to strike, and degrades to the cell-level
   hl-elim ring instead rather than inventing a ghost mark.
   Deliberately its own element (::before), not text-decoration and not the underline's own
   ::after -- an eliminated candidate can also be underlined, and both must render at once. */
.pencil-cell.cand-strike[b-f3k0fgje2w] {
    position: relative;
    color: var(--hint-elim);
}

.pencil-cell.cand-strike[b-f3k0fgje2w]::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 50%;
    height: 1px;
    background: currentColor;
    transform: rotate(-24deg);
    pointer-events: none;
}

/* A candidate that *forms* the pattern: the pencil mark itself becomes the token -- a filled
   disc in the hint's colour with the digit reversed out in the board surface -- so the eye goes
   to the digit that matters rather than to a box drawn around it. See skin-minimal's cand-mark.
   The disc is drawn on ::before because ::after already belongs to the player's underline, and a
   pattern candidate the player has underlined is an ordinary combination: both must render, which
   they do -- the underline is painted in currentColor, i.e. reversed out of the disc too.
   The token is the mark's own cell in the 3x3 cluster, not a disc sized off the glyph. A disc
   big enough to clear a 0.8rem digit is ~1.5em across, and a cluster cell is only about 15x13px
   at a full-size board -- so neighbouring lit marks overflowed into each other and merged into a
   peanut. Filling the cell instead fits by construction at every board size, and a squared token
   suits a board whose cells, grid and cage rules are all angular anyway. */
.pencil-cell.cand-mark[b-f3k0fgje2w] {
    position: relative;
    color: var(--board-surface);
    font-weight: 700;
    z-index: 1;
}

.pencil-cell.cand-mark[b-f3k0fgje2w]::before {
    content: '';
    position: absolute;
    inset: 0.5px;
    border-radius: 2px;
    background: var(--hint-mark);
    z-index: -1;
    pointer-events: none;
}

/* Evidence and strike on the same mark cannot happen: evidence is the pattern and the strike is
   what the step removes, and no technique reports one of its own eliminations as evidence. Both
   want ::before, so state the outcome rather than leave it to source order -- the strike wins,
   because it is the actionable claim, and the disc is dropped entirely. */
.pencil-cell.cand-mark.cand-strike[b-f3k0fgje2w] {
    color: var(--hint-elim);
    font-weight: 500;
}

.pencil-cell.cand-mark.cand-strike[b-f3k0fgje2w]::before {
    width: auto;
    height: 1px;
    border-radius: 0;
    background: currentColor;
    z-index: auto;
    left: 6%;
    right: 6%;
    top: 50%;
    transform: rotate(-24deg);
}

/* ---- states: the only colour on the board ----
   One fill for the whole selection; the anchor is told apart by a thin ring,
   not by a second, deeper fill (measured: a darker anchor fill cost a player
   digit its 4.5:1). Hint/conflict rings lost their glow along with the cage
   tints they used to sit on — a blurred halo read as busy against a hairline
   grid, and the ring alone is enough on a quiet, flat board. */
/* With one cell selected, its row, column, box and cage (PlayBoard.IsPeerOfSelection): a lighter tint. */
.play-cell.in-peer[b-f3k0fgje2w] {
    background: var(--selection-peer);
}

/* data-drag-preview and data-drag-current: the cells a drag has crossed and its newest one, drawn by
   play-input.js (registerBoardDrag) before .NET's render catches up; they look exactly like the selection and
   the current cell, and go as soon as that render has drawn the real classes.
   KEEP IN STEP: every rule in this file that draws .in-selection or .selected has a matching
   [data-drag-preview] / [data-drag-current] selector beside it, at the same specificity, or a drag flickers
   between two looks for a render. Change one, change both. (hl-pick has no preview twin: a drag cannot start
   while the coach is being answered.) */
.play-cell.in-selection[b-f3k0fgje2w],
.play-cell[data-drag-preview][b-f3k0fgje2w] {
    background: var(--selection-fill);
}

/* The current cell (the cursor: the last tapped, or a drag's anchor) also carries the ink ring,
   drawn on ::before further down so it sits over every tint and mark. */
.play-cell.selected[b-f3k0fgje2w],
.play-cell[data-drag-current][b-f3k0fgje2w] {
    background: var(--selection-fill);
    z-index: 5;
}

/* While a previewed cell is the current one, the old current cell is not: its ink ring goes until the
   render that moves .selected. */
.play-grid[data-drag-live] .play-cell.selected:not([data-drag-current])[b-f3k0fgje2w]::before {
    content: none;
}

.play-cell.conflict[b-f3k0fgje2w] {
    background: var(--conflict-fill);
}

.play-cell.conflict .value--player[b-f3k0fgje2w],
.play-cell.conflict .value--coach[b-f3k0fgje2w],
.play-cell.conflict .value--given[b-f3k0fgje2w] {
    color: var(--conflict-text);
}

/* One hue for the whole coach; the device carries the difference.
   A placement is ringed -- it names one cell and puts a digit in it. */
.play-cell.hl-set[b-f3k0fgje2w] {
    background: var(--hint-fill);
    box-shadow: inset 0 0 0 2px var(--hint-set);
    z-index: 4;
}

/* An elimination tints the cell, and the struck pencil marks inside say which
   candidates actually go -- a ring here would claim the whole cell changes. */
.play-cell.hl-elim[b-f3k0fgje2w] {
    background: var(--hint-fill);
    z-index: 4;
}

/* Action-neutral location ring shown before placement/elimination semantics. */
/* Location: where the step lives, before its type is revealed. A tint, not a
   ring -- at this rung the coach has not said what it is about to do. */
.play-cell.hl-focus[b-f3k0fgje2w] {
    background: var(--hint-fill);
    z-index: 4;
}

/* The supporting house/cage for a shown hint: a quiet flat fill rather than
   another competing ring, so action targets stay unambiguous. */
.play-cell.hl-context[b-f3k0fgje2w] {
    background: var(--hint-context-wash);
}

/* Selection has to survive a state that takes the cell background away from it (a drag's preview too;
   see "KEEP IN STEP" above).
   Selection, conflict and the hint-context wash are all fills, and only one can
   own the background -- so on a conflicting or hint-washed cell the selection
   silently vanished, which is precisely the failure the fill exists to prevent
   ("a missed cell in a drag is obvious at a glance"). Draw the ring on ::before
   rather than as a box-shadow: every hint state is already a box-shadow ring on
   the cell itself, and a competing one here would hide it. A Check cell and the
   coach's focus, elimination and placement cells are fills too (the check tint,
   the hint fill), so they join the list: the selection keeps showing under a hint
   (design.md section 10). One device everywhere a fill takes the background: a
   thin 1.5px ring in the selection blue, which reads apart from the current cell's
   2.5px ink ring and from a pick's 3px accent ring with its badge. */
.play-cell.in-selection.conflict[b-f3k0fgje2w]::before,
.play-cell.in-selection.hl-context[b-f3k0fgje2w]::before,
.play-cell.in-selection.hl-check[b-f3k0fgje2w]::before,
.play-cell.in-selection.hl-focus[b-f3k0fgje2w]::before,
.play-cell.in-selection.hl-elim[b-f3k0fgje2w]::before,
.play-cell.in-selection.hl-set[b-f3k0fgje2w]::before,
.play-cell.in-selection.hl-ref[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview].conflict[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview].hl-context[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview].hl-check[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview].hl-focus[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview].hl-elim[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview].hl-set[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview].hl-ref[b-f3k0fgje2w]::before,
.play-cell.selected[b-f3k0fgje2w]::before,
.play-cell[data-drag-current][b-f3k0fgje2w]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1.5px var(--selection-ring);
}

/* A placement's own 2px ring owns the cell edge: the selection ring sits just inside it. */
.play-cell.in-selection.hl-set[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview].hl-set[b-f3k0fgje2w]::before { inset: 2px; }

/* The current cell (v5.5, owner #19): a 2.5px ink ring, inset, on top of everything the
   cell can show -- the coach focus fill, a Check tint and its flag, a digit-highlight disc,
   an answer pick's ring and badge, the cage dashes and sum. Ink, not the accent: the accent
   ring is the coach pick. Only this cell has it; the rest of a multi-cell selection keeps
   the selection fill alone. (in-selection is always on the current cell too; naming it keeps this
   rule ahead of the three-class survival selectors above.) */
.play-cell.in-selection.selected[b-f3k0fgje2w]::before,
.play-cell.play-cell[data-drag-current][b-f3k0fgje2w]::before {
    z-index: 7;
    inset: 0;
    box-shadow: inset 0 0 0 2.5px var(--ink);
}

/* ---- walkthrough answer mode ----
   A picked cell carries a 3px accent ring AND a badge with a tick (v5.4, owner #5), so "picked"
   never rests on colour alone. The keyboard answer cursor is a solid outline in the same accent
   (drawn only once the keyboard is used). Pointing at a named phrase in the walkthrough text
   lays a neutral grey wash on its cells (hl-ref, below), deliberately not the amber hint ink:
   pointing is not a claim. */
.play-cell.hl-pick[b-f3k0fgje2w] {
    box-shadow: inset 0 0 0 3px var(--coach-pick);
    z-index: 5;
}

/* On the current cell the ink ring takes the outer 2.5px, so the pick ring moves in by that
   much and keeps its full 3px inside it. */
.play-cell.selected.hl-pick[b-f3k0fgje2w] {
    box-shadow: inset 0 0 0 5.5px var(--coach-pick);
}

/* The badge: a 12px accent disc on the cell's top-right corner, the tick reversed out of it. */
.coach-pick-mark[b-f3k0fgje2w] {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--coach-pick);
    z-index: 3;
    pointer-events: none;
}

.coach-pick-mark[b-f3k0fgje2w]::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3.2px;
    width: 6px;
    height: 3px;
    border-left: 1.75px solid var(--coach-pick-text);
    border-bottom: 1.75px solid var(--coach-pick-text);
    transform: rotate(-45deg);
}

/* A walkthrough step's focus is the hint fill on every cell of every region (hl-focus). Where
   two regions touch, the shared edge gets a thin solid separator in the board's own surface, so
   "these two cages" reads as two (v5.5, owner #4). No outline: the fill is the region. The razor
   puts e-t/e-r/e-b/e-l only on the sides a cell shares with a cell of another region, on both
   cells of the pair; together they make 2px: the left/top cell's hairline repainted, plus one
   pixel inside the right/bottom cell. */
.coach-focus-edge[b-f3k0fgje2w] {
    position: absolute;
    inset: 0;
    z-index: 5;                 /* over the cage sum's knock-out background, which would notch it */
    pointer-events: none;
    border: 0 solid var(--board-surface);
}
.coach-focus-edge.e-t[b-f3k0fgje2w] { border-top-width: 1px; }
.coach-focus-edge.e-l[b-f3k0fgje2w] { border-left-width: 1px; }
.play-cell:not(.box-border-right):has(> .coach-focus-edge.e-r)[b-f3k0fgje2w] { border-right-color: var(--board-surface); }
.play-cell:not(.box-border-bottom):has(> .coach-focus-edge.e-b)[b-f3k0fgje2w] { border-bottom-color: var(--board-surface); }
/* On a box rule the 2px dark rule stays (it is structure), and the separator flanks it: 1px of
   surface inside each cell, so it reads the same weight as anywhere else, not as half of it. */
.play-cell.box-border-right > .coach-focus-edge.e-r[b-f3k0fgje2w] { border-right-width: 1px; }
.play-cell.box-border-bottom > .coach-focus-edge.e-b[b-f3k0fgje2w] { border-bottom-width: 1px; }

.play-cell.hl-answer-cursor[b-f3k0fgje2w] {
    outline: 2px solid var(--coach-pick);
    outline-offset: -6px;
    z-index: 6;
}

/* Pointing at a phrase (hl-ref) washes the named cells in a cool neutral grey, in place of
   whatever fill they had: no outline, so it can never read as the current cell's ink ring or as a
   cage's dashes, and a region reads as one patch, not a grid of boxes. Grey, not the amber focus or
   the selection blue; every board text colour is gated on it in tools/contrast-check.py. Pointing is
   transient, so the focus fill comes back when the pointer leaves. */
.play-cell.hl-ref[b-f3k0fgje2w] {
    background: var(--coach-ref-wash);
}

.play-cell.hl-conflict[b-f3k0fgje2w] {
    box-shadow: inset 0 0 0 2px var(--conflict-ring);
    z-index: 4;
}

/* A ghost value's soft disc is close to the selection fill and the pointing wash in both themes, and
   reads poorly on the coach's amber, so on those fills (and on the Check tint, below) the disc takes the
   board surface: a hole cut in the fill, with the digit on it unchanged. The lighter fills (peer tint,
   context wash, conflict fill, scratch-colour washes) keep the soft disc, which they leave visible.
   KEEP IN STEP with the drag-preview twins (see above). */
.play-cell.in-selection .value--ghost[b-f3k0fgje2w]::before,
.play-cell.selected .value--ghost[b-f3k0fgje2w]::before,
.play-cell[data-drag-preview] .value--ghost[b-f3k0fgje2w]::before,
.play-cell[data-drag-current] .value--ghost[b-f3k0fgje2w]::before,
.play-cell.hl-focus .value--ghost[b-f3k0fgje2w]::before,
.play-cell.hl-elim .value--ghost[b-f3k0fgje2w]::before,
.play-cell.hl-set .value--ghost[b-f3k0fgje2w]::before,
.play-cell.hl-ref .value--ghost[b-f3k0fgje2w]::before,
.play-cell.hl-check .value--ghost[b-f3k0fgje2w]::before {
    background: var(--board-surface);
}

/* Solution-check verdicts (v5.4, owner #10): the check tint, the digit or the notes in the check
   ink, and a corner flag. A broken rule (.conflict) is drawn the same way in kind -- a red-family
   fill and red digits -- so the two are told apart by shape, not colour: Check's cells carry the
   flag and conflict cells never do. They also differ in count (a conflict is always two or more
   cells clashing in one house; a Check verdict marks single cells), in what they mark (only
   Check marks a cell for its notes), and in the status line that always comes with a Check. */
.play-cell.hl-check[b-f3k0fgje2w] {
    background: var(--check-fill);
    z-index: 4;
}

.play-cell.hl-check .value[b-f3k0fgje2w],
.play-cell.hl-check .pencil-cell[b-f3k0fgje2w] {
    color: var(--check-ink);
}

.play-cell.hl-check .value[b-f3k0fgje2w] { font-weight: 600; }

/* The flag sits 3px in from the corner, inside the current cell's 2.5px ring, so the ring never
   trims it. A scratch-colour dot in the same corner stays put and tucks under the flag (the flag
   and the tint say what matters there), as it does under a pick badge; neither covers a mark. */
.play-cell.hl-check[b-f3k0fgje2w]::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 24%;
    height: 24%;
    background: var(--check-ink);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 3;
    pointer-events: none;
}

/* Digit highlight (v5.4, owner #20): the highlighted digit sits on an accent disc, reversed out.
   A value gets a disc behind it; a cell that holds the digit as a pencil mark gets a small disc
   behind that one mark, not a tint on the cell. The value disc is drawn in the value's own stacking
   context (z-index -1 there), so it stays under the digit; the mark disc likewise under its mark.
   A coach token or strike on the same mark wins: it is the step's claim. */
.play-cell.hl-value-match .value[b-f3k0fgje2w]::before {
    content: "";
    position: absolute;
    inset: 19%;
    border-radius: 50%;
    background: var(--accent);
    z-index: -1;
    pointer-events: none;
}

.play-cell.hl-value-match .value[b-f3k0fgje2w] {
    color: var(--on-accent);
}

/* A ghost value of the highlighted digit keeps its own disc and ink and gains a solid 2px accent ring
   round the disc. It used to take the placed value's solid disc, which made it look placed exactly when
   the player is scanning for where that digit already is. */
.play-cell.hl-mark-match .value--ghost[b-f3k0fgje2w]::before {
    box-shadow: 0 0 0 2px var(--accent);
}

/* A highlighted pencil mark, as the mockups draw it (_board.js b-mark-disc, owners #46, #50): the figure in
   --on-accent at 600 on a round --accent disc about 28.5% of the cell across (the mockups' 30% around their figure read
   as too much, owner #55), in whole pixels. Inter's tabular figures have their ink on
   the middle of the mark's line box (measured at 300px: within 0.01em, every digit), so the disc is centred
   on the box, with the whole-pixel placement below on a 1x screen. A disc that meets the cage sum (mark 1, sometimes 2) passes under the sum's knock-out box,
   so the sum stays whole and readable; elsewhere it is round. Its neighbouring marks are drawn over its
   rim. */
.pencil-cell.mark-match:not(.cand-mark):not(.cand-strike)[b-f3k0fgje2w] {
    position: relative;
    color: var(--on-accent);
    font-weight: 600;
}

/* The disc lies over the cage dash it may reach, as the mockups draw it, and still under the sum (z-index 4). */
.pencil:has(.mark-match)[b-f3k0fgje2w] { z-index: 3; }

.pencil-cell.mark-match:not(.cand-mark):not(.cand-strike)[b-f3k0fgje2w]::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--cell) * 0.285);
    height: calc(var(--cell) * 0.285);
    width: round(nearest, calc(var(--cell) * 0.285), 1px);
    height: round(nearest, calc(var(--cell) * 0.285), 1px);
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* On a 1x screen the browser places a figure on a whole pixel, so the disc takes a whole-pixel start too, rounded
   the way that puts its middle on the figure's (owner #55): right across, and up the cell, because at the centred
   layout's row pitches the figure's ink sits above the middle of its line box (measured on painted pixels: at
   1440x900 rounding down leaves the disc level with the ink, rounding up left it 1px low). Finer screens keep
   the exact centre above, since their figures aren't snapped to a CSS pixel. */
@media (max-resolution: 1.49dppx) {
    @supports (width: round(up, 1px, 1px)) {
        .pencil-cell.mark-match:not(.cand-mark):not(.cand-strike)[b-f3k0fgje2w]::before {
            left: round(up, calc((100% - round(nearest, calc(var(--cell) * 0.285), 1px)) / 2), 1px);
            top: round(down, calc((100% - round(nearest, calc(var(--cell) * 0.285), 1px)) / 2), 1px);
            transform: none;
        }
    }
}

/* ---- player scratch colours ----
   A real child element (not a pseudo — those are taken by the selection/same-digit
   fills), layered at z-index 1 with the other fills and below the value/pencil text
   (z-index 2). Two parts: a soft full-cell wash for at-a-glance grouping that composes
   with the cage tint below (theme-tuned via --colour-N-wash so light pencil marks stay
   ≥4.5:1 on top in dark), plus a solid saturated corner dot in the free top-right
   corner (the cage label owns top-left). The dot hues are kept literal — they are
   identity indicators (violet / pink / teal, clear of the semantic palette) that read
   on both themes and must stay stable so a swatch always names the same colour. */
.cell-colour[b-f3k0fgje2w] {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

.cell-colour[b-f3k0fgje2w]::after {
    content: "";
    position: absolute;
    top: 0.16rem;
    right: 0.16rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--swatch-halo);
}

.cell-colour--1[b-f3k0fgje2w] { background: var(--colour-1-wash); }
.cell-colour--1[b-f3k0fgje2w]::after { background: var(--swatch-1); }
.cell-colour--2[b-f3k0fgje2w] { background: var(--colour-2-wash); }
.cell-colour--2[b-f3k0fgje2w]::after { background: var(--swatch-2); }
.cell-colour--3[b-f3k0fgje2w] { background: var(--colour-3-wash); }
.cell-colour--3[b-f3k0fgje2w]::after { background: var(--swatch-3); }
/* The digit-highlight disc (0.3's, inset 19% of the cell) is drawn round the digit itself: centred on the
   value's box, whose line box is centred on Inter's figures, so disc and digit share a centre at every cell
   size; 62% of the cell, as the mockups draw it. The value rises over the sum's knock-out box, as the
   mockups draw it: the box still hides the cage dash behind the sum (owner #56), and the disc stays round. */
.play-grid .value[b-f3k0fgje2w] { position: relative; }
.play-cell.hl-value-match .value[b-f3k0fgje2w] { z-index: 5; }
.play-cell.hl-value-match .value[b-f3k0fgje2w]::before {
    inset: auto;
    left: 50%;
    top: 50%;
    width: calc(var(--cell) * 0.62);
    height: calc(var(--cell) * 0.62);
    /* on the figure's ink, not its line box: Inter's figures sit 0.04em above the box's middle and
       0.02em right of it (measured, owner #40) */
    transform: translate(calc(-50% + 0.02em), calc(-50% - 0.04em));
}

/* The current cell's ink ring, as the mockups draw it: a 2.5px stroke on a rounded square 4% in from the
   cell edge (_board.js ring(..., 4), rx 3). */
.play-cell.in-selection.selected[b-f3k0fgje2w]::before,
.play-cell.play-cell[data-drag-current][b-f3k0fgje2w]::before {
    inset: calc(4% - 1.25px);
    border-radius: 3px;
}

/* ================================================================ motion (the approved motion study)
   Full motion only without a reduced-motion preference; with one, the information stays and the movement goes.
   What triggers each, and when it must not play, is in BoardMotion (a move) and CoachHighlightReveal (a hint):
   the classes below only exist for the render that starts them and the ones that follow without a change.
   The coach target's pulse is drawn over the board, not in a cell: it stays in PlayBoard.razor.css. */

/* A completion ripple's wash: over the cell's fills and colour, under the selection ring, the cage line, the sum
   and the digit, and invisible (opacity 0) whenever it isn't animating. */
.cell-fx[b-f3k0fgje2w] {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: color-mix(in srgb, var(--accent) 24%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
    /* 1. a placed digit settles in */
    .value.motion-settle[b-f3k0fgje2w] { animation: motion-settle-b-f3k0fgje2w var(--dur-settle) var(--ease-spring) both; }
    /* 2, 3. a completed house or cage: the wash travels out from the move, the other digits lift */
    .cell-fx[b-f3k0fgje2w] { animation: motion-wash-b-f3k0fgje2w var(--dur-ripple) var(--ease) both; animation-delay: var(--motion-d, 0ms); }
    .value.motion-lift[b-f3k0fgje2w] { animation: motion-lift-b-f3k0fgje2w var(--dur-lift) var(--ease) both; animation-delay: var(--motion-d, 0ms); }
    /* 4. a digit that breaks a rule shakes once (its red is instant) */
    .value.motion-shake[b-f3k0fgje2w] { animation: motion-shake-b-f3k0fgje2w var(--dur-shake) var(--ease) both; }
    /* 5. a coach highlight's tint spreads from its target (which pulses once: PlayBoard's .hint-pulse) */
    .play-cell.hint-in-a[b-f3k0fgje2w] { animation: hint-in-a-b-f3k0fgje2w var(--dur-hint) var(--ease) backwards; animation-delay: var(--hint-d, 0ms); }
    .play-cell.hint-in-b[b-f3k0fgje2w] { animation: hint-in-b-b-f3k0fgje2w var(--dur-hint) var(--ease) backwards; animation-delay: var(--hint-d, 0ms); }
}

@media (prefers-reduced-motion: reduce) {
    .value.motion-settle[b-f3k0fgje2w] { animation: motion-fade-b-f3k0fgje2w var(--dur-1) linear both; }
    .cell-fx[b-f3k0fgje2w] { animation: motion-wash-b-f3k0fgje2w var(--dur-ripple) var(--ease) both; }
    .play-cell.hint-in-a[b-f3k0fgje2w] { animation: hint-in-a-b-f3k0fgje2w var(--dur-hint) var(--ease) backwards; }
    .play-cell.hint-in-b[b-f3k0fgje2w] { animation: hint-in-b-b-f3k0fgje2w var(--dur-hint) var(--ease) backwards; }
}

@keyframes motion-settle-b-f3k0fgje2w { from { opacity: 0; transform: scale(.72); } }
@keyframes motion-fade-b-f3k0fgje2w { from { opacity: 0; } }
@keyframes motion-wash-b-f3k0fgje2w { 0% { opacity: 0; } 28% { opacity: 1; } 100% { opacity: 0; } }
@keyframes motion-lift-b-f3k0fgje2w { 40% { transform: scale(1.14); } }
@keyframes motion-shake-b-f3k0fgje2w {
    0%, 100% { transform: none; }
    18% { transform: translateX(-3px); }
    38% { transform: translateX(3px); }
    58% { transform: translateX(-2px); }
    78% { transform: translateX(1.5px); }
}
/* Two names for one animation: a new hint swaps them, which restarts the tint on cells lit in both. */
@keyframes hint-in-a-b-f3k0fgje2w { from { background-color: var(--board-surface); } }
@keyframes hint-in-b-b-f3k0fgje2w { from { background-color: var(--board-surface); } }

/* The solve story's time trace: an accent wash at each cell's think alpha, under the digit. */
.cell-trace[b-f3k0fgje2w] {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--accent);
    opacity: var(--trace-a, 0);
}
.value.is-later[b-f3k0fgje2w] { opacity: .12; }
@media (prefers-reduced-motion: no-preference) {
    .cell-trace[b-f3k0fgje2w] { animation: trace-in-b-f3k0fgje2w 600ms linear var(--trace-delay, 0ms) both; }
    .play-grid .value[b-f3k0fgje2w] { transition: opacity 120ms var(--ease); }
}
/* Every cell flashes to the same strength of the accent (so the wave reads on short thinks too), then eases to its own
   trace shade. The duration matches SolveStory.TraceFadeMs. */
@keyframes trace-in-b-f3k0fgje2w {
    0% { opacity: 0; animation-timing-function: ease-out; }
    28% { opacity: .6; animation-timing-function: ease-out; }
    100% { opacity: var(--trace-a, 0); }
}
/* The replay's finale (step 6c): the host renders the trace under the running replay, hidden; solve-replay.js marks the
   stage (data-rp-ripple) when the last digit is in, which shows it, so the wave runs then. Skip, reduced motion and
   the held frames carry trace-still instead: the tint stands. */
.play-stage:not([data-rp-ripple]) .play-grid-frame.is-replaying .cell-trace[b-f3k0fgje2w] { display: none; }
.play-grid-frame.trace-still .cell-trace[b-f3k0fgje2w] { animation: none; }

/* The fast replay (step 6c): while it runs (the frame's is-replaying) every digit but a given is hidden until
   solve-replay.js marks its cell (data-rp, an attribute no render owns) as popped back in: scale 0.55 to 1 over the
   cell's --rp-pop. Once a replay has run in this finish (rp-played) the board's own motion stays off, or a digit's
   settle would play again as the replay's pop left it. */
.play-grid-frame.is-replaying .play-cell:not([data-rp]) .value:not(.value--given)[b-f3k0fgje2w] { opacity: 0; }
.play-grid-frame.is-replaying .value[b-f3k0fgje2w] { transition: none; }
.play-grid-frame.rp-played .value[b-f3k0fgje2w], .play-grid-frame.rp-played .cell-fx[b-f3k0fgje2w] { animation: none; }
.play-grid-frame.rp-played .play-cell[data-rp="pop"] .value[b-f3k0fgje2w] { animation: rp-pop-b-f3k0fgje2w var(--rp-pop, 180ms) var(--ease) both; }
@keyframes rp-pop-b-f3k0fgje2w { from { opacity: 0; transform: scale(.55); } }

/* ---- a windowed board (PlayState.Window, the mini killer) ----
   The crop's last column closes the board as the ninth does on a full one; a cell that is not part of the
   puzzle is hatched and inert, even under a drag's preview. */
.play-grid--window .play-cell:last-child[b-f3k0fgje2w] { border-right: 2px solid var(--board-surface); }
.play-cell.masked[b-f3k0fgje2w],
.play-cell.masked[data-drag-preview][b-f3k0fgje2w],
.play-cell.masked[data-drag-current][b-f3k0fgje2w] {
    /* Hatched, so it never reads as the selection's row and column tint (--selection-peer). */
    background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, var(--bg) 5px 10px);
    cursor: default;
}
.play-cell.masked[data-drag-current][b-f3k0fgje2w]::before { content: none; }
/* /Components/Play/CoachSurface.razor.rz.scp.css */
/* The coach (design.md section 3.8), from the v5 mockups' _play.css (.coach-ui, .coach-panel, .coach-sheet). One
   surface, two hosts: the desktop context panel's Coach view, and below 1050px (and on a landscape phone) a dock
   sheet over the control area, placed with the stage's variables (PlayStage: --ctl-top, --dock-bottom, --pad-h ...).
   A column: head, progress line, a body that scrolls only if it must (fading at the edge that hides content), and a
   foot that never scrolls. */

.coach-surface[b-i56aj966uw] {
    display: flex; flex-direction: column; min-width: 0; min-height: 0; box-sizing: border-box;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--accent); border-radius: var(--r-md);
}

/* ---------- head: ✦ Coach, or ✦ technique · Step n of N; × is the only control ---------- */
.coach-head[b-i56aj966uw] { display: flex; align-items: center; flex: none; min-height: 44px; }
.coach-title[b-i56aj966uw] {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s2); margin: 0;
    font: 600 var(--t-body)/1.2 var(--font-ui); color: var(--accent-text);
}
.coach-title-text[b-i56aj966uw] { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-step-count[b-i56aj966uw] { flex: none; font: 500 var(--t-small)/1 var(--font-ui); color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* Dense sheets only (below): the earlier findings behind "Steps 1–n ▸", in the step count's place. */
.coach-trail-toggle[b-i56aj966uw] {
    display: none; align-items: center; gap: 2px; flex: none; min-height: 44px; margin: -12px 0; padding: 0 4px;
    border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; white-space: nowrap;
    font: 600 var(--t-small)/1 var(--font-ui); color: var(--accent-text); font-variant-numeric: tabular-nums;
}
.coach-trail-toggle:focus-visible[b-i56aj966uw] { outline: 2px solid var(--focus); outline-offset: -2px; }
.coach-head[b-i56aj966uw]  .coach-close { flex: none; margin-right: -10px; }

/* ---------- progress line: one segment per step this hint has ---------- */
.coach-progress[b-i56aj966uw] { display: flex; gap: 4px; flex: none; margin: 0 0 var(--s2); }
.coach-progress i[b-i56aj966uw] { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); }
.coach-progress i.on[b-i56aj966uw] { background: var(--accent); }

/* ---------- body ---------- */
.coach-body[b-i56aj966uw] {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start;
    min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.coach-body[data-fade~="bottom"][b-i56aj966uw] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.coach-body[data-fade~="top"][b-i56aj966uw] { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 28px), transparent); }
.coach-body[data-fade~="top"][data-fade~="bottom"][b-i56aj966uw] {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.coach-body p[b-i56aj966uw] { margin: 0; }
.coach-ask[b-i56aj966uw], .coach-reveal[b-i56aj966uw] { display: grid; gap: 10px; }
/* the question or the nudge, in the serif */
.coach-say[b-i56aj966uw] { font: 500 var(--t-title)/var(--lh-title) var(--font-display); color: var(--ink); }
.coach-say.is-asked[b-i56aj966uw] { font: 500 var(--t-body)/var(--lh-body) var(--font-ui); color: var(--ink-2); }
.coach-primer[b-i56aj966uw], .coach-note[b-i56aj966uw] { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); }
.coach-trail[b-i56aj966uw] { margin: 0; padding: 0 0 0 20px; display: grid; gap: 4px; font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); }
.coach-trail li[b-i56aj966uw]::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* the answer slot: the mode's banner (accent edge and dot), or the feedback in its place (warn) */
.coach-answer[b-i56aj966uw] {
    display: flex; align-items: center; gap: var(--s2); padding: 8px 12px; border-radius: var(--r-sm);
    border: 1.5px solid var(--coach-pick); background: var(--surface);
    font: 600 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink);
}
.coach-answer[b-i56aj966uw]::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coach-pick); }
.coach-feedback[b-i56aj966uw] {
    padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--warn-line);
    background: var(--warn-bg); color: var(--warn-ink); font: 500 var(--t-small)/var(--lh-small) var(--font-ui);
}
.coach-finding[b-i56aj966uw] { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); }
.coach-findings[b-i56aj966uw] { margin: 0; padding: 0 0 0 22px; display: grid; gap: var(--s2); }
.coach-choices[b-i56aj966uw] { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-choice[b-i56aj966uw] {
    min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink); font: 500 var(--t-body)/1 var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer;
}
.coach-choice.is-picked[b-i56aj966uw] { background: var(--coach-pick); border-color: var(--coach-pick); color: var(--coach-pick-text); }
.coach-choice:focus-visible[b-i56aj966uw] { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the fills of the final reveal */
.coach-legend[b-i56aj966uw] { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--s4); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); }
.coach-legend li[b-i56aj966uw] { display: inline-flex; align-items: center; gap: 6px; }
.coach-legend i[b-i56aj966uw] { width: 16px; height: 16px; border-radius: 3px; flex: none; box-sizing: border-box; }
.coach-legend .lg-elim[b-i56aj966uw] { background: var(--hint-fill); }
.coach-legend .lg-set[b-i56aj966uw] { background: var(--hint-fill); box-shadow: inset 0 0 0 2px var(--hint-set); }
.coach-legend .lg-context[b-i56aj966uw] { background: var(--hint-context-wash); border: 1px solid var(--line); }
/* a hint without steps keeps its action list */
.coach-actions-list[b-i56aj966uw] { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--t-small); line-height: var(--lh-small); }
.coach-actions-list li[b-i56aj966uw] { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); }
.coach-actions-list li.is-set[b-i56aj966uw] { border-color: var(--accent-line); color: var(--accent-text); }
.coach-actions-list li.is-elim[b-i56aj966uw] { border-color: var(--danger-line); color: var(--danger); }
/* searching: the line and its detail, Stop beside them */
.coach-status[b-i56aj966uw] { display: flex; align-items: center; gap: var(--s3); }
.coach-status-text[b-i56aj966uw] { flex: 1; min-width: 0; font-size: var(--t-body); line-height: var(--lh-body); }
.coach-status-detail[b-i56aj966uw] { display: block; font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-3); overflow-wrap: anywhere; }
/* the outcomes */
.coach-msg[b-i56aj966uw] { color: var(--ink); }
.coach-msg.is-flag[b-i56aj966uw] { padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.coach-detail[b-i56aj966uw] { font-size: var(--t-small); color: var(--ink-2); }
.coach-detail summary[b-i56aj966uw] { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.engine-grid[b-i56aj966uw] { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); }
.engine-grid span:nth-child(odd)[b-i56aj966uw] { font-weight: 600; }
.coach-text-btn[b-i56aj966uw] {
    justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
    font: 600 var(--t-small)/1 var(--font-ui); color: var(--accent-text);
}
.coach-text-btn:focus-visible[b-i56aj966uw] { outline: 2px solid var(--focus); outline-offset: 2px; }
.coach-export-field[b-i56aj966uw] { display: grid; gap: var(--s1); font-size: var(--t-small); color: var(--ink-2); }

/* ---------- foot: the answer pad (phone and tablet) and one action row ---------- */
.coach-foot[b-i56aj966uw] { display: grid; gap: var(--s2); flex: none; }
.coach-bar[b-i56aj966uw] { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s1); }
.coach-bar[b-i56aj966uw]  .ui-btn--primary { min-width: 104px; margin-right: var(--s1); padding: 0 16px; }
/* Back, Show answer, Reveal, Stop answering, Answer it: text buttons beside the primary, 44px tall */
.coach-bar[b-i56aj966uw]  .coach-text { padding: 0 8px; font-weight: 600; white-space: nowrap; }
.coach-pad[b-i56aj966uw] { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.coach-key[b-i56aj966uw] {
    height: 44px; min-width: 0; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--ink); font: 500 20px/1 var(--font-ui); font-variant-numeric: tabular-nums;
    cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.coach-key[aria-pressed="true"][b-i56aj966uw] { background: var(--coach-pick); border-color: var(--coach-pick); color: var(--coach-pick-text); }
.coach-key:focus-visible[b-i56aj966uw] { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .coach-key:hover[b-i56aj966uw] { border-color: var(--line-strong); } }

/* Visually hidden, pinned inside the surface, so the live region never reaches past the play shell. */
.coach-sr-only[b-i56aj966uw] {
    position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* =========================================================== desktop: the Coach panel
   The context panel's view: as tall as its content, up to the board's height, its body scrolling inside. The pad
   under the board answers TapDigits, so the sheet's own pad is not drawn. */
@media (min-width: 1050px) and (not ((orientation: landscape) and (max-height: 520px))) {
    .coach-surface[b-i56aj966uw] { position: relative; max-height: var(--bd); padding: var(--s3) var(--s4) var(--s4); overflow: hidden; }
    .coach-head[b-i56aj966uw] { margin-top: -6px; }
    .coach-foot[b-i56aj966uw] { border-top: 1px solid var(--line); margin-top: var(--s4); padding-top: var(--s3); }
    .coach-pad[b-i56aj966uw] { display: none; }
    /* Check (with its Enter) · Stop answering · Reveal fit the panel's one row */
    .coach-bar[b-i56aj966uw]  .ui-btn--primary { margin-right: 2px; padding: 0 14px; }
    .coach-bar[b-i56aj966uw]  .coach-text { padding: 0 6px; }
}

/* =========================================================== phone and tablet: the coach sheet
   A dock sheet: no scrim, accent border, never over the board; a closed card inside the board's gutter. */
@media (max-width: 1049px), (orientation: landscape) and (max-height: 520px) {
    .coach-surface[b-i56aj966uw] {
        position: absolute; z-index: 41; left: 0; right: 0; width: var(--bd); margin: 0 auto;
        bottom: var(--dock-bottom); box-shadow: var(--shadow-dock); overflow: hidden;
        /* The dock shadow reaches about 20px above the card; clip it at the board-to-strip gap, which neither
           footprint rises above, so nothing paints over the board's bottom row (owner #76: it washed the row out). */
        clip-path: inset(calc(-1 * var(--gap)) -32px -32px -32px);
        visibility: hidden; opacity: 0; transition: opacity 220ms ease, visibility 0s linear 220ms;
    }
    .coach-surface.is-open[b-i56aj966uw] { visibility: visible; opacity: 1; transition-delay: 0s; }
    .coach-head[b-i56aj966uw] { padding: 0 var(--s2) 0 var(--s3); }
    .coach-head[b-i56aj966uw]  .coach-close { margin-right: -6px; }   /* the 44px target stays inside the card's border */
    .coach-progress[b-i56aj966uw] { margin: -2px var(--s3) 6px; }
    .coach-body[b-i56aj966uw] { flex: 1 1 auto; padding: 2px var(--s3) var(--s3); }
    .coach-foot[b-i56aj966uw] { padding: var(--s2) var(--s3); border-top: 1px solid var(--line); background: var(--surface); }
    .coach-bar[b-i56aj966uw]  .ui-btn-kbd { display: none; }   /* the shortcut shows on desktop only, as the mockups draw it */

    /* full: the nudge, every step and Show answer, from the pad's bottom edge up to the board-to-strip gap under the
       board, as the v5 mockups place it (.coach-sheet.is-full: top: var(--ctl-top)), and never closer than their
       phone gap of 8px: the portrait phones' gap shrinks to 3px (owner #76: at 2px the card touched the board). It
       covers the strip, so it has no strip edge to leave showing. Its edges never move between steps. */
    .coach-surface.is-full[b-i56aj966uw] { top: calc(var(--pg-top) + var(--bd) + max(var(--gap), 8px)); }
    /* compact: searching and the outcomes cover the bottom of the pad (the tablet's mode and edit rows), growing
       upward with their text, at most to the strip's top edge */
    .coach-surface.is-compact[b-i56aj966uw] {
        min-height: calc(var(--seg-h) + var(--gap) + var(--edit-h));
        max-height: calc(100% - var(--ctl-top) - var(--dock-bottom));
    }
    .coach-surface.is-compact .coach-body[b-i56aj966uw] { padding-bottom: var(--s2); }
}
/* Portrait phones: the strip and the pad keep the page's width (PlayStage), and so does the sheet over them. The
   compact sheet covers the keypad's lower two rows (or, with the Single row setting, the row under the digits). */
@media (max-width: 699px) and (orientation: portrait) {
    .coach-surface[b-i56aj966uw] { width: calc(100cqw - 2 * var(--pg)); }
    .coach-surface.is-compact[b-i56aj966uw] { min-height: calc(2 * var(--digit-h) + var(--kp-gap, 4px)); }
    .stage.is-row .coach-surface.is-compact[b-i56aj966uw] { min-height: var(--edit-h); }
}
/* Phones 760px tall or more (FINAL.md section 3, amendment 3): the compact sheet sits on the keypad's top edge and
   fills the band up to the strip's first line (about 129px at 390x844), so the strip, the digits and Undo · Erase ·
   Coach stay usable; a longer outcome grows it upward, at most to the strip's top edge. */
@media (max-width: 699px) and (orientation: portrait) and (min-height: 760px) {
    .coach-surface.is-compact[b-i56aj966uw] {
        --coach-compact-bottom: calc(var(--dock-bottom) + var(--pad-h) + var(--gap));
        bottom: var(--coach-compact-bottom);
        min-height: calc(100% - var(--ctl-top) - var(--strip-h) - var(--gap) - var(--coach-compact-bottom));
        max-height: calc(100% - var(--ctl-top) - var(--coach-compact-bottom));
    }
}
@media (min-width: 700px) and (max-width: 1049px) {
    .coach-foot[b-i56aj966uw] { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .coach-foot:not(:has(.coach-pad))[b-i56aj966uw] { grid-template-columns: minmax(0, 1fr); }
    .coach-bar[b-i56aj966uw] { justify-content: flex-end; }
    .coach-foot:not(:has(.coach-pad)) .coach-bar[b-i56aj966uw] { justify-content: flex-start; }
    .coach-pad[b-i56aj966uw] { grid-template-columns: repeat(9, 48px); }
    .coach-key[b-i56aj966uw] { height: 48px; }
}
/* landscape phone: both footprints are the right-hand column below the bar */
@media (orientation: landscape) and (max-height: 520px) {
    .coach-surface[b-i56aj966uw], .coach-surface.is-full[b-i56aj966uw], .coach-surface.is-compact[b-i56aj966uw] {
        left: var(--col-left); right: auto; width: var(--col-w); margin: 0;
        top: calc(var(--pg) + var(--bar-h) + var(--gap)); bottom: var(--pg); min-height: 0; max-height: none;
        clip-path: none;   /* beside the board, not under it: geometry.mjs checks the shadow stays off it */
    }
    .coach-foot[b-i56aj966uw] { grid-template-columns: minmax(0, 1fr); }
    .coach-pad[b-i56aj966uw] { grid-template-columns: repeat(9, minmax(0, 1fr)); }
    .coach-key[b-i56aj966uw] { height: 40px; }
    .coach-bar[b-i56aj966uw] { justify-content: flex-start; }
}

/* =========================================================== dense sheets
   Phones under 760px tall, tablets under 960px tall, landscape phones: the control area is 200-270px, so the sheet
   earns every line: an 18px serif, earlier findings behind "Steps 1–n ▸" in the head, a one-line answer slot, 40px
   answer keys (36 below 640px tall), secondary actions as text buttons on the row, tighter padding. */
@media (max-width: 699px) and (max-height: 759px), (min-width: 700px) and (max-width: 1049px) and (max-height: 959px), (orientation: landscape) and (max-height: 520px) {
    .coach-trail[b-i56aj966uw], .coach-step-count.has-earlier[b-i56aj966uw] { display: none; }
    .is-trail-open .coach-trail[b-i56aj966uw] { display: grid; }
    .coach-trail-toggle[b-i56aj966uw] { display: inline-flex; }
    .coach-progress[b-i56aj966uw] { margin: -4px var(--s3) 0; }
    .coach-body[b-i56aj966uw] { gap: 4px; padding: 4px var(--s3) 2px; }
    .coach-ask[b-i56aj966uw], .coach-reveal[b-i56aj966uw] { gap: 2px; }
    .coach-say[b-i56aj966uw] { font-size: 18px; line-height: 22px; }
    .coach-say.is-asked[b-i56aj966uw] { font: 500 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-3); }
    .coach-finding[b-i56aj966uw] { padding: 6px 10px; font-size: 15px; line-height: 21px; }
    .coach-findings[b-i56aj966uw] { font-size: 15px; line-height: 21px; gap: 4px; }
    .coach-slot[b-i56aj966uw] { padding: 0; border: 0; background: none; }
    .coach-slot.coach-feedback[b-i56aj966uw] { padding: 0 8px; border-radius: 4px; background: var(--warn-bg); justify-self: start; }
    .coach-foot[b-i56aj966uw] { gap: 4px; padding: 3px var(--s3); }
    .coach-key[b-i56aj966uw] { height: 40px; }
}
/* Narrow columns (the landscape phone's, a 320px phone): the row stays one line, Check · Stop answering · Reveal
   included, so the question keeps the height. */
@media (orientation: landscape) and (max-height: 520px), (max-width: 359px) {
    .coach-bar[b-i56aj966uw] { flex-wrap: nowrap; }
    .coach-bar[b-i56aj966uw]  .ui-btn--primary { flex: none; min-width: 0; margin-right: 0; padding: 0 12px; }
    .coach-bar[b-i56aj966uw]  .coach-text { flex: 0 1 auto; min-width: 0; padding: 0 4px; white-space: normal; line-height: 1.15; text-align: center; overflow-wrap: normal; }
}
@media (max-width: 699px) and (max-height: 639px) {
    .coach-key[b-i56aj966uw] { height: 36px; }
    .coach-foot[b-i56aj966uw] { padding-top: 1px; padding-bottom: 1px; }
}

@media (prefers-reduced-motion: reduce) {
    .coach-surface[b-i56aj966uw] { transition: none; }
}
/* /Components/Play/ColourSheet.razor.rz.scp.css */
/* The colour rows: the puzzle menu's row shape (PuzzleMenu.razor.css), with the swatch as the icon. Tokens only. */
.cs-list[b-664ygmp2p3] { list-style: none; margin: 0; padding: 0; }

.cs-item[b-664ygmp2p3] {
    display: flex;
    align-items: center;
    gap: var(--s3);
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: var(--s1) var(--s3);
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
    text-align: left;
    cursor: pointer;
}
.cs-item:hover[b-664ygmp2p3] { background: var(--surface-2); }
.cs-item:focus-visible[b-664ygmp2p3] { outline: 2px solid var(--focus); outline-offset: -2px; }
.cs-item[aria-pressed="true"][b-664ygmp2p3] { background: var(--accent-soft); font-weight: 600; }
.cs-item[aria-disabled="true"][b-664ygmp2p3] { color: var(--ink-3); cursor: default; }
.cs-item[aria-disabled="true"]:hover[b-664ygmp2p3] { background: transparent; }
.cs-item[aria-disabled="true"] .cs-dot[b-664ygmp2p3] { opacity: .45; }

.cs-dot[b-664ygmp2p3] {
    flex: none;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 7px;
}
.cs-dot--1[b-664ygmp2p3] { background: var(--swatch-1); }
.cs-dot--2[b-664ygmp2p3] { background: var(--swatch-2); }
.cs-dot--3[b-664ygmp2p3] { background: var(--swatch-3); }
.cs-dot--none[b-664ygmp2p3] { background: var(--surface); border-color: var(--line-strong); }

.cs-label[b-664ygmp2p3] { flex: 1; min-width: 0; }

.cs-kbd[b-664ygmp2p3] {
    flex: none;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink-2);
    font: 500 var(--t-small)/18px var(--font-ui);
}

.cs-why[b-664ygmp2p3] {
    margin: var(--s2) var(--s3) 0;
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-small);
}

/* Phones: 52px rows and no key hints, as the puzzle menu. */
@media (max-width: 699px) {
    .cs-item[b-664ygmp2p3] { min-height: 52px; }
    .cs-kbd[b-664ygmp2p3] { display: none; }
}
@media not (any-pointer: fine) {
    .cs-kbd[b-664ygmp2p3] { display: none; }
}
/* /Components/Play/ContextPanel.razor.rz.scp.css */
/* Phone, tablet and landscape: no panel; each view's surface positions itself (see ContextPanel.razor). */
.ctx-panel[b-57f0cx2074], .ctx-view[b-57f0cx2074] { display: contents; }

@media (min-width: 1050px) {
    .ctx-panel[b-57f0cx2074] { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
    .ctx-view[b-57f0cx2074] { display: none; }
    .ctx-view.is-current[b-57f0cx2074] { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
}
/* A short, wide window takes the landscape layout (PlayStage), which has no panel. */
@media (orientation: landscape) and (max-height: 520px) {
    .ctx-panel[b-57f0cx2074], .ctx-view[b-57f0cx2074], .ctx-view.is-current[b-57f0cx2074] { display: contents; }
}
/* /Components/Play/FinishCard.razor.rz.scp.css */
/* The finish card over the board (finish round 3: the mockups' .mx-over.r3, _finish2.css and _finish3.css). Centred
   over the board's frame (its nearest positioned ancestor): the board's width less 40px on phones, tablets and
   landscape phones, 400px on desktop. Accent border and pop shadow; no scrim (the host dims the board). */
.fco[b-8pefy4zlx1] {
    position: absolute;
    z-index: 30;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: calc(var(--bd) - 40px);
    max-height: calc(var(--bd) - 24px);
    overflow: hidden;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0;
    padding: var(--s5) var(--s4);
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--accent);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
    transition: opacity var(--dur-2) var(--ease), visibility 0s linear 0s;
}
.fco.is-hidden[b-8pefy4zlx1] { opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease), visibility 0s linear var(--dur-2); }
.fco.is-pending[b-8pefy4zlx1] { opacity: 0; visibility: hidden; pointer-events: none; }

.fco-seal[b-8pefy4zlx1] {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: var(--s2);
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
}
.fco-seal[b-8pefy4zlx1]  .ui-icon { width: 20px; height: 20px; stroke-width: 2.4; }
.fco-h[b-8pefy4zlx1] { margin: 0; font: 600 var(--t-title)/var(--lh-title) var(--font-display); outline: none; }
.fco-hero[b-8pefy4zlx1] {
    margin: 2px 0 var(--s1);
    font: 500 56px/60px var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
.fco-atleast[b-8pefy4zlx1] { font-size: var(--t-title); letter-spacing: 0; }
.fco-meta[b-8pefy4zlx1] { margin: 0; font: 400 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-2); }
.fco-line[b-8pefy4zlx1] { margin: 2px 0 0; font: 400 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-3); }
/* "Solved" is visually hidden on a regular solve (the seal and the time say it); the live region too. */
.fco-sr[b-8pefy4zlx1] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Short phones: the control area's budget, round 2's compact rules (no seal, a smaller hero). */
@media (max-width: 699px) and (max-height: 759px), (orientation: landscape) and (max-height: 520px) {
    .fco[b-8pefy4zlx1] { padding: var(--s3); }
    .fco-seal[b-8pefy4zlx1] { display: none; }
    .fco-hero[b-8pefy4zlx1] { font-size: 44px; line-height: 48px; }
}
@media (min-width: 1050px) {
    .fco[b-8pefy4zlx1] { width: 400px; padding: var(--s6) var(--s6) var(--s5); }
    .fco-seal[b-8pefy4zlx1] { width: 40px; height: 40px; }
    .fco-seal[b-8pefy4zlx1]  .ui-icon { width: 22px; height: 22px; }
    .fco-hero[b-8pefy4zlx1] { font-size: 64px; line-height: 68px; }
    .fco-meta[b-8pefy4zlx1], .fco-line[b-8pefy4zlx1] { font-size: var(--t-body); line-height: var(--lh-body); }
}
@media (prefers-reduced-motion: reduce) {
    .fco[b-8pefy4zlx1], .fco.is-hidden[b-8pefy4zlx1] { transition: none; }
}

/* The hand-off after the fast replay (step 6c): the card fades in over 240ms with a 6px rise as the board dims. Only on
   the render after a replay that ran to its end (never with a reduced-motion preference, which has no replay). Held
   half way for ui-capture's end frame. */
.fco.fco--arrive[b-8pefy4zlx1] { animation: rp-land-surface 240ms var(--ease) backwards; }
.fco.fco--arrive.is-held[b-8pefy4zlx1] { animation: none; translate: 0 3px; }
/* /Components/Play/FinishPanel.razor.rz.scp.css */
/* The finish panel (finish round 3: the mockups' .fc.panel.mx-p1.r3, _finish.css to _finish3.css). The base rules are
   the desktop context panel, as tall as its content. Below 1050px (and on a landscape phone) it covers the control
   area, as the coach's full sheet does: from the board-to-strip gap to the pad's bottom edge (the strip and the pad
   stay in flow, hidden, under it), placed with PlayStage's variables. Its nearest positioned ancestor is the stage. */
.fp[b-d5xct2h9rm] {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    box-sizing: border-box;
    min-width: 0;
    padding: var(--s5);
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
}
.fp.is-pending[b-d5xct2h9rm] { opacity: 0; visibility: hidden; pointer-events: none; }

/* Share, alone at the top right; the 44px target reaches into the padding so its text lines up with the edge. */
.fp-top[b-d5xct2h9rm] { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; margin: -8px -10px -8px 0; }
.fp-top[b-d5xct2h9rm]  .sr-wrap { flex-direction: row-reverse; }
.fp-top[b-d5xct2h9rm]  .sr-btn { min-height: 40px; padding: 0 10px; gap: 6px; font-weight: 600; }

/* The rows under Share. */
.fp-body[b-d5xct2h9rm] { display: flex; flex-direction: column; gap: var(--s4); min-height: 0; }

/* The controls row: equal buttons, as many as there are (Board alone without a log; Board · Trace; Board · Replay · Trace
   with a story, step 6c). The panel's own timeline, when there is one, sits over it. */
.fp-ctl[b-d5xct2h9rm] { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min-content, 1fr); gap: var(--s2); container: fp-ctl / inline-size; }
.fp-ctl[b-d5xct2h9rm]  .fp-board, .fp-ctl[b-d5xct2h9rm]  .fp-replay, .fp-ctl[b-d5xct2h9rm]  .fp-trace { width: 100%; min-height: 44px; padding: 0 8px; gap: 6px; }
/* The swatch sits in the label's span with the word, so the span lays them out as the button lays out Board's icon and
   label: centred, 6px apart. */
.fp-ctl[b-d5xct2h9rm]  .fp-trace .ui-btn-label { display: inline-flex; align-items: center; gap: 6px; }
.fp-ctl[b-d5xct2h9rm]  .fp-trace .fp-swatch { display: block; }
/* Trace's swatch: the wash's range, faint to full. Pressed, the button takes the accent. */
.fp-swatch[b-d5xct2h9rm] {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 3px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), color-mix(in srgb, var(--accent) 55%, var(--surface)));
}
.fp-ctl[b-d5xct2h9rm]  .fp-trace[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

/* The timeline's height (round 3): 64px on desktop, 96px on phones and tablets, 56px on short phones. That is its
   height wherever the panel has the room; where the control area is shorter, the timeline gives way first (to a 36px box: a
   plot of 18px under the marks row), so the rows under it never scroll or get cut. */
.fp[b-d5xct2h9rm] { --stl-h: 64px; }
.fp-body[b-d5xct2h9rm] >  .stl-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(var(--stl-h) + 22px);
    min-height: 58px;
    max-height: calc(var(--stl-h) + 22px);
}
.fp-body[b-d5xct2h9rm] >  .stl { flex: 1 1 auto; height: auto; min-height: 36px; }
.fp-body[b-d5xct2h9rm] >  .stl-labels { flex: none; }

/* Rate this puzzle and the stars, on one line (the rating's Remove and Saved line wrap under it). */
.fp-rate[b-d5xct2h9rm] { min-height: 44px; display: flex; align-items: center; }
.fp-rate[b-d5xct2h9rm]  .puzzle-rating { column-gap: var(--s2); }
.fp-rate[b-d5xct2h9rm]  .rating-control { flex-wrap: nowrap; }
.fp-rate[b-d5xct2h9rm]  .rating-label { font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.fp-rate[b-d5xct2h9rm]  .rating-choice { width: 34px; font-size: 1.5rem; }

.fp-note[b-d5xct2h9rm] { margin: 0; font: 400 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-2); }

/* Side by side, sharing the width; a pair that can't fit both labels whole (Pick from the archive · Back to Today on a
   phone) takes a row each rather than cutting a label. */
.fp-actions[b-d5xct2h9rm] { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* Never wider than the panel: a long label ("Replay from the start…" in a narrow landscape column) wraps inside its button. */
.fp-actions[b-d5xct2h9rm]  .fp-act { flex: 1 1 0; min-width: max-content; min-width: fit-content; max-width: 100%; padding: 0 12px; }
.fp-actions[b-d5xct2h9rm]  .fp-act .ui-btn-label { white-space: normal; text-align: center; }

/* A first solve's install invitation (InstallGame), the last row of the panel: after the actions, the panel's width, no
   overlay. Its steps open under it. */
.fp-install[b-d5xct2h9rm] { display: flex; flex-direction: column; gap: var(--s2); }
.fp-install:empty[b-d5xct2h9rm] { display: none; }
.fp-install[b-d5xct2h9rm]  .install-invite, .fp-install[b-d5xct2h9rm]  .install-steps { margin: 0; }

/* =========================================================== phones, tablets and landscape phones */
@media (max-width: 1049px), (orientation: landscape) and (max-height: 520px) {
    .fp[b-d5xct2h9rm] {
        position: absolute;
        z-index: 30;
        left: 0;
        right: 0;
        width: var(--bd);
        margin: 0 auto;
        top: calc(var(--pg-top) + var(--bd) + max(var(--gap), 8px));
        bottom: var(--dock-bottom);
        overflow-y: auto;
        gap: var(--s2);
        padding: var(--s3) var(--s4) var(--s4);
        --fp-px: var(--s4);
        border-color: var(--accent);
    }
    /* The control area has no room to spare, so the invitation sits just under it, in the panel's scroll: the rows above
       keep the room they have without it, and scrolling the panel brings the invitation up. */
    .fp-install[b-d5xct2h9rm] { position: absolute; top: 100%; left: 0; right: 0; padding: var(--s2) var(--fp-px) var(--s4); }
    /* Under Share, the rows spread evenly over the rest of the area (round 3's lint: no empty band over 40px at 390x844). */
    .fp-body[b-d5xct2h9rm] { flex: 1 1 auto; justify-content: space-evenly; gap: var(--s2); }
    .fp-top[b-d5xct2h9rm] { margin-top: -4px; margin-bottom: -4px; }
    .fp-ctl[b-d5xct2h9rm]  .fp-board, .fp-ctl[b-d5xct2h9rm]  .fp-replay, .fp-ctl[b-d5xct2h9rm]  .fp-trace, .fp-actions[b-d5xct2h9rm]  .fp-act { min-height: 48px; }
    .fp[b-d5xct2h9rm] { --stl-h: 96px; }
}
/* Portrait phones: the strip and the pad keep the page's width (PlayStage), and so does the panel over them. */
@media (max-width: 699px) and (orientation: portrait) {
    .fp[b-d5xct2h9rm] { width: calc(100cqw - 2 * var(--pg)); }
    .fp-rate[b-d5xct2h9rm]  .rating-choice { width: 40px; }
}
/* Short phones (under 760px: a 200 to 270px control area): the round 2 compact rules, the rows close together. */
@media (max-width: 699px) and (max-height: 759px), (orientation: landscape) and (max-height: 520px) {
    .fp[b-d5xct2h9rm] { padding: var(--s2) var(--s3) var(--s3); --fp-px: var(--s3); gap: 4px; }
    .fp-body[b-d5xct2h9rm] { gap: 4px; }
    .fp-ctl[b-d5xct2h9rm]  .fp-board, .fp-ctl[b-d5xct2h9rm]  .fp-replay, .fp-ctl[b-d5xct2h9rm]  .fp-trace, .fp-actions[b-d5xct2h9rm]  .fp-act { min-height: 44px; }
    .fp[b-d5xct2h9rm] { --stl-h: 56px; }
}
/* The shortest phones (under 700px tall) and landscape phones: Share joins Board's row, so the rest fits without
   scrolling; under 640px the note goes too (the actions say it: Pick from the archive). */
@media (max-width: 699px) and (orientation: portrait) and (max-height: 699px), (orientation: landscape) and (max-height: 520px) {
    .fp[b-d5xct2h9rm] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "tl tl" "ctl top" "rate rate" "note note" "actions actions";
        align-content: space-evenly;
        column-gap: var(--s2);
        row-gap: 4px;
    }
    .fp-body[b-d5xct2h9rm] { display: contents; }
    .fp-top[b-d5xct2h9rm] { grid-area: top; margin: 0 -6px 0 0; }
    .fp-body[b-d5xct2h9rm] >  .stl-wrap { grid-area: tl; max-height: none; }
    .fp-ctl[b-d5xct2h9rm] { grid-area: ctl; }
    .fp-rate[b-d5xct2h9rm] { grid-area: rate; }
    .fp-note[b-d5xct2h9rm] { grid-area: note; }
    .fp-actions[b-d5xct2h9rm] { grid-area: actions; }
    /* the timeline's row takes what the others leave, up to its full height; without a timeline there is no such row.
       */
    .fp.fp--story[b-d5xct2h9rm] { grid-template-rows: minmax(58px, calc(var(--stl-h) + 22px)); }
    .fp:not(.fp--story)[b-d5xct2h9rm] { grid-template-areas: "ctl top" "rate rate" "note note" "actions actions"; }
}
/* Labels before icons. A column is never narrower than its label and padding (min-content, above), and where the row is
   too narrow for icon and label in every button (three icon-and-label buttons need 278px: a 320px phone's row has about
   200, a 360px phone's with Share beside it about 240) the icons and Trace's swatch go and the labels stay. On the narrow
   phones Share, beside the row, loses its icon too, so the row keeps the room (the word is the link). */
@container fp-ctl (max-width: 277px) {
    .fp-ctl[b-d5xct2h9rm]  .ui-icon, .fp-ctl[b-d5xct2h9rm]  .fp-trace .fp-swatch { display: none; }
}
/* The narrowest column (a 594x360 landscape phone: a 194px row) can't hold the three words at the body size with their
   padding, and has no height for a second line: there the words step down to the small size. */
@container fp-ctl (max-width: 215px) {
    .fp-ctl[b-d5xct2h9rm]  .fp-board, .fp-ctl[b-d5xct2h9rm]  .fp-replay, .fp-ctl[b-d5xct2h9rm]  .fp-trace { font-size: var(--t-small); }
}
@media (max-width: 429px) and (orientation: portrait) and (max-height: 699px) {
    .fp-top[b-d5xct2h9rm]  .ui-icon { display: none; }
}
/* Portrait tablets: the board takes most of the height, and the control area under it is short (about 245px at
   834x1112). Share joins the controls row and the rating sits beside the actions, so the timeline keeps its room. */
@media (min-width: 700px) and (max-width: 1049px) and (orientation: portrait) {
    .fp[b-d5xct2h9rm] {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "tl tl tl" "ctl ctl top" "note note note" "rate actions actions";
        align-content: space-evenly;
        column-gap: var(--s4);
        row-gap: var(--s2);
    }
    .fp-body[b-d5xct2h9rm] { display: contents; }
    .fp-top[b-d5xct2h9rm] { grid-area: top; margin: 0 -6px 0 0; }
    .fp-body[b-d5xct2h9rm] >  .stl-wrap { grid-area: tl; max-height: none; }
    .fp-ctl[b-d5xct2h9rm] { grid-area: ctl; }
    .fp-rate[b-d5xct2h9rm] { grid-area: rate; }
    .fp-note[b-d5xct2h9rm] { grid-area: note; }
    .fp-actions[b-d5xct2h9rm] { grid-area: actions; }
    .fp--no-rate .fp-actions[b-d5xct2h9rm] { grid-column: 1 / -1; }   /* a My puzzles board or a test play: no rating */
    .fp.fp--story[b-d5xct2h9rm] { grid-template-rows: minmax(58px, calc(var(--stl-h) + 22px)); }
    .fp:not(.fp--story)[b-d5xct2h9rm] { grid-template-areas: "ctl ctl top" "note note note" "rate actions actions"; }
}
/* Short control areas with a timeline (phones under 760px tall, landscape phones, portrait tablets): the note gives
   the timeline its line (the actions say it: Pick from the archive), as under 640px, and the rows close up a little:
   40px controls (the target minimum is 24px). */
@media (max-width: 699px) and (max-height: 759px), (orientation: landscape) and (max-height: 520px),
       (min-width: 700px) and (max-width: 1049px) and (orientation: portrait) {
    .fp--story .fp-note[b-d5xct2h9rm] { display: none; }
    .fp--story .fp-ctl[b-d5xct2h9rm]  .fp-board, .fp--story .fp-ctl[b-d5xct2h9rm]  .fp-replay, .fp--story .fp-ctl[b-d5xct2h9rm]  .fp-trace, .fp--story .fp-actions[b-d5xct2h9rm]  .fp-act { min-height: 40px; }
    .fp--story .fp-top[b-d5xct2h9rm]  .sr-btn { min-height: 40px; }
    .fp--story .fp-rate[b-d5xct2h9rm] { min-height: 40px; }
}
@media (max-width: 699px) and (orientation: portrait) and (max-height: 639px) {
    .fp-note[b-d5xct2h9rm] { display: none; }
    .fp-rate[b-d5xct2h9rm]  .rating-choice { width: 32px; }   /* the label and five stars on one line at 320px */
    .fp[b-d5xct2h9rm] { padding: 4px var(--s3) 6px; --fp-px: var(--s3); }
    .fp-actions[b-d5xct2h9rm] { gap: 4px; }
}
/* The shortest control areas (phones under 660px tall, landscape phones under 341px): the timeline keeps a compact
   36px box (an 18px plot under the marks row) with its label tucked 4px closer, and Trace stays beside Board. The rest
   gives way to fit it, in this order: the note goes (also without a timeline), the padding closes to 4px, and the
   story panel's controls drop to 32px (the target minimum is 24px), since the archive pair needs a row each under
   375px wide. */
@media (max-width: 699px) and (orientation: portrait) and (max-height: 659px), (orientation: landscape) and (max-height: 340px) {
    .fp[b-d5xct2h9rm] { --stl-h: 36px; padding: 4px var(--s3); --fp-px: var(--s3); }
    .fp-note[b-d5xct2h9rm] { display: none; }
    .fp-body[b-d5xct2h9rm] >  .stl-wrap { min-height: 52px; }
    .fp-body[b-d5xct2h9rm]  .stl-labels { height: 16px; margin-top: 0; }
    /* without the note's row (an empty row still takes a gap) */
    .fp.fp--story[b-d5xct2h9rm] { grid-template-rows: 52px; grid-template-areas: "tl tl" "ctl top" "rate rate" "actions actions"; }
    .fp:not(.fp--story)[b-d5xct2h9rm] { grid-template-areas: "ctl top" "rate rate" "actions actions"; }
    .fp--story .fp-ctl[b-d5xct2h9rm]  .fp-board, .fp--story .fp-ctl[b-d5xct2h9rm]  .fp-replay, .fp--story .fp-ctl[b-d5xct2h9rm]  .fp-trace, .fp--story .fp-actions[b-d5xct2h9rm]  .fp-act { min-height: 32px; }
    .fp--story .fp-top[b-d5xct2h9rm]  .sr-btn { min-height: 32px; }
    .fp--story .fp-top[b-d5xct2h9rm] { min-height: 32px; }
    .fp--story .fp-rate[b-d5xct2h9rm] { min-height: 32px; }
    .fp--story .fp-rate[b-d5xct2h9rm]  .rating-choice { height: 32px; }   /* inside its row, clear of the controls above */
    .fp--story .fp-actions[b-d5xct2h9rm] { gap: 4px; }
}
/* Landscape phones whose column is too narrow for the three buttons and Share on one line (about 300px of column: 667x375
   has 216px): Share takes a line of its own, under the controls, at the right. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 799px) {
    .fp.fp--story[b-d5xct2h9rm] { grid-template-areas: "tl tl" "ctl ctl" "top top" "rate rate" "actions actions"; }   /* (a story's note is gone here) */
    .fp:not(.fp--story)[b-d5xct2h9rm] { grid-template-areas: "ctl ctl" "top top" "rate rate" "note note" "actions actions"; }
    /* the line is a 32px link (the target minimum is 24px), which keeps the column within a 360px-tall phone */
    .fp--story .fp-top[b-d5xct2h9rm] { min-height: 32px; }
    .fp--story .fp-top[b-d5xct2h9rm]  .sr-btn { min-height: 32px; }
    /* Share's line costs the rating its caption's line: the column is too narrow for "Rate this puzzle" beside the
       stars, and the 40px row can't hold it over them, so the caption is read but not shown and the stars fill the row. */
    .fp-rate[b-d5xct2h9rm]  .rating-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .fp-rate[b-d5xct2h9rm]  .rating-choice { height: 40px; }
}
@media (orientation: landscape) and (max-height: 340px) and (max-width: 799px) {
    .fp:not(.fp--story)[b-d5xct2h9rm] { grid-template-areas: "ctl ctl" "top top" "rate rate" "actions actions"; }
}
@media (orientation: landscape) and (max-height: 520px) {
    .fp[b-d5xct2h9rm] {
        left: var(--col-left); right: auto; width: var(--col-w); margin: 0;
        top: calc(var(--pg) + var(--bar-h) + var(--gap)); bottom: var(--pg);
    }
}

/* The hand-off after the fast replay (step 6c): the panel comes in with the card, over 240ms with a 6px rise. Only on
   the render after a replay that ran to its end (never with a reduced-motion preference, which has no replay). */
.fp.fp--arrive[b-d5xct2h9rm] { animation: rp-land-surface 240ms var(--ease) backwards; }
.fp.fp--arrive.is-held[b-d5xct2h9rm] { animation: none; translate: 0 3px; }
/* /Components/Play/MiniIntroSheet.razor.rz.scp.css */
.mini-intro-rules[b-sauwb5eth5] { margin: 0 0 var(--s3); padding-left: 1.25rem; display: grid; gap: var(--s2); }
.mini-intro-coach[b-sauwb5eth5] { display: flex; align-items: center; gap: var(--s2); margin: 0; font-weight: 600; }
.mini-intro-actions[b-sauwb5eth5] { display: flex; justify-content: flex-end; margin-top: var(--s4); }
/* /Components/Play/NumberPad.razor.rz.scp.css */
/* The pad, from the v5 mockups' _play.css (.controls, .digits9, .key, .modeseg, .edit). Heights come from the
   stage's height budget (PlayStage: --digit-h, --seg-h, --mode-h, --edit-h, --gap); the fallbacks are the
   phone base heights, for the pad shown on its own (/dev/components). */
/* One shrinkable column: the pad never grows past its slot to fit the mode row's labels (the mode row
   gives way instead, below). An inline-size container, so the mode row can drop its labels when narrow. */
.number-pad[b-cl7tyl6hrm] { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap, 8px); width: 100%; container-type: inline-size; }

/* ---------- number keys: one row of nine ---------- */
.pad-digits[b-cl7tyl6hrm] { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.key[b-cl7tyl6hrm] {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; margin: 0; padding: 0;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
    font: 500 24px/1 var(--font-ui); cursor: pointer; touch-action: manipulation;
    -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.key:focus-visible[b-cl7tyl6hrm] { outline: 2px solid var(--focus); outline-offset: 2px; }
.pad-digits .key[b-cl7tyl6hrm] { height: var(--digit-h, 56px); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .key:hover:not(:disabled):not([aria-disabled="true"])[b-cl7tyl6hrm] { border-color: var(--line-strong); } }

/* complete: all nine placed, subdued. The key eases into it (the approved motion study, item 6), more slowly
   than a press: a transition, so a pad drawn complete from the start shows it at once. */
.key.is-complete[b-cl7tyl6hrm] { color: var(--ink-3); background: var(--bg); transition-duration: var(--dur-2); }

/* Number key states (design.md 3.6e) and the latched digit highlight (3.6f). Not by colour alone: a filled key
   (all, latched), a bar under the digit (some), a plain key (none). */
.pad-digits .key.k-all[b-cl7tyl6hrm] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.pad-digits .key.k-some[b-cl7tyl6hrm] { position: relative; color: var(--accent-text); font-weight: 600; border-color: var(--accent); }
.pad-digits .key.k-some[b-cl7tyl6hrm]::after {
    content: ''; position: absolute; left: 50%; bottom: 5px; width: 14px; height: 3px; margin-left: -7px;
    border-radius: 2px; background: var(--accent);
}
.pad-digits .key.is-complete.k-some[b-cl7tyl6hrm] { color: var(--ink-3); }
.pad-digits .key.is-complete.k-some[b-cl7tyl6hrm]::after { background: var(--ink-3); }

/* answering the coach: a picked digit */
.pad-digits .key.is-pick[b-cl7tyl6hrm] { background: var(--coach-pick); border-color: var(--coach-pick); color: var(--coach-pick-text); }

.key:disabled[b-cl7tyl6hrm], .key[aria-disabled="true"][b-cl7tyl6hrm] { color: var(--ink-3); background: var(--bg); cursor: not-allowed; }

/* ---------- entry modes: the segmented control ---------- */
.pad-modes[b-cl7tyl6hrm] {
    position: relative; display: flex; gap: 3px; padding: 3px; width: 100%; box-sizing: border-box;
    background: var(--surface-2); border-radius: 11px;
}
.pad-mode-radios[b-cl7tyl6hrm] { display: contents; }
.seg-btn[b-cl7tyl6hrm] {
    flex: 1; min-width: 0; min-height: var(--mode-h, 44px); margin: 0; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 8px; background: transparent; color: var(--ink-2);
    font: 500 var(--t-small)/1 var(--font-ui); white-space: nowrap; cursor: pointer;
    touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.seg-btn:hover[b-cl7tyl6hrm] { color: var(--ink); }
.seg-btn:focus-visible[b-cl7tyl6hrm] { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg-btn[aria-checked="true"][b-cl7tyl6hrm] {
    background: var(--accent-soft); color: var(--accent-text); font-weight: 600; box-shadow: inset 0 0 0 2px var(--accent);
}
.seg-btn:disabled[b-cl7tyl6hrm] { color: var(--ink-3); cursor: not-allowed; }
.seg-btn.is-pulse[b-cl7tyl6hrm] { animation: pad-pulse-b-cl7tyl6hrm 250ms ease-out; }
@keyframes pad-pulse-b-cl7tyl6hrm {
    0% { transform: scale(1); }
    40% { transform: scale(0.92); box-shadow: 0 0 0 3px var(--focus); }
    100% { transform: scale(1); }
}
.seg-btn[aria-pressed="true"][b-cl7tyl6hrm] {
    background: var(--accent-soft); color: var(--accent-text); font-weight: 600; box-shadow: inset 0 0 0 2px var(--accent);
}
/* The phone tiles (below): the Pen/Pencil tile, Check and Tools (Underline mode and the colours are in its fan). */
.pad-mode-toggle[b-cl7tyl6hrm], .pad-check[b-cl7tyl6hrm], .pad-tools[b-cl7tyl6hrm] { display: none; }

/* The drop shows the colour the next tap applies (hollow: the tap clears). */
.pad-colour[b-cl7tyl6hrm]  .ui-icon { stroke: var(--ink-2); }
.pad-colour--1[b-cl7tyl6hrm]  .ui-icon { fill: var(--swatch-1); }
.pad-colour--2[b-cl7tyl6hrm]  .ui-icon { fill: var(--swatch-2); }
.pad-colour--3[b-cl7tyl6hrm]  .ui-icon { fill: var(--swatch-3); }

/* Hidden until it takes keyboard focus, then shown over the mode row. */
.pad-underline-all[b-cl7tyl6hrm] {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pad-underline-all:focus-visible[b-cl7tyl6hrm] {
    z-index: 5; left: 0; bottom: 100%; width: auto; height: auto; margin: 0 0 4px; padding: 8px 12px;
    overflow: visible; clip: auto; border: 2px solid var(--focus); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink); font: 600 var(--t-small)/1 var(--font-ui);
}

/* ---------- edit row: Undo · Erase · (Fill marks · Check) | Coach ---------- */
.pad-edit[b-cl7tyl6hrm] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap, 8px); }
.pad-edit .key[b-cl7tyl6hrm] { height: var(--edit-h, 48px); font: 600 var(--t-small)/1 var(--font-ui); color: var(--ink-2); }
.pad-edit .key:disabled[b-cl7tyl6hrm], .pad-edit .key[aria-disabled="true"][b-cl7tyl6hrm] { color: var(--ink-3); }
.pad-edit .key--coach[b-cl7tyl6hrm] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-size: var(--t-body); }
.pad-edit .key--coach[aria-expanded="true"][b-cl7tyl6hrm] { background: var(--accent); color: var(--on-accent); }
.pad-sep[b-cl7tyl6hrm], .only-desktop[b-cl7tyl6hrm] { display: none; }
.pad-why[b-cl7tyl6hrm] {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- tablet and up ---------- */
@media (min-width: 700px) {
    .seg-btn[b-cl7tyl6hrm] { font-size: var(--t-body); }
}

/* ---------- phones, portrait and landscape (owner #60, #61, #62; the Tools fan redesign): Pen/Pencil, Check and
   Tools down the left of a 3x3 keypad, Undo · Erase · Coach down the right, all tiles in the edit keys' style, icon
   over label, on the digit rows. A lit tile takes Coach's tint: Pencil on (Pen is the plain default), Underline on
   (Tools shows it) or the Tools fan open. The Colour key gives way to the fan. ---------- */
@media (max-width: 699px) and (orientation: portrait), (orientation: landscape) and (max-height: 520px) {
    .pad-mode-radios[b-cl7tyl6hrm], .pad-colour[b-cl7tyl6hrm] { display: none; }
    .pad-mode-toggle[b-cl7tyl6hrm], .pad-check[b-cl7tyl6hrm], .pad-tools[b-cl7tyl6hrm] { display: inline-flex; }
    .pad-modes[b-cl7tyl6hrm] { gap: var(--kp-gap, 6px); padding: 0; background: none; border-radius: 0; }
    .pad-modes .seg-btn[b-cl7tyl6hrm] {
        flex-direction: column; gap: 2px; padding: 0 2px;
        border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2);
        font: 600 var(--t-small)/1 var(--font-ui);
    }
    .pad-modes .seg-btn[b-cl7tyl6hrm]  .ui-icon { width: 20px; height: 20px; stroke-width: 1.75; }
    .pad-modes .seg-btn.pad-mode-toggle[aria-checked="true"][b-cl7tyl6hrm], .pad-modes .seg-btn[aria-pressed="true"][b-cl7tyl6hrm],
    .pad-modes .seg-btn.pad-tools.is-on[b-cl7tyl6hrm], .pad-modes .seg-btn.pad-tools[aria-expanded="true"][b-cl7tyl6hrm] {
        background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); box-shadow: none;
    }
    /* Tools: a corner notch says the key holds more; a colour face is its drop, filled. */
    .pad-modes .seg-btn.pad-tools[b-cl7tyl6hrm] { position: relative; touch-action: none; }   /* a slide is the fan's, never a scroll */
    .pad-modes .seg-btn.pad-tools[b-cl7tyl6hrm]::after {
        content: ''; position: absolute; top: 5px; right: 5px; width: 0; height: 0;
        border-left: 6px solid transparent; border-top: 6px solid currentColor; opacity: .55;
    }
    .pad-tools--1[b-cl7tyl6hrm]  .ui-icon { fill: var(--swatch-1); stroke: var(--swatch-1); }
    .pad-tools--2[b-cl7tyl6hrm]  .ui-icon { fill: var(--swatch-2); stroke: var(--swatch-2); }
    .pad-tools--3[b-cl7tyl6hrm]  .ui-icon { fill: var(--swatch-3); stroke: var(--swatch-3); }
    /* MULTI: Pen with several cells selected writes pencil marks; the badge stands where the icon was. */
    .pad-multi[b-cl7tyl6hrm] {
        display: block; padding: 2px 4px; border-radius: 5px; background: var(--accent); color: var(--on-accent);
        font: 700 12px/1 var(--font-ui); letter-spacing: .02em; text-transform: uppercase;
    }
    /* Erase: a flick up fills every empty cell; the faint grid in its corner hints at it. */
    .pad-erase[b-cl7tyl6hrm] { position: relative; touch-action: none; }
    .pad-erase[b-cl7tyl6hrm]::before {
        content: ''; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px;
        background: var(--ink-3); opacity: .55; pointer-events: none;
        -webkit-mask: var(--pad-grid-mask) center / contain no-repeat; mask: var(--pad-grid-mask) center / contain no-repeat;
    }
    .pad-modes .seg-btn:disabled[b-cl7tyl6hrm] { background: var(--bg); color: var(--ink-3); }
    .pad-edit .key[b-cl7tyl6hrm], .pad-edit .key--coach[b-cl7tyl6hrm] { flex-direction: column; gap: 2px; font-size: var(--t-small); }
}
@media (max-width: 699px) and (orientation: portrait) {
    .number-pad:not(.is-row)[b-cl7tyl6hrm] {
        grid-template-columns: 66px minmax(0, 1fr) 66px;
        grid-template-areas: "modes keys tools";
        column-gap: var(--kp-gap, 6px);
    }
    .number-pad:not(.is-row) .pad-modes[b-cl7tyl6hrm] { grid-area: modes; flex-direction: column; }
    .number-pad:not(.is-row) .pad-modes .seg-btn[b-cl7tyl6hrm] { flex: none; height: var(--digit-h, 56px); min-height: 0; }
    .number-pad:not(.is-row) .pad-digits[b-cl7tyl6hrm] { grid-area: keys; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--kp-gap, 6px); }
    .number-pad:not(.is-row) .pad-edit[b-cl7tyl6hrm] { grid-area: tools; grid-template-columns: minmax(0, 1fr); gap: var(--kp-gap, 6px); }
    .number-pad:not(.is-row) .pad-edit .key[b-cl7tyl6hrm] { height: var(--digit-h, 56px); }
    .number-pad:not(.is-row) .pad-digits .key[b-cl7tyl6hrm] { font-size: 26px; }

    /* Single row: the nine over one row of six, Pen/Pencil · Undo · Erase · Check · Tools · Coach, the two groups'
       tiles interleaved in one grid (Tools a little wider, for "Underline" on its face). */
    .number-pad.is-row[b-cl7tyl6hrm] {
        position: relative;
        grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 4px;
    }
    .number-pad.is-row .pad-digits[b-cl7tyl6hrm] { grid-column: 1 / -1; }
    .number-pad.is-row .pad-modes[b-cl7tyl6hrm], .number-pad.is-row .pad-edit[b-cl7tyl6hrm] { display: contents; }
    .number-pad.is-row .pad-mode-toggle[b-cl7tyl6hrm] { order: 1; }
    .number-pad.is-row .pad-edit .key:first-child[b-cl7tyl6hrm] { order: 2; }
    .number-pad.is-row .pad-erase[b-cl7tyl6hrm] { order: 3; }
    .number-pad.is-row .pad-check[b-cl7tyl6hrm] { order: 4; }
    .number-pad.is-row .pad-tools[b-cl7tyl6hrm] { order: 5; }
    .number-pad.is-row .key--coach[b-cl7tyl6hrm] { order: 6; }
    .number-pad.is-row .pad-edit .key[b-cl7tyl6hrm] { height: auto; }
    .number-pad.is-row .pad-modes .seg-btn[b-cl7tyl6hrm] { min-height: var(--edit-h, 44px); padding: 0 1px; }
}

/* ---------- desktop: Fill marks and Check join the edit row, Coach after a hairline ---------- */
@media (min-width: 1050px) {
    .pad-edit[b-cl7tyl6hrm] { grid-template-columns: repeat(4, minmax(0, 1fr)) 1px minmax(0, 1.25fr); }
    .pad-sep[b-cl7tyl6hrm] { display: block; background: var(--line); margin: 6px 0; }
    .only-desktop[b-cl7tyl6hrm] { display: inline-flex; }
    .only-touch[b-cl7tyl6hrm] { display: none; }
}

/* ---------- landscape phone (owner #62): the portrait keypad, at the foot of the right-hand column. Its right tiles
   give way first in a narrow column (216px at 568x320), so the keys keep what width there is. ---------- */
@media (orientation: landscape) and (max-height: 520px) {
    .number-pad[b-cl7tyl6hrm] {
        grid-template-columns: 66px minmax(0, 1fr) clamp(52px, calc(100% - 238px), 66px);
        grid-template-areas: "modes keys tools";
        column-gap: var(--kp-gap, 6px);
    }
    .pad-modes[b-cl7tyl6hrm] { grid-area: modes; flex-direction: column; }
    .pad-modes .seg-btn[b-cl7tyl6hrm] { flex: none; height: var(--digit-h, 44px); min-height: 0; }
    .pad-digits[b-cl7tyl6hrm] { grid-area: keys; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--kp-gap, 6px); }
    .pad-digits .key[b-cl7tyl6hrm] { font-size: 26px; }
    .pad-edit[b-cl7tyl6hrm] { grid-area: tools; grid-template-columns: minmax(0, 1fr); gap: var(--kp-gap, 6px); }
    .pad-edit .key[b-cl7tyl6hrm] { height: var(--digit-h, 44px); }
    .pad-sep[b-cl7tyl6hrm], .only-desktop[b-cl7tyl6hrm] { display: none; }
    .only-touch[b-cl7tyl6hrm] { display: inline-flex; }
}

/* Icons only on the shortened pad (calc-toggle round 6): while the calculator is open on a short portrait phone the stage shortens
   the 3x3 pad (PlayStage: .is-calc) to 32 to 38px a key, and a side tile under about 40px has no room for an icon over a label.
   The six side tiles (Pen/Pencil, Underline, Colour, Undo, Fill, Coach) then keep their icons, larger, and their labels go to the
   screen readers (the same visually-hidden pattern as the narrow pad below; the MULTI badge, which stands where the icon was, stays). The lit states stay clear without labels: Pen turns
   into Pencil (the icon changes) and fills with the accent, and Underline and Coach fill with it too.
   The threshold is the tiles' own height: inside the stage a portrait phone's pad is a size container exactly as tall as its three
   key rows (--kp-h), and 128px is three 40px tiles and the 4px gaps between them, so a tile under about 40px is what the query
   catches, on whatever viewport the pad was shortened. With the calculator off the keys are never under 40px. */
@media (max-width: 699px) and (orientation: portrait) {
    .stage:not(.is-row) .number-pad[b-cl7tyl6hrm] { container-type: size; height: var(--kp-h); }
}
@container (max-height: 128px) {
    @media (max-width: 699px) and (orientation: portrait) {
        .stage.is-calc:not(.is-row) .pad-modes .seg-btn > span:not(.pad-multi)[b-cl7tyl6hrm],
        .stage.is-calc:not(.is-row) .pad-edit .key > span:not(.pad-why)[b-cl7tyl6hrm] {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
        }
        .stage.is-calc:not(.is-row) .pad-modes .seg-btn[b-cl7tyl6hrm],
        .stage.is-calc:not(.is-row) .pad-edit .key[b-cl7tyl6hrm] { position: relative; justify-content: center; }
        .stage.is-calc:not(.is-row) .pad-modes .seg-btn[b-cl7tyl6hrm]  .ui-icon,
        .stage.is-calc:not(.is-row) .pad-edit .key[b-cl7tyl6hrm]  .ui-icon { width: 22px; height: 22px; }
    }
}

/* A phone under 340px tall keeps the keys' 35px by drawing all six tiles' icons smaller, so their labels stay inside. */
@media (orientation: landscape) and (max-height: 339px) {
    .pad-modes .seg-btn[b-cl7tyl6hrm], .pad-edit .key[b-cl7tyl6hrm], .pad-edit .key--coach[b-cl7tyl6hrm] { gap: 1px; }
    .pad-modes .seg-btn[b-cl7tyl6hrm]  .ui-icon, .pad-edit .key[b-cl7tyl6hrm]  .ui-icon { width: 16px; height: 16px; stroke-width: 2; }
}

/* A narrow pad (the 304-379px portrait pads of 320-395px phones): the four buttons share the row by their
   labels' widths instead of equally, so "Underline" never runs into its neighbours. */
@container (max-width: 379px) {
    .seg-btn[b-cl7tyl6hrm] { flex: 1 1 auto; gap: 4px; }
}
/* Narrower than the four labels need at all (the pad alone in a narrow box: phones have tiles, not this row): the
   modes keep their icons and drop their visible labels, which stay as the buttons' accessible names. */
@container (max-width: 299px) {
    @media not all and (orientation: landscape) and (max-height: 520px) {
        .seg-btn > span[b-cl7tyl6hrm] {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
        }
    }
}

/* Narrower still (not reached by the layouts today): the edit
   keys keep their icons and drop their visible labels, which stay in their accessible names. */
@container (max-width: 209px) {
    .pad-edit .key > span:not(.pad-why)[b-cl7tyl6hrm] {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
    }
}

/* ---------- the Tools fan (pad-gestures.js lays it out and opens it) ---------- */
.number-pad[b-cl7tyl6hrm], .pad-fan[b-cl7tyl6hrm], .pad-flick[b-cl7tyl6hrm] {
    --pad-grid-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='2'/%3E%3Cpath d='M9.2 3.5v17M14.8 3.5v17M3.5 9.2h17M3.5 14.8h17'/%3E%3C/svg%3E");
}
.pad-fan[b-cl7tyl6hrm] { display: none; position: fixed; inset: 0; z-index: 45; }
.pad-fan[data-open][b-cl7tyl6hrm] { display: block; }
.pad-fan-scrim[b-cl7tyl6hrm] {
    position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent);
    opacity: 0; transition: opacity var(--dur-1) var(--ease); touch-action: none;
}
.pad-fan[data-in] .pad-fan-scrim[b-cl7tyl6hrm] { opacity: 1; }
.pad-fan-menu[b-cl7tyl6hrm] { position: absolute; inset: 0; pointer-events: none; }
.pad-fan-item[b-cl7tyl6hrm] {
    position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; padding: 0; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2);
    box-shadow: var(--shadow-pop); cursor: pointer; pointer-events: auto; touch-action: none;
    -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
    transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.pad-fan-item[aria-checked="true"][b-cl7tyl6hrm] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
/* The item under the finger, or with keyboard focus: larger, ringed. Over the opening spring's own transform. */
.pad-fan-item[data-hot][b-cl7tyl6hrm], .pad-fan-item:focus-visible[b-cl7tyl6hrm] {
    z-index: 2; transform: scale(1.28) !important; border-color: var(--accent); outline: none;
    box-shadow: 0 0 0 3px var(--focus), var(--shadow-pop);
}
.pad-fan-dot[b-cl7tyl6hrm] { width: 28px; height: 28px; border-radius: 50%; }
.pad-fan-dot--1[b-cl7tyl6hrm] { background: var(--swatch-1); }
.pad-fan-dot--2[b-cl7tyl6hrm] { background: var(--swatch-2); }
.pad-fan-dot--3[b-cl7tyl6hrm] { background: var(--swatch-3); }
/* Each item's name: the hot one's while a finger slides, every one's while the fan is pinned open. */
.pad-fan-tip[b-cl7tyl6hrm] {
    position: absolute; left: 50%; top: 50%; z-index: 3; padding: 4px 8px; border-radius: 7px;
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -44px)));
    background: var(--ink); color: var(--bg); font: 600 12px/1.2 var(--font-ui); white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity var(--dur-1) var(--ease);
}
.pad-fan-item[data-hot] .pad-fan-tip[b-cl7tyl6hrm], .pad-fan-item:focus-visible .pad-fan-tip[b-cl7tyl6hrm], .pad-fan[data-open="pinned"] .pad-fan-tip[b-cl7tyl6hrm] { opacity: 1; }
.pad-fan[data-open="pinned"] .pad-fan-item:not([data-hot]):not(:focus-visible) .pad-fan-tip[b-cl7tyl6hrm] {
    padding: 3px 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}

/* A flick's bubble over its key while the finger is far enough: the Erase key's "Fill all", or a number key's entry
   (pad-gestures.js sets the layer's data-show to the one shown, and the digit bubble's data-kind). */
.pad-flick[b-cl7tyl6hrm] { display: none; position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.pad-flick[data-show][b-cl7tyl6hrm] { display: block; }
.pad-flick-bubble[b-cl7tyl6hrm] {
    position: absolute; box-sizing: border-box; min-width: 58px; height: 58px; padding: 0 10px;
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink-2);
    box-shadow: var(--shadow-pop); font: 600 12px/1 var(--font-ui); white-space: nowrap;
    animation: pad-bubble-in-b-cl7tyl6hrm var(--dur-1) var(--ease-spring);
}
@keyframes pad-bubble-in-b-cl7tyl6hrm { from { transform: scale(.6); opacity: 0; } }
.pad-flick[data-show="fill"] .pad-flick-bubble[data-for="fill"][b-cl7tyl6hrm],
.pad-flick[data-show="digit"] .pad-flick-bubble[data-for="digit"][b-cl7tyl6hrm] { display: flex; }
/* A number key's: the digit as it will go in (a pencil before it for a mark, underlined for Underline), the mode's
   name under it; refused (Pen with several cells) is flat and dashed, with only the reason. */
.pad-flick-digit[b-cl7tyl6hrm] { gap: 3px; }
.pad-flick-digit b[b-cl7tyl6hrm] { display: flex; align-items: center; gap: 2px; font: 600 26px/1 var(--font-ui); color: var(--ink); }
.pad-flick-digit[b-cl7tyl6hrm]  .pad-flick-pencil { display: none; width: 18px; height: 18px; stroke: var(--ink-2); }
.pad-flick-digit[data-kind="pencil"][b-cl7tyl6hrm]  .pad-flick-pencil { display: block; }
.pad-flick-digit[data-kind="underline"] .pad-flick-d[b-cl7tyl6hrm] {
    text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; text-decoration-color: var(--accent);
}
.pad-flick-digit[data-kind="refused"][b-cl7tyl6hrm] { border-style: dashed; border-color: var(--line-strong); background: var(--bg); box-shadow: none; }
.pad-flick-digit[data-kind="refused"] b[b-cl7tyl6hrm] { display: none; }

/* Digit flicks on (the pad's data-flicks): each number key takes the finger whole (a flick is never a scroll) and
   carries two faint hints, decorative only (aria-hidden; the keys' names and the Settings line say it): on top the
   icon of what a flick up enters, below the digit underlined. CSS draws that digit, so it is no text of the page.
   The keys run from 35px (a 320px-tall landscape phone) to 64px tall: each key is a size container, so the hints
   tighten on a short key and give way on the shortest, where they would touch the digit. A "some" key's bar sits where
   the underlined digit would: the bar (the selection's state) keeps the place. */
.number-pad[data-flicks] .pad-digits .key[b-cl7tyl6hrm] { position: relative; touch-action: none; container: pad-key / size; }
.key-flick[b-cl7tyl6hrm] {
    position: absolute; left: 0; right: 0; display: flex; justify-content: center;
    color: var(--ink-3); opacity: .7; pointer-events: none;
}
.key-flick--up[b-cl7tyl6hrm] { top: 4px; }
.key-flick--up[b-cl7tyl6hrm]  .ui-icon { width: 10px; height: 10px; stroke-width: 2.25; }
.key-flick--down[b-cl7tyl6hrm] { bottom: 3px; }
.key-flick--down[b-cl7tyl6hrm]::before {
    content: attr(data-d) / ""; font: 600 9px/1 var(--font-ui); text-decoration: underline; text-underline-offset: 1px;
}
.key.k-all .key-flick[b-cl7tyl6hrm], .key.is-pick .key-flick[b-cl7tyl6hrm] { color: inherit; opacity: .5; }
.key.k-some .key-flick--down[b-cl7tyl6hrm] { visibility: hidden; }
@container pad-key (max-height: 48px) {
    .key-flick--up[b-cl7tyl6hrm] { top: 2px; }
    .key-flick--up[b-cl7tyl6hrm]  .ui-icon { width: 8px; height: 8px; }
    .key-flick--down[b-cl7tyl6hrm] { bottom: 1px; }
    .key-flick--down[b-cl7tyl6hrm]::before { font-size: 8px; }
}
@container pad-key (max-height: 36px) {
    .key-flick[b-cl7tyl6hrm] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .seg-btn.is-pulse[b-cl7tyl6hrm] { animation: none; box-shadow: 0 0 0 3px var(--focus); }
    .pad-fan-item[b-cl7tyl6hrm], .pad-fan-scrim[b-cl7tyl6hrm], .pad-fan-tip[b-cl7tyl6hrm] { transition: none; }
    .pad-flick-bubble[b-cl7tyl6hrm] { animation: none; }
}

/* Answering the coach (design.md section 3.8): every edit is refused, drawn disabled at half strength and still
   focusable, with the reason (pad-answer-why) as its description and tooltip. */
[data-refused][b-cl7tyl6hrm] { opacity: .5; cursor: not-allowed; }
.seg-btn[data-refused][b-cl7tyl6hrm] { color: var(--ink-3); }
.seg-btn[data-refused][aria-checked="true"][b-cl7tyl6hrm] { background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--ink-3); }
.pad-answer-why[b-cl7tyl6hrm] {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* /Components/Play/PlayStage.razor.rz.scp.css */
/* The play stage, ported from the v5 mockups' _play.css (.game / .stage). Its height is the window's minus the
   play bar's; its
   width is the play shell's (an inline-size container, so a classic scrollbar never counts).

     --avail   = height left for the board once the strip and the pad (at their base heights) are placed
     --bd      = min(width budget, --avail)                 the board never depends on the growth below
     --spare   = --avail - --bd
     --digit-h = min(64px, base + --spare)                  spare height grows the number keys first,
     --mode-h / --edit-h = min(50 / 56px, base + rest / 2)  then the mode and edit rows,
   and whatever is still left lies between the cage strip and the pad.

   --bd is registered, so it is computed once, here, and every descendant inherits a length (the board is a
   container of its own, so an unregistered value would resolve its container units against the board). */
@property --bd {
    syntax: '<length>';
    inherits: true;
    initial-value: 0px;
}

/* Fills the main area under the bar. Not a container itself: the drawers and sheets among its overlays are
   fixed to the window. */
.play-stage[b-t3fopynngl] {
    position: absolute;
    inset: 0;
}

/* The replay driver's 40ms hand-off is a single browser frame. The finish surfaces are already mounted and inert;
   this mark reveals them, the complete board and its wash before the Blazor callback has rendered. The callback then
   removes the pending classes and gives the same animation to the settled elements. */
.play-stage[data-rp-landed][b-t3fopynngl]  .rpb { display: none; }
.play-stage[data-rp-landed][b-t3fopynngl]  .fco.is-pending,
.play-stage[data-rp-landed][b-t3fopynngl]  .fp.is-pending {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    animation: rp-land-surface-b-t3fopynngl 240ms var(--ease) backwards;
}
@keyframes rp-land-surface-b-t3fopynngl { from { opacity: 0; translate: 0 6px; } }
.play-stage[data-rp-landed][b-t3fopynngl]  .play-grid-frame.is-replaying > .play-grid { opacity: .3; filter: blur(1.5px); }
.play-stage[data-rp-landed][b-t3fopynngl]  .rv-frame.is-replaying > .review-board { opacity: .3; filter: blur(1.5px); }
.play-stage[data-rp-landed][b-t3fopynngl]  .play-grid-frame.is-replaying .play-cell .value:not(.value--given),
.play-stage[data-rp-landed][b-t3fopynngl]  .rv-frame.is-replaying .rb-cell .rb-digit { opacity: 1; }
@media (min-width: 1050px) and (min-height: 521px) {
    /* On desktop the bar overlays the mounted panel. Both then occupy the same top edge at the hand-off. */
    .stage-ctx:has(.rpb)[b-t3fopynngl] { position: relative; }
    .stage-ctx:has(.rpb)[b-t3fopynngl]  .rpb { position: absolute; z-index: 31; top: 0; left: 0; width: 100%; }
}

.stage[b-t3fopynngl] {
    --strip-h: 44px; --gap: 8px; --pg: 8px; --pg-top: 8px; --pg-bot: 8px;
    --digit-base: 56px; --digit-max: 64px; --mode-base: 44px; --mode-max: 50px; --edit-base: 48px; --edit-max: 56px;
    --pad-base: calc(var(--digit-base) + var(--mode-base) + 6px + var(--edit-base) + 2 * var(--gap));
    --stage-h: calc(100dvh - var(--play-bar-h, 56px) - var(--play-extra-h, 0px));
    --avail: calc(var(--stage-h) - var(--strip-room, var(--strip-h)) - var(--pad-base) - 2 * var(--gap) - var(--pg-top) - var(--pg-bot) - var(--safe-bottom));
    --bd-raw: min(100cqw - 2 * var(--pg), var(--avail));
    /* whole-pixel cells: the board is nine of them plus its 2px edge rule, so every cell's text and rules
       land on the same pixels in every cell (the marks' and underlines' spacing is measured to the pixel).
       A windowed board (the mini killer) says how many cells it has across, --board-n, and gets five whole-pixel
       cells instead: nine-pixel steps would leave fractions that show as a sliver under its last row. */
    --bd: calc(round(down, var(--bd-raw) - 2px, calc(var(--board-n, 9) * 1px)) + 2px);
    --spare: calc(var(--avail) - var(--bd));
    --digit-h: min(var(--digit-max), var(--digit-base) + var(--spare));
    --spare2: calc(var(--spare) - min(var(--digit-max) - var(--digit-base), var(--spare)));
    --mode-h: min(var(--mode-max), var(--mode-base) + var(--spare2) / 2);
    --edit-h: min(var(--edit-max), var(--edit-base) + var(--spare2) / 2);
    --seg-h: calc(var(--mode-h) + 6px);
    --pad-h: calc(var(--digit-h) + var(--seg-h) + var(--edit-h) + 2 * var(--gap));
    /* For overlays positioned in the stage: the control area (everything under the board) runs from
       --ctl-top (the strip's top edge) down to --dock-bottom above the stage's bottom edge. */
    --dock-bottom: calc(var(--pg-bot) + var(--safe-bottom));
    --ctl-top: calc(var(--pg-top) + var(--bd) + var(--gap));
    position: relative;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--pg-top) var(--pg) calc(var(--pg-bot) + var(--safe-bottom));
    overflow: hidden;
}

/* Without CSS round() (Chrome and Edge before 125, Firefox before 118, Safari before 15.4) the whole-pixel
   board would be invalid, and the registered --bd would fall back to 0px: there the board takes the raw size. */
@supports not (width: round(down, 1px, 1px)) {
    .stage[b-t3fopynngl] { --bd: var(--bd-raw); }
}

.stage > *[b-t3fopynngl] { width: var(--bd); flex: none; min-width: 0; }
.stage-board[b-t3fopynngl] { height: var(--bd); margin-bottom: var(--gap); }
.stage-strip[b-t3fopynngl] { height: var(--strip-h); position: relative; }   /* the strip hangs from here and may grow downward */
.stage-dock[b-t3fopynngl] { margin-top: auto; }   /* the pad is bottom-anchored; spare height lies above it */
.stage-ctx[b-t3fopynngl] { display: contents; }   /* phone and tablet: its views are overlays on the control area */
.stage-ctx-over[b-t3fopynngl] { display: contents; }   /* likewise: its content positions itself */
@media (max-width: 1049px), (orientation: landscape) and (max-height: 520px) {
    .stage-strip.is-covered[b-t3fopynngl], .stage-dock.is-covered[b-t3fopynngl] { visibility: hidden; }
}
.stage-dock.is-gone[b-t3fopynngl] { visibility: hidden; }

/* =========================================================== phone height tiers */
@media (max-width: 699px) and (max-height: 759px) {
    .stage[b-t3fopynngl] { --digit-base: 48px; --mode-base: 44px; --edit-base: 44px; }
}
@media (max-width: 699px) and (max-height: 639px) {
    .stage[b-t3fopynngl] { --digit-base: 44px; --edit-base: 44px; --gap: 6px; --pg-top: 6px; --pg-bot: 6px; }
}
/* Portrait phones (owner #60, #63): the board takes the page's width, less the 8px margin, as far as the height allows:
   the smallest things on the screen are its pencil marks, so the board comes before the keys. The budget starts
   from the least the rest can be: 40px keys, 3px gaps, and --strip-room, two strip lines' worth under the board (the
   strip draws one line and hangs down to two inside that room, covering nothing, and the room is held whether or
   not a cage is selected, so the board never changes size). What the board leaves goes back in steps: gaps to 4px,
   keys to 44px, gaps to 8px (6px in the keypad), keys to 64px, a third per row; the rest lies between the strip and
   the pad. All in whole pixels, so the board stays on the pixel grid. The Settings sheet's "Single row" (.is-row)
   keeps the one row of nine and the tiers above, over one row of the rest. */
@media (max-width: 699px) and (orientation: portrait) {
    .stage[b-t3fopynngl] {
        --strip-room: 80px;   /* 2 x 32px chips, the 4px between them, 5px margins and the 1px border */
        --pad-base: calc(var(--digit-base) + var(--gap) + var(--edit-base));
        --pad-h: calc(var(--digit-h) + var(--gap) + var(--edit-h));
    }
    .stage.is-row[b-t3fopynngl] { --digit-base: 52px; }   /* keeps the keys as tall as they were, on the shortest phones too */
    .stage:not(.is-row)[b-t3fopynngl] {
        --mode-h: 44px;
        --avail: calc(var(--stage-h) - var(--strip-room) - (3 * 40px + 2 * 3px) - 4 * 3px - var(--safe-bottom));
        --give1: round(down, min(1px, var(--spare) / 6), 1px);   /* every gap, the keypad's two included */
        --left1: calc(var(--spare) - 6 * var(--give1));
        --key1: round(down, min(4px, var(--left1) / 3), 1px);
        --left2: calc(var(--left1) - 3 * var(--key1));
        --give2: round(down, min(4px, var(--left2) / 4), 1px);
        --left3: calc(var(--left2) - 4 * var(--give2));
        --kp2: round(down, min(2px, var(--left3) / 2), 1px);
        --left4: calc(var(--left3) - 2 * var(--kp2));
        --gap: calc(3px + var(--give1) + var(--give2)); --pg-top: var(--gap); --pg-bot: var(--gap);
        --kp-gap: calc(3px + var(--give1) + var(--kp2));
        --digit-h-norm: min(var(--digit-max), 40px + var(--key1) + round(down, var(--left4) / 3, 1px));
        --digit-h: var(--digit-h-norm);
        --kp-h: calc(3 * var(--digit-h) + 2 * var(--kp-gap));
        --pad-h: var(--kp-h);
    }
}
/* The calculator strip's sizes (calc-toggle round 6): the control row and the results' chips, and the height of the strip
   with twelve results in two lines (25 in 5 cells, the most there are): the tall phone's comfortable 46px and 32px (the pills 36px, 5px clear above and below), and the
   tightest that keep a chip's 28px on a short one (about 790px of height is where the keypad leaves the room, as for the
   strip's third line of combinations). A short phone's results keep the 5px clear above and below the chips that a tall one's
   have; the 8px that costs comes first out of the shortened keys (to 30px at the least, never under it) and then out of the
   control row, 40px down to 37px (the pills stay 30px, 3.5px clear). */
@media (max-width: 699px) and (orientation: portrait) {
    .stage[b-t3fopynngl] { --cs-ctl: 46px; --cs-pill: 36px; --cs-chip: 32px; --cs-rpad: 5px; }
}
@media (max-width: 699px) and (max-height: 789px) and (orientation: portrait) {
    .stage[b-t3fopynngl] { --cs-ctl: 37px; --cs-pill: 30px; --cs-chip: 28px; --cs-rpad: 5px; }
}
@media (max-width: 699px) and (orientation: portrait) {
    .stage[b-t3fopynngl] { --cs-strip12: calc(2px + var(--cs-ctl) + 1px + 2 * var(--cs-rpad) + 2 * var(--cs-chip) + 4px); }
    /* While the calculator is on, the pad is only as tall as the room under a strip holding all twelve results (4px clear),
       and no shorter than 24px a key; where the pad already fits it is left alone. The result count never moves it: only
       the strip's height follows the count, over the band, so nothing under the finger moves. The board is unchanged. */
    .stage.is-calc:not(.is-row)[b-t3fopynngl] {
        --digit-h: min(var(--digit-h-norm), max(24px, calc((var(--stage-h) - var(--dock-bottom) - var(--ctl-top) - var(--cs-strip12) - 4px - 2 * var(--kp-gap)) / 3)));
    }
}
@supports not (width: round(down, 1px, 1px)) {
    @media (max-width: 699px) and (orientation: portrait) {
        .stage:not(.is-row)[b-t3fopynngl] { --give1: 0px; --key1: 0px; --give2: 0px; --kp2: 0px; --digit-h: 40px; }
    }
}
/* Phones: where the keypad makes the board height-bound (narrower than the page), the strip and the pad
   keep the page's width, so the keys stay wide and the combinations need fewer lines. */
@media (max-width: 699px) and (orientation: portrait) {
    .stage > .stage-strip[b-t3fopynngl], .stage > .stage-dock[b-t3fopynngl] { width: calc(100cqw - 2 * var(--pg)); }
}

/* =========================================================== tablet (700 - 1049): the phone composition, bigger */
@media (min-width: 700px) {
    .stage[b-t3fopynngl] { --digit-base: 64px; --digit-max: 64px; --edit-base: 48px; --gap: 12px; --pg: 32px; --pg-top: 16px; --pg-bot: 16px; }
}

/* =========================================================== desktop (>= 1050): board + context panel, the pad under the board */
@media (min-width: 1050px) {
    .stage[b-t3fopynngl] {
        --digit-h: 52px; --mode-h: 44px; --edit-h: 44px; --gap: 12px; --pg-top: 24px; --pg-bot: 24px; --ctx-w: 340px;
        --bd-raw: min(720px, var(--stage-h) - var(--pad-h) - 16px - var(--pg-top) - var(--pg-bot), 100cqw - var(--ctx-w) - 24px - 2 * var(--pg));
        display: grid;
        grid-template-columns: var(--bd) var(--ctx-w);
        grid-template-rows: var(--bd) auto;
        grid-template-areas: "board ctx" "dock .";
        justify-content: center;
        align-content: start;
        column-gap: var(--s5);
        row-gap: 16px;
    }
    .stage-board[b-t3fopynngl] { grid-area: board; margin-bottom: 0; }
    .stage-dock[b-t3fopynngl] { grid-area: dock; margin-top: 0; }
    /* the panel is as tall as its content, never stretched to the board, and scrolls inside past it */
    .stage-ctx[b-t3fopynngl] { grid-area: ctx; display: block; width: auto; align-self: start; max-height: var(--bd); min-height: 0; overflow-y: auto; scrollbar-width: thin; }
    /* a first solve's install invitation is the panel's last row: the panel grows past the board to hold it, whole, up to
       the room the stage has (its height less the page's top and bottom margins); past that it scrolls inside */
    .stage-ctx:has(.fp-install:not(:empty))[b-t3fopynngl] { max-height: calc(var(--stage-h) - var(--pg-top) - var(--pg-bot)); }
    .stage-strip[b-t3fopynngl] { display: none; }
    /* Over the panel's top, in the same grid cell: the column and the row are fixed, so it never moves the
       panel, and it lies outside the panel's scroller, so it never gives the panel a scrollbar either. */
    .stage-ctx-over[b-t3fopynngl] { grid-area: ctx; display: block; width: auto; align-self: start; position: relative; z-index: 5; min-width: 0; }
}

/* =========================================================== landscape phone: board left, strip and pad right */
@media (orientation: landscape) and (max-height: 520px) {
    .stage[b-t3fopynngl] {
        --bar-h: 44px; --gap: 4px; --kp-gap: 4px; --pg: 8px; --pg-top: 8px; --pg-bot: 8px;
        /* The keypad of a portrait phone under the strip (owner #62): 44px keys, or about 35px on a 320px-tall
           phone, as when this column stacked five rows of controls (hence the 42px and the 5), since the cage's
           combinations are what the height is for: they take the rest of the column, --ls-strip-h. */
        --ls-key: min(44px, (var(--stage-h) - 2 * var(--pg) - var(--bar-h) - var(--strip-h) - 42px) / 5);
        --digit-h: var(--ls-key); --mode-h: var(--ls-key); --edit-h: var(--ls-key);
        --ls-strip-h: calc(var(--stage-h) - 2 * var(--pg) - var(--bar-h) - 2 * var(--gap) - 3 * var(--ls-key) - 2 * var(--kp-gap));
        --stage-h: 100dvh;   /* the bar sits over the right-hand column */
        /* the column's height, but never so wide that the right-hand column drops under 216px (a 568x320
           phone's; PlayLayout repeats this for the bar) */
        --bd-raw: min(var(--stage-h) - 2 * var(--pg), 100cqw - 216px - 3 * var(--s4) - var(--safe-left) - var(--safe-right));
        --col-w: min(400px, 100cqw - var(--bd) - 3 * var(--s4) - var(--safe-left) - var(--safe-right));
        --col-left: calc(var(--safe-left) + var(--s4) + var(--bd) + var(--s4));
        display: grid;
        grid-template-columns: var(--bd) var(--col-w);
        grid-template-rows: var(--bar-h) minmax(0, 1fr) auto;
        grid-template-areas: "board ." "board strip" "board dock";
        justify-content: start;
        align-content: stretch;
        column-gap: var(--s4);
        row-gap: var(--gap);
        padding: var(--pg) var(--pg) var(--pg) calc(var(--safe-left) + var(--s4));
    }
    .stage > *[b-t3fopynngl] { width: auto; margin-top: 0; margin-bottom: 0; }
    .stage-board[b-t3fopynngl] { grid-area: board; width: var(--bd); margin-bottom: 0; }
    .stage-strip[b-t3fopynngl] { grid-area: strip; height: auto; min-height: 0; align-self: stretch; }   /* also holds the storage message (PlayLayout) */
    .stage-dock[b-t3fopynngl] { grid-area: dock; margin-top: 0; min-height: 0; align-self: stretch; }
    .stage-ctx[b-t3fopynngl], .stage-ctx-over[b-t3fopynngl] { display: contents; }
}
/* /Components/Play/PuzzleMenu.razor.rz.scp.css */
/* The puzzle menu's rows: the mockups' .menu-list / .menu-item (_shared.css, _play.css). Tokens only. */
.pm-list[b-mt7hv9bpa8] { list-style: none; margin: 0; padding: 0; }

.pm-item[b-mt7hv9bpa8] {
    display: flex;
    align-items: center;
    gap: var(--s3);
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: var(--s1) var(--s3);
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
    text-align: left;
    cursor: pointer;
}
.pm-item:hover[b-mt7hv9bpa8] { background: var(--surface-2); }
.pm-item:focus-visible[b-mt7hv9bpa8] { outline: 2px solid var(--focus); outline-offset: -2px; }
.pm-item[b-mt7hv9bpa8]  .ui-icon { flex: none; color: var(--ink-2); }

.pm-grow[b-mt7hv9bpa8] { flex: 1; min-width: 0; }
.pm-label[b-mt7hv9bpa8] { display: block; white-space: nowrap; }
.pm-why[b-mt7hv9bpa8] {
    display: block;
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-small);
}

.pm-item[aria-disabled="true"][b-mt7hv9bpa8] { color: var(--ink-3); cursor: default; }
.pm-item[aria-disabled="true"]:hover[b-mt7hv9bpa8] { background: transparent; }
.pm-item[aria-disabled="true"][b-mt7hv9bpa8]  .ui-icon { color: var(--ink-3); }

.pm-item--danger[b-mt7hv9bpa8],
.pm-item--danger[b-mt7hv9bpa8]  .ui-icon { color: var(--danger); }
.pm-item--danger[aria-disabled="true"][b-mt7hv9bpa8],
.pm-item--danger[aria-disabled="true"][b-mt7hv9bpa8]  .ui-icon { color: var(--ink-3); }

.pm-kbd[b-mt7hv9bpa8] {
    flex: none;
    min-width: 24px;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink-2);
    font: 500 var(--t-small)/18px var(--font-ui);
    text-align: center;
}

.pm-sep[b-mt7hv9bpa8] { height: 1px; margin: var(--s2) 0; background: var(--line); }

/* Phone and tablet only: on desktop the pad has Check and Fill marks (principle 8: one action, one button). */
@media (min-width: 1050px) {
    .pm-touch-only[b-mt7hv9bpa8], .pm-tablet-only[b-mt7hv9bpa8] { display: none; }
}
/* Tablet only: the phone pad has its own Check (NumberPad's phone layouts, the same two queries). */
@media (max-width: 699px) and (orientation: portrait), (orientation: landscape) and (max-height: 520px) {
    .pm-tablet-only[b-mt7hv9bpa8] { display: none; }
}

/* Keyboard-only entry points: absent (and out of the accessibility tree) without a fine pointer. */
@media not (any-pointer: fine) {
    .pm-fine-only[b-mt7hv9bpa8] { display: none; }
}

/* Phone: 52px rows and no key hints. */
@media (max-width: 699px) {
    .pm-item[b-mt7hv9bpa8] { min-height: 52px; }
    .pm-kbd[b-mt7hv9bpa8] { display: none; }
}
/* /Components/Play/ReplayBar.razor.rz.scp.css */
/* The replay bar (the mockups' .rp2-bar, _finish2.css). The base rules are the desktop context panel's top: the eyebrow on
   its own line over the progress, the clock and Skip. Below 1050px (and on a landscape phone) it lies where the finish
   panel will, under the board, as one line: the eyebrow, the progress, the clock, Skip; on portrait phones the eyebrow
   goes over the rest. */
.rpb[b-7tzdrplyb7] {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    box-sizing: border-box;
    min-width: 0;
    padding: var(--s4) var(--s1) var(--s3) var(--s5);
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
}
.rpb-eyebrow[b-7tzdrplyb7] {
    margin: 0;
    font: 600 var(--t-small)/var(--lh-small) var(--font-ui);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
}
.rpb-run[b-7tzdrplyb7] { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.rpb-track[b-7tzdrplyb7] { flex: 1 1 auto; min-width: 48px; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.rpb-fill[b-7tzdrplyb7] { width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.rpb-clock[b-7tzdrplyb7] {
    flex: none;
    min-width: 3.2em;
    text-align: right;
    font: 600 var(--t-body)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}
.rpb-run[b-7tzdrplyb7]  .rpb-skip { flex: none; min-height: 44px; padding: 0 8px; gap: 2px; font-weight: 600; }
.rpb-run[b-7tzdrplyb7]  .rpb-skip .ui-icon { width: 18px; height: 18px; }

/* =========================================================== phones, tablets and landscape phones */
@media (max-width: 1049px), (orientation: landscape) and (max-height: 520px) {
    .rpb[b-7tzdrplyb7] {
        position: absolute;
        z-index: 30;
        left: 0;
        right: 0;
        width: var(--bd);
        margin: 0 auto;
        top: calc(var(--pg-top) + var(--bd) + max(var(--gap), 8px));
        flex-direction: row;
        align-items: center;
        gap: var(--s3);
        min-height: 48px;
        padding: 0 var(--s2) 0 var(--s4);
    }
    .rpb-run[b-7tzdrplyb7] { flex: 1 1 auto; gap: var(--s2); }
}
@media (max-width: 699px) and (orientation: portrait) {
    .rpb[b-7tzdrplyb7] { width: calc(100cqw - 2 * var(--pg)); }
}
/* Portrait phones: the eyebrow over the run, as on desktop, so the progress keeps its length beside the clock and Skip
   (on one line the clock left the progress under 40px at 390 wide). */
@media (max-width: 419px) and (orientation: portrait) {
    .rpb[b-7tzdrplyb7] { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) var(--s2) 0 var(--s4); }
}
@media (orientation: landscape) and (max-height: 520px) {
    .rpb[b-7tzdrplyb7] {
        left: var(--col-left); right: auto; width: var(--col-w); margin: 0;
        top: calc(var(--pg) + var(--bar-h) + var(--gap));
        flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) var(--s1) 0 var(--s4);
    }
}
/* /Components/Play/ReviewBoard.razor.rz.scp.css */
/* The review board (ReviewBoard), moved from LibraryReview: drawn as the play board (review.html, the v5 mockups'
   _board.js and _shared.css board styles). */
/* The board. Colours are the mockups' board tokens: the surface, digit and sum inks and the cage outline
   are --surface, --ink and --ink-3 here; the hairline and box rule (v5 board-thin and board-box) have no app
   token with their values yet (phase 2 step 1 sets --grid-line and --box-border to them), so they are local.
   Line widths, the cage inset and dashes, and the type are in the SVG's 100-unit cells, so they scale with
   the board as the mockups' do: at 540px a 1.2px hairline, a 3px box rule, a 2.4px outer edge, a 1.5px cage
   outline in 4.2px dashes 4.8px in. */
.review-board[b-clak0b2wdx] {
    --lr-thin: #d6d1c6;
    --lr-box: #1c1b19;
    --cell: calc(100cqw / var(--board-n, 9));
    container-type: inline-size;
    position: relative;
    display: grid;
    grid-template-rows: repeat(var(--board-n, 9), minmax(0, 1fr));
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-ui);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .review-board[b-clak0b2wdx] { --lr-thin: #3a3e44; --lr-box: #b9b3a9; }
}
:root[data-theme="dark"] .review-board[b-clak0b2wdx] { --lr-thin: #3a3e44; --lr-box: #b9b3a9; }

.rb-lines[b-clak0b2wdx] { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.rb-thin[b-clak0b2wdx] { stroke: var(--lr-thin); stroke-width: 2; fill: none; }
.rb-cage[b-clak0b2wdx] { stroke: var(--ink-3); stroke-width: 2.5; stroke-dasharray: 7 6; fill: none; }
.rb-box[b-clak0b2wdx] { stroke: var(--lr-box); stroke-width: 5; fill: none; }
.rb-outer[b-clak0b2wdx] { stroke: var(--lr-box); stroke-width: 8; fill: none; }

.rb-row[b-clak0b2wdx] { display: grid; grid-template-columns: repeat(var(--board-n, 9), minmax(0, 1fr)); }
.rb-cell[b-clak0b2wdx] { position: relative; }
/* A hidden uncaged cell of a mini's window: hatched, as on the play board (BoardCell's .masked). */
.rb-masked[b-clak0b2wdx]::before {
    content: "";
    position: absolute;
    inset: 4px; /* inside the rules the board's SVG draws round the cell */
    background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, var(--bg) 5px 10px);
}
/* The digit: half the cell at 500, centred, its baseline 70% down (the Inter baseline sits .864em below the
   top of a 1-line box). */
.rb-digit[b-clak0b2wdx] {
    position: absolute;
    top: calc(70% - var(--cell) * .5 * .864);
    left: 0;
    right: 0;
    font-size: calc(var(--cell) * .5);
    font-weight: 500;
    line-height: 1;
    text-align: center;
}
/* The cage sum: 21% of the cell at 600, its text 9% across with the baseline 24% down, on a surface box from
   4% to 30% of the cell that knocks out the dashed outline under it. */
.rb-sum[b-clak0b2wdx] {
    position: absolute;
    top: 4%;
    left: 4%;
    padding: calc(var(--cell) * .0187) calc(var(--cell) * .05) calc(var(--cell) * .0313);
    background: var(--surface);
    font-size: calc(var(--cell) * .21);
    font-weight: 600;
    line-height: 1;
}


/* The solve story (step 6b), as on the play board: the time trace's wash under the digit, and a digit placed after the
   moment scrubbed to faded to 12%. */
.rb-trace[b-clak0b2wdx] { position: absolute; inset: 0; background: var(--accent); opacity: var(--trace-a, 0); pointer-events: none; }
.rb-digit.is-later[b-clak0b2wdx] { opacity: .12; }
@media (prefers-reduced-motion: no-preference) {
    .rb-trace[b-clak0b2wdx] { animation: rb-trace-in-b-clak0b2wdx 600ms linear var(--trace-delay, 0ms) both; }
    .rb-digit[b-clak0b2wdx] { transition: opacity 120ms var(--ease); }
}
@keyframes rb-trace-in-b-clak0b2wdx {
    0% { opacity: 0; animation-timing-function: ease-out; }
    28% { opacity: .6; animation-timing-function: ease-out; }
    100% { opacity: var(--trace-a, 0); }
}
/* The replay's finale: as on the play board (BoardCell.razor.css). */
.play-stage:not([data-rp-ripple]) .rv-frame.is-replaying .rb-trace[b-clak0b2wdx] { display: none; }
.rv-frame.trace-still .rb-trace[b-clak0b2wdx] { animation: none; }

/* The fast replay (step 6c), as on the play board: while it runs (SolvedReview's frame carries is-replaying) a digit is
   hidden until solve-replay.js marks its cell popped back in (data-rp), scale 0.55 to 1 over the cell's --rp-pop. */
.is-replaying .rb-cell:not([data-rp]) .rb-digit[b-clak0b2wdx] { opacity: 0; }
.is-replaying .rb-digit[b-clak0b2wdx] { transition: none; }
.rb-cell[data-rp="pop"] .rb-digit[b-clak0b2wdx] { animation: rp-pop-b-clak0b2wdx var(--rp-pop, 180ms) var(--ease) both; }
@keyframes rp-pop-b-clak0b2wdx { from { opacity: 0; transform: scale(.55); } }
/* /Components/Play/ReviewMenu.razor.rz.scp.css */
/* The review's ••• in the play bar: the same 44px icon button as Play's (PlayBoard.razor.css .play-bar-more). */
.play-bar-more[b-knmh518374] {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.play-bar-more:hover[b-knmh518374],
.play-bar-more[aria-expanded="true"][b-knmh518374] { background: var(--surface-2); color: var(--ink); }
/* /Components/Play/SavingHelpSheet.razor.rz.scp.css */
p[b-jsyqhlqgvz] { margin: 0 0 var(--s3); }
.saving-help-causes[b-jsyqhlqgvz] { margin: 0 0 var(--s3); padding-left: 1.25rem; display: grid; gap: var(--s2); }
.saving-help-actions[b-jsyqhlqgvz] { display: flex; justify-content: flex-end; margin-top: var(--s4); }
/* /Components/Play/ShareResult.razor.rz.scp.css */
/* Share: a quiet button; its sheet is the modal Ui/Sheet (step 6d; the mockups' .sh-sheet, r2-share-*). */
.sr-wrap[b-hgh4ygf7ia] { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; }

/* The sheet. Phones: a bottom sheet (Ui/Sheet's), the picture small beside nothing, the message and actions under it.
   Desktop (1050px and up): 760px wide, the picture on the left (280px) and the message, switch and actions on the right. */
.sr-wrap[b-hgh4ygf7ia]  .share-sheet { --sh-pic: 216px; }
.sh-grid[b-hgh4ygf7ia] { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); min-width: 0; }
.sh-fig[b-hgh4ygf7ia] { margin: 0; display: grid; justify-items: center; gap: 6px; }
.sh-fig canvas[b-hgh4ygf7ia] { display: block; width: var(--sh-pic); aspect-ratio: 4 / 5; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: #f6f4ef; }
.sh-fig figcaption[b-hgh4ygf7ia] { font: 400 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-2); text-align: center; }
.sh-fig.is-off canvas[b-hgh4ygf7ia] { opacity: .25; filter: grayscale(1); }
.sh-side[b-hgh4ygf7ia] { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-content: start; min-width: 0; }
.sh-msg[b-hgh4ygf7ia] { display: grid; gap: 4px; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--surface-2); min-width: 0; }
.sh-eyebrow[b-hgh4ygf7ia] { margin: 0; font: 600 var(--t-small)/var(--lh-small) var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sh-text[b-hgh4ygf7ia] { margin: 0; font: 400 var(--t-body)/var(--lh-body) var(--font-ui); color: var(--ink); overflow-wrap: anywhere; }
.sh-url[b-hgh4ygf7ia] { margin: 0; display: flex; min-width: 0; font: 400 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--accent-text); }
.sh-url span[b-hgh4ygf7ia] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-url.is-none[b-hgh4ygf7ia] { color: var(--ink-2); }

/* Include the picture: one 44px switch row. */
.sh-switch[b-hgh4ygf7ia] { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 var(--t-body)/var(--lh-body) var(--font-ui); text-align: left; cursor: pointer; }
.sh-switch:focus-visible[b-hgh4ygf7ia] { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.sh-track[b-hgh4ygf7ia] { position: relative; flex: none; width: 52px; height: 32px; border-radius: 16px; background: var(--line-strong); transition: background var(--dur-1) var(--ease); }
.sh-track[b-hgh4ygf7ia]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left var(--dur-1) var(--ease); }
.sh-switch[aria-checked="true"] .sh-track[b-hgh4ygf7ia] { background: var(--accent); }
.sh-switch[aria-checked="true"] .sh-track[b-hgh4ygf7ia]::after { left: 23px; }
@media (prefers-reduced-motion: reduce) { .sh-track[b-hgh4ygf7ia], .sh-track[b-hgh4ygf7ia]::after { transition: none; } }

.sh-fallnote[b-hgh4ygf7ia] { margin: 0; font: 400 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-2); }
.sh-actions[b-hgh4ygf7ia] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
/* The narrowest phones (320 wide) cannot hold two labelled buttons side by side: they stack. */
@media (max-width: 359px) { .sh-actions[b-hgh4ygf7ia] { grid-template-columns: minmax(0, 1fr); } }
.sh-actions[b-hgh4ygf7ia]  .ui-btn { width: 100%; padding: 0 10px; gap: 8px; }
.sh-actions[b-hgh4ygf7ia]  .sh-copy.is-copied { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
/* The polite status line stays in the page (a live region must exist before its text), collapsing when empty. */
.sh-status[b-hgh4ygf7ia] { margin: 0; min-height: var(--lh-small); font: 600 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--accent-text); }
.sh-status:empty[b-hgh4ygf7ia] { min-height: 0; margin-top: calc(-1 * var(--s3)); }

/* Short phones: a smaller picture, so the actions stay in reach without scrolling the sheet far. */
@media (max-width: 699px) and (max-height: 759px) { .sr-wrap[b-hgh4ygf7ia]  .share-sheet { --sh-pic: 168px; } }
@media (min-width: 1050px) {
    .sr-wrap[b-hgh4ygf7ia]  .share-sheet { width: min(760px, 100%); }
    .sh-grid[b-hgh4ygf7ia] { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s5); }
    .sh-grid:not(:has(.sh-fig))[b-hgh4ygf7ia] { grid-template-columns: minmax(0, 1fr); }
    .sh-fig canvas[b-hgh4ygf7ia] { width: 280px; }
}
/* /Components/Play/ShortcutsSheet.razor.rz.scp.css */
/* Keyboard shortcuts: the mockups' .kgroups / .krow (_play.css). Tokens only. */
.ks-groups[b-udyvduxu37] { columns: 2; column-gap: var(--s6); }
.ks-group[b-udyvduxu37] { break-inside: avoid; margin-bottom: var(--s5); }

.ks-eyebrow[b-udyvduxu37] {
    margin: 0 0 var(--s2);
    font: 600 var(--t-small)/var(--lh-small) var(--font-ui);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.ks-list[b-udyvduxu37] { margin: 0; }
.ks-row[b-udyvduxu37] {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--s3);
    align-items: baseline;
    padding: 7px 0;
    border-top: 1px solid var(--line);
}
.ks-row dt[b-udyvduxu37] { white-space: nowrap; color: var(--ink-3); font-size: var(--t-small); line-height: var(--lh-small); }
.ks-row dd[b-udyvduxu37] { margin: 0; color: var(--ink); }

.ks-foot[b-udyvduxu37] { margin: var(--s1) 0 0; color: var(--ink-3); font-size: var(--t-small); line-height: var(--lh-small); }
.ks-nowrap[b-udyvduxu37] { white-space: nowrap; }

.ks-groups[b-udyvduxu37]  kbd,
.ks-foot kbd[b-udyvduxu37] {
    display: inline-block;
    min-width: 24px;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink-2);
    font: 500 var(--t-small)/20px var(--font-ui);
    text-align: center;
}
.ks-row dt[b-udyvduxu37]  kbd + kbd { margin-left: 2px; }

/* Phone: one column, the keys right-aligned after what they do. */
@media (max-width: 699px) {
    .ks-groups[b-udyvduxu37] { columns: 1; }
    .ks-row[b-udyvduxu37] { grid-template-columns: 1fr auto; }
    .ks-row dt[b-udyvduxu37] { order: 2; }
}
/* /Components/Play/SolvedReview.razor.rz.scp.css */
/* The review's board frame: the card centres over it, and the board under the card is dimmed (opacity 0.3, 1.5px
   blur; finish round 3) until Board reveals it. */
.rv[b-r6ru3yz40b] { display: contents; }
.rv-frame[b-r6ru3yz40b] { position: relative; width: 100%; height: 100%; }
.rv-frame[b-r6ru3yz40b]  .review-board { transition: opacity var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); }
.rv-frame.is-dimmed[b-r6ru3yz40b]  .review-board { opacity: .3; filter: blur(1.5px); }
@media (prefers-reduced-motion: reduce) {
    .rv-frame[b-r6ru3yz40b]  .review-board { transition: none; }
}

/* The fast replay (step 6c), as on the play board: the board takes no pointer while it runs, and the A9 wash runs once at the hand-off. */
.rv-frame.is-replaying[b-r6ru3yz40b]  .review-board { pointer-events: none; }
/* /Components/Play/SolveTimeline.razor.rz.scp.css */
/* The solve timeline (finish round 3's .mx-tl / .st-spark, _finish.css to _finish3.css). The box is the slider: the marks
   row (14px: the hint sparkles and check ticks) over the plot, which runs to 4px above the box's bottom edge, where the
   axis is. Its height is the panel's (--stl-h: 96px on phones, 56px on short ones, 64px on desktop). */
.stl-wrap[b-p0d01hpc78] { display: grid; min-width: 0; }

.stl[b-p0d01hpc78] {
    --stl-top: 14px;
    --stl-base: 4px;
    position: relative;
    height: var(--stl-h, 64px);
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 6px;
    outline-offset: 3px;
}
.stl:focus[b-p0d01hpc78] { outline: none; }
.stl:focus-visible[b-p0d01hpc78] { outline: 2px solid var(--focus); }

.stl-plot[b-p0d01hpc78] {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--stl-top);
    bottom: var(--stl-base);
    width: 100%;
    height: calc(100% - var(--stl-top) - var(--stl-base));
    display: block;
    overflow: visible;
}
.stl-area[b-p0d01hpc78] { fill: var(--accent-soft); stroke: none; }
.stl-line[b-p0d01hpc78] { fill: none; stroke: var(--accent); stroke-width: 1.75px; stroke-linejoin: round; }

.stl-axis[b-p0d01hpc78] { position: absolute; left: 0; right: 0; bottom: var(--stl-base); height: 1px; background: var(--line-strong); transform: translateY(1px); }

/* The longest think: a band from just above the plot to the axis. */
.stl-band[b-p0d01hpc78] {
    position: absolute;
    top: calc(var(--stl-top) - 2px);
    bottom: var(--stl-base);
    border-radius: 3px;
    background: var(--hint-context-wash);
}

/* A hint: the coach's sparkle in the marks row, a dotted rule down to the axis. */
.stl-hint[b-p0d01hpc78] { position: absolute; top: 0; bottom: var(--stl-base); width: 0; }
.stl-hint svg[b-p0d01hpc78] { position: absolute; top: 0; left: -5.5px; width: 11px; height: 11px; fill: var(--accent-text); }
.stl-hint[b-p0d01hpc78]::after {
    content: "";
    position: absolute;
    left: -0.5px;
    top: var(--stl-top);
    bottom: 0;
    border-left: 1px dashed color-mix(in srgb, var(--accent-text) 70%, transparent);
}

/* A check: a small tick in the marks row. */
.stl-check[b-p0d01hpc78] { position: absolute; top: 1px; width: 0; }
.stl-check svg[b-p0d01hpc78] {
    position: absolute;
    left: -5px;
    width: 10px;
    height: 7px;
    overflow: visible;
    fill: none;
    stroke: var(--ink-2);
    stroke-width: 1.75px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stl-cursor[b-p0d01hpc78] {
    position: absolute;
    top: calc(var(--stl-top) - 2px);
    bottom: var(--stl-base);
    width: 0;
    border-left: 1.5px solid var(--ink);
    margin-left: -0.75px;
}

/* Under the box: "Longest think 4:11" centred under the band (kept inside the box), or the scrub's "8:52 · 42 of 81". */
.stl-labels[b-p0d01hpc78] {
    position: relative;
    height: 18px;
    margin-top: 4px;
    font: 500 12px/16px var(--font-ui);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.stl-think-label[b-p0d01hpc78] {
    position: absolute;
    top: 0;
    left: clamp(56px, var(--at, 50%), calc(100% - 56px));
    transform: translateX(-50%);
    color: var(--ink-2);
}
.stl-scrub-label[b-p0d01hpc78] {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ink);
    font-weight: 600;
}
/* /Components/Play/StatusLine.razor.rz.scp.css */
/* The status line (design.md section 3.19). Empty, it is only its live region: no box, out of the layout, still
   in the accessibility tree so the next message is announced. With a message it is the owner-approved check card
   of step 5: as tall as its content, the tone on the whole card, × a 44px target in the top-right corner. */
.status-line.is-empty[b-lco7rdm6ec] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.status-line:not(.is-empty)[b-lco7rdm6ec] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    box-sizing: border-box;
    min-height: 46px;   /* the strip's 44px inside the border, so the 44px × never overflows */
    padding: 0.5rem 0.75rem;
    overflow-y: auto;
    border: 1px solid;
    border-radius: var(--r-md);
    font: 600 0.8125rem/1rem var(--font-ui);
}
.status-line.has-close[b-lco7rdm6ec] { padding-right: 44px; }   /* the right padding is the ×'s column */

/* The three tones: neutral is reversed ink (tips, confirmations, all correct, stopped); alert is danger on
   danger-soft (Check found mistakes); warn is the warn set (couldn't check, not unique, storage, a failure). */
.status-line--neutral[b-lco7rdm6ec] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.status-line--alert[b-lco7rdm6ec] { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.status-line--warn[b-lco7rdm6ec] { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-line); }

.status-line[b-lco7rdm6ec]  .status-line-icon { flex: none; color: inherit; }
/* The text beside the icon; the actions follow it on its row where both fit (a tablet), else wrap under it. */
.status-line-text[b-lco7rdm6ec] { flex: 1 1 10rem; min-width: 0; margin: 0; color: inherit; overflow-wrap: anywhere; }
.status-line-detail[b-lco7rdm6ec] { white-space: pre; }
.status-line-actions[b-lco7rdm6ec] { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 0 1 auto; }

/* × in the top-right corner, level with the first line: a 44px target, a 20px glyph, in the card's ink. */
.status-line[b-lco7rdm6ec]  .status-line-close { position: absolute; top: 0; right: 0; color: inherit; }
.status-line[b-lco7rdm6ec]  .status-line-close:hover { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }
.status-line[b-lco7rdm6ec]  .status-line-close:focus-visible { outline-color: currentColor; outline-offset: -4px; }

/* An expiring message (the Apply confirmation) fades over 160 ms; with reduced motion it just goes. */
.status-line.is-leaving[b-lco7rdm6ec] { animation: status-line-fade-b-lco7rdm6ec 160ms ease-out forwards; }
@keyframes status-line-fade-b-lco7rdm6ec { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .status-line.is-leaving[b-lco7rdm6ec] { animation: none; }
}

/* Desktop: floating over the top of the context panel (PlayStage's ContextOver, the panel's grid cell), the
   panel's width, above it with a shadow, so the panel's sections never move for it. */
@media (min-width: 1050px) {
    .status-line:not(.is-empty)[b-lco7rdm6ec] {
        position: relative;
        width: 100%;
        max-height: var(--bd);
        box-shadow: var(--shadow-pop);
    }
}

/* Phone and tablet: at the top of the control area in the strip's place, the board's width, over the strip (which
   PlayBoard hides under it) and, when it needs more lines, over the top of the pad, which stays usable below. */
@media (max-width: 1049px), (orientation: landscape) and (max-height: 520px) {
    .status-line:not(.is-empty)[b-lco7rdm6ec] {
        position: absolute;
        z-index: 42;
        left: 0;
        right: 0;
        width: var(--bd);
        margin: 0 auto;
        top: var(--ctl-top);
        max-height: calc(100% - var(--ctl-top) - var(--dock-bottom));
        box-shadow: var(--shadow-dock);
    }
}

/* The phone strip's calculator on (portrait phone): over the strip's results row only, under its control row, the strip's
   full width (the toggle is only as tall as the control row). Sum, Cells and the toggle stay in view and answer taps; the
   results give way to the message, as they do to the typing instruction. One line is what a short phone's row has; more lines
   hang over the top of the pad, as they do from the strip's place. */
@media (max-width: 699px) and (orientation: portrait) {
    .status-line.status-line--over-calc:not(.is-empty)[b-lco7rdm6ec] {
        left: var(--pg);
        right: auto;
        width: calc(100cqw - 2 * var(--pg));
        margin: 0;
        top: calc(var(--ctl-top) + var(--cs-ctl, 42px) + 1px);
        min-height: 0;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    .status-line.status-line--over-calc.has-close[b-lco7rdm6ec] { padding-right: 36px; }
    .status-line.status-line--over-calc[b-lco7rdm6ec]  .status-line-close { width: 34px; height: 34px; min-width: 0; min-height: 0; }
}

/* Landscape phone: at the top of the right-hand column, under the play bar. */
@media (orientation: landscape) and (max-height: 520px) {
    .status-line:not(.is-empty)[b-lco7rdm6ec] {
        left: var(--col-left);
        right: auto;
        width: var(--col-w);
        margin: 0;
        top: calc(var(--pg) + var(--bar-h) + var(--gap));
        max-height: calc(100% - var(--pg) - var(--bar-h) - var(--gap) - var(--pg));
    }
}
/* /Components/PlayBar.razor.rz.scp.css */
/* The play bar, from the v5 mockups' _play.css (.playbar): status only, the time centred. */
.playbar[b-ksaz8yprn0] {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--s2);
    height: var(--play-bar-h, 56px);
    padding: 0 var(--s2);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}

/* Back and the title. With the timer showing (.playbar--timed) this group and ••• (.playbar-end) take equal
   shares of the bar either side of it, so the timer is centred and the title stops short of it; the title's
   name ends with an ellipsis where it would run on. */
.playbar-start[b-ksaz8yprn0] {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: inherit;
    min-width: 0;
}
.playbar--timed .playbar-start[b-ksaz8yprn0], .playbar--timed .playbar-end[b-ksaz8yprn0] { flex: 1 1 0; }
.playbar--timed .playbar-end[b-ksaz8yprn0] { justify-content: flex-end; }
.playbar-start[b-ksaz8yprn0]  .playbar-back { flex: none; }

.playbar-title[b-ksaz8yprn0] {
    display: flex;
    align-items: baseline;
    gap: var(--s2);
    min-width: 0;
}
.playbar-title b[b-ksaz8yprn0] {
    font: 600 var(--t-title)/1 var(--font-display);
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playbar-date[b-ksaz8yprn0] {
    flex: none;
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-small);
    white-space: nowrap;
}
.playbar-date--short[b-ksaz8yprn0] { display: none; }

.playbar-timer[b-ksaz8yprn0] {
    display: inline-flex;
    flex: none;
    align-items: center;
    /* Above the ••• group, whose box (an equal share of the bar) reaches under the ⚠ on the narrowest phones. */
    position: relative;
    z-index: 1;
}

/* Right of the time, which stays centred (design.md section 3.6): 40px wide, pulled out of the timer's width. */
.playbar-timer[b-ksaz8yprn0]  .playbar-warn {
    width: 40px;
    margin-right: -46px;
    color: var(--warn-ink);
}
.playbar-timer[b-ksaz8yprn0]  .playbar-warn[aria-pressed="true"] { background: var(--warn-bg); color: var(--warn-ink); }


.playbar-end[b-ksaz8yprn0] {
    display: flex;
    align-items: center;
    gap: var(--s1);
    margin-left: auto;
}

@media (max-width: 699px) {
    .playbar[b-ksaz8yprn0] { gap: 2px; padding: 0 var(--s1); }
    .playbar-title[b-ksaz8yprn0] { flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 2px; }
    .playbar-date--long[b-ksaz8yprn0] { display: none; }
    .playbar-date--short[b-ksaz8yprn0] { display: inline; }
}
@media (max-width: 699px) and (max-height: 639px) {
    .playbar-title[b-ksaz8yprn0] { gap: 0; }
    .playbar-title b[b-ksaz8yprn0] { font-size: 19px; }
    .playbar-date[b-ksaz8yprn0] { line-height: 16px; }
}
@media (min-width: 700px) { .playbar[b-ksaz8yprn0] { padding: 0 var(--s3); } }
@media (min-width: 1050px) { .playbar[b-ksaz8yprn0] { padding: 0 var(--s4); } }
@media (orientation: landscape) and (max-height: 520px) {
    .playbar-title[b-ksaz8yprn0] { flex-direction: row; align-items: baseline; gap: var(--s2); }
    .playbar-date--long[b-ksaz8yprn0] { display: none; }
    .playbar-date--short[b-ksaz8yprn0] { display: inline; }
}
/* /Components/PlayBoard.razor.rz.scp.css */
/* The board's place in the play stage (Components/Play/PlayStage) and its surfaces. The stage owns the
   layout; this file draws the board and today's cards and sheets, and places the sheets in the stage. */
.sheet-close[b-n755obi5r9] { display: none; }
.cell-actions[b-n755obi5r9] { display: none; }
.cell-actions.play-sheet--open[b-n755obi5r9] {
    display: block;
    position: fixed;
    z-index: 51;   /* over the backdrop (50 from 700px up; the phone sheet below has its own) */
    top: 5rem;
    right: 1rem;
    width: min(20rem, calc(100vw - 2rem));
    /* a landscape phone is shorter than the list */
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
}
.cell-action-list[b-n755obi5r9] { display: flex; flex-direction: column; gap: 0.4rem; }
.cell-action-list button[b-n755obi5r9] {
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    text-align: left;
}
.cell-action-list button:disabled[b-n755obi5r9] { opacity: 0.5; }

/* The ••• this board puts in the play bar (PlayBar's end section): the bar's 44px icon button. */
.play-bar-more[b-n755obi5r9] {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.play-bar-more:hover[b-n755obi5r9],
.play-bar-more[aria-expanded="true"][b-n755obi5r9] { background: var(--surface-2); color: var(--ink); }
.play-bar-more:focus-visible[b-n755obi5r9] { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Empty state: a simple centered column with the puzzle loader. */
.play-empty-layout[b-n755obi5r9] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 40rem;
    margin: 0 auto;
}

.play-empty[b-n755obi5r9] {
    text-align: center;
    padding: 3rem 1.5rem;
}

.play-empty h3[b-n755obi5r9] {
    margin: 0 0 0.6rem;
    font-size: 1.4rem;
    color: var(--ink);
}

.play-empty p[b-n755obi5r9] {
    margin: 0 auto;
    max-width: 34rem;
    color: var(--ink-2);
    line-height: 1.5;
}

/* ---- grid ----
   No cage tints, no chrome: one flat surface, a uniform hairline between every
   pair of cells, and a 2px rule on the 3x3 boxes and the board edge. Colour is
   reserved for state (selection, hint, conflict); the cage is drawn as a dashed
   inset rule instead of a fill (see the .cage-edge block in BoardCell.razor.css). */
.play-grid-frame[b-n755obi5r9] {
    /* Exactly the stage's board slot (--bd square): the grid is a 2px top/left rule plus nine square cells. */
    width: 100%;
    margin: 0;
    position: relative;   /* for the coach target's pulse (.hint-pulse), laid over the board */
}

.play-grid[b-n755obi5r9] {
    /* An inline-size container: --cell is one cell's width, for the board text below. */
    container-type: inline-size;
    --cell: calc(100cqw / 9);
    /* The cage outline at the v5 mockups' weight (_board.js: a 2.5-unit stroke, 7-on 6-off dashes and an
       8-unit inset in a 100-unit cell): about 1px on a phone, 8% in from the cell edge. Both are whole
       pixels so every dash, at every place on the board, has one rendered weight (owner #57): a
       fractional size landed on 1 or 2 pixels by position. */
    --cage-w: round(nearest, max(1px, calc(var(--cell) * 0.025)), 1px);
    --cage-inset: round(nearest, calc(var(--cell) * 0.08), 1px);
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    /* gap: 0 so the hairlines below are continuous lines rather than a mosaic of
       tiles. The grid owns the board's top and left edge; each cell owns its own
       right and bottom edge, and the last column/row close the board. */
    gap: 0;
    background: var(--board-surface);
    /* The edge keeps its 2px of room (the stage's slot is nine whole-pixel cells plus 2px), in the board's
       own colour; the frame is drawn over it (::after below), as thin as the v5 frame. */
    border-top: 2px solid var(--board-surface);
    border-left: 2px solid var(--board-surface);
    position: relative;
    width: 100%;
    outline: none;
    touch-action: none;
}

/* A windowed board (PlayState.Window, the mini killer) draws only its crop, --board-n cells square, in the same board. */
.play-grid--window[b-n755obi5r9] {
    --cell: calc(100cqw / var(--board-n));
    grid-template-columns: repeat(var(--board-n), minmax(0, 1fr));
}

/* Without CSS round() the two custom properties would be invalid where they are used. */
@supports not (width: round(down, 1px, 1px)) {
    .play-grid[b-n755obi5r9] {
        --cage-w: max(1px, calc(var(--cell) * 0.025));
        --cage-inset: 8%;
    }
}

/* The ARIA row wrappers (role="row") carry no box so the 81 cells stay direct
   participants of the 9-column grid above. This does NOT make :nth-child count
   across all 81 cells, though — verified in the rendered app: :nth-child still
   counts real DOM siblings under each .grid-row (9 of them), so :nth-child(9n)
   happens to land on the last cell of every row (works, by coincidence of row
   length), but :nth-child(n+73) never matches anything (no row has 73+
   children). The bottom edge (BoardCell.razor.css) is closed via the row wrapper's :last-child
   instead, which needs no such coincidence. */
.grid-row[b-n755obi5r9] { display: contents; }

/* No focus ring on the board (owner #43), except where nothing else shows the focus: the board reached
   with Tab (play-input.js marks the grid data-focus-from="keyboard" on Tab and "pointer" on a press on the
   board; the game's own keys leave it alone) and no cell selected. From the first selection on, the
   current cell's ink ring is the focus cue, and the arrow keys move it. :focus-visible alone rang the
   board after any key, digits included. The offset just clears the board's own 2px edge rule. */
.play-grid:focus-visible[b-n755obi5r9] { outline: none; }
.play-grid[data-focus-from="keyboard"]:focus-visible:not(:has(.play-cell.selected))[b-n755obi5r9] {
    outline: 2px solid var(--selection-ring);
    outline-offset: 2px;
    border-radius: 0;
}

/* The cells themselves (.play-cell and everything inside one) are drawn by BoardCell.razor, with its own
   stylesheet. */

/* The board's outer frame, as the v5 mockups draw it (owner #51): 4% of a cell (their 8-unit stroke, half of
   it inside the board), so about 1.5px on a phone, a little lighter than the 2px box rules, and the 2px
   it keeps room for on larger boards. Drawn as a spread shadow, which isn't snapped to whole pixels the
   way a border is, over the 2px of room the grid and its last row and column keep in the board's colour. */
.play-grid[b-n755obi5r9]::after {
    content: "";
    position: absolute;
    inset: -2px;
    box-shadow: inset 0 0 0 min(2px, var(--cell) * 0.04) var(--box-border);
    pointer-events: none;
    z-index: 8;
}


/* The finish (round 3): the board dims (opacity 0.3, a 1.5px blur) under the finish card (FinishCard, laid over this
   frame) until the panel's Board, or Esc, reveals it. The board's place and size don't change. */
.play-grid[b-n755obi5r9] { transition: opacity var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); }
.play-grid-frame.is-finished > .play-grid[b-n755obi5r9] { opacity: .3; filter: blur(1.5px); }
@media (prefers-reduced-motion: reduce) {
    .play-grid[b-n755obi5r9] { transition: none; }
}

/* The fast replay (step 6c; finish-card/options.md, round 2 "The flow"). While it runs the board shows only the digits
   popped back in (BoardCell.razor.css) and takes no pointer, and carries no selection, peer tint, same-digit disc or focus ring (the host drops those cell
   classes; the grid's Tab ring is off below). At the hand-off the A9 wash runs once over the solved board, 300ms, under
   the card. It is not there with a reduced-motion preference, which has no replay. */
.play-grid-frame.is-replaying > .play-grid[b-n755obi5r9] { pointer-events: none; }
.play-grid-frame.is-replaying > .play-grid[data-focus-from]:focus-visible[b-n755obi5r9] { outline: none; }
.play-grid-frame.is-held.is-finished > .play-grid[b-n755obi5r9] { opacity: .65; filter: blur(.75px); }

/* ---- cage strip: attached under the board (phone, tablet, landscape) ----
   Every combination shows (owner, step 1 review): the chips wrap onto more lines. The strip's slot in the
   stage stays one line (44px), so the board never moves; the strip itself hangs from the slot's top and
   grows downward over the spare band and, where there is none, over the top of the pad. */
.cage-strip[b-n755obi5r9] {
    position: absolute;
    z-index: 35;   /* over the pad, under the sheets (41) and their backdrop (40) */
    top: 0;
    left: 0;
    right: 0;
    min-height: 100%;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    padding: 0 0 0 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink-2);
    font: 400 var(--t-small)/1 var(--font-ui);
}
.cage-strip-label[b-n755obi5r9] {
    flex: 1;
    min-width: 0;
    align-self: center;
    padding-left: var(--s1);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ink-3);
}
.cage-strip-label--total b[b-n755obi5r9] { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* Part of a cage with a known total: "Total" over the figure, before the chips, which give up as much padding as
   twelve of their size need to keep to the lines they take without the label, and keep the rest. */
.cage-strip-total[b-n755obi5r9] {
    flex: none;
    align-self: center;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding-right: 4px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}
.cage-strip-total b[b-n755obi5r9] { color: var(--ink); font-weight: 600; }
.cage-strip-total + .cage-strip-combos[b-n755obi5r9] { --chip-pad: max(1px, calc(20px - var(--digits, 4) * 4px)); }
@media (max-width: 359px) and (orientation: portrait), (orientation: landscape) and (max-height: 520px) {
    .cage-strip-total + .cage-strip-combos[b-n755obi5r9] { --chip-pad: max(1px, calc(18px - var(--digits, 4) * 4px)); }
}
.cage-strip .cage-strip-total + .cage-strip-combos .combo-chip[b-n755obi5r9] { padding: 0 1px; }
/* The chips share the strip's width (owner #48): as many columns as chips of the cage's size fit
   (--digits figures each, PlayBoard sets it; the chips of one cage are all as wide), each column
   stretched to fill the line, and no more columns than chips, so one line of a few chips spans the
   strip too. Further lines keep the same columns. The strip covers nothing: tablets keep it to one line, portrait
   phones to the two lines their budget holds for it (PlayStage's --strip-room), landscape phones to their column.
   More lines scroll inside it, a whole line at a time. */
.cage-strip-combos[b-n755obi5r9] {
    --chip-w: max(32px, calc(var(--digits, 4) * (1ch + 0.03em) + var(--chip-pad, 10px)));   /* the figures (tabular, so 1ch each) and their spacing, plus the padding */
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--chip-w), 100%), 1fr));
    align-content: safe center;   /* a third line scrolls below, never splits the overflow above and below */
    gap: 4px;
    margin: 5px 0;
    max-height: 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;   /* the fade on the cut edge says there is more (play-input.js sets data-fade) */
    font: 500 var(--t-small)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
}
.cage-strip-combos[b-n755obi5r9]::-webkit-scrollbar { display: none; }
.cs-scroll[data-fade="b"][b-n755obi5r9] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent); }
.cs-scroll[data-fade="t"][b-n755obi5r9] { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 20px), transparent); }
.cs-scroll[data-fade="tb"][b-n755obi5r9] { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
@media (max-width: 699px) and (orientation: portrait) {
    .cage-strip-combos[b-n755obi5r9] { max-height: calc(2 * 32px + 4px); }
}
/* Tall phones (about 790px and up, where the keypad leaves the room under the strip's slot): three lines, so the
   largest cage, 25 in 5 with its twelve combinations, shows them all. The strip is then 116px; the board and the pad
   do not move, as the strip hangs over the spare band. */
@media (max-width: 699px) and (orientation: portrait) and (min-height: 790px) {
    .cage-strip-combos[b-n755obi5r9] { max-height: calc(3 * 32px + 2 * 4px); }
}
/* A landscape phone gives the strip the column above the keypad (owner #62): it is as tall as its lines, to that. */
@media (orientation: landscape) and (max-height: 520px) {
    .cage-strip[b-n755obi5r9] { min-height: var(--strip-h); }
    .cage-strip-combos[b-n755obi5r9] { max-height: calc(var(--ls-strip-h) - 12px); }
}
/* Under 360px the chips give up side padding, not a third line: six to a line, so twelve fit two. */
@media (max-width: 359px) and (orientation: portrait) {
    .cage-strip-combos[b-n755obi5r9] { --chip-pad: 6px; }
}
/* Quiet sunken chips, the digits run together (12 of them fit two lines at 360px); a struck one is
   crossed out. The visible label drops the spaces; the accessible one keeps them. */
.cage-strip .combo-chip[b-n755obi5r9] {
    min-width: 0;
    scroll-snap-align: start;
    height: 32px;
    padding: 0 5px;
    border: 0;
    border-radius: 6px;
    background: var(--surface-2);
    font: 500 var(--t-small)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.cage-strip .combo-chip--struck[b-n755obi5r9] { background: transparent; opacity: 1; color: var(--ink-3); text-decoration-color: currentColor; }
.cage-strip-calc[b-n755obi5r9] {
    flex: none;
    margin-left: 4px;
    width: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    background: none;
    color: var(--accent-text);
    cursor: pointer;
}
.cage-strip-calc[aria-expanded="true"][b-n755obi5r9] { background: var(--accent-soft); }
/* The toggle (a portrait phone): the accent fills the column while the calculator is on; the 4px it keeps from the
   chips in the cage mode is filled too, so the column's icon does not move between the modes. */
.cage-strip-calc[aria-pressed="true"][b-n755obi5r9] {
    background: var(--accent);
    color: var(--on-accent);
    border-left-color: var(--accent);
    box-shadow: -4px 0 0 var(--accent);
    border-radius: 0 calc(var(--r-sm) - 1px) calc(var(--r-sm) - 1px) 0;
}
.cage-strip-calc:focus-visible[b-n755obi5r9] { outline: 2px solid var(--focus); outline-offset: -2px; }
.cage-strip-calc[aria-pressed="true"]:focus-visible[b-n755obi5r9] { outline-color: var(--on-accent); }

/* ---- the calculator mode of the strip (a portrait phone; calc-toggle round 5) ----
   The control row (Sum and Cells) over the results, both left of the toggle column. The strip is 123px on a tall
   phone (two lines of results) and 80px on a short one (one line), the 80px it already holds, so the board and the
   keypad never move. Results scroll vertically by whole lines past that, with the fade. */
.cage-strip.is-calc[b-n755obi5r9] { padding-left: 0; }
.cs-main[b-n755obi5r9] { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-ctl[b-n755obi5r9] { flex: none; position: relative; height: var(--cs-ctl, 42px); box-sizing: border-box; display: flex; align-items: center; gap: 18px; padding: 0 12px; }
.cs-pg[b-n755obi5r9] { display: inline-flex; align-items: center; gap: 8px; }
.cs-pl[b-n755obi5r9] { font: 600 var(--t-small)/1 var(--font-ui); color: var(--ink-2); }
/* A soft pill: a quiet shape, the number, a tiny up and down chevron. It is a spin button; a drag rolls it. */
.cs-pill[b-n755obi5r9] {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    height: var(--cs-pill, 36px); min-width: 62px; box-sizing: border-box; padding: 0 8px 0 12px; border-radius: calc(var(--cs-pill, 36px) / 2);
    background: var(--surface-2); color: var(--ink);
    touch-action: none; cursor: ns-resize; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.cs-pill:focus-visible[b-n755obi5r9] { outline: 2px solid var(--focus); outline-offset: 2px; }
.cs-pn[b-n755obi5r9] { font: 600 18px/22px var(--font-ui); font-variant-numeric: tabular-nums; }
.cs-chev[b-n755obi5r9] { display: inline-flex; flex-direction: column; gap: 2px; }
/* Two small triangles drawn with borders (a glyph would be 8px text, under the lint's floor). */
.cs-chev > span[b-n755obi5r9] { display: block; width: 0; height: 0; border: 3px solid transparent; }
.cs-chev > .is-up[b-n755obi5r9] { border-top-width: 0; border-bottom-color: var(--ink-3); }
.cs-chev > .is-down[b-n755obi5r9] { border-bottom-width: 0; border-top-color: var(--ink-3); }
/* Typing: the pill is a white field with an accent ring, the chevrons give way to a cancel. */
.cs-pill[data-editing][b-n755obi5r9] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); padding: 0 4px 0 12px; cursor: text; touch-action: manipulation; }
.cs-input[b-n755obi5r9] {
    width: 2.2ch; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); outline: none;
    font: 600 18px/22px var(--font-ui);   /* 16px or more, or iOS Safari zooms the page on focus */
    font-variant-numeric: tabular-nums; text-align: center; caret-color: var(--accent);
}
.cs-cancel[b-n755obi5r9] { display: grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--ink-2); cursor: pointer; }
.cs-cancel:focus-visible[b-n755obi5r9] { outline: 2px solid var(--focus); outline-offset: 1px; }
/* The box a drag grows into: three rows, the previous value, this one, the next, over the board and the results and
   taking no room, so nothing moves. The neighbours are the secondary ink at full strength; the current value sits on
   the accent wash. At an end of the range its row is blank with a short accent bar. */
.cs-box[b-n755obi5r9] { display: none; }
.cs-pill[data-drag] .cs-pn[b-n755obi5r9], .cs-pill[data-drag] .cs-chev[b-n755obi5r9] { visibility: hidden; }
.cs-pill[data-drag] .cs-box[b-n755obi5r9] {
    position: absolute; left: 50%; top: 50%; z-index: 60; width: 68px; height: 96px; margin: -48px 0 0 -34px; box-sizing: border-box; padding: 3px;
    display: grid; grid-template-rows: 1fr 1fr 1fr; border-radius: 26px; background: var(--surface); font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 1.5px var(--accent), 0 10px 28px rgba(28, 25, 20, .26), 0 2px 6px rgba(28, 25, 20, .12);
    pointer-events: none;
}
.cs-xr[b-n755obi5r9] { display: flex; align-items: center; justify-content: center; border-radius: 22px; font: 500 17px/1 var(--font-ui); font-style: normal; color: var(--ink-3); }
.cs-xr b[b-n755obi5r9] { font-weight: inherit; }
.cs-xr.is-cur[b-n755obi5r9] { background: var(--accent-soft); color: var(--ink); }
.cs-xr.is-cur b[b-n755obi5r9] { font: 700 22px/1 var(--font-ui); }
.cs-xr s[b-n755obi5r9] { width: 22px; height: 3px; border-radius: 2px; background: var(--accent); opacity: .85; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .cs-pill[data-drag] .cs-box[b-n755obi5r9] { box-shadow: 0 0 0 1.5px var(--accent), 0 10px 28px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35); }
}
:root[data-theme="dark"] .cs-pill[data-drag] .cs-box[b-n755obi5r9] { box-shadow: 0 0 0 1.5px var(--accent), 0 10px 28px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35); }
/* The results dim while a value rolls. */
.cage-strip[data-dragging] .cs-res[b-n755obi5r9] { opacity: .72; }

.cs-res[b-n755obi5r9] { flex: none; box-sizing: border-box; display: flex; align-items: flex-start; border-top: 1px solid var(--line); padding: var(--cs-rpad, 5px) 6px; }
/* The results: chips at the strip's full width (the toggle is only as tall as the control row), as many to a line as fit
   (6 of five figures at 375 wide and up), two lines at most, the rest scrolling by lines under a fade where it is cut. */
.cs-results[b-n755obi5r9] {
    flex: 1; min-width: 0; margin: 0;
    /* --cols equal columns (PlayBoard, from ChipLayout: the fewest lines in which a chip is at least 64px, up to the two the results
       have), each exactly a chip wide: the line's share, never over 96px, so the gap between chips is always the 4px one and any
       spare room is at the end of the line */
    --cols: 6;
    display: grid; grid-template-columns: repeat(var(--cols), min(96px, calc((100% - (var(--cols) - 1) * 4px) / var(--cols))));
    justify-content: start;
    grid-auto-rows: var(--cs-chip, 32px); align-content: start; gap: 4px;
    max-height: calc(2 * var(--cs-chip, 32px) + 4px); overflow-y: auto; overscroll-behavior: contain;
    scroll-snap-type: y mandatory; scrollbar-width: none;
    font: 500 var(--t-small)/1 var(--font-ui); font-variant-numeric: tabular-nums;
}
.cs-results[b-n755obi5r9]::-webkit-scrollbar { display: none; }
.cs-results .combo-chip[b-n755obi5r9] { height: var(--cs-chip, 32px); width: 100%; max-width: 96px; justify-self: start; }
.cs-note[b-n755obi5r9] { margin: 0; align-self: center; flex: 1; min-width: 0; color: var(--ink-3); font: 400 var(--t-small)/1.25 var(--font-ui); }
@media (max-height: 789px) { .cs-note[b-n755obi5r9] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 359px) {
    .cs-ctl[b-n755obi5r9] { gap: 10px; padding: 0 8px; }
    .cs-pg[b-n755obi5r9] { gap: 5px; }
    .cs-pill[b-n755obi5r9] { min-width: 56px; padding: 0 6px 0 10px; }
    /* Five figures to a chip, six chips to a line at 320: no letter-spacing, 2px at each side. */
    .cs-results .combo-chip[b-n755obi5r9] { letter-spacing: 0; padding: 0 2px; }
}

/* 
/* ---- portrait phones, tall and short (calc-toggle round 6, option G with combinations (ii)): one layout ----
   The toggle is a small button in the strip's top-right corner, 44px wide and as tall as the control row (47px, 41px on a short phone), the same in both modes; calculator mode puts the
   pills in a control row to its left and the results below at the full strip width; combinations mode flows its chips beside
   and below it. The control row and the chips are 46px and 32px on a tall phone and 40px and 28px (the tightest that keep a
   chip's 28px) on a short one, where the stage shortens the 3x3 pad for as long as the calculator is open (PlayStage). */
@media (max-width: 699px) and (orientation: portrait) {
    .cage-strip-calc[b-n755obi5r9] {
        position: absolute; top: 0; right: 0; z-index: 2; width: 44px; height: calc(var(--cs-ctl, 42px) + 1px); margin: 0; box-sizing: border-box;
        border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
        border-radius: 0 calc(var(--r-sm) - 1px) 0 8px;
    }
    .cage-strip-calc[aria-pressed="true"][b-n755obi5r9] { border-color: var(--accent); box-shadow: none; border-radius: 0 calc(var(--r-sm) - 1px) 0 8px; }
    .cage-strip-label[b-n755obi5r9] { padding-right: 48px; }
    .cage-strip[b-n755obi5r9] { min-height: max(100%, calc(var(--cs-ctl, 42px) + 3px)); }   /* never shorter than the toggle (47px on a tall phone) and its borders */
    .cs-ctl[b-n755obi5r9] { height: var(--cs-ctl, 42px); padding: 0 56px 0 12px; }
    .cs-main[b-n755obi5r9] { padding-right: 0; }
    /* Combinations: --cols equal columns (PlayBoard, from ChipLayout: the fewest lines in which a chip is at least 64px, up to the two a
       short phone's strip reserves or the three a tall one's does), each exactly a chip wide: the line's share, never over 96px, so the
       gap between chips is always the 4px one and any spare room is at the end of the line. The list stops 48px short of the strip's
       right edge, the toggle's column, on every line: a full first line ends at the toggle with its 4px gap. */
    .cage-strip-combos[b-n755obi5r9] {
        --cols: 4;
        display: grid; flex: 1; min-width: 0; margin: 0; padding: 5px 48px 5px 6px; min-height: 42px; box-sizing: border-box;
        grid-template-columns: repeat(var(--cols), min(96px, calc((100% - (var(--cols) - 1) * 4px) / var(--cols))));
        justify-content: start; grid-auto-rows: 32px; gap: 4px; align-content: start;
        max-height: calc(5px + 2 * 32px + 4px + 5px); overflow-y: auto; scroll-snap-type: none;   /* two lines, 5px clear above and below */
    }
    .cage-strip .cage-strip-combos .combo-chip[b-n755obi5r9] { display: block; width: 100%; max-width: 96px; justify-self: start; margin: 0; padding: 0 2px; height: 32px; line-height: 32px; letter-spacing: 0; font-size: var(--t-small); }
}
@media (max-width: 699px) and (orientation: portrait) and (min-height: 790px) {
    .cage-strip-combos[b-n755obi5r9] { max-height: calc(5px + 3 * 32px + 2 * 4px + 5px); }
}
/* While a value is typed, a number pad that covers the strip's place is cleared (play-input.js sets --calc-lift from the
   visual viewport), lifting the strip over the board's lower rows. */
.cage-strip[data-calc-edit][b-n755obi5r9] { transform: translateY(calc(-1 * var(--calc-lift, 0px))); transition: transform 120ms ease; }
@media (prefers-reduced-motion: reduce) { .cage-strip[data-calc-edit][b-n755obi5r9] { transition: none; } }

/* ---- rails: the cage card (in the context panel on desktop, a sheet over the control area below) ---- */
.play-rail[b-n755obi5r9] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.control-row[b-n755obi5r9] { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.control-row .app-button[b-n755obi5r9] { flex: 1; min-width: 4.5rem; }

.control-hint[b-n755obi5r9] { margin: 0; font-size: 0.8rem; color: var(--ink-3); line-height: 1.4; }
/* Chip text is explicit (--ink) so the small 0.75rem glyph clears WCAG AA
   (4.5:1) on the --surface-2 chip in both themes. */
.control-hint kbd[b-n755obi5r9] {
    background: var(--surface-2); color: var(--ink); border-radius: 4px; padding: 0.05rem 0.3rem; font-size: 0.75rem; font-family: monospace;
}

/* ---- coach text: the board side (the surface itself is Components/Play/CoachSurface) ---- */
/* The cage panel's empty lines (the Selection and Selected cage sections). */
.coach-idle[b-n755obi5r9] { margin: 0; font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }

/* A named house, cage or cell and the punctuation right after it wrap as one unit. */
.coach-ref-run[b-n755obi5r9] { white-space: nowrap; }

/* Visually hidden, pinned to the top left of its positioned ancestor, so wherever it sits in the flow it can never
   reach past the play shell and make the page taller. */
.coach-sr-only[b-n755obi5r9] {
    position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* A phrase naming a house, cage or cell: reads as text, lifts its cells when pointed at. */
.coach-ref[b-n755obi5r9] {
    display: inline; margin: 0; padding: 0 0.05em; border: 0; border-radius: 3px;
    font: inherit; color: inherit; background: none; cursor: help;
    text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
}
.coach-ref:hover[b-n755obi5r9], .coach-ref:focus-visible[b-n755obi5r9], .coach-ref--on[b-n755obi5r9] {
    background: var(--hint-context-wash);
    text-decoration-style: solid;
}

/* ---- cage combinations ---- */
.cage-combo-card[b-n755obi5r9] { display: flex; flex-direction: column; gap: 0.6rem; }
.cage-combo-card .panel-header[b-n755obi5r9] { position: relative; }

.combo-list[b-n755obi5r9] { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.combo-chip[b-n755obi5r9] {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--btn-line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
    transition: background 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.combo-chip:hover[b-n755obi5r9] { box-shadow: var(--shadow-pop); }

.combo-chip--struck[b-n755obi5r9] {
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 2px;
    color: var(--ink-3);
    background: var(--surface-2);
    opacity: 0.7;
}

.combo-calc-title[b-n755obi5r9] {
    display: flex; align-items: center; gap: var(--s2); margin: 0;
    font: 700 1.1rem/1.3 var(--font-ui); color: var(--ink);
}
.combo-calc-count[b-n755obi5r9] { margin: 0 0 0.4rem; font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); }

/* The context panel's Cage view head (desktop; below 1050px the strip and the calculator view stand in for it). */
.ctx-eyebrow[b-n755obi5r9] {
    margin: 0;
    font: 600 var(--t-small)/var(--lh-small) var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-3);
}
.ctx-cage-head[b-n755obi5r9] {
    display: flex; align-items: center; gap: var(--s2); margin: 0;
    font: 600 var(--t-body)/var(--lh-body) var(--font-ui); color: var(--ink);
}
.ctx-bigsum[b-n755obi5r9] { font: 500 var(--t-display)/var(--lh-display) var(--font-display); font-variant-numeric: tabular-nums; }
.ctx-meta[b-n755obi5r9] { font: 400 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-3); }

.combo-calc-inputs[b-n755obi5r9] { display: flex; gap: 0.6rem; }

.combo-calc-field[b-n755obi5r9] { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); flex: 1; }

.combo-calc-field input[b-n755obi5r9] {
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    /* iOS Safari zooms the page into any focused field under 16px. */
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Raw parser text kept as a secondary, collapsed detail under the friendly lead. */
.error-detail[b-n755obi5r9] { margin-top: 0.5rem; font-size: 0.82rem; }
.error-detail summary[b-n755obi5r9] { cursor: pointer; font-weight: 600; color: var(--danger); }
.error-detail-text[b-n755obi5r9] {
    margin: 0.4rem 0 0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.78rem; color: var(--danger); line-height: 1.4; word-break: break-word;
}



/* ================================================================ placement in the play stage
   The stage (Components/Play/PlayStage) lays out the board, the context panel, the strip and the pad.
   What follows places this board's own surfaces: the cage card in the desktop context panel,
   or over the control area below 1050px; the finish card likewise; and the options drawer, the cell
   actions and their backdrop, fixed to the window as before. */

/* ---- desktop: the cage card is the context panel's Cage view ---- */
@media (min-width: 1050px) {
    .play-rail--aids[b-n755obi5r9] { gap: 0.65rem; }

    /* The Cage view, as the v5 mockups draw the context panel (play.html, play-cage.html; owner #42): one
       panel, the cage on top and the calculator under a hairline. */
    #cage-sheet[b-n755obi5r9] {
        gap: 0;
        padding: var(--s4) var(--s5);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        background: var(--surface);
    }
    #cage-sheet .panel-card[b-n755obi5r9] { gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
    #cage-sheet .ctx-eyebrow[b-n755obi5r9] { margin-bottom: var(--s1); }
    /* The Selection section: the Selected cage section's eyebrow and head, then the calculator's hairline. The head
       is always one display line high and its suffix never wraps. With no total (fewer than two cells, or a coach
       walkthrough) the line is the Selected cage section's empty line, .coach-idle, spaced as that one is, and the
       height it saves goes under the hairline: one display line less the empty line and its margin. So the Selected
       cage section starts at the same place in every state. */
    #cage-sheet .ctx-selection[b-n755obi5r9] {
        display: flex;
        flex-direction: column; /* as the Selected cage card is, so the eyebrow's and the empty line's margins add up */
        margin-bottom: var(--s4);
        padding-bottom: var(--s4);
        border-bottom: 1px solid var(--line);
    }
    #cage-sheet .ctx-selection--idle[b-n755obi5r9] { margin-bottom: calc(var(--s4) + var(--lh-display) - var(--s1) - var(--lh-small)); }
    #cage-sheet .ctx-selection-head[b-n755obi5r9] { min-height: var(--lh-display); }
    #cage-sheet .ctx-selection-head .ctx-meta[b-n755obi5r9] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #cage-sheet .ctx-selection .coach-idle[b-n755obi5r9] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #cage-sheet .coach-idle[b-n755obi5r9] { margin-top: var(--s1); font-size: var(--t-small); line-height: var(--lh-small); }
    #cage-sheet .combo-list[b-n755obi5r9] { gap: 6px; margin-top: var(--s2); }
    #cage-sheet .combo-chip[b-n755obi5r9] {
        padding: 3px 8px;
        border: 0;
        border-radius: 6px;
        background: var(--surface-2);
        color: var(--ink);
        font: 500 var(--t-small)/24px var(--font-ui);
        font-variant-numeric: tabular-nums;
        letter-spacing: normal;
        white-space: nowrap;
        transition: background-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
    }
    #cage-sheet .combo-chip:hover:not(:disabled)[b-n755obi5r9] { box-shadow: inset 0 0 0 1px var(--line-strong); }
    #cage-sheet .combo-chip:focus-visible[b-n755obi5r9] { outline: 2px solid var(--focus); outline-offset: 1px; }
    #cage-sheet .combo-chip--struck[b-n755obi5r9] {
        background: transparent;
        color: var(--ink-3);
        opacity: 1;
        text-decoration: line-through;
        text-decoration-color: currentColor;
        text-decoration-thickness: 1px;
    }
    #cage-sheet .combo-chip:disabled[b-n755obi5r9] { cursor: default; }
    #cage-sheet .combo-calc-card[b-n755obi5r9] {
        gap: var(--s2);
        margin-top: var(--s4);
        padding-top: var(--s4);
        border-top: 1px solid var(--line);
    }
    #cage-sheet .combo-calc-title[b-n755obi5r9] { margin-bottom: var(--s1); font: 600 var(--t-body)/var(--lh-body) var(--font-ui); }
    #cage-sheet .combo-calc-inputs[b-n755obi5r9] { gap: var(--s3); }
    #cage-sheet .combo-calc-field[b-n755obi5r9] { display: grid; gap: 6px; min-width: 0; font: 600 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-2); }
    #cage-sheet .combo-calc-field input[b-n755obi5r9] {
        height: 48px;
        padding: 0 14px;
        border: 1px solid var(--line-strong);
        border-radius: var(--r-sm);
        background: var(--surface);
        color: var(--ink);
        font: 400 var(--t-body)/1 var(--font-ui);
        font-variant-numeric: tabular-nums;
        appearance: textfield;
        -moz-appearance: textfield;
    }
    #cage-sheet .combo-calc-field input[b-n755obi5r9]::-webkit-inner-spin-button,
    #cage-sheet .combo-calc-field input[b-n755obi5r9]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
    #cage-sheet .combo-calc-field input[b-n755obi5r9]::placeholder { color: var(--ink-3); opacity: 1; }
    #cage-sheet .combo-calc-field input:focus[b-n755obi5r9] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
    #cage-sheet .combo-calc-count[b-n755obi5r9] { margin: var(--s1) 0 0; }

    .sheet-backdrop[b-n755obi5r9] { z-index: 50; }
}

/* ---- phone: the cell actions are a bottom sheet ---- */
@media (max-width: 699px) {
    .cell-actions[b-n755obi5r9] {
        display: flex;
        flex-direction: column;
        position: fixed;
        z-index: 41;
        inset: auto 0 0;
        max-height: min(82dvh, 42rem);
        padding: 3.5rem 0.75rem calc(0.75rem + var(--safe-bottom));
        overflow-y: auto;
        border-radius: 18px 18px 0 0;
        background: var(--bg);
        box-shadow: var(--shadow-pop);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 0s linear 220ms;
    }
    .cell-actions.play-sheet--open[b-n755obi5r9] {
        transform: translateY(0);
        visibility: visible;
        transition-delay: 0s;
    }
    .cell-actions.play-sheet--open[b-n755obi5r9] { top: auto; right: 0; width: auto; }
    .sheet-backdrop[b-n755obi5r9] { z-index: 40; }
}

/* Rendered only while a drawer or sheet that closes on an outside tap is open. */
.sheet-backdrop[b-n755obi5r9] {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--scrim);
}

/* ---- below 1050px (and on a landscape phone): cards over the control area ----
   The control area is everything under the board (design.md section 10 "Control-area overlays"); these
   cards cover part of it inside the board's gutter and never the board (the coach sheet places itself:
   Components/Play/CoachSurface); the cage tools cover the strip as well. */
@media (max-width: 1049px), (orientation: landscape) and (max-height: 520px) {
    .ctx-selection[b-n755obi5r9] { display: none; }

    #cage-sheet[b-n755obi5r9] {
        display: flex;
        position: absolute;
        z-index: 41;
        left: 0;
        right: 0;
        width: var(--bd);
        margin: 0 auto;
        top: calc(var(--ctl-top) + var(--strip-h) + var(--gap));
        bottom: var(--dock-bottom);
        padding: 0.55rem;
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        background: var(--bg);
        box-shadow: var(--shadow-dock);
        visibility: hidden;
        opacity: 0;
        transition: opacity 220ms ease, visibility 0s linear 220ms;
    }
    #cage-sheet[b-n755obi5r9] { top: var(--ctl-top); padding-top: 3.5rem; }
    #cage-sheet.play-sheet--open[b-n755obi5r9] {
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
    }
    #cage-sheet .sheet-close[b-n755obi5r9] {
        display: inline-flex;
        position: absolute;
        top: 0.55rem;
        right: 0.55rem;
        min-width: 4rem;
        min-height: 2.75rem;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface-2);
        color: var(--ink);
        font: inherit;
        font-weight: 700;
    }
    #cage-sheet > .cage-combo-card:not(.combo-calc-card)[b-n755obi5r9] { display: none; }


    /* The calculator view (v5 play-cage-calc.html, owner #52): a sheet over the whole control area, strip
       included, with one head row (Sum · Cells · ×) and every result as a chip, four to a row,
       scrolling inside it when there are more than fit. */
    .mobile-calculator[b-n755obi5r9] {
        position: absolute;
        z-index: 41;
        left: 0;
        right: 0;
        width: var(--bd);
        margin: 0 auto;
        top: var(--ctl-top);
        bottom: var(--dock-bottom);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: var(--s2);
        padding: 2px var(--s1) var(--s2) var(--s2);
        border: 1px solid var(--accent);
        border-radius: var(--r-md);
        background: var(--surface);
        box-shadow: var(--shadow-dock);
        container-type: inline-size;
    }
    .calc-head[b-n755obi5r9] {
        display: flex; align-items: center; gap: var(--s2); flex: none;
        min-height: 44px; padding-bottom: 2px; border-bottom: 1px solid var(--line);
    }
    .calc-title[b-n755obi5r9] {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
    }
    .calc-field[b-n755obi5r9] {
        display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; margin: 0;
        font: 600 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-2);
    }
    .calc-field input[b-n755obi5r9] {
        flex: none; width: 46px; height: 40px; min-height: 40px; box-sizing: border-box; padding: 0 6px;
        border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
        font: 600 16px/1 var(--font-ui);   /* under 16px, iOS Safari zooms the page on focus */
        font-variant-numeric: tabular-nums; text-align: center;
        appearance: textfield; -moz-appearance: textfield;
    }
    .calc-field input[b-n755obi5r9]::-webkit-inner-spin-button, .calc-field input[b-n755obi5r9]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
    .calc-field input:focus[b-n755obi5r9] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
    .calc-close[b-n755obi5r9] {
        display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
        border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); cursor: pointer;
    }
    .calc-close:focus-visible[b-n755obi5r9] { outline: 2px solid var(--focus); outline-offset: 2px; }
    .mobile-calculator-results[b-n755obi5r9] {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        scrollbar-width: thin;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 36px;
        align-content: start;
        gap: 6px;
        padding: 0 var(--s1) 0 0;
    }
    .mobile-calculator-results .combo-chip[b-n755obi5r9] {
        width: 100%; height: 36px; min-width: 0; padding: 0 2px;
        border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink);
        font: 500 var(--t-small)/1 var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
        white-space: nowrap; overflow: hidden; text-overflow: clip; opacity: 1;
    }
    /* A narrow sheet (a 245px phone board, the 216-300px landscape column): the fields narrow, so the head
       stays one row, and the results go three to a row, so a five-figure chip fits. */
    @container (max-width: 299px) {
        .calc-head[b-n755obi5r9] { gap: 6px; }
        .calc-field input[b-n755obi5r9] { width: 40px; }
        .mobile-calculator-results[b-n755obi5r9] { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* five figures fit */
    }
    /* Phones whose strip and pad keep the page's width (PlayStage): the sheet covers them at that width. */
    @media (max-width: 699px) and (orientation: portrait) {
        .mobile-calculator[b-n755obi5r9] { width: calc(100cqw - 2 * var(--pg)); }
    }
    @media (max-height: 639px) {
        .mobile-calculator[b-n755obi5r9] { gap: 6px; }
        .mobile-calculator-results[b-n755obi5r9] { grid-auto-rows: 32px; }
        .mobile-calculator-results .combo-chip[b-n755obi5r9] { height: 32px; }
    }
    .mobile-calculator-results .combo-chip--struck[b-n755obi5r9] {
        background: transparent; color: var(--ink-3); text-decoration: line-through; text-decoration-color: currentColor; text-decoration-thickness: 1px;
    }
}

/* ---- landscape phone: the cards cover the right-hand column under the play bar ---- */
@media (orientation: landscape) and (max-height: 520px) {
    #cage-sheet[b-n755obi5r9] {
        left: var(--col-left);
        right: auto;
        width: var(--col-w);
        margin: 0;
        top: calc(var(--pg) + var(--bar-h) + var(--gap));
        bottom: var(--pg);
    }
    .mobile-calculator[b-n755obi5r9] { left: var(--col-left); right: auto; width: var(--col-w); top: calc(var(--pg) + var(--bar-h) + var(--gap)); bottom: var(--pg); }
}

@media (prefers-reduced-motion: reduce) {
    .cell-actions[b-n755obi5r9], #cage-sheet[b-n755obi5r9] { transition: none; }
}

/* ================================================================ motion (the approved motion study)
   The cells' own motion (the settle, the ripple, the lift, the shake and the hint tint's reveal) is in
   BoardCell.razor.css. */

/* The coach target's one pulse, over the board in its cell's place (the cell clips, and owns its own ring). */
.hint-pulse[b-n755obi5r9] {
    position: absolute;
    z-index: 9;
    pointer-events: none;
    left: calc(2px + (100% - 2px) * var(--pulse-c) / var(--board-n, 9));
    top: calc(2px + (100% - 2px) * var(--pulse-r) / var(--board-n, 9));
    width: calc((100% - 2px) / var(--board-n, 9));
    height: calc((100% - 2px) / var(--board-n, 9));
}

@media (prefers-reduced-motion: no-preference) {
    /* 5. a coach highlight's tint spreads from its target (BoardCell.razor.css), which pulses once */
    .hint-pulse[b-n755obi5r9] { animation: hint-pulse-b-n755obi5r9 var(--dur-pulse) var(--ease) both; }
}

@keyframes hint-pulse-b-n755obi5r9 {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hint-ink) 70%, transparent); }
    to { box-shadow: 0 0 0 14px color-mix(in srgb, var(--hint-ink) 0%, transparent); }
}

/* A Mini sprint board's solved note, in the finish card's place (desktop context panel). */
.sprint-solved[b-n755obi5r9] { text-align: center; }
.sprint-solved-star[b-n755obi5r9] { margin: 0; font-size: 2.5rem; line-height: 1.1; }
.sprint-solved-title[b-n755obi5r9] { margin: 0; font: 600 var(--t-title)/var(--lh-title) var(--font-display); }
.sprint-solved-note[b-n755obi5r9] { margin: var(--s1) 0 0; color: var(--ink-2); }
/* /Components/PlayClock.razor.rz.scp.css */
.play-clock[b-3co2jbgcl5] {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font: 500 var(--t-body)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.play-clock[b-3co2jbgcl5]  .ui-icon { color: var(--ink-3); }

@media (max-width: 699px) {
    .play-clock[b-3co2jbgcl5]  .ui-icon { width: 18px; height: 18px; }
}
/* /Components/PuzzleEditor.razor.rz.scp.css */
/* The Builder's stage (design.md section 3.15, mockup builder.html and _play.css "Builder"): the play shell's
   top-aligned budget. Phone and tablet, top to bottom: Cages | Digits, the board, spare height, then the
   selection card anchored to the bottom. The card always reserves the height of 21 sum chips (three rows of
   7), so the board never moves as the selection changes and the chips never cover it; the board gives way:
     --bd = min(100cqw - 2 * pg, 100dvh - bar - mode - card - 3 * gap - pg-top - pg-bot)
   which is 374px at 390x844, 302 at 360x690, 276 at 390x664 and 242 at 375x600 (owner #21).
   Desktop: the board and a 340px rail (the mode, the selection panel, the progress line in its own panel).
   100cqw is the tool shell's width (ToolLayout is an inline-size container); the height under the bar is
   --bstage-h when set (a framed specimen on the components page), else the viewport's less the bar. */
.bstage[b-c9rypr6ucx] {
    --gap: 8px; --pg: 8px; --pg-top: 8px; --pg-bot: 8px;
    --seg-b: 50px;          /* the segmented control: 44px segments in a 3px track */
    --sheet-h: 242px;       /* the card, reserving 21 chips */
    --sumchip-h: 44px; --sumchip-gap: 6px;
    --bd: min(100cqw - 2 * var(--pg),
              var(--bstage-h, 100dvh - var(--tool-bar-h, 56px)) - var(--seg-b) - var(--sheet-h) - 3 * var(--gap) - var(--pg-top) - var(--pg-bot) - var(--safe-bottom));
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: var(--gap);
    min-height: 0;
    padding: var(--pg-top) var(--pg) calc(var(--pg-bot) + var(--safe-bottom));
    box-sizing: border-box;
    color: var(--ink);
}

.bmode[b-c9rypr6ucx] { width: var(--bd); flex: none; }

/* Words and controls drawn on one side of the desktop breakpoint only (child components' too). */
@media (max-width: 1049px) {
    .bstage[b-c9rypr6ucx]  .only-wide { display: none; }
}
@media (min-width: 1050px) {
    .bstage[b-c9rypr6ucx]  .only-narrow { display: none; }
}

/* ---------- the board ---------- */
.editor-grid[b-c9rypr6ucx] {
    display: grid;
    flex: none;
    /* Nine equal tracks each way, whatever the cells hold: rows left to size to their content grew
       under a given (61px against 38.5 at 390x844), and every cell under it moved. */
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(9, minmax(0, 1fr));
    width: var(--bd);
    height: var(--bd);
    background: var(--board-surface);
    border-top: var(--rule-outer) solid var(--box-border);
    border-left: var(--rule-outer) solid var(--box-border);
    box-sizing: border-box;
    gap: 0;
    touch-action: none;
    --cage-inset: 4%;
    --cell: calc(var(--bd) / 9);
    /* The grid's rules: the phone board's 2px box rules and edge and 1px hairlines. A browser with CSS
       round() scales them with the board (below); without it these stand, as a custom property holding
       round() would make every border using it invalid at computed-value time, and the grid would vanish. */
    --rule-box: 2px;
    --rule-outer: 2px;
    --rule-thin: 1px;
    --cage-stroke: max(1px, var(--bd) * 2.5 / 900);
    /* Cage sums: never under 12px (the capture lint's floor), about 30% of a cell, at most 17px. */
    --sum-font: clamp(12px, var(--cell) * 0.3, 17px);
}

/* Where the label's ink starts, as the mockup draws it (_board.js: 21-unit text at x 9, baseline 24 of a
   100-unit cell). The mockup fixes it from the gridline, so its inset from the inside edge of the rule above
   or to the left depends on that rule: half an interior rule (hairline or box rule) lies on the cell's side
   of the gridline, and all of the outer edge does. So each cell takes the rule it actually has above and to
   its left (--sum-above, --sum-left), and the inset is 8.44% of the cell down and 10.85% across from the
   gridline, less that rule (a box-rule cell keeps the 5.95% and 8.35% it had). The padding is that less the
   digits' own room above and left of their ink in 'Inter Figures': 0.08em across, and above, about 0.25px at
   12px growing to 0.8px at 17px (measured; small boards snap the text by up to half a pixel either way). */
.editor-cell[b-c9rypr6ucx] {
    --sum-above: calc(var(--rule-thin) / 2);
    --sum-left: calc(var(--rule-thin) / 2);
    --sum-pt: max(1px, var(--cell) * 0.0844 - var(--sum-above) - (var(--sum-font) - 12px) * 0.11 - 0.25px);
    --sum-pl: max(1px, var(--cell) * 0.1085 - var(--sum-left) - var(--sum-font) * 0.08);
}
.grid-row:first-child .editor-cell[b-c9rypr6ucx] { --sum-above: var(--rule-outer); }
.grid-row:nth-child(4) .editor-cell[b-c9rypr6ucx],
.grid-row:nth-child(7) .editor-cell[b-c9rypr6ucx] { --sum-above: calc(var(--rule-box) / 2); }
.editor-cell:first-child[b-c9rypr6ucx] { --sum-left: var(--rule-outer); }
.editor-cell:nth-child(4)[b-c9rypr6ucx],
.editor-cell:nth-child(7)[b-c9rypr6ucx] { --sum-left: calc(var(--rule-box) / 2); }

/* Every stroke scales with the board as the mockup draws it (units of a 900-unit board): box rules 5 units,
   the visible edge 4, hairlines 2, the dashed cage stroke 2.5. Borders are drawn in whole pixels (the
   browser floors them, so 3.98 would draw as 3), so each rule is the nearest whole pixel, never under the
   phone board's 2px rules and 1px hairlines: a 374px board is unchanged, 576px draws 3, 3 and 1px, and 720px
   draws 4, 3 and 2px (the mockup's 4, 3.2 and 1.6) with a 2px cage stroke. */
@supports (width: round(1px, 1px)) {
    .editor-grid[b-c9rypr6ucx] {
        --rule-box: max(2px, round(var(--bd) * 5 / 900, 1px));
        --rule-outer: max(2px, round(var(--bd) * 4 / 900, 1px));
        --rule-thin: max(1px, round(var(--bd) * 2 / 900, 1px));
    }
}

/* The ARIA grid needs a row between the grid and its cells; display:contents keeps the 9-column
   layout while leaving role="row" in the accessibility tree. */
.grid-row[b-c9rypr6ucx] { display: contents; }

.editor-grid:focus-visible:not(.is-pointer)[b-c9rypr6ucx] {
    outline: 3px solid var(--editor-grid-focus);
    outline-offset: 2px;
}

.editor-cell[b-c9rypr6ucx] {
    position: relative;
    background: var(--board-surface);
    border-right: var(--rule-thin) solid var(--grid-line);
    border-bottom: var(--rule-thin) solid var(--grid-line);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: clip;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}
.editor-cell.nonet-right[b-c9rypr6ucx] { border-right: var(--rule-box) solid var(--box-border); }
.editor-cell.nonet-bottom[b-c9rypr6ucx] { border-bottom: var(--rule-box) solid var(--box-border); }
.editor-cell:nth-child(9n)[b-c9rypr6ucx] { border-right: var(--rule-outer) solid var(--box-border); }
.grid-row:last-child .editor-cell[b-c9rypr6ucx] { border-bottom: var(--rule-outer) solid var(--box-border); }

/* The selection is one flat fill, as the mockup draws it; the sum label's patch takes the same fill. */
.editor-cell.selected[b-c9rypr6ucx],
.editor-cell.dragging[b-c9rypr6ucx],
.editor-cell.selected .cage-badge[b-c9rypr6ucx],
.editor-cell.dragging .cage-badge[b-c9rypr6ucx] { background: var(--editor-selection-fill); }

.editor-cell.active[b-c9rypr6ucx] { box-shadow: inset 0 0 0 3px var(--editor-active-ring); }

/* The keyboard cursor: a contrasting focus edge, separated from the cell by a surface-colour gap. Only
   while the board has keyboard focus and the last input there was a key (.is-pointer otherwise): a
   pointer selection is the fill alone, as the mockup draws it. */
.editor-grid:focus-visible:not(.is-pointer) .editor-cell.focused[b-c9rypr6ucx] {
    box-shadow: inset 0 0 0 2px var(--editor-cell-bg), inset 0 0 0 4px var(--editor-focus-ring);
}
.editor-grid:focus-visible:not(.is-pointer) .editor-cell.focused.selected[b-c9rypr6ucx],
.editor-grid:focus-visible:not(.is-pointer) .editor-cell.focused.dragging[b-c9rypr6ucx] {
    box-shadow: inset 0 0 0 2px var(--editor-selection-fill), inset 0 0 0 4px var(--editor-focus-ring);
}

.cage-badge--pending .cage-sum[b-c9rypr6ucx] {
    padding: 1px 0.18em;
    border-radius: 4px;
    background: var(--editor-pending-bg);
    color: var(--editor-pending-text);
}

.editor-cell .given[b-c9rypr6ucx] {
    line-height: 1;
    font-family: 'Inter Figures', var(--font-ui);
    font-size: calc(var(--cell) * 0.55);
    font-weight: 600;
    color: var(--value-given);
    font-variant-numeric: tabular-nums;
    z-index: 2;
}
.editor-cell .given.placeholder[b-c9rypr6ucx] { color: transparent; }

/* A given in the cell that carries a cage sum (or the typed total) never goes under the label: the sum
   can't shrink below 12px, and on a small board a centred given at 55% of the cell runs into it. So the
   given keeps its place and size unless its glyph box, centred, would meet the label's patch on both axes
   at once; only then does it move right, then down if that's not enough, shrinking only as far as it
   must to fit beside or under the label.
     label: --bh tall, --bw wide (--sum-digits digits of --dw em each, plus its padding: --sum-pt + 0
       vertically, --sum-pl + 2px across);
     given: its glyph box is --gw em wide and --gh em tall ('Inter Figures', whose box hugs the digit);
     --ci is the cell's inside (less its widest border), --gap the clearance kept from the label and
     --edge from the cell's far sides, past the dashed cage rule drawn there;
     --ox and --oy: how far the centred glyph box reaches into the label and its gap, across and down
       (it meets the label only where both are > 0); --ox0 and --oy0 the same at full size.
   A step of "max(0px, x) * 1000" is a switch: 0 while x <= 0, out of the way once x is past a hair. */
.editor-cell.has-sum .given[b-c9rypr6ucx] {
    --dw: 0.62; --gw: 0.68; --gh: 0.8; --gap: 1.5px;
    --edge: calc(var(--cell) * 0.04 + var(--cage-stroke) + 0.5px);
    --ci: calc(var(--cell) - var(--rule-box));
    --bh: calc(var(--sum-font) * 0.8 + var(--sum-pt));
    --bw: calc(var(--sum-font) * var(--dw) * var(--sum-digits, 1) + var(--sum-pl) + 2px);
    --f0: calc(var(--cell) * 0.55);
    --ox0: calc(var(--bw) + var(--gap) - (var(--ci) - var(--f0) * var(--gw)) / 2);
    --oy0: calc(var(--bh) + var(--gap) - (var(--ci) - var(--f0) * var(--gh)) / 2);
    --f: min(var(--f0),
             max((var(--ci) - var(--edge) - var(--bw) - var(--gap)) / var(--gw),
                 (var(--ci) - var(--edge) - var(--bh) - var(--gap)) / var(--gh),
                 max(0px, -1 * min(var(--ox0), var(--oy0))) * 1000));
    --w: calc(var(--f) * var(--gw));
    --h: calc(var(--f) * var(--gh));
    --ox: calc(var(--bw) + var(--gap) - (var(--ci) - var(--w)) / 2);
    --oy: calc(var(--bh) + var(--gap) - (var(--ci) - var(--h)) / 2);
    /* how far past the label it would still reach when moved fully right (> 0: it must move down too) */
    --short: calc(var(--bw) + var(--gap) - (var(--ci) - var(--edge) - var(--w)));
    /* the room to move right and down; > 0 in --down when moving down clears the label and is the shorter
       move (a two-digit total at 1280x680 needs 1.75px down, against 13.9px right) */
    --room-x: calc((var(--ci) - var(--w)) / 2 - var(--edge));
    --room-y: calc((var(--ci) - var(--h)) / 2 - var(--edge));
    --down: max(0px, min(var(--ox) - var(--oy), var(--room-y) - var(--oy)) + 0.01px);
    position: relative;
    left: min(clamp(0px, var(--ox), var(--room-x)), max(0px, var(--oy) - var(--ox), var(--oy) - var(--room-y)) * 1000);
    top: clamp(0px, min(var(--oy), max(0px, var(--short)) * 1000 + var(--down) * 1000, max(0px, var(--ox)) * 1000), var(--room-y));
    font-size: var(--f);
}

/* Cage sums (--sum-font on the board) in 'Inter Figures' on a 0.8em line: the patch is as tall as the
   digits, not the cell's text, and leaves the most room for a given beside or under it. Its padding
   (--sum-pt, --sum-pl) puts the digits where the mockup draws them. */
.cage-badge[b-c9rypr6ucx] {
    position: absolute;
    top: 0;
    left: 0;
    padding: var(--sum-pt) 2px 0 var(--sum-pl);
    font-family: 'Inter Figures', var(--font-ui);
    font-size: var(--sum-font);
    line-height: 0.8;
    color: var(--cage-label-text);
    background: var(--board-surface);
    z-index: 4;
    pointer-events: none;
}
.cage-badge .cage-sum[b-c9rypr6ucx] {
    font-size: var(--sum-font);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ---------- the card: bottom-anchored, always 21 chips tall ---------- */
.bsheet[b-c9rypr6ucx] {
    display: grid;
    flex: none;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: var(--s2);
    width: calc(100cqw - 2 * var(--pg));
    height: var(--sheet-h);
    margin-top: auto;
    padding: var(--s3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-sizing: border-box;
}

.bs-sel[b-c9rypr6ucx] { display: flex; flex-direction: column; gap: var(--s2); min-height: 0; }

.bs-head[b-c9rypr6ucx] {
    display: flex;
    align-items: center;
    gap: var(--s2);
    min-height: 32px;
    margin: -6px -6px -6px 0;
}
.bs-title[b-c9rypr6ucx] {
    margin: 0;
    font: 600 var(--t-body)/var(--lh-body) var(--font-ui);
    color: var(--ink);
    white-space: nowrap;
}
.bs-dot[b-c9rypr6ucx] { margin-left: var(--s2); color: var(--ink-3); font-weight: 400; }
.bs-meta[b-c9rypr6ucx] {
    flex: 1;
    min-width: 0;
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-small);
}
/* A message's short form, in the head line beside the chips (phone and tablet: there is no room under them). */
.bs-head-error[b-c9rypr6ucx] { color: var(--danger); }
.bs-head-end[b-c9rypr6ucx] { display: flex; align-items: center; margin-left: auto; }
.bs-head[b-c9rypr6ucx]  .bs-undo { margin-left: -8px; }

.bs-hint[b-c9rypr6ucx] {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--t-body);
    line-height: var(--lh-body);
}
.bs-head .bs-hint[b-c9rypr6ucx] { padding: 4px 0; }

.bs-body[b-c9rypr6ucx] {
    display: grid;
    align-content: start;
    gap: var(--s2);
    min-height: 0;
    overflow-y: auto;
}

.bs-help[b-c9rypr6ucx], .bs-tip[b-c9rypr6ucx], .bs-warning[b-c9rypr6ucx] {
    margin: 0;
    font-size: var(--t-small);
    line-height: var(--lh-small);
}
.bs-help[b-c9rypr6ucx] { color: var(--ink-3); }
.bs-tip[b-c9rypr6ucx] { color: var(--accent-text); }
.bs-warning[b-c9rypr6ucx] { color: var(--warn-ink); }

.bs-error[b-c9rypr6ucx] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--s2);
    margin: 0;
    color: var(--danger);
    font-size: var(--t-small);
    line-height: var(--lh-small);
}
.bs-error span[b-c9rypr6ucx] { flex: 1 1 12em; }

.bs-prog[b-c9rypr6ucx] {
    display: flex;
    align-items: center;
    gap: var(--s3);
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-small);
    white-space: nowrap;
}
.bs-prog .num[b-c9rypr6ucx] { font-variant-numeric: tabular-nums; }
.bs-problem[b-c9rypr6ucx] { color: var(--danger); white-space: normal; }
.bs-note[b-c9rypr6ucx] { color: var(--ink-2); white-space: normal; }
.bs-note--warn[b-c9rypr6ucx] { color: var(--warn-ink); }
.meter[b-c9rypr6ucx] { flex: 1; min-width: 24px; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.meter i[b-c9rypr6ucx] { display: block; height: 100%; border-radius: 2px; background: var(--accent); }

/* Digits: the given-digit pad, in the same card (two rows of five). */
.value-pad[b-c9rypr6ucx] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sumchip-gap);
}
.value-key[b-c9rypr6ucx] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: var(--sumchip-h);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--btn-line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font: 600 var(--t-body)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.value-key:hover[b-c9rypr6ucx] { background: var(--surface-2); }
.value-key--clear[b-c9rypr6ucx] { font-size: var(--t-small); color: var(--ink-2); }
.value-key[aria-pressed="true"][b-c9rypr6ucx] {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-text);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.value-key[aria-disabled="true"][b-c9rypr6ucx] { color: var(--ink-3); background: var(--bg); cursor: default; }
.value-key:focus-visible[b-c9rypr6ucx] { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Visually hidden, still read: the live region (selection size, commits, refusals) and the board's key help.
   One line, as tall as its line (clip-path hides it all), so it never counts as content cut off below. */
.editor-live[b-c9rypr6ucx] {
    position: absolute;
    width: 1px;
    height: auto;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- short phones (< 640px tall): 40px chips ---------- */
@media (max-width: 699px) and (max-height: 639px) {
    .bstage[b-c9rypr6ucx] { --gap: 6px; --pg-top: 6px; --pg-bot: 6px; --sheet-h: 230px; --sumchip-h: 40px; }
}

/* ---------- phones: the longest status wraps below 375px wide. The two lines come out of the card's own
   spacing, so all 21 chips still fit in its fixed height and the board stays where it is. ---------- */
@media (max-width: 699px) {
    .bs-problem[b-c9rypr6ucx], .bs-note[b-c9rypr6ucx] { line-height: 1.1; }
    .bsheet:has(.bs-problem, .bs-note)[b-c9rypr6ucx] { gap: var(--s1); }
}

/* ---------- tablet (700 - 1049) ---------- */
@media (min-width: 700px) {
    .bstage[b-c9rypr6ucx] { --gap: 12px; --pg: 32px; --pg-top: 16px; --pg-bot: 16px; --sheet-h: 222px; --sumchip-h: 40px; --sumchip-gap: 4px; }
    .bsheet[b-c9rypr6ucx] { width: var(--bd); }
}

/* ---------- desktop (>= 1050): the board and a 340px rail ---------- */
@media (min-width: 1050px) {
    .bstage[b-c9rypr6ucx] {
        --gap: 12px; --pg-top: 24px; --pg-bot: 24px; --ctx-w: 340px;
        --bd: min(720px, var(--bstage-h, 100dvh - var(--tool-bar-h, 56px)) - var(--pg-top) - var(--pg-bot));
        display: grid;
        grid-template-columns: var(--bd) var(--ctx-w);
        grid-template-rows: auto auto auto minmax(0, 1fr);
        grid-template-areas: "board mode" "board sel" "board prog" "board .";
        justify-content: center;
        align-content: start;
        column-gap: var(--s5);
        row-gap: var(--s4);
    }
    .bmode[b-c9rypr6ucx] { grid-area: mode; width: auto; }
    .editor-grid[b-c9rypr6ucx] { grid-area: board; grid-row: 1 / -1; align-self: start; }
    .bsheet[b-c9rypr6ucx] { display: contents; }
    .bs-sel[b-c9rypr6ucx], .bs-prog[b-c9rypr6ucx] {
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        background: var(--surface);
    }
    .bs-sel[b-c9rypr6ucx] { grid-area: sel; gap: var(--s1); padding: var(--s4) var(--s5); }
    .bs-prog[b-c9rypr6ucx] { grid-area: prog; padding: var(--s3) var(--s4); color: var(--ink-2); }
    .bs-head[b-c9rypr6ucx] { margin: 0; min-height: 24px; }
    .bs-head .bs-hint[b-c9rypr6ucx] { padding: 0; }
    .bs-body[b-c9rypr6ucx] { overflow: visible; gap: var(--s1); }
    .bs-body[b-c9rypr6ucx]  .sumgrid, .bs-body .value-pad[b-c9rypr6ucx], .bs-body[b-c9rypr6ucx]  .sum-reason { margin-top: var(--s2); }
    .bs-body[b-c9rypr6ucx]  .bs-clear { justify-self: start; margin: var(--s2) 0 calc(-1 * var(--s2)) -12px; }
}

/* ---------- landscape phones: the board left, the mode and the card right ---------- */
@media (orientation: landscape) and (max-height: 520px) {
    .bstage[b-c9rypr6ucx] {
        --gap: 6px; --pg: 8px; --pg-top: 8px; --pg-bot: 8px; --sumchip-h: 40px; --sumchip-gap: 4px;
        /* the height under the bar, but never so wide that the column beside it drops under 300px */
        --bd: min(var(--bstage-h, 100dvh - var(--tool-bar-h, 44px)) - 2 * var(--pg), 100cqw - 2 * var(--pg) - var(--s4) - 300px);
        display: grid;
        grid-template-columns: var(--bd) minmax(0, 400px);
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas: "board mode" "board sheet";
        justify-content: center;
        align-content: start;
        column-gap: var(--s4);
        row-gap: var(--gap);
        padding: var(--pg) calc(var(--safe-right) + var(--pg)) var(--pg) calc(var(--safe-left) + var(--pg));
    }
    .bmode[b-c9rypr6ucx] { grid-area: mode; width: auto; }
    .editor-grid[b-c9rypr6ucx] { grid-area: board; grid-row: 1 / -1; }
    .bsheet[b-c9rypr6ucx] { display: grid; grid-area: sheet; width: auto; height: auto; margin: 0; align-self: start; }
}

/* The Play board's inset dashed cage rules, with the stroke scaled to the board as the mockup draws it. */
.cage-edge[b-c9rypr6ucx] {
    display: block;
    position: absolute;
    pointer-events: none;
    z-index: 3;
    border: 0;
    background-repeat: repeat;
}

.cage-edge--top[b-c9rypr6ucx], .cage-edge--bottom[b-c9rypr6ucx] {
    left: 0;
    right: 0;
    height: var(--cage-stroke);
    background-image: linear-gradient(to right, var(--cage-edge) 0 60%, transparent 60%);
    background-size: 12.5% var(--cage-stroke);
}
.cage-edge--top[b-c9rypr6ucx] { top: var(--cage-inset); }
.cage-edge--bottom[b-c9rypr6ucx] { bottom: var(--cage-inset); }


.cage-edge--left[b-c9rypr6ucx], .cage-edge--right[b-c9rypr6ucx] {
    top: 0;
    bottom: 0;
    width: var(--cage-stroke);
    background-image: linear-gradient(to bottom, var(--cage-edge) 0 60%, transparent 60%);
    background-size: var(--cage-stroke) 12.5%;
}
.cage-edge--left[b-c9rypr6ucx] { left: var(--cage-inset); }
.cage-edge--right[b-c9rypr6ucx] { right: var(--cage-inset); }

/* Corners: pull an edge in only where a perpendicular edge shares the corner.
   .cage-border-left/right/top/bottom mark which sides of THIS cell carry a
   cage boundary (set in CellClass from the same CellRenderInfo that decides
   whether a .cage-edge div is rendered on that side at all). */
.editor-cell.cage-border-left .cage-edge--top[b-c9rypr6ucx],
.editor-cell.cage-border-left .cage-edge--bottom[b-c9rypr6ucx] { left: var(--cage-inset); }
.editor-cell.cage-border-right .cage-edge--top[b-c9rypr6ucx],
.editor-cell.cage-border-right .cage-edge--bottom[b-c9rypr6ucx] { right: var(--cage-inset); }
.editor-cell.cage-border-top .cage-edge--left[b-c9rypr6ucx],
.editor-cell.cage-border-top .cage-edge--right[b-c9rypr6ucx] { top: var(--cage-inset); }
.editor-cell.cage-border-bottom .cage-edge--left[b-c9rypr6ucx],
.editor-cell.cage-border-bottom .cage-edge--right[b-c9rypr6ucx] { bottom: var(--cage-inset); }
/* /Components/PuzzlePreview.razor.rz.scp.css */
.puzzle-preview[b-fxzk7hpqhu] {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(9, minmax(0, 1fr));
    width: min(100%, 28rem);
    aspect-ratio: 1;
    border: 2px solid var(--box-border);
    border-radius: .15rem;
    overflow: hidden;
    background: var(--board-surface);
    color: var(--cell-text);
}
.puzzle-preview--compact[b-fxzk7hpqhu] { width: min(100%, 28rem); flex: none; }
.puzzle-preview__cell[b-fxzk7hpqhu] {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--grid-line);
    font-size: clamp(.85rem, 1.7vw, 1.4rem);
    line-height: 1;
}
.puzzle-preview--compact .puzzle-preview__cell[b-fxzk7hpqhu] { font-size: clamp(.85rem, 1.7vw, 1.4rem); }
.puzzle-preview__cell--top[b-fxzk7hpqhu] { border-top: 2px dotted var(--cage-edge); }
.puzzle-preview__cell--left[b-fxzk7hpqhu] { border-left: 2px dotted var(--cage-edge); }
.puzzle-preview__cell--box-bottom[b-fxzk7hpqhu] { border-bottom: 2px solid var(--box-border); }
.puzzle-preview__cell--box-right[b-fxzk7hpqhu] { border-right: 2px solid var(--box-border); }
.puzzle-preview__cell small[b-fxzk7hpqhu] {
    position: absolute;
    top: 0;
    left: 1px;
    font-size: .43em;
    line-height: 1;
}
.puzzle-preview__player-digit[b-fxzk7hpqhu] { color: var(--value-player); }
.puzzle-preview__note[b-fxzk7hpqhu] {
    width: .25rem;
    height: .25rem;
    border-radius: 50%;
    background: var(--value-player);
}
.puzzle-preview--compact .puzzle-preview__cell small[b-fxzk7hpqhu] { font-size: .43em; }
.puzzle-preview--unavailable[b-fxzk7hpqhu] {
    position: relative;
    color: var(--ink-2);
    border-style: dashed;
}
.puzzle-preview--unavailable .puzzle-preview__cell[b-fxzk7hpqhu] { opacity: .55; }
.puzzle-preview__fallback-label[b-fxzk7hpqhu] {
    position: absolute;
    inset: 20% 8%;
    display: grid;
    place-items: center;
    padding: .35rem;
    border: 1px solid var(--line);
    border-radius: .35rem;
    background: var(--surface);
    box-shadow: var(--shadow-pop);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}
.puzzle-preview--compact .puzzle-preview__fallback-label[b-fxzk7hpqhu] { font-size: .7rem; }
/* /Components/PuzzleRating.razor.rz.scp.css */
.puzzle-rating[b-otx7ourhkc] { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); color: inherit; }
.rating-label[b-otx7ourhkc] { font: 600 var(--t-small)/var(--lh-small) var(--font-ui); }
.rating-control[b-otx7ourhkc] { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.rating-choices[b-otx7ourhkc] { display: flex; gap: 2px; }
.rating-choice[b-otx7ourhkc] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-3);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color .12s, transform .12s;
}
.rating-choice--filled[b-otx7ourhkc] { color: var(--accent-text); }
.rating-choice:active[b-otx7ourhkc] { transform: scale(.9); }
/* Hover previews the score: every star up to the pointer lights, the ones after it stay as they were. */
@media (hover: hover) {
    .rating-choices:hover .rating-choice[b-otx7ourhkc] { color: var(--accent-text); }
    .rating-choices:hover .rating-choice:hover ~ .rating-choice[b-otx7ourhkc] { color: var(--ink-3); }
}
.rating-choice:focus-visible[b-otx7ourhkc] { outline: 2px solid var(--focus); outline-offset: 2px; }
.rating-choice[aria-disabled="true"][b-otx7ourhkc] { cursor: progress; }
.rating-message[b-otx7ourhkc] { margin: 0; font: 400 var(--t-small)/var(--lh-small) var(--font-ui); color: var(--ink-2); }
.rating-message--error[b-otx7ourhkc] { color: var(--danger); }
.rating-remove[b-otx7ourhkc] {
    min-height: 32px;
    padding: 0 var(--s1);
    border: 0;
    background: none;
    color: var(--ink-2);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.rating-remove:hover[b-otx7ourhkc] { color: var(--ink); }
.rating-remove:focus-visible[b-otx7ourhkc] { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.rating-remove:disabled[b-otx7ourhkc] { cursor: progress; }
/* /Components/SettingsSheet.razor.rz.scp.css */
/* The Settings sheet's content, from the mockups' _pages.css (.set-group, .set-block) and _shared.css (.eyebrow,
   .rows, .seg). Tokens only. */
.set-group + .set-group[b-wrkh055cie] { margin-top: var(--s5); }

.set-eyebrow[b-wrkh055cie] {
    margin: 0 0 var(--s2);
    font: 600 var(--t-small)/var(--lh-small) var(--font-ui);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.set-rows[b-wrkh055cie] {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.set-block[b-wrkh055cie] { padding: var(--s4); }

/* A row that is one button (the mockups' .set-row.link): icon, label, 64px tall. Danger ink for Clear saved games. */
.set-row[b-wrkh055cie] {
    display: flex;
    align-items: center;
    gap: var(--s4);
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: var(--s3) var(--s4);
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--ink);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
    text-align: left;
    cursor: pointer;
}
.set-row:hover[b-wrkh055cie] { background: var(--surface-2); }
.set-row:focus-visible[b-wrkh055cie] { outline: 2px solid var(--focus); outline-offset: -2px; }
.set-row--danger[b-wrkh055cie],
.set-row--danger[b-wrkh055cie]  .ui-icon { color: var(--danger); }
.set-grow[b-wrkh055cie] { flex: 1; min-width: 0; }
.set-grow b[b-wrkh055cie] { font-weight: 600; }
.set-block b[b-wrkh055cie] { display: block; font-weight: 600; }
/* About's links: a full 44px target each, though they read as a line of text. */
.set-block a[b-wrkh055cie] { display: inline-flex; align-items: center; min-height: 44px; }
.set-block p[b-wrkh055cie] {
    margin: 2px 0 0;
    font-size: var(--t-small);
    line-height: var(--lh-small);
    color: var(--ink-3);
}

/* Segmented control (design.md section 6): selected = accent-soft fill + 2px accent inset border + 600. */
.set-seg[b-wrkh055cie] {
    display: inline-flex;
    gap: 3px;
    margin-top: var(--s3);
    padding: 3px;
    border-radius: 11px;
    background: var(--surface-2);
}

.set-seg button[b-wrkh055cie] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 44px;
    margin: 0;
    padding: 0 var(--s4);
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-2);
    font: 500 var(--t-small)/1 var(--font-ui);
    cursor: pointer;
    transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.set-seg button:hover[b-wrkh055cie] { color: var(--ink); }
.set-seg button[aria-checked="true"][b-wrkh055cie] {
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 600;
    box-shadow: inset 0 0 0 2px var(--accent);
}
.set-seg button:focus-visible[b-wrkh055cie] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* Practice level: the mockup's chips, a radio group that wraps. 44px tall, so every chip is a full target. */
.set-chips[b-wrkh055cie] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-top: var(--s3);
}
.set-chips button[b-wrkh055cie] {
    min-height: 44px;
    margin: 0;
    padding: 0 var(--s4);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font: 500 var(--t-small)/1 var(--font-ui);
    cursor: pointer;
}
.set-chips button:hover[b-wrkh055cie] { color: var(--ink); }
.set-chips button[aria-checked="true"][b-wrkh055cie] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 600;
}
.set-chips button:focus-visible[b-wrkh055cie] { outline: 2px solid var(--focus); outline-offset: 2px; }

/* A switch row (the mockups' .set-row with .switch): label and line, then the 52x32 track. */
.set-rows + .set-rows[b-wrkh055cie] { margin-top: var(--s2); }
.set-why[b-wrkh055cie] {
    display: block;
    margin-top: 2px;
    font-size: var(--t-small);
    line-height: var(--lh-small);
    color: var(--ink-3);
}
.set-switch[b-wrkh055cie] {
    position: relative;
    flex: none;
    width: 52px;
    height: 32px;
    border-radius: 16px;
    background: var(--line-strong);
}
.set-switch[b-wrkh055cie]::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: left var(--dur-1) var(--ease);
}
.set-switch-row[aria-checked="true"] .set-switch[b-wrkh055cie] { background: var(--accent); }
.set-switch-row[aria-checked="true"] .set-switch[b-wrkh055cie]::after { left: 23px; }
.set-row[b-wrkh055cie]  .set-chev { color: var(--ink-3); }

/* Keyboard-only entry points (design.md section 3.12): absent, and out of the accessibility tree, without a fine pointer. */
@media not (any-pointer: fine) {
    .set-fine-only[b-wrkh055cie] { display: none; }
}
/* Touch-only preferences (Digit flicks): absent, and out of the accessibility tree, without a coarse primary pointer. */
@media not (pointer: coarse) {
    .set-coarse-only[b-wrkh055cie] { display: none; }
}

@media (max-width: 699px) {
    .set-seg[b-wrkh055cie] { display: flex; }
    .set-seg button[b-wrkh055cie] { flex: 1; min-width: 0; }
}
/* /Components/Sprint/SprintClock.razor.rz.scp.css */
.sprint-clock[b-pfp05ph73c] {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font: 500 var(--t-body)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sprint-clock[b-pfp05ph73c]  .ui-icon { color: var(--ink-3); }
.sprint-clock.is-low[b-pfp05ph73c] { color: var(--danger); font-weight: 600; }

@media (max-width: 699px) {
    .sprint-clock[b-pfp05ph73c]  .ui-icon { width: 18px; height: 18px; }
}
/* /Components/Sprint/SprintFinishCard.razor.rz.scp.css */
.sprint-card[b-n5ppbfm4we] {
    max-width: 34rem;
    margin: var(--s5) auto;
    padding: var(--s5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
}
.sprint-card-eyebrow[b-n5ppbfm4we] { margin: 0; color: var(--ink-2); font: 600 var(--t-small)/var(--lh-body) var(--font-ui); }
.sprint-card-title[b-n5ppbfm4we] { margin: var(--s1) 0 var(--s2); font: 600 var(--t-display, 28px)/1.15 var(--font-display); }
.sprint-card-lead[b-n5ppbfm4we] { margin: 0 0 var(--s3); font-size: var(--t-body); }
.sprint-rules[b-n5ppbfm4we] { margin: 0 0 var(--s4); padding-left: 1.2em; color: var(--ink-2); line-height: 1.5; }
.sprint-rules li + li[b-n5ppbfm4we] { margin-top: var(--s1); }
.sprint-card-actions[b-n5ppbfm4we] { display: flex; flex-wrap: wrap; gap: var(--s3); }
.sprint-card-score[b-n5ppbfm4we] { margin: 0 0 var(--s2); font-size: 2rem; letter-spacing: 3px; line-height: 1.1; }
.sprint-sr[b-n5ppbfm4we] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprint-results-list[b-n5ppbfm4we] { display: grid; gap: var(--s1); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.sprint-result[b-n5ppbfm4we] {
    display: grid;
    grid-template-columns: 5rem 1fr auto;
    gap: var(--s3);
    padding: var(--s2) 0;
    border-top: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}
.sprint-result-name[b-n5ppbfm4we] { font-weight: 600; }
.sprint-result.is-solved .sprint-result-state[b-n5ppbfm4we] { font-weight: 600; }
.sprint-result:not(.is-solved) .sprint-result-state[b-n5ppbfm4we] { color: var(--ink-2); }
.sprint-result-hints[b-n5ppbfm4we] { color: var(--ink-2); font-size: var(--t-small); }
/* /Components/Sprint/SprintStartCard.razor.rz.scp.css */
.sprint-card[b-0q9r1riwji] {
    max-width: 34rem;
    margin: var(--s5) auto;
    padding: var(--s5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
}
.sprint-card-eyebrow[b-0q9r1riwji] { margin: 0; color: var(--ink-2); font: 600 var(--t-small)/var(--lh-body) var(--font-ui); }
.sprint-card-title[b-0q9r1riwji] { margin: var(--s1) 0 var(--s2); font: 600 var(--t-display, 28px)/1.15 var(--font-display); }
.sprint-card-lead[b-0q9r1riwji] { margin: 0 0 var(--s3); font-size: var(--t-body); }
.sprint-rules[b-0q9r1riwji] { margin: 0 0 var(--s4); padding-left: 1.2em; color: var(--ink-2); line-height: 1.5; }
.sprint-rules li + li[b-0q9r1riwji] { margin-top: var(--s1); }
.sprint-card-actions[b-0q9r1riwji] { display: flex; flex-wrap: wrap; gap: var(--s3); }
/* /Components/Sprint/SprintStrip.razor.rz.scp.css */
/* The row under the play bar. Its height is PlayLayout's --play-extra-h (44px), which the play stage takes off its height. */
.sprint-strip[b-ci4zp8cxu0] {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--s3);
    box-sizing: border-box;
    height: var(--play-extra-h, 44px);
    padding: 0 var(--s2);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}

.sprint-chips[b-ci4zp8cxu0] {
    display: flex;
    gap: var(--s2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sprint-chip[b-ci4zp8cxu0] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 40px;
    height: 34px;
    padding: 0 var(--s2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font: 600 var(--t-body)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.sprint-chip[aria-current="true"][b-ci4zp8cxu0] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sprint-chip.is-solved[b-ci4zp8cxu0] { background: var(--surface-2); }
.sprint-chip-star[b-ci4zp8cxu0] { color: var(--ink); font-size: 14px; }
.sprint-chip:focus-visible[b-ci4zp8cxu0], .sprint-results:focus-visible[b-ci4zp8cxu0] { outline: 2px solid var(--accent); outline-offset: 2px; }

.sprint-stars[b-ci4zp8cxu0] {
    color: var(--ink-2);
    font: 500 var(--t-small)/1 var(--font-ui);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sprint-results[b-ci4zp8cxu0] {
    margin-left: auto;
    height: 34px;
    padding: 0 var(--s3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font: 600 var(--t-small)/1 var(--font-ui);
    cursor: pointer;
}

@media (max-width: 380px) {
    .sprint-strip[b-ci4zp8cxu0] { gap: var(--s2); }
    .sprint-chip[b-ci4zp8cxu0] { min-width: 36px; padding: 0 var(--s1); }
    .sprint-chips[b-ci4zp8cxu0] { gap: var(--s1); }
}

/* A landscape phone has the bar over the right-hand column (PlayLayout), so the strip goes under it there, in the column's top
   (the play stage keeps a taller top row for it: PlayLayout), instead of taking height off the board. */
@media (orientation: landscape) and (max-height: 520px) {
    .sprint-strip[b-ci4zp8cxu0] {
        position: absolute;
        z-index: 2;
        top: 44px;
        left: var(--ls-col-left);
        width: var(--ls-col-w);
        height: 40px;
        padding: 0;
        gap: var(--s2);
        border-bottom: 0;
        background: transparent;
    }
    .sprint-chip[b-ci4zp8cxu0] { min-width: 30px; height: 32px; padding: 0 var(--s1); }
    .sprint-chips[b-ci4zp8cxu0] { gap: 3px; }
    .sprint-results[b-ci4zp8cxu0] { height: 32px; padding: 0 var(--s2); }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 640px) {
    .sprint-stars[b-ci4zp8cxu0] { display: none; }
}
/* /Components/Today/ContinueRow.razor.rz.scp.css */
/* The mockups' _pages.css .resume. Tokens only. */
.continue-row[b-sjif1ftim4] {
    display: flex;
    align-items: center;
    gap: var(--s4);
    max-width: 640px;
    padding: var(--s3) var(--s3) var(--s3) var(--s4);
    border: 1px solid var(--accent);
    border-radius: var(--r-md);
    box-shadow: inset 0 0 0 1px var(--accent);
    background: var(--surface);
    color: var(--ink);
}

.continue-row-text[b-sjif1ftim4] {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.continue-row-name[b-sjif1ftim4] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--s2);
    font: 600 var(--t-body)/var(--lh-body) var(--font-ui);
    overflow-wrap: anywhere;
}

.continue-row-tag[b-sjif1ftim4] {
    color: var(--ink-2);
    font: 600 var(--t-small)/var(--lh-body) var(--font-ui);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.continue-row-date[b-sjif1ftim4] {
    color: var(--ink-2);
    font-weight: 400;
    white-space: nowrap;
}

.continue-row-meta[b-sjif1ftim4] {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    color: var(--ink-2);
    /* 13px text on the body line height, as the mockups' .status: the mark sits centred in it. */
    font: 400 var(--t-small)/var(--lh-body) var(--font-ui);
    font-variant-numeric: tabular-nums;
}

.continue-row[b-sjif1ftim4]  .continue-row-action { flex: none; }

@media (max-width: 699px) {
    .continue-row[b-sjif1ftim4] { gap: var(--s3); padding-left: var(--s3); }
    /* v5 review: no thumbnail on phones; the row keeps its text and its button. */
    .continue-row[b-sjif1ftim4]  .continue-row-thumb { display: none; }
}
/* /Components/Today/GradeTile.razor.rz.scp.css */
/* The mockups' _pages.css .tile, .tile-top, .meter and the loading skeleton. Tokens only. */
.grade-tile[b-a0ptx092z6] {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    height: 100%;
    min-height: 168px;
    padding: var(--s5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
}

.grade-tile.is-active[b-a0ptx092z6] {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.grade-tile-top[b-a0ptx092z6] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2) var(--s3);
}

.grade-tile-level[b-a0ptx092z6] {
    margin: 0;
    font: 600 var(--t-title)/var(--lh-title) var(--font-display);
}

/* The mini's tile has no pips; its size says what it is. */
.grade-tile-tag[b-a0ptx092z6] {
    font: 600 var(--t-small)/var(--lh-body) var(--font-ui);
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.grade-tile-status[b-a0ptx092z6] {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    margin: 0;
    color: var(--ink-2);
    /* 13px text on the body line height, as the mockups' .status: the mark sits centred in it. */
    font: 400 var(--t-small)/var(--lh-body) var(--font-ui);
}

.grade-tile-num[b-a0ptx092z6] { font-variant-numeric: tabular-nums; }
b.grade-tile-num[b-a0ptx092z6] { font-weight: 600; }

.grade-tile-meter[b-a0ptx092z6] {
    height: 4px;
    margin-top: var(--s2);
    overflow: hidden;
    border-radius: 2px;
    background: var(--surface-2);
}

.grade-tile-meter i[b-a0ptx092z6] {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
}

.grade-tile[b-a0ptx092z6]  .grade-tile-action { margin-top: auto; }

/* ---- skeleton: still blocks, no shimmer (design.md section 3.2) ---- */
.grade-tile.is-skel[b-a0ptx092z6] { gap: var(--s3); }

.grade-skel[b-a0ptx092z6] {
    display: block;
    height: 14px;
    border-radius: 6px;
    background: var(--surface-2);
}

.grade-skel--title[b-a0ptx092z6] { width: 42%; height: 24px; }
.grade-skel--meta[b-a0ptx092z6] { width: 36%; }
.grade-skel--btn[b-a0ptx092z6] { width: 100%; height: 44px; margin-top: auto; border-radius: var(--r-sm); }

/* A row, text on the left and the button on the right, centred against the text: every tile on a phone,
   and a tile with the row on its own at any width (Row; Today's single daily). The rules are the same in
   both blocks; keep them in step. */
.grade-tile.is-row[b-a0ptx092z6] {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px var(--s3);
    min-height: 0;
    padding: var(--s4);
}
.grade-tile.is-row > *[b-a0ptx092z6] { grid-column: 1; }
.grade-tile.is-row .grade-tile-status[b-a0ptx092z6] { margin-top: var(--s1); }
.grade-tile.is-row[b-a0ptx092z6]  .grade-tile-action { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.grade-tile.is-row.is-plain[b-a0ptx092z6]  .grade-tile-action { grid-row: 1; }

/* The skeleton of the single row, at any width: the real row's 78px (the boot screen's .boot-tile). */
.grade-tile.is-skel.is-skel-row[b-a0ptx092z6] {
    display: grid;
    grid-template-columns: 1fr 88px;
    align-items: center;
    gap: var(--s2) var(--s3);
    box-sizing: border-box;
    height: 78px;
    min-height: 0;
    padding: var(--s4);
}
.grade-tile.is-skel.is-skel-row .grade-skel--btn[b-a0ptx092z6] { grid-column: 2; grid-row: 1 / span 2; margin: 0; }

@media (max-width: 699px) {
    .grade-tile[b-a0ptx092z6] {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 2px var(--s3);
        min-height: 0;
        padding: var(--s4);
    }

    .grade-tile > *[b-a0ptx092z6] { grid-column: 1; }
    .grade-tile-status[b-a0ptx092z6] { margin-top: var(--s1); }

    .grade-tile[b-a0ptx092z6]  .grade-tile-action {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        margin: 0;
    }

    /* No status line: one row, the title centred against the button. */
    .grade-tile.is-plain[b-a0ptx092z6]  .grade-tile-action { grid-row: 1; }

    .grade-tile.is-skel[b-a0ptx092z6] { grid-template-columns: 1fr 88px; gap: var(--s2) var(--s3); }
    .grade-skel--btn[b-a0ptx092z6] { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
/* /Components/Today/SprintTile.razor.rz.scp.css */
/* The Mini sprint's row: text on the left, the action on the right, as the single-row grade tile. Tokens only. */
.sprint-tile[b-nneu72rizh] {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--s1) var(--s3);
    padding: var(--s4);
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
}

.sprint-tile-text[b-nneu72rizh] { min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }

.sprint-tile-level[b-nneu72rizh] {
    margin: 0;
    font: 600 var(--t-title)/var(--lh-title) var(--font-display);
}

.sprint-tile-tag[b-nneu72rizh] {
    margin-left: var(--s2);
    font: 600 var(--t-small)/var(--lh-body) var(--font-ui);
    color: var(--ink-2);
}

.sprint-tile-status[b-nneu72rizh] {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--s2);
    margin: 0;
    color: var(--ink-2);
    font: 400 var(--t-small)/var(--lh-body) var(--font-ui);
    font-variant-numeric: tabular-nums;
}

.sprint-tile-stars[b-nneu72rizh] { color: var(--ink); letter-spacing: 1px; }

.sprint-tile-past[b-nneu72rizh] {
    align-self: flex-start;
    /* A 24px-tall target at least (WCAG 2.2 target size), inside the text column. */
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--ink-2);
    font: 400 var(--t-small)/var(--lh-body) var(--font-ui);
}

.sprint-tile[b-nneu72rizh]  .sprint-tile-action { align-self: center; }
/* /Components/Today/TodayContent.razor.rz.scp.css */
/* Today: the mockups' _pages.css .today-head, .tiles, .resume placement, .home-lower and .coach-intro.
   The tiles and the Continue row style themselves (Components/Today). Tokens only. */
.today-date[b-35cbvdvwd8] {
    max-width: 640px;
    margin: 0;
    font: 500 var(--t-display)/var(--lh-display) var(--font-display);
    letter-spacing: -.01em;
}

.today-sr[b-35cbvdvwd8] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.today-tiles[b-35cbvdvwd8] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s4);
    margin: var(--s6) 0 0;
    padding: 0;
    list-style: none;
}

.today-tiles > li[b-35cbvdvwd8] { min-width: 0; }
.today-tiles--1[b-35cbvdvwd8] { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.today-tiles--2[b-35cbvdvwd8] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.today-continue[b-35cbvdvwd8] { margin-top: var(--s5); }
.today-continue + .today-tiles[b-35cbvdvwd8] { margin-top: var(--s4); }

/* The mini killer's row comes first; the dailies' tiles sit close under it. */
.today-tiles--1.today-mini[b-35cbvdvwd8] { max-width: none; }
.today-mini + .today-tiles[b-35cbvdvwd8] { margin-top: var(--s4); }
.today-continue + .today-mini[b-35cbvdvwd8] { margin-top: var(--s4); }
.today-mini + .today-sprint[b-35cbvdvwd8] { margin-top: var(--s4); }

.today-none[b-35cbvdvwd8] {
    max-width: 640px;
    margin: var(--s5) 0 0;
    color: var(--ink-2);
}

.today-none a[b-35cbvdvwd8] { font-weight: 600; }

/* The coach pitch is not a button: no border, no fill, one accent rule on the left. */
.today-coach[b-35cbvdvwd8] {
    display: grid;
    gap: var(--s2);
    max-width: 640px;
    margin-top: var(--s7);
    padding: 2px 0 2px var(--s5);
    border-left: 3px solid var(--accent);
}

.today-coach p[b-35cbvdvwd8] { margin: 0; color: var(--ink-2); }

.today-coach-title[b-35cbvdvwd8] {
    display: flex;
    align-items: center;
    gap: var(--s2);
    margin: 0;
    font: 600 var(--t-title)/var(--lh-title) var(--font-display);
}

.today-coach-title[b-35cbvdvwd8]  .today-coach-icon { color: var(--accent-text); }

.today-coach-quote[b-35cbvdvwd8] {
    margin: var(--s1) 0 0;
    padding: 0;
    color: var(--ink);
    font: italic 500 var(--t-body)/var(--lh-body) var(--font-display);
}

@media (max-width: 699px) {
    .today-tiles[b-35cbvdvwd8],
    .today-tiles--2[b-35cbvdvwd8] {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--s3);
        margin-top: var(--s5);
    }

    .today-continue[b-35cbvdvwd8] { margin-top: var(--s4); }
    .today-continue + .today-tiles[b-35cbvdvwd8] { margin-top: var(--s3); }
    .today-mini + .today-tiles[b-35cbvdvwd8] { margin-top: var(--s3); }
    .today-mini + .today-sprint[b-35cbvdvwd8] { margin-top: var(--s3); }

    .today-coach[b-35cbvdvwd8] {
        margin-top: var(--s6);
        padding-left: var(--s4);
    }
}
/* /Components/Ui/BoardThumbnail.razor.rz.scp.css */
/* The mockups' _shared.css .thumb and the b-* mini classes: a 56px board in a 1px rounded box-coloured
   frame. Stroke widths are the mockups', in viewBox units (one cell is 100). Tokens only. */
.ui-thumb[b-qsuymuu8i5] {
    display: block;
    flex: none;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid var(--box-border);
    border-radius: var(--r-sm);
    background: var(--board-surface);
}

.ui-thumb svg[b-qsuymuu8i5] { display: block; width: 100%; height: 100%; }

.ui-thumb-bg[b-qsuymuu8i5] { fill: var(--board-surface); }
.ui-thumb-filled[b-qsuymuu8i5] { fill: var(--thumb-filled); }
.ui-thumb-thin[b-qsuymuu8i5] { fill: none; stroke: var(--grid-line); stroke-width: 2; }
.ui-thumb-cage[b-qsuymuu8i5] { fill: none; stroke: var(--cage-edge); stroke-width: 9; stroke-linecap: square; }
.ui-thumb-box[b-qsuymuu8i5] { fill: none; stroke: var(--box-border); stroke-width: 14; }
/* /Components/Ui/Button.razor.rz.scp.css */
/* Buttons: design.md section 6 and the mockups' _shared.css .btn. Tokens only. */
.ui-btn[b-hlflbb9j4r] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font: 600 var(--t-body)/1 var(--font-ui);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.ui-btn:hover[b-hlflbb9j4r] { text-decoration: none; }

.ui-btn:focus-visible[b-hlflbb9j4r],
.ui-btn.is-focus[b-hlflbb9j4r] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* ---- variants ---- */
.ui-btn--primary[b-hlflbb9j4r] { background: var(--accent); color: var(--on-accent); }
.ui-btn--primary:hover[b-hlflbb9j4r] { background: var(--accent-hover); }

.ui-btn--secondary[b-hlflbb9j4r] { background: var(--surface); color: var(--ink); border-color: var(--btn-line); }
.ui-btn--secondary:hover[b-hlflbb9j4r] { background: var(--surface-2); }

.ui-btn--ghost[b-hlflbb9j4r] { background: transparent; color: var(--accent-text); padding: 0 12px; }
.ui-btn--ghost:hover[b-hlflbb9j4r] { background: var(--surface-2); }

.ui-btn--danger[b-hlflbb9j4r] { background: transparent; color: var(--danger); padding: 0 12px; }
.ui-btn--danger:hover[b-hlflbb9j4r] { background: var(--danger-soft); }

/* The mockups' .btn-danger-solid: the label is the surface colour on the danger fill (the --danger/--surface pair is gated). */
.ui-btn--dangersolid[b-hlflbb9j4r] { background: var(--danger); color: var(--surface); }
.ui-btn--dangersolid:hover[b-hlflbb9j4r] { background: color-mix(in srgb, var(--danger) 88%, var(--ink)); }

/* ---- options ---- */
.ui-btn--sm[b-hlflbb9j4r] { padding: 0 12px; font-size: var(--t-small); }
.ui-btn--block[b-hlflbb9j4r] { display: flex; width: 100%; }

.ui-btn-label[b-hlflbb9j4r] { min-width: 0; }

.ui-btn-kbd[b-hlflbb9j4r] {
    display: inline-block;
    min-width: 24px;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink-2);
    font: 500 var(--t-small)/18px var(--font-ui);
    text-align: center;
}

/* A key hint means nothing without a keyboard: shown only where a fine pointer exists. */
@media not (any-pointer: fine) {
    .ui-btn-kbd[b-hlflbb9j4r] { display: none; }
}

/* ---- disabled (still focusable) and loading ---- */
.ui-btn.is-disabled[b-hlflbb9j4r],
.ui-btn.is-disabled:hover[b-hlflbb9j4r] {
    background: var(--surface-2);
    color: var(--ink-3);
    border-color: var(--line);
    cursor: default;
}

.ui-btn--ghost.is-disabled[b-hlflbb9j4r],
.ui-btn--ghost.is-disabled:hover[b-hlflbb9j4r],
.ui-btn--danger.is-disabled[b-hlflbb9j4r],
.ui-btn--danger.is-disabled:hover[b-hlflbb9j4r] {
    background: transparent;
    border-color: transparent;
}

.ui-btn.is-loading[b-hlflbb9j4r] { cursor: progress; }

.ui-btn-spinner[b-hlflbb9j4r] {
    width: 16px;
    height: 16px;
    flex: none;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ui-btn-spin-b-hlflbb9j4r 800ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .ui-btn-spinner[b-hlflbb9j4r] { animation: none; }
}

@keyframes ui-btn-spin-b-hlflbb9j4r {
    to { transform: rotate(360deg); }
}

/* ---- the reason line under a disabled button ---- */
.ui-btn-group[b-hlflbb9j4r] { display: contents; }

.ui-btn-group.has-reason[b-hlflbb9j4r] {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s1);
    max-width: 100%;
}

.ui-btn-group--block.has-reason[b-hlflbb9j4r] { display: flex; align-items: stretch; }

.ui-btn-why[b-hlflbb9j4r] {
    color: var(--ink-3);
    font: 400 var(--t-small)/var(--lh-small) var(--font-ui);
}
/* /Components/Ui/Card.razor.rz.scp.css */
.ui-card[b-qijm8r72hj] {
    display: block;
    min-width: 0;
    padding: var(--s5);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
}

.ui-card--flush[b-qijm8r72hj] { padding: 0; }

.ui-card--outlined[b-qijm8r72hj],
.ui-card--interactive[b-qijm8r72hj] { border-color: var(--line); }

/* Interactive: a whole-card link or button. Resets what <a> and <button> bring along. */
.ui-card--interactive[b-qijm8r72hj] {
    width: 100%;
    margin: 0;
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}

.ui-card--interactive:hover[b-qijm8r72hj] {
    border-color: var(--line-strong);
    text-decoration: none;
}

.ui-card--interactive:focus-visible[b-qijm8r72hj],
.ui-card--interactive.is-focus[b-qijm8r72hj] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

@media (max-width: 699px) {
    .ui-card[b-qijm8r72hj] { padding: var(--s4); }
    .ui-card--flush[b-qijm8r72hj] { padding: 0; }
}
/* /Components/Ui/Chip.razor.rz.scp.css */
/* The mockups' _shared.css .chip. Tokens only. */
.ui-chip[b-e3o25t5bh7] {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink-2);
    font: 500 var(--t-small)/1 var(--font-ui);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

/* The 44px hit area: 4px above and below the 36px chip. */
.ui-chip[b-e3o25t5bh7]::before {
    content: '';
    position: absolute;
    inset: -4px 0;
}

.ui-chip:hover[b-e3o25t5bh7] { background: var(--surface-2); }

.ui-chip[aria-pressed="true"][b-e3o25t5bh7],
.ui-chip[aria-pressed="true"]:hover[b-e3o25t5bh7] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 600;
}

.ui-chip:focus-visible[b-e3o25t5bh7],
.ui-chip.is-focus[b-e3o25t5bh7] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}
/* /Components/Ui/Icon.razor.rz.scp.css */
.ui-icon[b-f3iyjdi4em] {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.ui-icon--sm[b-f3iyjdi4em] { width: 20px; height: 20px; }
.ui-icon--xs[b-f3iyjdi4em] { width: 16px; height: 16px; stroke-width: 2; }
/* /Components/Ui/IconButton.razor.rz.scp.css */
.ui-iconbtn[b-4jxygq8vp4] {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.ui-iconbtn:hover[b-4jxygq8vp4] { background: var(--surface-2); color: var(--ink); }

.ui-iconbtn:focus-visible[b-4jxygq8vp4],
.ui-iconbtn.is-focus[b-4jxygq8vp4] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.ui-iconbtn[aria-pressed="true"][b-4jxygq8vp4],
.ui-iconbtn[aria-pressed="true"]:hover[b-4jxygq8vp4] {
    background: var(--accent-soft);
    color: var(--accent-text);
}
/* /Components/Ui/Menu.razor.rz.scp.css */
/* A menu: the mockups' _shared.css .menu-list / .menu-item, as the puzzle menu draws them. Tokens only.
   ::deep reaches Sheet's panel, which this component wraps. */
.ui-menu[b-23nb3dk6cf] { display: contents; }

@media (min-width: 700px) {
    .ui-menu[b-23nb3dk6cf]  .ui-menu-sheet { width: 260px; }
}

.ui-menu-list[b-23nb3dk6cf] { list-style: none; margin: 0; padding: 0; }

.ui-menu-item[b-23nb3dk6cf] {
    display: flex;
    align-items: center;
    gap: var(--s3);
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: var(--s1) var(--s3);
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
    text-align: left;
    cursor: pointer;
}
.ui-menu-item:hover[b-23nb3dk6cf] { background: var(--surface-2); }
.ui-menu-item:focus-visible[b-23nb3dk6cf] { outline: 2px solid var(--focus); outline-offset: -2px; }
.ui-menu-item[b-23nb3dk6cf]  .ui-icon { flex: none; color: var(--ink-2); }

.ui-menu-grow[b-23nb3dk6cf] { flex: 1; min-width: 0; }
.ui-menu-label[b-23nb3dk6cf] { display: block; }
.ui-menu-why[b-23nb3dk6cf] {
    display: block;
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-small);
}

.ui-menu-item[aria-disabled="true"][b-23nb3dk6cf] { color: var(--ink-3); cursor: default; }
.ui-menu-item[aria-disabled="true"]:hover[b-23nb3dk6cf] { background: transparent; }
.ui-menu-item[aria-disabled="true"][b-23nb3dk6cf]  .ui-icon { color: var(--ink-3); }

.ui-menu-item--danger[b-23nb3dk6cf],
.ui-menu-item--danger[b-23nb3dk6cf]  .ui-icon { color: var(--danger); }
.ui-menu-item--danger[aria-disabled="true"][b-23nb3dk6cf],
.ui-menu-item--danger[aria-disabled="true"][b-23nb3dk6cf]  .ui-icon { color: var(--ink-3); }

.ui-menu-sep[b-23nb3dk6cf] { height: 1px; margin: var(--s2) 0; background: var(--line); }

/* Phone: 52px rows, as the puzzle menu's sheet. */
@media (max-width: 699px) {
    .ui-menu-item[b-23nb3dk6cf] { min-height: 52px; }
}
/* /Components/Ui/PipBar.razor.rz.scp.css */
/* The mockups' _shared.css .pips: 4x12 bars, 3px apart, the filled ones in ink-2. Tokens only. */
.ui-pips[b-myrnx3dm1q] {
    display: inline-flex;
    flex: none;
    align-items: flex-end;
    gap: 3px;
    vertical-align: 1px;
}

.ui-pips i[b-myrnx3dm1q] {
    width: 4px;
    height: 12px;
    border-radius: 1px;
    background: var(--line);
}

.ui-pips i.is-on[b-myrnx3dm1q] { background: var(--ink-2); }
/* /Components/Ui/Segmented.razor.rz.scp.css */
/* The segmented control: design.md section 6 and the mockups' _shared.css .seg. Tokens only.
   accent on the surface-2 track is 5.3:1 (light) / 7.0:1 (dark); accent-text on accent-soft 6.2 / 7.2. */
.ui-seg[b-5lcsy2t4jk] {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    background: var(--surface-2);
}

.ui-seg--block[b-5lcsy2t4jk] { display: flex; width: 100%; box-sizing: border-box; }
.ui-seg--block .ui-seg-btn[b-5lcsy2t4jk] { flex: 1; min-width: 0; }

.ui-seg-btn[b-5lcsy2t4jk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-2);
    font: 500 var(--t-small)/1 var(--font-ui);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.ui-seg-btn:hover[b-5lcsy2t4jk] { color: var(--ink); }

.ui-seg-btn[aria-checked="true"][b-5lcsy2t4jk],
.ui-seg-btn[aria-checked="true"]:hover[b-5lcsy2t4jk] {
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 600;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.ui-seg-btn:focus-visible[b-5lcsy2t4jk],
.ui-seg-btn.is-focus[b-5lcsy2t4jk] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* Refused, and visibly so (disabled controls are exempt from 1.4.3); still focusable. */
.ui-seg.is-disabled[b-5lcsy2t4jk] { opacity: .5; }
.ui-seg.is-disabled .ui-seg-btn[b-5lcsy2t4jk] { color: var(--ink-3); cursor: default; }
.ui-seg.is-disabled .ui-seg-btn[aria-checked="true"][b-5lcsy2t4jk] { background: var(--bg); color: var(--ink-3); box-shadow: inset 0 0 0 2px var(--line-strong); }
/* /Components/Ui/Sheet.razor.rz.scp.css */
/* Sheets: design.md sections 5 (Bottom surfaces on phone, Motion) and 6, the mockups' _shared.css .scrim and
   .sheet. Tokens only. The layer centres the dialog (tablet, desktop) or pins the sheet to the bottom (phone). */
.ui-sheet-layer[b-7f5bxuo7vg] {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: var(--s6);
}

.ui-sheet-scrim[b-7f5bxuo7vg] {
    position: absolute;
    inset: 0;
    background: var(--scrim);
}

.ui-sheet[b-7f5bxuo7vg] {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    max-height: 100%;
    overflow: hidden;   /* the body scrolls (below), the head stays */
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-pop);
    font-family: var(--font-ui);
}
.ui-sheet--large[b-7f5bxuo7vg] { width: min(600px, 100%); }
.ui-sheet--wide[b-7f5bxuo7vg] { width: min(860px, 100%); }
.ui-sheet:focus[b-7f5bxuo7vg] { outline: none; }

/* Confirm (alertdialog): 420px, no ×; the message and a right-aligned button row (design.md section 3.7). */
.ui-sheet--confirm[b-7f5bxuo7vg] { width: min(420px, 100%); }
.ui-sheet--confirm .ui-sheet-head[b-7f5bxuo7vg] { padding-right: var(--s5); }
.ui-sheet--confirm .ui-sheet-body[b-7f5bxuo7vg] { display: grid; gap: var(--s4); padding-top: var(--s2); }
.ui-sheet--confirm .ui-sheet-body[b-7f5bxuo7vg]  p { margin: 0; color: var(--ink-2); }
.ui-sheet--confirm .ui-sheet-body[b-7f5bxuo7vg]  .ui-sheet-actions { display: flex; gap: var(--s2); justify-content: flex-end; }

/* Popover (the puzzle menu on tablet and desktop): 340px, pinned under the bar's right end where the •••
   button is, no title, no ×, no visible scrim (the scrim stays as a transparent outside-click catcher).
   --ui-popover-top lets a page whose bar isn't --appbar-h tall move it. */
@media (min-width: 700px) {
    .ui-sheet-layer--popover[b-7f5bxuo7vg] {
        place-items: start end;
        padding: var(--ui-popover-top, calc(var(--appbar-h) - 4px)) var(--s2) var(--s2);
    }
    .ui-sheet-layer--popover .ui-sheet-scrim[b-7f5bxuo7vg] { background: transparent; }
    .ui-sheet--popover[b-7f5bxuo7vg] {
        width: 340px;
        max-width: 100%;
        padding: var(--s2);
        border: 1px solid var(--line);
        border-radius: 14px;
    }
    .ui-sheet--popover .ui-sheet-head[b-7f5bxuo7vg] { display: none; }
    .ui-sheet--popover .ui-sheet-body[b-7f5bxuo7vg] { padding: 0; }

    /* Anchored (Sheet's AnchorId): ui-sheet.js measures the anchor and sets --ui-anchor-top/left on the layer,
       already clamped so the whole popover stays inside the window, and --ui-anchor-max-h when it has to scroll
       inside to stay off its anchor. */
    .ui-sheet-layer--anchored[b-7f5bxuo7vg] {
        display: block;
        padding: 0;
    }
    .ui-sheet-layer--anchored .ui-sheet--popover[b-7f5bxuo7vg] {
        position: absolute;
        top: var(--ui-anchor-top, var(--s2));
        left: var(--ui-anchor-left, var(--s2));
        max-height: var(--ui-anchor-max-h, calc(100% - 2 * var(--s2)));
        transform-origin: top right;
    }
}

.ui-sheet-head[b-7f5bxuo7vg] {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s4) var(--s3) 0 var(--s5);
}

.ui-sheet-title[b-7f5bxuo7vg] {
    flex: 1;
    min-width: 0;
    margin: 0;
    font: 600 var(--t-title)/var(--lh-title) var(--font-display);
    color: var(--ink);
}

/* The scroller: what doesn't fit scrolls here, under the head. A dialog's bottom 24px fade: its bottom padding
   (24px at every width), so nothing is faded once it is scrolled to the end, and a line under the edge reads as
   more to come. */
.ui-sheet-body[b-7f5bxuo7vg] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--s3) var(--s5) var(--s5);
}
.ui-sheet-body:focus-visible[b-7f5bxuo7vg] { outline: 2px solid var(--focus); outline-offset: -2px; }
.ui-sheet-body[data-fade~="bottom"][b-7f5bxuo7vg] {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--s5)), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - var(--s5)), transparent);
}

/* Specimens: drawn in the parent's box (which sets position and height) rather than over the page. */
.ui-sheet-layer--embedded[b-7f5bxuo7vg] { position: absolute; z-index: auto; }

@media (max-width: 699px) {
    .ui-sheet-layer[b-7f5bxuo7vg] {
        place-items: end stretch;
        padding: 0;
    }

    /* As tall as its content, up to 90% of the screen, then it scrolls inside. Large is always 90%. */
    .ui-sheet[b-7f5bxuo7vg] {
        width: 100%;
        max-height: 90%;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        padding-bottom: var(--safe-bottom);
    }
    .ui-sheet--large[b-7f5bxuo7vg] { height: 90%; }

    .ui-sheet-head[b-7f5bxuo7vg] { padding: var(--s3) var(--s2) 0 var(--s4); }
    .ui-sheet-body[b-7f5bxuo7vg] { padding: var(--s3) var(--s4) var(--s5); }

    /* The menu sheet: rows run nearly edge to edge (the mockup's 8px inset), up to 85% of the screen. */
    .ui-sheet--popover[b-7f5bxuo7vg] { max-height: 85%; }
    .ui-sheet--popover .ui-sheet-body[b-7f5bxuo7vg] { padding: var(--s1) var(--s2) var(--s4); }

    /* Every confirm on phone stacks its two buttons full width: the action on top, Cancel under it. */
    .ui-sheet--confirm .ui-sheet-head[b-7f5bxuo7vg] { padding: var(--s4) var(--s4) 0; }
    .ui-sheet--confirm .ui-sheet-body[b-7f5bxuo7vg]  .ui-sheet-actions { flex-direction: column-reverse; align-items: stretch; }
}

/* Sheet up (phone) or dialog scale-in, 220ms; with reduced motion, a 120ms fade only. The scrim fades. */
@media (prefers-reduced-motion: no-preference) {
    .ui-sheet-layer:not(.ui-sheet-layer--embedded) .ui-sheet-scrim[b-7f5bxuo7vg] { animation: ui-sheet-fade-b-7f5bxuo7vg var(--dur-2) var(--ease); }
    .ui-sheet-layer:not(.ui-sheet-layer--embedded) .ui-sheet[b-7f5bxuo7vg] { animation: ui-sheet-scale-b-7f5bxuo7vg var(--dur-2) var(--ease); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 699px) {
    .ui-sheet-layer:not(.ui-sheet-layer--embedded) .ui-sheet[b-7f5bxuo7vg] { animation-name: ui-sheet-up-b-7f5bxuo7vg; }
}
@media (prefers-reduced-motion: reduce) {
    .ui-sheet-layer:not(.ui-sheet-layer--embedded) .ui-sheet-scrim[b-7f5bxuo7vg],
    .ui-sheet-layer:not(.ui-sheet-layer--embedded) .ui-sheet[b-7f5bxuo7vg] { animation: ui-sheet-fade-b-7f5bxuo7vg var(--dur-1) linear; }
}

@keyframes ui-sheet-fade-b-7f5bxuo7vg { from { opacity: 0; } }
@keyframes ui-sheet-scale-b-7f5bxuo7vg { from { opacity: 0; transform: scale(.96); } }
@keyframes ui-sheet-up-b-7f5bxuo7vg { from { transform: translateY(100%); } }
/* /Components/Ui/StatusBanner.razor.rz.scp.css */
/* The mockups' _shared.css .banner. Tokens only. */
.ui-banner[b-bjg2gatxb6] {
    border-bottom: 1px solid var(--warn-line);
    background: var(--warn-bg);
    color: var(--warn-ink);
}

.ui-banner-row[b-bjg2gatxb6] {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    width: 100%;
    max-width: calc(var(--content-max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: var(--s3) var(--gutter);
}

.ui-banner-text[b-bjg2gatxb6] {
    flex: 1;
    min-width: 0;
    margin: 0;
    font: 400 var(--t-small)/var(--lh-small) var(--font-ui);
}

.ui-banner-title[b-bjg2gatxb6] {
    display: block;
    font-size: var(--t-body);
    line-height: var(--lh-body);
    font-weight: 600;
}

.ui-banner-text[b-bjg2gatxb6]  a,
.ui-banner-text[b-bjg2gatxb6]  .ui-banner-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--warn-ink);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
}

.ui-banner-text[b-bjg2gatxb6]  a:focus-visible,
.ui-banner-text[b-bjg2gatxb6]  .ui-banner-link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.ui-banner-row[b-bjg2gatxb6]  .ui-banner-icon { margin-top: 0; }

/* The 44px target overhangs the row's padding, so the banner stays as tall as its text. */
.ui-banner-row[b-bjg2gatxb6]  .ui-banner-close {
    margin: -10px -10px -10px auto;
    color: var(--warn-ink);
}
.ui-banner-row[b-bjg2gatxb6]  .ui-banner-close:hover {
    background: color-mix(in srgb, var(--warn-ink) 10%, transparent);
    color: var(--warn-ink);
}
/* /Components/Ui/StatusMark.razor.rz.scp.css */
/* The mockups' _shared.css .mk. Tokens only. */
.ui-mark[b-j5nmupt5rg] {
    position: relative;
    display: inline-block;
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: -2px;
}

.ui-mark--todo[b-j5nmupt5rg] { border: 1.5px solid var(--ink-3); }
.ui-mark--progress[b-j5nmupt5rg] { border: 1.5px solid var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.ui-mark--done[b-j5nmupt5rg] { background: var(--accent); }

.ui-mark--done[b-j5nmupt5rg]::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 2.5px;
    width: 3.5px;
    height: 6.5px;
    border: solid var(--on-accent);
    border-width: 0 1.75px 1.75px 0;
    transform: rotate(45deg);
}

.ui-mark--sm[b-j5nmupt5rg] { width: 12px; height: 12px; }
.ui-mark--sm.ui-mark--done[b-j5nmupt5rg]::after { display: none; }
/* /Components/Ui/TabBar.razor.rz.scp.css */
.ui-tabbar[b-xqasyvxv95] {
    display: flex;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.ui-tabbar-link[b-xqasyvxv95] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    color: var(--ink-3);
    font: 500 var(--t-small)/var(--lh-small) var(--font-ui);
    text-decoration: none;
}

.ui-tabbar-link:hover[b-xqasyvxv95] { color: var(--ink); text-decoration: none; }

.ui-tabbar-link[aria-current="page"][b-xqasyvxv95] { color: var(--accent-text); }
.ui-tabbar-link[aria-current="page"][b-xqasyvxv95]  .ui-icon { stroke-width: 2.1; }

.ui-tabbar-link:focus-visible[b-xqasyvxv95],
.ui-tabbar-link.is-focus[b-xqasyvxv95] {
    outline: 2px solid var(--focus);
    outline-offset: -4px;
    border-radius: var(--r-md);
}
/* /Components/Ui/TopNav.razor.rz.scp.css */
.ui-topnav[b-v3me9vliqf] {
    display: flex;
    gap: var(--s2);
    height: var(--appbar-h);
}

.ui-topnav-link[b-v3me9vliqf] {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    color: var(--ink-2);
    font: 500 var(--t-body)/var(--lh-body) var(--font-ui);
    text-decoration: none;
    white-space: nowrap;
}

.ui-topnav-link:hover[b-v3me9vliqf] { color: var(--ink); text-decoration: none; }

.ui-topnav-link[aria-current="page"][b-v3me9vliqf] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

/* Inset: the link fills the bar, so an outside ring would be cut by the bar's edges. */
.ui-topnav-link:focus-visible[b-v3me9vliqf],
.ui-topnav-link.is-focus[b-v3me9vliqf] {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
    border-radius: var(--r-sm);
}
/* /Components/Ui/Wordmark.razor.rz.scp.css */
.ui-wordmark[b-1wxf93eob4] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--r-sm);
}

.ui-wordmark:hover[b-1wxf93eob4] { text-decoration: none; }

.ui-wordmark:focus-visible[b-1wxf93eob4],
.ui-wordmark.is-focus[b-1wxf93eob4] {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* 32px tall (the lockup's 64-unit drawing at half scale), so the cage bars sit on whole pixels. */
.ui-wordmark-logo[b-1wxf93eob4] { display: block; width: 237px; height: 32px; flex: none; }
.ui-wordmark-logo--compact[b-1wxf93eob4] { width: 143px; }

/* Responsive: the compact lockup in a crowded bar at 340px and narrower (BRAND.md). The svg slices its
   viewBox from the left, so 143px wide shows the mark and "Killer Sudoku" only. */
@media (max-width: 340px) {
    .ui-wordmark--responsive .ui-wordmark-logo[b-1wxf93eob4] { width: 143px; }
}
/* /Layout/BrowseLayout.razor.rz.scp.css */
/* The browse shell, from the v5 mockups' _shared.css (.appbar, .wrap, .page, .tabbar). */
.browse-shell[b-5zmkzj04f1] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-ui);
}

.browse-wrap[b-5zmkzj04f1] {
    width: 100%;
    max-width: calc(var(--content-max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
    box-sizing: border-box;
}

.browse-skip[b-5zmkzj04f1] {
    position: absolute;
    left: var(--s2);
    top: var(--s2);
    z-index: 30;
    padding: var(--s2) var(--s3);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--accent-text);
    transform: translateY(-200%);
}
.browse-skip:focus[b-5zmkzj04f1] { transform: none; }

.browse-appbar[b-5zmkzj04f1] {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.browse-appbar-row[b-5zmkzj04f1] {
    display: flex;
    align-items: center;
    gap: var(--s5);
    height: var(--appbar-h);
}
.browse-topnav[b-5zmkzj04f1] { height: 100%; }
/* The bar's right end. ::deep: the class is on IconButton's own element. */
.browse-appbar-row[b-5zmkzj04f1]  .browse-settings { margin-left: auto; }

.browse-main[b-5zmkzj04f1] { flex: 1 0 auto; }
.browse-page[b-5zmkzj04f1] {
    padding-top: var(--s7);
    padding-bottom: var(--s8);
}

.browse-tabbar[b-5zmkzj04f1] { display: none; }

/* "How to fix this" opens one line under the banner's message. */
.browse-storage-fix[b-5zmkzj04f1] { display: block; margin-top: var(--s1); }
.browse-storage-fix[hidden][b-5zmkzj04f1] { display: none; }

@media (max-width: 699px) {
    .browse-topnav[b-5zmkzj04f1] { display: none; }
    .browse-page[b-5zmkzj04f1] {
        padding-top: var(--s5);
        padding-bottom: var(--s7);
    }
    .browse-tabbar[b-5zmkzj04f1] {
        display: block;
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin-top: auto;
    }
}
.browse-legal[b-5zmkzj04f1] {
    padding: .75rem 1rem 1rem;
    text-align: center;
    font-size: .875rem;
}
.browse-legal a[b-5zmkzj04f1] { color: inherit; }
/* /Layout/PlayLayout.razor.rz.scp.css */
/* position: relative, so absolutely positioned descendants (the screen-reader-only live regions) are
   held inside the locked shell instead of extending the document. An inline-size container, so the play
   stage sizes from the page's own width (a classic scrollbar never counts; design.md section 5). */
.play-shell[b-ip0m56lq2o] {
    --play-bar-h: 56px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    font-family: var(--font-ui);
    container-type: inline-size;
}

/* The Mini sprint's strip (under the bar) takes 44px off the stage's height, as the bar's own does. */
.play-shell:has(.sprint-strip)[b-ip0m56lq2o] { --play-extra-h: 44px; }

.play-shell-main[b-ip0m56lq2o] {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
}

@media (max-width: 699px) {
    .play-shell-main[b-ip0m56lq2o] { padding: 0.25rem; }
}
@media (max-width: 699px) and (max-height: 639px) {
    .play-shell[b-ip0m56lq2o] { --play-bar-h: 48px; }
}
@media (orientation: landscape) and (max-height: 520px) {
    .play-shell[b-ip0m56lq2o] {
        --play-bar-h: 44px;
        /* PlayStage's landscape board, repeated because the bar is outside the stage: the window's height
           less 16px, but never so wide that the right-hand column drops under 216px (a 568x320 phone's),
           whole-pixel cells, and the column right of it. */
        --ls-bd-raw: min(100dvh - 16px, 100cqw - 216px - 48px - var(--safe-left) - var(--safe-right));
        --ls-bd: calc(round(down, var(--ls-bd-raw) - 2px, 9px) + 2px);
        --ls-col-left: calc(var(--safe-left) + 16px + var(--ls-bd) + 16px);
        --ls-col-w: min(400px, 100cqw - var(--ls-bd) - 48px - var(--safe-left) - var(--safe-right));
    }
    /* A landscape phone (design.md section 3.6c): over the board's play stage the bar moves into the column
       right of the board, where the strip and the pad are (PlayStage's --col-left and --col-w, repeated here
       because the bar is outside the stage). */
    /* The Mini sprint's strip sits under the bar in that column, so the stage's top row there is taller (its keys are sized from it). */
    .play-shell:has(.sprint-strip)[b-ip0m56lq2o] { --play-extra-h: 0px; }
    .play-shell:has(.sprint-strip)[b-ip0m56lq2o]  .stage { --bar-h: 88px; }
    .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar {
        position: absolute;
        z-index: 2;
        top: 8px;
        left: var(--ls-col-left);
        width: var(--ls-col-w);
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
    }
    .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar-timer { position: static; transform: none; margin-left: auto; }
    .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar-end { margin-left: var(--s2); }
    /* The timer sits beside •••, not centred: the title takes all the room left of it (PlayBar's equal shares off). */
    .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar .playbar-start { flex: 1 1 auto; }
    .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar .playbar-end { flex: none; }
    /* The bar's own width decides what it drops (an inline-size container: the column is 216-400px). */
    .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar { container-type: inline-size; }
    /* The timer isn't centred here, so the warning button takes its own room instead of hanging past it. */
    .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar-warn { margin-right: 0; }
}
/* Without CSS round(), the board's raw size (as PlayStage does). */
@supports not (width: round(down, 1px, 1px)) {
    @media (orientation: landscape) and (max-height: 520px) {
        .play-shell[b-ip0m56lq2o] { --ls-bd: var(--ls-bd-raw); }
    }
}
/* A narrow bar: no date beside the grade below 380px (where it would meet the time), and below 300px a
   smaller grade that shortens with an ellipsis and no clock glyph, so the title, the time, the warning
   button and ••• fit side by side. */
@media (orientation: landscape) and (max-height: 520px) {
    @container (max-width: 379px) {
        .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar-date { display: none; }
    }
    @container (max-width: 299px) {
        .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar-title { overflow: hidden; }
        .play-shell:has(.play-stage)[b-ip0m56lq2o]  .playbar-title b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
        .play-shell:has(.play-stage)[b-ip0m56lq2o]  .play-clock .ui-icon { display: none; }
    }
}

/* /Layout/ToolLayout.razor.rz.scp.css */
/* The tool shell: a fixed viewport like the play shell (design.md sections 2 and 3.15). The bar's height
   is --tool-bar-h, which a page reads to size its stage: 56px, 48 on short phones, 44 on landscape phones.
   position: relative holds absolutely positioned descendants (the visually hidden live regions) inside it. */
.tool-shell[b-9aleeup3q8] {
    --tool-bar-h: 56px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    container-type: inline-size;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
}

.tool-bar[b-9aleeup3q8] {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--s2);
    height: var(--tool-bar-h);
    padding: 0 var(--s2);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-sizing: border-box;
}

.tool-main[b-9aleeup3q8] {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.tool-error[b-9aleeup3q8] { padding: var(--s4); overflow-y: auto; }

@media (max-width: 699px) {
    .tool-bar[b-9aleeup3q8] { gap: 2px; padding: 0 var(--s1); }
}
@media (max-width: 699px) and (max-height: 639px) {
    .tool-shell[b-9aleeup3q8] { --tool-bar-h: 48px; }
}
@media (min-width: 700px) {
    .tool-bar[b-9aleeup3q8] { padding: 0 var(--s3); }
}
@media (min-width: 1050px) {
    .tool-bar[b-9aleeup3q8] { padding: 0 var(--s4); }
}
@media (orientation: landscape) and (max-height: 520px) {
    .tool-shell[b-9aleeup3q8] { --tool-bar-h: 44px; }
}
/* /Pages/Archive.razor.rz.scp.css */
/* The archive page: the mockups' _pages.css .page-head h1 (.display) and .archive-grid. The filters, the
   calendar and the day panel style themselves (Components/Archive). Tokens only. */
.archive-title[b-kywsydkeko] {
    margin: 0 0 var(--s5);
    font: 500 var(--t-display)/var(--lh-display) var(--font-display);
    letter-spacing: -.01em;
}

/* Desktop: the calendar left; the right column holds the Next unplayed row (when there is one) above the
   day panel. The 1fr row takes the calendar's extra height, so the panel sits right under the row. */
.archive-grid[b-kywsydkeko] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "cal day";
    align-items: start;
    gap: var(--s5);
}
.archive-grid.has-next[b-kywsydkeko] {
    grid-template-areas: "cal next" "cal day";
    grid-template-rows: auto 1fr;
}

.archive-next[b-kywsydkeko] { grid-area: next; }
.archive-cal[b-kywsydkeko] { grid-area: cal; }
.archive-day[b-kywsydkeko] { grid-area: day; }

.archive-next[b-kywsydkeko],
.archive-cal[b-kywsydkeko],
.archive-day[b-kywsydkeko] { min-width: 0; }

/* The row fills its cell (the 360px column, or the full width below desktop), like the cards around it,
   instead of ContinueRow's own 640px cap. */
.archive-next[b-kywsydkeko]  .continue-row { max-width: none; }

/* Tablet: one column, the Next unplayed row, then the day panel (updating in place), then the calendar. */
@media (max-width: 1049px) {
    .archive-grid[b-kywsydkeko] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "day" "cal";
    }
    .archive-grid.has-next[b-kywsydkeko] {
        grid-template-areas: "next" "day" "cal";
        grid-template-rows: none;
    }
}

/* Phone: the Next unplayed row, the calendar, then the panel; scrolled into view after a tap, clear of
   the tab bar. */
@media (max-width: 699px) {
    .archive-grid[b-kywsydkeko] {
        grid-template-areas: "cal" "day";
        gap: var(--s3);
    }
    .archive-grid.has-next[b-kywsydkeko] { grid-template-areas: "next" "cal" "day"; }
    .archive-day[b-kywsydkeko] { scroll-margin-bottom: calc(var(--tabbar-h) + var(--s3)); }
}
/* /Pages/Builder.razor.rz.scp.css */
/* The Builder's bar (mockup builder.html .b-head, _play.css "Builder"): ‹ · the name with its rename
   pencil · ✓ Saved · Test play. The name is the serif title on tablet and desktop and 16px sans on phone,
   so name, pencil and Saved fit on one line. */
.tb[b-6jkak04qyp] {
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--s2);
    min-width: 0;
    height: 100%;
}

.tb-title[b-6jkak04qyp] {
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--s2);
    min-width: 0;
}

/* Drawn by the rename button beside it; here for the heading outline only. */
.tb-h1[b-6jkak04qyp] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.tb-rename[b-6jkak04qyp] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.tb-rename:hover[b-6jkak04qyp] { background: var(--surface-2); }
.tb-rename:focus-visible[b-6jkak04qyp] { outline: 2px solid var(--focus); outline-offset: 2px; }
.tb-rename[b-6jkak04qyp]  .ui-icon { flex: none; color: var(--ink-3); }

.tb-name[b-6jkak04qyp] {
    overflow: hidden;
    font: 600 var(--t-title)/1.2 var(--font-display);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The form is only there for Enter's submit: the field lays out as the title's own child. */
.tb-name-form[b-6jkak04qyp] { display: contents; }

.tb-name-input[b-6jkak04qyp] {
    min-width: 0;
    width: min(100%, 22em);
    height: 40px;
    margin: 0;
    padding: 0 var(--s2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font: 600 var(--t-body)/1 var(--font-ui);
    box-sizing: border-box;
}
.tb-name-input:focus-visible[b-6jkak04qyp] { outline: 2px solid var(--focus); outline-offset: 1px; }

.tb-saved[b-6jkak04qyp] {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 4px;
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-small);
    white-space: nowrap;
}
.tb-unsaved[b-6jkak04qyp] { color: var(--warn-ink); }

.tb-end[b-6jkak04qyp] { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.tb-end[b-6jkak04qyp]  .tb-test { min-height: 40px; }

.b-missing[b-6jkak04qyp] {
    display: grid;
    justify-items: start;
    gap: var(--s4);
    max-width: 40rem;
    padding: var(--s5) var(--s4);
}
.b-missing-title[b-6jkak04qyp] { margin: 0; font: 600 var(--t-title)/1.2 var(--font-display); color: var(--ink); }
.b-missing-text[b-6jkak04qyp] { margin: 0; color: var(--ink-2); }

/* Valid: Test play and Export JSON, side by side and equal. */
.b-card-actions[b-6jkak04qyp] { display: flex; gap: var(--s2); margin-top: var(--s1); }
.b-card-actions[b-6jkak04qyp]  .ui-btn { flex: 1 1 0; min-width: 0; padding: 0 var(--s2); }

/* Test play's reason (its description; the tooltip is the title) and the menu's outcome: read, not drawn. */
.tb-test-why[b-6jkak04qyp] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 699px) {
    .tb[b-6jkak04qyp] { gap: 2px; }
    .tb-name[b-6jkak04qyp] { font: 600 var(--t-body)/1.2 var(--font-ui); }
    /* No Test play in the phone bar: the status line says what's missing, and the card offers it once valid. */
    .tb-end[b-6jkak04qyp]  .tb-test, .tb-end > #tb-test-why[b-6jkak04qyp] { display: none; }
}
/* A phone on its side keeps the bar's Test play, at a phone's target size. */
@media (orientation: landscape) and (max-height: 520px) {
    .tb-end[b-6jkak04qyp]  .tb-test { min-height: 44px; }
}

/* Three choices: they wrap rather than overflow the 420px confirm. */
.b-save-actions[b-6jkak04qyp] { flex-wrap: wrap; }
/* /Pages/Dev/ComponentsPage.razor.rz.scp.css */
/* The components page's own frame: sections, specimen captions. Tokens only. */
.dev[b-aocn92voya] {
    max-width: calc(var(--content-max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: var(--s6) var(--gutter) var(--s8);
    font: 400 var(--t-body)/var(--lh-body) var(--font-ui);
    color: var(--ink);
}

.dev-head[b-aocn92voya] { display: grid; gap: var(--s2); margin-bottom: var(--s6); }
.dev-title[b-aocn92voya] { margin: 0; font: 500 var(--t-display)/var(--lh-display) var(--font-display); letter-spacing: -.01em; }
.dev-lede[b-aocn92voya] { margin: 0; color: var(--ink-2); }
.dev-themes[b-aocn92voya] { margin: 0; color: var(--ink-3); font-size: var(--t-small); line-height: var(--lh-small); }
.dev-themes a[b-aocn92voya] { display: inline-block; padding: var(--s3) var(--s1); color: var(--accent-text); }
.dev-themes a[aria-current="page"][b-aocn92voya] { color: var(--ink); font-weight: 600; text-decoration: none; }

.dev-sec[b-aocn92voya] { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.dev-h2[b-aocn92voya] { margin: 0 0 var(--s4); font: 600 var(--t-title)/var(--lh-title) var(--font-display); }
.dev-h3[b-aocn92voya] {
    margin: var(--s5) 0 var(--s3);
    font: 600 var(--t-small)/var(--lh-small) var(--font-ui);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.dev-h2 + .dev-h3[b-aocn92voya] { margin-top: 0; }
.dev-note[b-aocn92voya] { margin: 0 0 var(--s4); color: var(--ink-2); font-size: var(--t-small); line-height: var(--lh-small); }

.dev-row[b-aocn92voya] { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s4) var(--s5); }
.dev-row--icons[b-aocn92voya] { gap: var(--s3); }

.dev-spec[b-aocn92voya] { display: grid; justify-items: start; gap: var(--s2); margin: 0; min-width: 0; }
.dev-spec figcaption[b-aocn92voya],
.dev-caption[b-aocn92voya] { color: var(--ink-3); font-size: var(--t-small); line-height: var(--lh-small); }

.dev-spec--icon[b-aocn92voya] { width: 72px; justify-items: center; text-align: center; }
.dev-ink[b-aocn92voya] { display: grid; place-items: center; min-width: 44px; height: 44px; color: var(--ink); }

.dev-block[b-aocn92voya] { display: grid; gap: var(--s2); margin-top: var(--s5); max-width: 420px; }

.dev-cards[b-aocn92voya] { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4); }
.dev-spec--wide[b-aocn92voya] { justify-items: stretch; }
.dev-card-title[b-aocn92voya] { display: block; margin: 0; font: 600 var(--t-title)/var(--lh-title) var(--font-display); }
.dev-card-text[b-aocn92voya] { display: block; margin: var(--s1) 0 0; color: var(--ink-2); }

.dev-stack[b-aocn92voya] { display: grid; gap: var(--s4); }

/* Full bleed with the page's gutter, as a banner under the bar is. */
.dev-bleed[b-aocn92voya] { margin: 0 calc(-1 * var(--gutter)); }
.dev-bleed figcaption[b-aocn92voya] { padding: 0 var(--gutter); }

.dev-tiles[b-aocn92voya] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s4);
    margin: 0;
    padding: 0;
    list-style: none;
}
.dev-tiles--two[b-aocn92voya] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dev-rows[b-aocn92voya] { max-width: 640px; }

@media (max-width: 699px) {
    .dev-tiles--two[b-aocn92voya] { grid-template-columns: minmax(0, 1fr); }
}
.dev-stack--phone[b-aocn92voya] { max-width: 420px; }
.dev-spec--bar[b-aocn92voya] { justify-items: stretch; }
.dev-bar[b-aocn92voya] { border-bottom: 1px solid var(--line); }

/* Full bleed with the page's gutter, as the real bar will be: anything that doesn't fit shows as overflow. */
.dev-appbar[b-aocn92voya] {
    display: flex;
    align-items: center;
    gap: var(--s5);
    height: var(--appbar-h);
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.dev-appbar[b-aocn92voya]  .dev-appbar-end { margin-left: auto; }

@media (max-width: 699px) {
    .dev[b-aocn92voya] { padding-top: var(--s5); }
    .dev-sec[b-aocn92voya] { padding: var(--s5) 0; }
    /* The phone bar shows only the wordmark and Settings; TopNav is the TabBar's job there. */
    .dev-appbar[b-aocn92voya]  .ui-topnav { display: none; }
}

/* A sheet specimen's box: the sheet and its scrim are drawn inside it, not over the page. */
.dev-sheet-frame[b-aocn92voya] {
    position: relative;
    height: 320px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg);
}
.dev-sheet-frame--tall[b-aocn92voya] { height: 600px; }   /* Settings: Appearance and the Number pad playtest group */
@media (max-width: 699px) { .dev-sheet-frame--tall[b-aocn92voya] { height: 760px; } }

.dev-sheet-frame--menu[b-aocn92voya] { height: 640px; }
.dev-sheet-frame--rowmenu[b-aocn92voya] { height: 400px; }
.dev-sheet-frame--import[b-aocn92voya] { height: 520px; }
@media (max-width: 699px) { .dev-sheet-frame--import[b-aocn92voya] { height: 640px; } }
.dev-sheet-frame--anchored[b-aocn92voya] { height: 400px; --ui-popover-top: 64px; }
/* The anchored specimen: the menu drawn where the live popover goes, under the row's ⋯ at the right. */
.dev-anchor-row[b-aocn92voya] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 var(--s2) 0 var(--s4);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    font-weight: 600;
}
.dev-librows[b-aocn92voya] {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
.dev-librows[b-aocn92voya] >  * + * { border-top: 1px solid var(--line); }
.dev-sheet-frame--menu-answer[b-aocn92voya] { height: 780px; }
.dev-sheet-frame--shortcuts[b-aocn92voya] { height: 940px; }
@media (max-width: 1049px) { .dev-sheet-frame--shortcuts[b-aocn92voya] { height: 1160px; } }
@media (max-width: 699px) { .dev-sheet-frame--shortcuts[b-aocn92voya] { height: 1360px; } }

.dev-check[b-aocn92voya] { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; color: var(--ink-2); font-size: var(--t-small); }
.dev-last[b-aocn92voya] { margin-top: var(--s3); }

/* Finish and review specimens. The card (FinishCard) centres over a board-sized frame, given the stage's --bd. The
   panel (FinishPanel) is the context panel's 340px on desktop; below 1050px it places itself with the stage's
   variables, which this box sets so that it fills the box (a 390px control area). */
.dev-finishes[b-aocn92voya] { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.dev-finish-board[b-aocn92voya] { --bd: 288px; position: relative; width: var(--bd); height: var(--bd); background: var(--surface-2); border-radius: var(--r-sm); }
.dev-finish[b-aocn92voya] { --bd: 288px; position: relative; container-type: inline-size; width: min(100%, 340px); }
@media (max-width: 1049px) {
    .dev-finish[b-aocn92voya] { --pg: 0px; --pg-top: calc(-1 * var(--bd) - 8px); --gap: 8px; --dock-bottom: 0px; height: 390px; }
    .dev-finish--bar[b-aocn92voya] { height: 80px; }
}
@media (min-width: 1050px) {
    .dev-finishes[b-aocn92voya] { grid-template-columns: repeat(auto-fill, 340px); align-items: start; }
    .dev-finishes--cards[b-aocn92voya] { grid-template-columns: repeat(auto-fill, 440px); }
    .dev-finish-board[b-aocn92voya] { --bd: 440px; }
}

/* NumberPad specimens: a phone pad's width */
.dev-spec--pad[b-aocn92voya] { width: min(374px, 100%); }

/* Segmented, SumChips and the Builder stage specimens. */
.dev-seg-block[b-aocn92voya] { width: min(100%, 374px); }
.dev-chipcards[b-aocn92voya] { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.dev-chipcard[b-aocn92voya] {
    --sumchip-h: 44px; --sumchip-gap: 6px;
    padding: var(--s3);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
.dev-builders[b-aocn92voya] { display: grid; gap: var(--s5); }
/* A frame the stage sizes itself from: its width (an inline-size container) and --bstage-h. */
.dev-builder[b-aocn92voya] {
    --bstage-h: 700px;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    height: 700px;
    border: 1px dashed var(--line-strong);
    background: var(--bg);
}
/* /Pages/MyPuzzles.razor.rz.scp.css */
/* My puzzles: the mockups' _pages.css .page-head, .mine-note and _shared.css .rows. The rows and the empty
   state style themselves (Components/Library). Tokens only. */
.mine[b-7q243oy1hj] { line-height: var(--lh-body); }

.mine-head[b-7q243oy1hj] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--s4);
    margin-bottom: var(--s5);
}

.mine-title[b-7q243oy1hj] {
    flex: 1;
    min-width: 240px;
    margin: 0;
    font: 500 var(--t-display)/var(--lh-display) var(--font-display);
    letter-spacing: -.01em;
}

.mine-actions[b-7q243oy1hj] { display: flex; gap: var(--s2); }

.mine-error[b-7q243oy1hj] { margin: 0 0 var(--s4); color: var(--danger); font-weight: 600; }

.mine-rows[b-7q243oy1hj] {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
.mine-rows[b-7q243oy1hj] >  * + * { border-top: 1px solid var(--line); }

.mine-note[b-7q243oy1hj] {
    display: flex;
    align-items: center;
    gap: var(--s2);
    margin: var(--s4) 0 0;
    color: var(--ink-3);
    font-size: var(--t-small);
    line-height: var(--lh-body);
}

@media (max-width: 699px) {
    .mine-actions[b-7q243oy1hj] { width: 100%; }
    .mine-actions[b-7q243oy1hj]  .mine-action { flex: 1; }
}
/* /Pages/Privacy.razor.rz.scp.css */
.legal-notice[b-y6c0doq9uy] { max-width: 68ch; margin: 0 auto; padding-bottom: 2rem; line-height: 1.6; }
.legal-notice h1[b-y6c0doq9uy] { margin: .3rem 0 1rem; }
.legal-notice h2[b-y6c0doq9uy] { margin: 2rem 0 .7rem; }
.legal-notice p[b-y6c0doq9uy] { margin: 0 0 1rem; }
.legal-notice a[b-y6c0doq9uy] { overflow-wrap: anywhere; }
/* /Pages/SprintList.razor.rz.scp.css */
.sprint-list-title[b-ziqvhtcem1] { margin: var(--s5) 0 var(--s2); font: 600 var(--t-display, 28px)/1.15 var(--font-display); }
.sprint-list-tag[b-ziqvhtcem1] { margin-left: var(--s2); color: var(--ink-2); font: 600 var(--t-small)/1 var(--font-ui); }
.sprint-list-lead[b-ziqvhtcem1] { max-width: 60ch; margin: 0 0 var(--s4); color: var(--ink-2); }

.sprint-list[b-ziqvhtcem1] {
    display: grid;
    gap: var(--s2);
    max-width: 640px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sprint-row[b-ziqvhtcem1] {
    display: grid;
    grid-template-columns: 6.5rem auto 1fr;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3) var(--s4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}
.sprint-row:hover[b-ziqvhtcem1] { border-color: var(--accent); }
.sprint-row-date[b-ziqvhtcem1] { font-weight: 600; }
.sprint-row-stars[b-ziqvhtcem1] { letter-spacing: 1px; white-space: nowrap; }
.sprint-row-status[b-ziqvhtcem1] { color: var(--ink-2); font-size: var(--t-small); font-variant-numeric: tabular-nums; }

@media (max-width: 520px) {
    .sprint-row[b-ziqvhtcem1] { grid-template-columns: auto 1fr; }
    .sprint-row-status[b-ziqvhtcem1] { grid-column: 1 / -1; }
}
/* /Pages/SprintPage.razor.rz.scp.css */
.sprint-sr[b-17ezr7we2r] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
/* /Pages/Terms.razor.rz.scp.css */
.legal-notice[b-p8zn9ay2ue] { max-width: 68ch; margin: 0 auto; padding-bottom: 2rem; line-height: 1.6; }
.legal-notice h1[b-p8zn9ay2ue] { margin: .3rem 0 1rem; }
.legal-notice p[b-p8zn9ay2ue] { margin: 0 0 1rem; }
.legal-notice a[b-p8zn9ay2ue] { overflow-wrap: anywhere; }
