/* Command Center components. Built from the Verse of the Day tool's component
   rules (buttons, inputs, filter toggles, segmented control, sheet, notes,
   toast, day cells) so the two read as siblings. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -40px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 8px 12px; border-radius: var(--r); }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.nav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--paper-sunk); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.nav-head { padding: 22px 20px 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--yellow); line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.brand-sub { margin-top: 2px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.nav-search {
  margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; background: var(--paper); border: 1px solid var(--line-firm); border-radius: var(--r);
  color: var(--ink-muted); font-size: 12.5px;
}
.nav-search:hover { border-color: var(--ink); color: var(--ink); }
kbd {
  font-family: var(--sans); font-size: 11px; padding: 1px 6px; white-space: nowrap;
  background: var(--paper); border: 1px solid var(--line-firm); border-bottom-width: 2px; border-radius: 4px; color: var(--ink-soft);
}
.nav-list { list-style: none; margin: 0; padding: 12px 10px; display: grid; gap: 1px; }
.nav-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: var(--r); text-decoration: none;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
}
.nav-list a:hover { background: var(--hover); color: var(--ink); }
.nav-list a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-firm); }
.nav-count { font-size: 11px; letter-spacing: 0; color: var(--ink-muted); font-weight: 400; }
.nav-count[data-tone="alert"] { color: var(--cherry); font-weight: 600; }
.nav-group { padding: 4px 20px 2px; margin-top: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.nav-sub a { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; }
.nav-foot { margin-top: auto; padding: 12px 10px 16px; border-top: 1px solid var(--line); }

.main { min-width: 0; }
.page { padding: 26px 34px 80px; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .titles { flex: 1; min-width: 240px; }
.crumbs { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
h1.title { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
.subtitle { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

h2.section { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 12px; }
h3.label, .label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
  margin: 0 0 8px; font-weight: 500;
}

/* ── Buttons (VOTD .nav-btn / .savebar button / .primary / .link) ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border: 1px solid var(--line-firm); border-radius: var(--r);
  background: var(--paper); font-size: 12.5px; color: var(--ink-soft); text-decoration: none;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ivory); font-weight: 500; }
.btn.primary:hover { background: #000; color: #fff; }
.btn.link { border: none; background: none; padding: 6px 4px; color: var(--ink-muted); text-decoration: underline; }
.btn.link:hover { color: var(--ink); }
.btn.danger { color: var(--cherry); }
.btn.danger:hover { border-color: var(--cherry); }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: default; pointer-events: none; }

/* ── Inputs (VOTD .search / .ref-input) ─────────────────────────────────── */
.input, .select, .textarea {
  width: 100%; padding: 8px 10px; background: var(--paper);
  border: 1px solid var(--line-firm); border-radius: var(--r); outline: none; font-size: 13.5px;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: #A39A8D; }
.textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.textarea.serif, .input.serif { font-family: var(--serif); font-size: 16px; }
.input.big { font-family: var(--serif); font-size: 21px; font-weight: 500; padding: 11px 14px; }
.select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 160px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); }
.check input { width: 15px; height: 15px; accent-color: var(--ink); }
.help { font-size: 12px; color: var(--ink-muted); margin-top: 5px; }

/* ── Filter toggles (VOTD .filters) + segmented (VOTD .seg) ─────────────── */
.filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filters button {
  padding: 5px 10px; font-size: 12px; color: var(--ink-soft);
  border: 1px solid transparent; border-radius: var(--r);
}
.filters button:hover { background: var(--hover); }
.filters button[aria-pressed="true"] { background: var(--paper); border-color: var(--line-firm); color: var(--ink); font-weight: 500; }
.filters button .n { color: var(--ink-muted); margin-left: 4px; font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--line-firm); border-radius: var(--r); overflow: hidden; }
.seg button { padding: 5px 12px; font-size: 12px; color: var(--ink-soft); background: var(--paper); }
.seg button + button { border-left: 1px solid var(--line-firm); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }

/* ── Panels — flat, bordered, small radius (no giant rounded cards) ──────── */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.panel.flush { padding: 0; }
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head .spacer { flex: 1; }
.panel-head a, .panel-head .btn.link { font-size: 12px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.dash { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .grid.dash, .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .grid.two { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; align-content: start; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* Numbers — VOTD .progress-count / .qa-summary b */
.stat { display: grid; gap: 2px; }
.stat b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.stat small { font-size: 12px; color: var(--ink-muted); }
.stat .delta { font-size: 12px; color: var(--ink-soft); }
.stat .delta[data-dir="up"] { color: var(--ok-text); }
.stat .delta[data-dir="down"] { color: var(--cherry); }
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.big-number { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.big-number small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-muted); }

.bar { height: 5px; background: var(--track); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .35s ease; }
.bar.stacked { display: flex; }
.bar.stacked > i { border-radius: 0; }
.bar > i.ok { background: var(--ok); } .bar > i.warn { background: var(--warn); } .bar > i.err { background: var(--cherry); } .bar > i.idle { background: var(--line-firm); }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.spark i { flex: 1; background: var(--line-firm); min-height: 1px; border-radius: 1px 1px 0 0; }
.spark i.on { background: var(--ink-soft); }

/* Metric rows — Production Health */
.metric { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(80px, 2fr) auto; gap: 14px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.metric:last-child { border-bottom: none; }
a.metric:hover { background: var(--hover); }
.metric .name { font-size: 13.5px; }
.metric .val { font-size: 12.5px; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.metric .val b { color: var(--ink); font-weight: 600; }

/* ── Attention list (VOTD .qa-group / .qa-dot) ──────────────────────────── */
.attn { list-style: none; margin: 0; padding: 0; }
.attn li { border-bottom: 1px solid var(--line); }
.attn li:last-child { border-bottom: none; }
.attn a { display: flex; align-items: baseline; gap: 10px; padding: 9px 4px; text-decoration: none; }
.attn a:hover { background: var(--hover); }
.attn .text { flex: 1; font-size: 13.5px; }
.attn .area { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 99px; flex: none; transform: translateY(-1px); background: var(--line-firm); }
.dot[data-sev="high"], .dot[data-sev="error"] { background: var(--cherry); }
.dot[data-sev="medium"], .dot[data-sev="warn"] { background: var(--warn); }
.dot[data-sev="low"], .dot[data-sev="info"] { background: var(--line-firm); }
.dot[data-sev="ok"] { background: var(--ok); }

/* ── Status chips (VOTD .qa-date / .vu-ref chips) ───────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; font-size: 11.5px; line-height: 18px;
  border: 1px solid var(--line-firm); border-radius: var(--r); background: var(--paper); color: var(--ink-soft); white-space: nowrap;
}
.chip[data-tone="ok"] { color: var(--ok-text); border-color: #CBD5BC; background: #F4F7EE; }
.chip[data-tone="warn"] { color: var(--warn-text); border-color: var(--warn-line); background: var(--warn-bg); }
.chip[data-tone="err"] { color: var(--cherry); border-color: var(--err-line); background: var(--err-bg); }
.chip[data-tone="ink"] { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.chip[data-tone="gold"] { background: var(--yellow-pale); border-color: #EBDCA4; color: var(--ink); }

/* Completeness marks in the inventory table */
.mark { display: inline-block; min-width: 22px; text-align: center; font-size: 12.5px; }
.mark[data-v="yes"] { color: var(--ok); font-weight: 600; }
.mark[data-v="no"] { color: var(--cherry); }
.mark[data-v="part"] { color: var(--warn-text); font-weight: 500; }
.mark[data-v="na"] { color: var(--line-firm); }

/* ── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  position: sticky; top: 0; z-index: 1; background: var(--paper-sunk); text-align: left; font-weight: 500;
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted);
  padding: 8px 10px; border-bottom: 1px solid var(--line-firm); white-space: nowrap;
}
table.data th.c, table.data td.c { text-align: center; }
table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #FAF6EE; }
table.data .rowbtn { text-align: left; width: 100%; font-weight: 500; }
table.data .rowbtn:hover { text-decoration: underline; }
table.data .sub { display: block; font-size: 11.5px; color: var(--ink-muted); font-weight: 400; }
.table-foot { display: flex; align-items: center; gap: 12px; padding: 10px 2px; font-size: 12.5px; color: var(--ink-muted); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; }
.toolbar .grow { flex: 1; min-width: 200px; }

/* ── Notes (VOTD .note) and empty / not-tracked states ──────────────────── */
.note { display: flex; gap: 9px; padding: 9px 12px; border-radius: var(--r); font-size: 12.5px; line-height: 1.45; border: 1px solid var(--line); background: var(--paper); }
.note[data-level="warn"] { background: var(--warn-bg); border-color: var(--warn-line); }
.note[data-level="error"] { background: var(--err-bg); border-color: var(--err-line); }
.empty { padding: 26px 8px; text-align: center; color: var(--ink-muted); font-family: var(--serif); font-size: 16px; }
.empty p { font-family: var(--sans); font-size: 13px; margin: 6px 0 0; }
.untracked { display: grid; gap: 3px; padding: 10px 12px; border: 1px dashed var(--line-firm); border-radius: var(--r); background: transparent; }
.untracked b { font-size: 12.5px; font-weight: 600; }
.untracked span { font-size: 12px; color: var(--ink-muted); }
.untracked .tag { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.soft { color: var(--ink-soft); }
.small { font-size: 12px; }
.serif { font-family: var(--serif); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.spacer { flex: 1; }
.loading { padding: 40px 0; color: var(--ink-muted); font-family: var(--serif); font-size: 16px; }

/* ── Lists ─────────────────────────────────────────────────────────────── */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: baseline; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: none; }
.list .grow { flex: 1; min-width: 0; }
.list a { text-decoration: none; } .list a:hover { text-decoration: underline; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tasks */
.task { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: none; }
.task input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.task .t { flex: 1; font-size: 13.5px; min-width: 0; }
.task[data-done="true"] .t { color: var(--ink-muted); text-decoration: line-through; }
.task .due { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.task .due[data-late="true"] { color: var(--cherry); }
.task .x { color: var(--ink-faint); padding: 0 4px; font-size: 15px; }
.task .x:hover { color: var(--cherry); }
.quick { display: flex; gap: 8px; margin-top: 10px; }
.quick .input { flex: 1; }
.quick .input[type=date] { flex: none; width: 150px; }

/* ── Studio board ──────────────────────────────────────────────────────── */
.capture { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 18px; }
.capture .textarea { min-height: 46px; height: 46px; font-family: var(--serif); font-size: 16px; }
.capture .textarea:focus { height: 110px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--paper-sunk); border: 1px solid var(--line); border-radius: var(--r); min-height: 140px; display: flex; flex-direction: column; }
.col[data-drop="true"] { border-color: var(--ink); background: var(--hover); }
.col-head { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px 8px; }
.col-head h3 { margin: 0; font-family: var(--serif); font-size: 14.5px; font-weight: 500; flex: 1; }
.col-head .n { font-size: 11.5px; color: var(--ink-muted); }
.col-body { padding: 0 8px 10px; display: grid; gap: 6px; }
.card {
  display: block; text-align: left; width: 100%; background: var(--paper); border: 1px solid var(--line-firm);
  border-radius: var(--r); padding: 9px 10px; text-decoration: none; cursor: grab;
}
.card:hover { border-color: var(--ink); }
.card[aria-grabbed="true"] { opacity: .5; }
.card .ct { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.card .cm { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 11.5px; color: var(--ink-muted); }
.card .idea { font-family: var(--serif); font-size: 13px; color: var(--ink-soft); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Drawer & sheet (VOTD .overlay / .sheet) ───────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--scrim); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 61;
  background: var(--ivory); border-left: 1px solid var(--line-firm); box-shadow: var(--shadow-sheet);
  display: flex; flex-direction: column;
}
.sheet {
  position: fixed; z-index: 61; left: 50%; top: 8vh; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); max-height: 84vh;
  display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line-firm); border-radius: var(--r-sheet); box-shadow: var(--shadow-sheet);
}
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0; flex: 1; line-height: 1.25; }
.sheet-body { overflow-y: auto; padding: 18px 20px 26px; }
.sheet-foot { display: flex; gap: 8px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(251,248,242,.94); }
.close { font-size: 20px; line-height: 1; color: var(--ink-muted); padding: 4px 8px; }
.close:hover { color: var(--ink); }

/* Search palette */
.palette .input { font-family: var(--serif); font-size: 18px; border: none; background: transparent; padding: 4px 0; }
.palette .input:focus { border: none; }
.results { list-style: none; margin: 0; padding: 0; }
.results a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--r); text-decoration: none; }
.results a:hover, .results a[aria-selected="true"] { background: var(--hover); }
.results .area { width: 120px; flex: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.results .r-sub { color: var(--ink-muted); font-size: 12px; margin-left: auto; white-space: nowrap; }

/* Toast (VOTD) */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--ivory); padding: 9px 16px; border-radius: 99px;
  font-size: 12.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[data-tone="err"] { background: var(--cherry); }

/* ── Calendar ──────────────────────────────────────────────────────────── */
.year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ym { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 170px; }
.ym h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 600; display: flex; align-items: baseline; }
.ym h3 a { text-decoration: none; flex: 1; } .ym h3 a:hover { text-decoration: underline; }
.ym .theme { text-decoration: none; font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; }
.ym .ev { display: flex; gap: 6px; align-items: baseline; font-size: 12px; line-height: 1.35; text-decoration: none; }
.ym .ev:hover .evt { text-decoration: underline; }
.ym .ev .d { color: var(--ink-muted); width: 20px; flex: none; text-align: right; }
.ym[data-current="true"] { border-color: var(--ink); }
.ym .more { font-size: 11.5px; color: var(--ink-muted); }
.k { width: 7px; height: 7px; border-radius: 2px; flex: none; transform: translateY(-1px); background: var(--line-firm); }
.k[data-kind="theme"] { background: var(--yellow); }
.k[data-kind="season"] { background: #D9C48A; }
.k[data-kind="moment"] { background: var(--ink); border-radius: 99px; }
.k[data-kind="campaign"], .k[data-kind="launch"] { background: var(--cherry); }
.k[data-kind="deadline"] { background: var(--warn); }
.k[data-kind="publication"] { background: var(--ok); }
.k[data-kind="push"] { background: #8E7CB0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); gap: 1px; }
.month-grid .dow { background: var(--paper-sunk); padding: 6px 8px; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.month-grid .cell { background: var(--paper); min-height: 108px; padding: 6px 7px; display: flex; flex-direction: column; gap: 3px; }
.month-grid .cell[data-out="true"] { background: var(--ivory); }
.month-grid .cell[data-out="true"] .num { color: var(--ink-faint); }
.month-grid .cell[data-today="true"] .num { background: var(--ink); color: var(--ivory); border-radius: 99px; padding: 0 6px; }
.month-grid .num { font-size: 12px; color: var(--ink-soft); align-self: flex-start; }
.month-grid .ev { display: flex; gap: 5px; align-items: baseline; font-size: 11.5px; line-height: 1.3; text-decoration: none; text-align: left; }
.month-grid .ev:hover { text-decoration: underline; }
.month-grid .add { margin-top: auto; align-self: flex-end; font-size: 12px; color: var(--ink-faint); opacity: 0; }
.month-grid .cell:hover .add, .month-grid .add:focus-visible { opacity: 1; }
.bands { display: grid; gap: 4px; margin-bottom: 12px; }
.band { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: var(--r); background: var(--yellow-pale); font-size: 12.5px; text-decoration: none; }
.band[data-kind="season"] { background: #F3ECD6; }
.band[data-kind="campaign"] { background: var(--err-bg); }
.band b { font-weight: 600; }
.quarter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .quarter { grid-template-columns: 1fr; } }

/* ── Verse of the Day mirror (VOTD .days / .day) ──────────────────────── */
.months-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mini-month h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 14.5px; font-weight: 500; display: flex; }
.mini-month h4 span { margin-left: auto; font-family: var(--sans); font-size: 11px; color: var(--ink-muted); font-weight: 400; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.day {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; color: var(--ink-soft); border-radius: var(--r); border: 1px solid transparent; padding-bottom: 5px;
}
.day::before { content: '·'; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); font-size: 10px; line-height: 1; color: var(--ink-faint); opacity: .45; }
.day[data-complete="true"] { color: var(--ink); font-weight: 600; background: var(--yellow-pale); }
.day[data-complete="true"]::before { content: '✓'; font-size: 6.5px; bottom: 2px; opacity: 1; color: var(--ok); }
.day[data-fav="true"]::after { content: '♥'; position: absolute; top: -1px; right: 1px; font-size: 8px; color: var(--cherry); }
.day[data-hit="true"] { border-color: var(--ink); }

/* Verse Clock slot list (dense by design) */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; }
.slot { display: flex; gap: 8px; align-items: baseline; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: 12.5px; }
.slot .tm { width: 66px; flex: none; color: var(--ink-muted); }
.slot .rf { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Login ─────────────────────────────────────────────────────────────── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login form { width: min(380px, 100%); }
.login .brand { margin-bottom: 4px; }
.login h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 18px 0 18px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .nav { position: fixed; z-index: 70; left: 0; width: min(280px, 85vw); transform: translateX(-100%); transition: transform .2s; }
  .nav[data-open="true"] { transform: none; box-shadow: var(--shadow-sheet); }
  .menu-btn { display: inline-flex; position: sticky; top: 0; z-index: 5; margin: 10px 16px 0; }
  .page { padding: 14px 16px 60px; }
  h1.title { font-size: 28px; }
  .metric { grid-template-columns: 1fr auto; } .metric .bar { grid-column: 1 / -1; }
}
.seg { max-width: 100%; overflow-x: auto; }
.seg button, .seg a { white-space: nowrap; }
