/* Show Manager — base styles.
   Desktop first, mobile usable: layouts simplify below 720px rather than shrink.
   Colours live as variables so a dark mode can be added without hunting hex codes. */

:root {
    --bg: #f6f6f7;
    --surface: #ffffff;
    --border: #e2e2e6;
    --text: #1a1a1c;
    --muted: #6a6a72;
    --accent: #2f5fd0;
    --accent-text: #ffffff;
    --danger: #b3261e;
    --notice: #0f6e56;
    --warn-bg: #fff8e6;
    --warn-border: #c58a00;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.6rem; margin: 0 0 .2rem; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted  { color: var(--muted); font-size: .9rem; }
.err    { color: var(--danger); font-size: .9rem; }
.notice { color: var(--notice); font-size: .9rem; }
.centred { text-align: center; padding: 3rem 1rem; }

/* ------------------------------------------------------------------ shell */

.app-bar {
    display: flex; align-items: center; gap: 1.5rem;
    padding: .75rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 650; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.app-nav { display: flex; gap: 1rem; flex: 1; }
.nav-item { color: var(--muted); padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav-item:hover { text-decoration: none; color: var(--text); }
.nav-item.active { color: var(--text); border-bottom-color: var(--accent); }

.app-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}

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

button { font: inherit; cursor: pointer; }

.primary {
    background: var(--accent); color: var(--accent-text);
    border: 0; border-radius: var(--radius);
    padding: .55rem 1.1rem; font-weight: 550;
}
.primary:disabled { background: #a9b4c9; cursor: not-allowed; }

.link-btn {
    background: none; border: 0; color: var(--muted);
    padding: .4rem .2rem; text-decoration: underline;
}
.link-btn:hover { color: var(--text); }

/* ------------------------------------------------------------------ cards */

.show-group { margin-bottom: 2rem; }
.show-group h2 { display: flex; align-items: baseline; gap: .5rem; }
.count {
    font-size: .75rem; font-weight: 500; color: var(--muted);
    background: var(--border); border-radius: 1rem; padding: .05rem .5rem;
}

.card-grid {
    display: grid; gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.show-card {
    display: flex; flex-direction: column; gap: .2rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .9rem 1rem;
    color: var(--text); box-shadow: var(--shadow);
}
.show-card:hover { text-decoration: none; border-color: var(--accent); }
.show-name  { font-weight: 600; }
.show-when  { color: var(--muted); font-size: .875rem; }
.show-venue { color: var(--muted); font-size: .875rem; }

.badge {
    align-self: flex-start; margin-top: .4rem;
    font-size: .75rem; padding: .1rem .5rem; border-radius: 1rem;
    background: var(--border); color: var(--muted);
}
.badge-soon { background: var(--warn-bg); color: #7a5300; border: 1px solid var(--warn-border); }

.empty {
    background: var(--surface); border: 1px dashed var(--border);
    border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center;
}
.empty h2 { margin-bottom: .25rem; }
.empty .primary { margin-top: 1rem; }

/* ------------------------------------------------------- forms & dialogs */

label { display: block; margin-bottom: .8rem; font-size: .875rem; color: var(--muted); }
label input, label select, label textarea {
    display: block; width: 100%; margin-top: .25rem;
    font: inherit; color: var(--text);
    padding: .5rem .6rem;
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
label input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.row { display: flex; gap: .8rem; }
.row > label { flex: 1; }

.form-card, .auth-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.auth-card { max-width: 380px; margin: 12vh auto; }
.auth-card h1 { margin-bottom: .25rem; }
.form-card { max-width: 480px; }

.backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20;
}
.dialog {
    position: fixed; z-index: 21;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 2rem));
    background: var(--surface); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.dialog-actions {
    display: flex; justify-content: flex-end; align-items: center; gap: .75rem;
    margin-top: 1rem;
}

/* ----------------------------------------------------------- mobile pass */

@media (max-width: 720px) {
    .app-bar { gap: 1rem; padding: .6rem .9rem; }
    .app-main { padding: 1rem .9rem 3rem; }
    .row { flex-direction: column; gap: 0; }
    .page-head { flex-direction: column; align-items: stretch; }
    .page-head .primary { width: 100%; }
}

/* Blazor's own error bar */
#blazor-error-ui {
    background: var(--warn-bg); bottom: 0; display: none;
    left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* -------------------------------------------------------------- people */

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 2rem; padding: .3rem .85rem; color: var(--muted); font-size: .875rem;
}
.chip-on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip-count { opacity: .7; margin-left: .25rem; }

table.people {
    width: 100%; border-collapse: collapse; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
table.people th, table.people td {
    text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--border);
}
table.people th { font-size: .8rem; color: var(--muted); font-weight: 550; background: #fafafb; }
table.people tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f7f9fe; }
.person-name { font-weight: 550; }
td.right { text-align: right; color: var(--muted); }

.detail-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
}
.field-label { font-size: .875rem; color: var(--muted); margin: .8rem 0 .4rem; }
.role-picker {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .25rem; margin-bottom: .8rem;
}
label.check {
    display: flex; align-items: center; gap: .45rem;
    margin-bottom: .4rem; color: var(--text); font-size: .9rem;
}
label.check input { width: auto; margin: 0; }

.code-box {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; padding: .7rem .9rem; margin-bottom: .5rem;
}
.code-box code { font-size: 1.25rem; letter-spacing: .12em; font-weight: 600; }

.show-nav { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.show-nav-item {
    display: flex; flex-direction: column; gap: .2rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; color: var(--text);
}
a.show-nav-item:hover { text-decoration: none; border-color: var(--accent); }
.show-nav-item.disabled { opacity: .55; }
.show-nav-title { font-weight: 600; }

@media (max-width: 720px) {
    table.people thead { display: none; }
    table.people tr { display: block; border-bottom: 1px solid var(--border); padding: .5rem 0; }
    table.people td { display: block; border: 0; padding: .15rem .9rem; }
    td.right { display: none; }
}

/* ------------------------------------------------- guidance & disabled state */

.notice-box {
    background: #eef4ff; border: 1px solid #c9dbff;
    border-radius: 8px; padding: .7rem .9rem;
    font-size: .9rem; margin: 0 0 1rem;
}
.steps { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.steps li { margin-bottom: .5rem; }
.btn-link { display: inline-block; text-align: center; width: 100%; margin-bottom: .5rem; }
.btn-link:hover { text-decoration: none; }

input:disabled, select:disabled, textarea:disabled {
    background: #f4f4f6; color: var(--muted); cursor: not-allowed;
}
label.check input:disabled + * { color: var(--muted); }

/* ------------------------------------------------------- card overflow menu */

.card-wrap { position: relative; }

.card-menu-btn {
    position: absolute; top: .5rem; right: .5rem;
    background: transparent; border: 0; border-radius: 6px;
    color: var(--muted); font-size: 1.1rem; line-height: 1;
    padding: .2rem .45rem; opacity: 0; transition: opacity .12s;
}
.card-wrap:hover .card-menu-btn,
.card-menu-btn:focus { opacity: 1; }
.card-menu-btn:hover { background: var(--border); color: var(--text); }

/* Touch has no hover, so the affordance must be permanent there. */
@media (hover: none) {
    .card-menu-btn { opacity: 1; }
}

.menu-backdrop { position: fixed; inset: 0; z-index: 30; }

.card-menu {
    position: absolute; top: 2.1rem; right: .5rem; z-index: 31;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 150px; padding: .25rem;
}
.card-menu button {
    display: block; width: 100%; text-align: left;
    background: none; border: 0; border-radius: 6px;
    padding: .45rem .6rem; color: var(--text); font-size: .9rem;
}
.card-menu button:hover { background: #f2f5fc; }
.card-menu button.danger { color: var(--danger); }
.card-menu button.danger:hover { background: #fdecec; }

.danger-btn {
    background: var(--danger); color: #fff; border: 0;
    border-radius: var(--radius); padding: .55rem 1.1rem; font-weight: 550;
}
.danger-btn:disabled { background: #d8a5a1; cursor: not-allowed; }

/* --------------------------------------------------------------- plan area */

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; }
.tab {
    background: none; border: 0; border-bottom: 2px solid transparent;
    padding: .5rem .9rem; color: var(--muted); font-size: .95rem;
}
.tab:hover { color: var(--text); }
.tab-on { color: var(--text); border-bottom-color: var(--accent); font-weight: 550; }

.task-list, .schedule { list-style: none; margin: 0; padding: 0; }

.task, .event {
    display: flex; align-items: flex-start; gap: .75rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .7rem .9rem; margin-bottom: .5rem;
}
.task > input[type=checkbox] { margin-top: .25rem; width: auto; flex: none; }
.task-body, .event-body { flex: 1; display: flex; flex-direction: column; gap: .15rem; cursor: pointer; }
.task-title, .event-title { font-weight: 550; }
.task-meta { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

.task-done .task-title { text-decoration: line-through; color: var(--muted); }
.task-overdue { border-left: 3px solid var(--danger); }
.task-overdue .task-meta { color: var(--danger); }

.event-when {
    display: flex; flex-direction: column; min-width: 7.5rem;
    border-right: 1px solid var(--border); padding-right: .75rem;
}
.event-date { font-weight: 600; font-size: .9rem; }
.event-past { opacity: .55; }

@media (max-width: 720px) {
    .event { flex-direction: column; gap: .4rem; }
    .event-when { flex-direction: row; gap: .5rem; border-right: 0; padding-right: 0; }
}

.confirm-inline { display: flex; align-items: center; gap: .5rem; font-size: .85rem; white-space: nowrap; }
.danger-link { color: var(--danger); font-weight: 550; }
.danger-link:hover { color: #8c1d17; }

/* ------------------------------------------------------------ run of show */

.ros-summary {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: 1.2rem;
}
.ros-summary > div { display: flex; flex-direction: column; }
.stat-value { font-size: 1.3rem; font-weight: 650; }
.stat-label { font-size: .78rem; color: var(--muted); }
.warn-tile { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.warn-tile .stat-value { color: #7a5300; }

/* Desktop: sequence left, inspector right. Mobile collapses to a list then a
   panel, rather than shrinking two columns into unusable slivers. */
.ros { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.2rem; align-items: start; }
.ros-list { min-width: 0; }

.ros-inspector {
    position: sticky; top: 5rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; max-height: calc(100vh - 7rem); overflow: auto;
}

.ros-section { margin-bottom: 1.4rem; }
.ros-section-head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .4rem; }
.ros-section-head h2 { margin: 0; font-size: 1rem; }
.spacer { flex: 1; }
.ros-empty { padding: .5rem 0 .5rem .5rem; }

.ros-items { list-style: none; margin: 0; padding: 0; }
.ros-item {
    display: flex; align-items: center; gap: .75rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: .55rem .8rem; margin-bottom: .35rem; cursor: pointer;
}
.ros-item:hover { border-color: var(--accent); }
.ros-item-on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ros-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; min-width: 3.5rem; }
.ros-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ros-title { font-weight: 550; }
.ros-dur { font-variant-numeric: tabular-nums; font-size: .85rem; min-width: 3.5rem; text-align: right; }
.ros-move { display: flex; gap: .1rem; }
.ros-move .link-btn { text-decoration: none; padding: .1rem .35rem; font-size: 1rem; }

.inspector-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .6rem; }
.inspector-head h2 { margin: 0; font-size: 1rem; }
.inspector-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0 .8rem; }
.dur-input { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.dur-input input { width: 4rem; margin-top: 0; }

.cue-list { list-style: none; margin: 0; padding: 0; }
.cue { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.cue:last-child { border-bottom: 0; }
.cue-label {
    font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2.5rem;
    background: var(--bg); border-radius: 5px; padding: .1rem .4rem; text-align: center; font-size: .85rem;
}
.cue-body { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cue-title { font-weight: 550; font-size: .9rem; }
.cue-trigger { font-style: italic; font-size: .85rem; }

.dialog-wide { width: min(560px, calc(100vw - 2rem)); max-height: 88vh; overflow: auto; }

@media (max-width: 900px) {
    .ros { grid-template-columns: 1fr; }
    .ros-inspector { position: static; max-height: none; display: none; }
    .ros-inspector-open { display: block; }
}

.hard-start {
    font-size: .78rem; font-weight: 650; letter-spacing: .02em;
    background: #eef4ff; color: #2a4c9b; border: 1px solid #c9dbff;
    border-radius: 1rem; padding: .05rem .5rem;
}
.overrun {
    background: var(--warn-bg); border: 1px solid var(--warn-border);
    border-radius: 8px; padding: .55rem .8rem; margin: 0 0 .5rem;
    font-size: .875rem; color: #7a5300;
}

/* ---------------------------------------------------------------- cue sheet */

.head-actions { display: flex; align-items: center; gap: 1rem; }

table.cue-sheet {
    width: 100%; border-collapse: collapse; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    font-size: .9rem;
}
table.cue-sheet th, table.cue-sheet td {
    text-align: left; padding: .45rem .7rem; border-bottom: 1px solid var(--border);
    vertical-align: top;
}
table.cue-sheet th { font-size: .78rem; color: var(--muted); background: #fafafb; font-weight: 550; }
.sheet-section td {
    background: #eef2fa; font-weight: 650; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .04em;
}
.sheet-item td { background: #fafafb; font-weight: 550; }
.sheet-label { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-trigger { font-style: italic; color: var(--muted); }
.centre { text-align: center; }

/* Screen hides the print header; print hides the app chrome. Paper is the
   disaster plan, so it has to come out clean without a PDF pipeline. */
.print-head { display: none; }

@media print {
    .no-print, .app-bar, .filters { display: none !important; }
    .app-main { padding: 0; max-width: none; }
    .print-head { display: block; margin-bottom: .75rem; }
    .print-head h1 { font-size: 15pt; margin: 0 0 .2rem; }
    .print-head p { margin: 0; font-size: 9pt; color: #444; }

    body { background: #fff; font-size: 9.5pt; }
    table.cue-sheet { border: 0; font-size: 9pt; }
    table.cue-sheet th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sheet-section td, .sheet-item td { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    /* A cue and its context must not be split across a page break — an operator
       turning a page mid-cue is exactly the failure paper exists to prevent. */
    table.cue-sheet tr { break-inside: avoid; page-break-inside: avoid; }
    .sheet-section, .sheet-item { break-after: avoid; page-break-after: avoid; }
    thead { display: table-header-group; }
}

/* ------------------------------------------------------------ drag to order */

.grip {
    color: #c2c2ca; cursor: grab; user-select: none;
    font-size: .9rem; line-height: 1; letter-spacing: -.1em;
}
.grip:active { cursor: grabbing; }
.ros-item:hover .grip, .ros-section-head:hover .grip { color: var(--muted); }

.ros-item.dragging, .ros-section.dragging { opacity: .4; }

/* Where it will land. A line rather than a filled block, so the row underneath
   stays readable while dragging over it. */
.ros-item.drop-into { box-shadow: 0 -2px 0 var(--accent); border-color: var(--accent); }
.ros-section-head.drop-into { box-shadow: 0 -2px 0 var(--accent); }

.ros-section { padding-top: .1rem; }
.ros-section-head { border-radius: 6px; padding: .15rem .2rem; }

/* Arrows exist only where drag does not: HTML5 drag-and-drop never fires on
   touch, so a phone would otherwise have no way to reorder at all. */
@media (hover: hover) and (pointer: fine) {
    .ros-move { display: none; }
}
@media (hover: none) {
    .grip { display: none; }
}

/* ------------------------------------------------------------ print sheets */

.sheet { background: var(--surface); border: 1px solid var(--border);
         border-radius: var(--radius); padding: 1.5rem; }
.sheet-head { border-bottom: 2px solid var(--text); padding-bottom: .5rem; margin-bottom: 1rem; }
.sheet-head h1 { font-size: 1.35rem; margin: 0 0 .15rem; }
.sheet-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.sheet-sub { font-size: .82rem !important; }

.sheet-table { width: 100%; border-collapse: collapse; margin-bottom: 1.1rem; font-size: .9rem; }
.sheet-table th, .sheet-table td {
    text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.sheet-table th { font-size: .75rem; color: var(--muted); font-weight: 550; }
.sheet-table tr.sheet-section td {
    background: #eef2fa; font-weight: 650; font-size: .88rem;
    border-bottom: 1px solid var(--border); padding: .35rem .5rem;
}
.sheet-right { float: right; font-weight: 500; color: var(--muted); }
.sheet-hard {
    font-weight: 500; font-size: .8rem; color: #2a4c9b; margin-left: .5rem;
}
.sheet-type { display: block; font-size: .78rem; color: var(--muted); }
.sheet-foot { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: .5rem; }

.col-time  { width: 3.6rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-dur   { width: 4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-who   { width: 9rem; }
.col-notes { width: 30%; font-size: .82rem; color: var(--muted); }
.col-role  { width: 12rem; }
.col-call  { width: 4.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-phone { width: 8rem; white-space: nowrap; }
.col-email { font-size: .82rem; }
.col-emerg { width: 10rem; font-size: .82rem; }

@media print {
    .sheet { border: 0; border-radius: 0; padding: 0; background: #fff; }
    .sheet-head h1 { font-size: 14pt; }
    .sheet-head p { font-size: 8.5pt; color: #000; }
    .sheet-table { font-size: 8.5pt; margin-bottom: .6rem; }
    .sheet-table th { font-size: 7.5pt; }
    .sheet-table tr.sheet-section td {
        background: #e8e8e8 !important;
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }

    /* Never split a row, and never orphan a section header at the foot of a
       page — a running order whose heading is on the previous sheet is exactly
       the confusion paper is meant to remove. */
    .sheet-table tr { break-inside: avoid; page-break-inside: avoid; }
    .sheet-section { break-after: avoid; page-break-after: avoid; }
    .sheet-table thead { display: table-header-group; }

    @page { margin: 12mm; }
}

/* ----------------------------------------------------------------- overview */

/* Fixed position under the header. It changes what it SAYS as the show nears,
   never where it sits — users build spatial familiarity. */
.context-strip {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--muted);
    border-radius: 8px; padding: .6rem .9rem; margin-bottom: 1.2rem;
    font-size: .92rem;
}
.ctx-soon  { border-left-color: var(--warn-border); background: var(--warn-bg); color: #7a5300; }
.ctx-today { border-left-color: var(--danger); background: #fdecec; color: #8c1d17; font-weight: 550; }
.ctx-past  { color: var(--muted); }

/* Four cards in fixed positions. Needs Attention spans the top because it is
   the one thing that must never be hunted for. */
.overview {
    display: grid; gap: .9rem; margin-bottom: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ov-attention { grid-column: 1 / -1; }
.ov-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem;
}
.ov-card h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
              color: var(--muted); margin: 0 0 .6rem; }

.attention-list { list-style: none; margin: 0; padding: 0; }
.attention {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.attention:last-child { border-bottom: 0; }
.attention a { white-space: nowrap; font-size: .85rem; }
/* Urgent is reserved for things that hurt on the night. Colour everything and
   nothing is urgent. */
.attention.urgent  { color: #8c1d17; font-weight: 550; }
.attention.info    { color: var(--muted); }

.readiness, .upcoming { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.readiness li, .upcoming li {
    display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
    padding: .3rem 0; border-bottom: 1px solid var(--border);
}
.readiness li:last-child, .upcoming li:last-child { border-bottom: 0; }
.ready-done { color: var(--notice); font-weight: 550; font-variant-numeric: tabular-nums; }
.ready-part { color: var(--muted); font-variant-numeric: tabular-nums; }
.ready-late { color: var(--danger); font-weight: 550; }

.upcoming li { justify-content: flex-start; }
.up-when { min-width: 5.5rem; font-size: .85rem; display: flex; flex-direction: column; }
.up-what { flex: 1; display: flex; flex-direction: column; }
.up-what .muted { font-size: .8rem; }

.snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); gap: .75rem; }
.snapshot > div { display: flex; flex-direction: column; }

.upload-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; margin-bottom: 1.2rem;
}
.upload-card input[type=file] { margin-top: .3rem; font-size: .9rem; }
