/* Curation — dark studio chrome around cream keynote previews. */

:root {
    --ink: #111213;
    --ink-2: #16181a;
    --ink-3: #1c1f22;
    --trench: #1A2F3D;
    --cyan: #CBE3EB;
    --ochre: #D98A5B;
    --green: #8fbf93;
    --red: #e07a6f;
    --bone: #f1f1ed;
    --bone-dim: rgba(241, 241, 237, 0.56);
    --bone-faint: rgba(241, 241, 237, 0.28);
    --border: rgba(203, 227, 235, 0.10);
    --border-strong: rgba(203, 227, 235, 0.22);
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* `hidden` is display:none in the UA sheet, which any `display:` of our own
   outranks. Several panels here are flex and toggled by the attribute. */
[hidden] { display: none !important; }

html, body {
    min-height: 100%;
    background: var(--ink);
    color: var(--bone);
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h2 { font-size: 18px; font-weight: 400; letter-spacing: -0.01em; }
h3 {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bone-faint);
    margin-bottom: 10px;
}

code { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.muted { color: var(--bone-faint); font-size: 12px; }
.hint { color: var(--bone-faint); font-size: 12px; line-height: 1.6; max-width: 72ch; }
.empty { padding: 64px 28px; color: var(--bone-faint); }

/* --- chrome ------------------------------------------------------------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ochre);
    align-self: center;
}
.brand-name { font-size: 15px; letter-spacing: 0.02em; }
.brand-sub { font-size: 12px; color: var(--bone-faint); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.steps {
    display: flex;
    gap: 4px;
    padding: 12px 28px 0;
    border-bottom: 1px solid var(--border);
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    background: transparent;
    color: var(--bone-faint);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.step b {
    display: grid;
    place-items: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(203, 227, 235, 0.09);
    font-size: 10px;
    font-weight: 500;
}
.step:hover { color: var(--bone-dim); }
.step.is-on {
    color: var(--bone);
    background: var(--ink-2);
    border-color: var(--border);
}
.step.is-on b { background: var(--ochre); color: var(--ink); }
.step[disabled] { opacity: 0.35; cursor: not-allowed; }

.panel { display: none; padding: 28px; }
.panel.is-on { display: block; }

/* --- buttons ------------------------------------------------------------ */

button {
    font: inherit;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--bone-dim);
    cursor: pointer;
    transition: all 0.16s var(--ease);
}
button:hover:not(:disabled) { color: var(--bone); border-color: var(--cyan); }
button:disabled { opacity: 0.35; cursor: not-allowed; }
button.tiny { font-size: 11px; padding: 4px 10px; }
button.primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 500; }
button.primary:hover:not(:disabled) { background: #dceff5; }
button.ok:hover:not(:disabled) { color: var(--green); border-color: var(--green); }
button.no:hover:not(:disabled) { color: var(--red); border-color: var(--red); }
button.danger { color: var(--red); border-color: rgba(224, 122, 111, 0.3); }
button.lock { font-size: 11px; padding: 5px 12px; }
button.lock.is-open { color: var(--green); border-color: rgba(143, 191, 147, 0.4); }

/* --- password ----------------------------------------------------------- */

.gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
}
.gate-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 260px; }
.gate-form .brand-name { text-align: center; margin-bottom: 6px; }
.gate-form input {
    background: var(--ink-2);
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    color: var(--bone);
    font: inherit;
    font-family: var(--font-mono);
    padding: 9px 12px;
}
.gate-form input:focus { outline: none; border-color: var(--cyan); }
.gate-error { min-height: 1.5em; text-align: center; font-size: 12px; color: var(--red); }

/* --- step 1 ------------------------------------------------------------- */

.pick-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-faint); }
.field input {
    background: var(--ink-2);
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    color: var(--bone);
    font: inherit;
    font-family: var(--font-mono);
    padding: 8px 11px;
    color-scheme: dark;
}
.field input:focus { outline: none; border-color: var(--cyan); }
#momentCount { width: 80px; }

.daycard {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--ink-2);
    overflow: hidden;
}

.daycard-sun {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.sunstat { display: flex; flex-direction: column; gap: 3px; }
.sunstat-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); }
.sunstat b { font-family: var(--font-mono); font-size: 19px; font-weight: 400; color: var(--cyan); }

/* --- step 1: datasets of moments --------------------------------------- */

.field-wide input { width: 260px; }

.dataset-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--ink-3);
}
.dataset-head .spacer { flex: 1; }
.dataset-name {
    flex: 0 1 460px;
    min-width: 200px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--bone);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
}
.dataset-name:hover { border-color: var(--border); }
.dataset-name:focus { outline: none; border-color: var(--cyan); background: var(--ink-2); }
#saveState { font-family: var(--font-mono); font-size: 11px; }
#saveState.is-dirty { color: var(--ochre); }

.yearstrip { position: relative; padding: 14px 22px 8px; border-bottom: 1px solid var(--border); }
.yearstrip svg { display: block; width: 100%; height: 56px; overflow: visible; }
.ys-swell { fill: none; stroke: rgba(203, 227, 235, 0.35); stroke-width: 1; }
.ys-month { stroke: rgba(203, 227, 235, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ys-plot { position: relative; }
.ys-label { position: absolute; top: -2px; margin-left: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--bone-faint); pointer-events: none; }
.ys-mark { stroke: var(--bone-faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ys-mark.is-rejected { stroke: rgba(224, 122, 111, 0.4); }
.ys-mark.is-on { stroke: var(--ochre); stroke-width: 2; }
.ys-legend { display: block; margin-top: 4px; font-size: 10px; color: var(--bone-faint); letter-spacing: 0.04em; }

.moments { list-style: none; display: flex; flex-direction: column; }
.moment {
    display: grid;
    grid-template-columns: 22px 128px 58px minmax(0, 1fr) 150px;
    gap: 14px;
    align-items: start;
    padding: 12px 22px;
    border-bottom: 1px solid var(--border);
    color: var(--bone-dim);
}
.moment:last-child { border-bottom: none; }
.moment.is-selected { background: rgba(217, 138, 91, 0.05); }
.moment .mcheck { padding-top: 2px; cursor: pointer; }
.moment .mcheck input { accent-color: var(--ochre); }
.moment .mwhen { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 12px; }
.moment .mwhen b { font-weight: 400; color: var(--bone); }
.moment .mfocus {
    justify-self: start;
    padding: 1px 7px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}
.moment .mbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; }
.moment .mbody b { font-weight: 500; color: var(--bone); }
.moment .mspecial { color: var(--ochre); }
.moment .mreadings { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); opacity: 0.8; }
.moment .mverdict { font-size: 11px; color: var(--bone-faint); }
.moment .mstatus { justify-self: end; font-family: var(--font-mono); font-size: 11px; color: var(--bone-faint); text-align: right; }
.moment.is-confirmed .mstatus { color: var(--green); }
.moment.is-rejected .mstatus { color: var(--red); }
.moment.is-rejected:not(.is-selected) { opacity: 0.55; }
.moment.is-picked .mstatus { color: var(--cyan); animation: pulse 1.1s ease-in-out infinite; }

.recent-day.is-on { border-color: var(--ochre); background: rgba(217, 138, 91, 0.08); }
.recent-day .on-wall {
    margin-left: 6px;
    font-style: normal;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.daycard-go {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: var(--ink-3);
}

.recent { margin-top: 28px; }
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; }
.recent-day {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--ink-2);
    cursor: pointer;
    text-align: left;
    color: var(--bone-dim);
}
.recent-day:hover { border-color: var(--cyan); }
.recent-day b { font-family: var(--font-mono); font-weight: 400; color: var(--bone); }
.recent-day span { font-size: 11px; color: var(--bone-faint); }

/* --- run log ------------------------------------------------------------ */

.logpanel {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(620px, 100vw);
    height: min(46vh, 460px);
    border-top: 1px solid var(--border-strong);
    border-left: 1px solid var(--border-strong);
    border-radius: 8px 0 0 0;
    background: rgba(9, 10, 11, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.logpanel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
}
.logpanel-head .spacer { flex: 1; }
.check { display: flex; align-items: center; gap: 6px; color: var(--bone-faint); cursor: pointer; }
.logpanel-head b { letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); }

.logpanel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.55;
    scrollbar-width: thin;
}

.logrow { display: flex; gap: 9px; align-items: baseline; }
.logclock { color: var(--bone-faint); flex: none; }
.logscope {
    flex: none;
    width: 52px;
    color: var(--cyan);
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.logmsg { color: var(--bone-dim); min-width: 0; word-break: break-word; }
.logdetail { display: block; color: var(--bone-faint); }
.logrow.is-warn .logmsg { color: var(--ochre); }
.logrow.is-error .logmsg { color: var(--red); }

.lock.is-on, #btnLog.is-on { border-color: var(--ochre); color: var(--ochre); }

/* --- step 2 ------------------------------------------------------------- */

/* The screens are 4.6:1. Every pixel of width is another pixel of drawing, so
   the preview breaks out of the panel padding and runs edge to edge; the rest
   of the step keeps its gutters. */
.panel[data-panel="2"] { padding: 0; }
.review > .stage-head,
.review > .filmstrip-wrap,
.review > .stats-block,
.review > .slots,
.review > .loading,
.review > .beat-error { margin-left: 28px; margin-right: 28px; }

.stage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0 14px;
}
.stage-title h2 { font-size: 19px; }
.stage-title .beat-why { margin-top: 4px; max-width: 90ch; font-size: 12.5px; color: var(--bone-dim); }
.stage-title .beat-why b { font-weight: 500; color: var(--ochre); }
.stage-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.screens { display: flex; flex-direction: column; }

.preview {
    position: relative;
    width: 100%;
    border-top: 1px solid var(--border);
    background: #0c0d0e;
    overflow: hidden;
}
.screens .preview:last-child { border-bottom: 1px solid var(--border); }

/* Which of the two screens this is, and whether it is still being drawn. */
.screen-tag {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(17, 18, 19, 0.72);
    backdrop-filter: blur(6px);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bone-dim);
}
.screen-tag .tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.screen-tag.is-partial { color: var(--ochre); }
.screen-tag.is-partial .tag-dot { background: var(--ochre); }
.screen-tag.is-waiting { color: var(--bone-faint); }
.screen-tag.is-waiting .tag-dot { background: var(--bone-faint); }
.screen-tag.is-drawing .tag-dot { background: var(--cyan); animation: pulse 1.1s ease-in-out infinite; }

/* Reference art is a stand-in, not the day's drawing. Say so on the screen
   rather than letting it pass for generated work. */
.kn-art.is-reference,
img.is-reference {
    opacity: 0.32;
    filter: grayscale(1);
}

.kn-slot-drawing {
    position: relative;
    animation: slotPulse 1.6s ease-in-out infinite;
}

@keyframes slotPulse {
    0%, 100% { opacity: 0.30; }
    50% { opacity: 0.62; }
}

.preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(17, 18, 19, 0.7);
    backdrop-filter: blur(6px);
}

/* Fill window: the preview alone, centred, as large as 4.6:1 allows. */
body.is-wide { overflow: hidden; }
body.is-wide .topbar,
body.is-wide .steps,
body.is-wide .keys,
body.is-wide .stage-head,
body.is-wide .filmstrip-wrap,
body.is-wide .stats-block,
body.is-wide .slots,
body.is-wide .loading,
body.is-wide .beat-error { display: none; }

body.is-wide .screens {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: #000;
    overflow-y: auto;
    gap: 10px;
    padding: 10px 0;
    align-content: center;
}
body.is-wide .preview { border: none; background: transparent; }

body.is-wide .kn-frame { width: 100%; }

.beat-error {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(224, 122, 111, 0.35);
    border-radius: 6px;
    background: rgba(224, 122, 111, 0.08);
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 12px;
}

.progress { display: flex; align-items: center; gap: 9px; }
.progress-bar {
    width: 160px;
    height: 4px;
    border-radius: 2px;
    background: rgba(203, 227, 235, 0.12);
    overflow: hidden;
}
.progress-bar b {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: var(--cyan);
    transition: width 0.3s var(--ease);
}
.progress-text { color: var(--bone-faint); font-size: 11px; }

/* --- drawing slots ------------------------------------------------------ */

.slots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}

.slot {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bone-dim);
}
.slot:hover { border-color: var(--cyan); color: var(--bone); }
.slot .chip {
    width: 34px; height: 26px;
    border-radius: 3px;
    background: var(--keynote-paper);
    display: grid; place-items: center;
    overflow: hidden;
    flex: none;
}
.slot .chip.is-svg { filter: none; mix-blend-mode: normal; }
.slot .chip svg { width: 100%; height: 100%; display: block; }
.slot .chip img { width: 100%; height: 100%; display: block; object-fit: contain; filter: grayscale(1) brightness(1.05) contrast(1.25); mix-blend-mode: darken; }
.slot .chip.is-ref { opacity: 0.4; }
.slot .slot-name { text-transform: uppercase; letter-spacing: 0.08em; }
.slot .slot-state { color: var(--bone-faint); }
.slot.is-generated .slot-state { color: var(--green); }
.slot.is-ref .slot-state { color: var(--bone-faint); }
/* Recorded on the beat, but the file is not on disk — a redraw brings it back. */
.slot .chip.is-lost { border: 1px dashed var(--red); opacity: 0.5; }
.slot.is-ref .slot-state:not(:empty) { color: var(--bone-faint); }
.slot.is-drawing { border-color: var(--cyan); }
.slot.is-drawing .slot-state { color: var(--cyan); }
.slot.is-drawing .chip { animation: pulse 1.1s ease-in-out infinite; }
.slot .slot-layout { color: var(--bone-faint); font-size: 9px; }
.slots-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bone-faint);
    margin-right: 4px;
}

/* --- filmstrip ---------------------------------------------------------- */

.filmstrip-wrap { margin-top: 16px; }

.filmstrip-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 9px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--bone-dim);
}
.filmstrip-head .spacer { flex: 1; }

.filmstrip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.trow {
    flex: 1 1 0;
    min-width: 94px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--ink-2);
    text-align: left;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--bone-dim);
}
.trow:hover:not([disabled]) { background: var(--ink-3); border-color: var(--border-strong); color: var(--bone); }
.trow.is-on { border-color: var(--ochre); background: rgba(217, 138, 91, 0.10); color: var(--bone); }
.trow[data-status="rejected"] { opacity: 0.45; }

/* An hour nothing has been generated for cannot be opened: there is no stage
   to show. It sits dark until the generator reaches it, then lights. */
.trow[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    border-style: dashed;
}

.trow .trow-top { display: flex; align-items: center; gap: 7px; width: 100%; }
.trow .tdate { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ochre); }
.trow .tclock { flex: 1; }
.trow .tspark { height: 16px; width: 100%; display: block; }
.trow .ttally { font-size: 9.5px; letter-spacing: 0.04em; color: var(--bone-faint); }
.trow .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--bone-faint); flex: none; }
.trow[data-status="approved"] .tdot { background: var(--green); }
.trow[data-status="approved"] .ttally { color: var(--green); }
.trow[data-status="rejected"] .tdot { background: var(--red); }
.trow[data-status="ready"] .tdot { background: var(--cyan); }
.trow[data-status="ready"] .ttally { color: var(--cyan); }
.trow[data-status="error"] .tdot { background: var(--red); box-shadow: 0 0 0 3px rgba(224,122,111,0.18); }
.trow[data-status="writing"] .tdot,
.trow[data-status="filling"] .tdot { background: var(--ochre); animation: pulse 1.1s ease-in-out infinite; }
.trow[data-status="writing"] .ttally,
.trow[data-status="filling"] .ttally { color: var(--ochre); }

/* --- what a beat is still waiting for ----------------------------------- */

.loading {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 11px;
}

.loading-title {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bone-faint);
}

.loading-items { display: flex; flex-wrap: wrap; gap: 8px; }

.chipmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px 2px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--bone-faint);
}
.chipmark b { width: 6px; height: 6px; border-radius: 50%; background: var(--bone-faint); }
.chipmark.is-done { color: var(--green); border-color: rgba(143, 191, 147, 0.3); }
.chipmark.is-done b { background: var(--green); }
.chipmark.is-busy { color: var(--ochre); border-color: rgba(217, 138, 91, 0.35); }
.chipmark.is-busy b { background: var(--ochre); animation: pulse 1.1s ease-in-out infinite; }
.chipmark.is-fail { color: var(--red); border-color: rgba(224, 122, 111, 0.3); }
.chipmark.is-fail b { background: var(--red); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.stats-block { margin-top: 24px; padding-bottom: 32px; }
.stats-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

table.stats { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; }
table.stats th {
    text-align: left;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bone-faint);
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
}
table.stats td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(203, 227, 235, 0.05);
    color: var(--bone-dim);
}
table.stats td.val { color: var(--bone); }
table.stats td.src { font-size: 11px; }
table.stats tr.is-shown td { color: var(--cyan); }
table.stats .onwall {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ochre);
}
table.stats .modelled { color: var(--ochre); }

/* --- step 3 ------------------------------------------------------------- */

.publish { max-width: 720px; }
.stats .onwall + .onwall { margin-left: 5px; }

.checklist { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 9px; }
.checklist li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.checklist .mark { width: 14px; flex: none; font-family: var(--font-mono); }
.checklist .pass .mark { color: var(--green); }
.checklist .fail .mark { color: var(--red); }
.checklist .fail { color: var(--red); }
.publish-go { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; }

.keys {
    position: fixed;
    right: 18px;
    bottom: 14px;
    font-size: 11px;
    color: var(--bone-faint);
    pointer-events: none;
}
.keys kbd {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 1px 5px;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    margin: 0 1px;
}

@media (max-width: 1080px) {
    .daycard-cols { grid-template-columns: 1fr; }
    .keys { display: none; }
    .review > .stage-head,
    .review > .filmstrip-wrap,
    .review > .stats-block,
    .review > .slots,
    .review > .beat-error { margin-left: 16px; margin-right: 16px; }
}
