/* ANY / ALL OS prototype v2. Brand tokens from 02 Visual Identity Guidelines (via CLAUDE.md).
   Readability changes for an internal tool: Clash Display at 600 with extra word spacing for page and
   section headings (its default word space runs words together); Inter for card and item titles. */
:root {
  --ink: #121212; --paper: #F4F4F1; --white: #FFFFFF; --body: #565653; --muted: #777773; --on-ink: #C8C8C3;
  --line: #D6D6D1; --sage: #DDE6DF; --sage-text: #4F564F; --badge: #E2E2DC; --orange: #FF4D2E;
  --music: #FF3D8B; --sport: #1F5BFF; --food: #9B7BFF; --arts: #00B3A4; --family: #FFC800;
  --display: "Clash Display", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px; --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }
code { font-family: var(--mono); font-size: .86em; background: var(--badge); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.block { display: block; }
body.no-explain .explain { display: none; }
.explain { font-size: 13.5px; color: var(--muted); margin: 6px 0 14px; line-height: 1.5; max-width: 72ch; }
.tile .explain { margin: 10px 0 0; font-size: 12.5px; }

/* ---------- Shell ---------- */
.proto-strip { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--on-ink); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 7px 16px; text-align: center; }
.proto-strip b { color: var(--orange); font-weight: 600; }
.proto-strip .short { display: none; }
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: calc(100vh - 31px); }
.side { background: var(--ink); color: var(--on-ink); padding: 24px 16px 20px; position: sticky; top: 31px; height: calc(100vh - 31px); display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.side .brand { display: block; padding: 0 6px; text-decoration: none; }
.side .brand img { width: 172px; display: block; margin-left: -18px; }
.side .brand small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); margin-top: -2px; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 14px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-h { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6d6d69; padding: 0 12px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--on-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { background: #1e1e1e; color: var(--white); }
.nav a[aria-current="page"] { background: #262626; color: var(--white); }
.nav .slash { width: 13px; height: 16px; flex: none; }
.nav .slash path { fill: transparent; }
.nav a[aria-current="page"] .slash path { fill: var(--orange); }
.nav .count { margin-left: auto; font-family: var(--mono); font-size: 11px; background: var(--orange); color: var(--ink); border-radius: 99px; padding: 1px 8px; font-weight: 600; }
.nav .key { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: #5d5d5a; }
.nav .count + .key { margin-left: 8px; }
.side-box { border: 1px solid #2c2c2c; border-radius: var(--radius); padding: 14px; }
.side-box .big { font-family: var(--display); font-weight: 600; font-size: 34px; color: var(--white); line-height: 1; }
.side-box .lbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); margin-bottom: 6px; }
.side-box p { margin: 6px 0 0; font-size: 13px; }
.side .spacer { flex: 1; }
.side .sim { font-size: 12.5px; }
.side .sim button { margin-top: 8px; background: none; border: 1px solid #3a3a3a; color: var(--white); border-radius: 99px; min-height: 36px; padding: 0 14px; font-size: 13px; }
.side .sim button:hover { border-color: var(--on-ink); }
main { min-width: 0; padding: 40px 48px 96px; max-width: 1400px; width: 100%; outline: none; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .05em; word-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.eyebrow::before { content: ""; width: 11px; height: 14px; background: var(--orange); clip-path: polygon(64.2% 0, 100% 0, 35.8% 100%, 0 100%); flex: none; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; word-spacing: .12em; margin: 0; line-height: 1.12; }
h1 { font-size: 40px; margin-top: 12px; }
h2 { font-size: 21px; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 16.5px; line-height: 1.35; margin: 0; letter-spacing: -.005em; }
.intro { color: var(--body); font-size: 17px; line-height: 1.55; margin: 12px 0 0; max-width: 68ch; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin-bottom: 32px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.evid { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }
.foot-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 18px; }
.hint, .hint-line { color: var(--muted); font-size: 13px; }
.hint-line { margin: 12px 2px; }

/* ---------- Buttons and inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: #2a2a2a; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--white); }
.btn.quiet { border-color: var(--line); background: var(--white); color: var(--ink); font-weight: 500; }
.btn.quiet:hover { border-color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.on-dark { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); display: inline-grid; place-items: center; font-size: 15px; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.linkish { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.linkish:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.small-link { font-size: 13px; display: inline-block; margin-top: 4px; }
.text-input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--white); resize: vertical; line-height: 1.45; }
.text-input:focus, .select:focus { outline: none; border-color: var(--ink); }
.select { min-height: 44px; border: 1px solid var(--line); border-radius: 99px; padding: 0 36px 0 16px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23121212' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; -webkit-appearance: none; font-size: 14px; max-width: 100%; }
.select.wide { width: 100%; border-radius: 10px; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 99px; padding: 0 16px 0 40px; background: var(--white); }
.search input:focus { outline: none; border-color: var(--ink); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 14px; font-weight: 500; white-space: nowrap; }
.toggle.small { min-height: 36px; font-size: 13px; }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.seg { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 99px; min-height: 34px; padding: 0 13px; font-size: 13px; font-weight: 500; color: var(--body); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.check-line { display: flex; gap: 10px; align-items: center; min-height: 40px; font-size: 14.5px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check-line.muted { color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 22px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; min-height: 44px; font-weight: 500; color: var(--body); white-space: nowrap; font-size: 14.5px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); font-weight: 600; }
.tcount { font-family: var(--mono); font-size: 11px; background: var(--badge); border-radius: 99px; padding: 1px 7px; margin-left: 4px; color: var(--ink); }
.view-switch { margin-top: 32px; }
.view-switch .tabs { margin-bottom: 4px; width: 100%; }

/* ---------- Cards, sections ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 22px 24px; }
.section { margin-top: 48px; }
.section.first { margin-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.section-head + .card, .section-head + .filters { margin-top: 14px; }
.grid-today { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 40px; align-items: start; }
.note-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--body); margin-bottom: 14px; }
.note-bar b { color: var(--ink); }
.note-bar.ok { border-left-color: var(--sage-text); background: #F7FAF8; }
.empty { text-align: center; padding: 48px 20px; color: var(--body); }
.empty.slim { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { margin-bottom: 6px; color: var(--ink); }

/* ---------- Tiles ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.tile.ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tile-link { all: unset; display: flex; flex-direction: column; cursor: pointer; width: 100%; }
.tile-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.tile .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; }
.tile.ink .lbl { color: var(--orange); }
.tile .val { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.05; margin-top: 8px; display: block; overflow-wrap: anywhere; }
.tile .val small { font-size: 19px; color: var(--muted); }
.tile .val-name { font-size: 22px; line-height: 1.2; word-spacing: .1em; }
.tile .sub { font-size: 13.5px; color: var(--body); margin-top: 6px; display: block; }
.tile.ink .sub, .tile.ink .explain { color: var(--on-ink); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 3px 7px; line-height: 1.35; white-space: nowrap; border: 1px solid transparent; }
.dt-Consequence { background: var(--ink); color: var(--orange); font-weight: 600; }
.dt-Fixed { border-color: var(--ink); color: var(--ink); background: transparent; }
.dt-Commitment { background: var(--sage); color: var(--sage-text); }
.dt-Target { background: var(--badge); color: var(--body); }
.st { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 12.5px; border-radius: 99px; padding: 2px 10px; font-weight: 500; }
.st-To-do { border-color: var(--line); background: var(--white); }
.st-Doing { background: var(--ink); color: var(--white); }
.st-Waiting { background: var(--sage); color: var(--sage-text); }
.st-Done { background: var(--badge); color: var(--muted); text-decoration: line-through; }
.st-Parked { color: var(--muted); border-color: var(--line); border-style: dashed; }
.pr { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 3px 7px; white-space: nowrap; }
.pr-Now { background: var(--ink); color: var(--white); }
.pr-Next { border: 1px solid var(--ink); }
.pr-Later { color: var(--muted); border: 1px solid var(--line); }
/* Coverage tags in the Event Master's own words (D361), with the same fill and outline as the calendar's bars (D363):
   colour still means category, and the fill and outline show the coverage. Text on a category fill is Ink, White on Sport. */
.cov { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 3px 7px; line-height: 1.35; white-space: nowrap; border: 1.5px solid transparent; background: var(--c); color: var(--ink); }
.cov.sport { color: var(--white); }
.cov.cov-Committed { border-color: var(--ink); font-weight: 700; }
.cov.cov-Watching { background: var(--white); border-color: var(--c); color: var(--ink); }
.cov.cov-none { background: color-mix(in srgb, var(--c) 28%, var(--white)); color: var(--body); }
.cov.cov-Dropped { opacity: .45; text-decoration: line-through; }
.pub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--body); display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.ico-lock { width: 10px; height: 12px; flex: none; }
.sim-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--orange); border-radius: 3px; padding: 2px 6px; white-space: nowrap; vertical-align: middle; }
.label3 { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; }
.l-confirmed { background: var(--badge); }
.l-inferred { border: 1px dashed var(--muted); color: var(--body); }
.l-needs { background: var(--ink); color: var(--white); }
.overdue-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--white); background: var(--ink); padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.slipped-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.astatus { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; border-radius: 99px; padding: 3px 9px; white-space: nowrap; font-weight: 600; border: 1px solid transparent; }
.as-New { background: var(--orange); color: var(--ink); }
.as-Acknowledged { border-color: var(--ink); color: var(--ink); background: var(--white); }
.as-In-progress { background: var(--ink); color: var(--white); }
.as-Resolved { background: var(--sage); color: var(--sage-text); }
.as-Dismissed { background: var(--badge); color: var(--muted); }
.pst-Planned { background: var(--badge); color: var(--body); }
.pst-Drafted { border-color: var(--ink); color: var(--ink); }
.pst-Approved { background: var(--sage); color: var(--sage-text); }
.pst-Scheduled { background: var(--ink); color: var(--white); }
.pst-Posted { background: var(--ink); color: var(--orange); }
.pst-Dropped { border: 1px dashed var(--muted); color: var(--muted); }

/* ---------- Recommendations ---------- */
.recs { overflow: hidden; }
.rec { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: 0; }
.rec .num { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; }
.rec .rule { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.why-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--body); }
.rec h3 { font-size: 18px; line-height: 1.3; }
.reason, .d-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 14px; font-size: 14.5px; color: var(--body); }
.reason b, .kv-l { display: block; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.d-grid2 p { margin: 0; }
.next { margin: 14px 0 0; font-size: 14.5px; }
.next b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; margin-right: 8px; }
.source { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }
.rec-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.rec-acts .reorder { margin-left: auto; display: inline-flex; gap: 6px; }
.rec.accepted { background: #FAFAF8; }
.rec.accepted .num { color: var(--muted); }
.accepted-note { font-size: 13px; color: var(--sage-text); background: var(--sage); border-radius: 99px; padding: 6px 12px; font-weight: 500; }

/* ---------- Attention panel and lists ---------- */
.att { list-style: none; margin: 0; padding: 0; }
.att li + li { border-top: 1px solid var(--line); }
.att-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 48px minmax(0, 1fr) 16px; gap: 14px; align-items: start; padding: 16px 20px; width: 100%; }
.att-row:hover { background: #FAFAF8; }
.att-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.att-n { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; }
.att-n.zero { color: var(--line); }
.att-l { display: block; font-weight: 600; }
.att-s { display: block; font-size: 13.5px; color: var(--body); }
.att .explain { margin: 4px 0 0; }
.chev { color: var(--muted); font-size: 20px; line-height: 1; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list .item { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 14px 20px; width: 100%; text-align: left; background: none; border: 0; }
button.item:hover { background: #FAFAF8; }
.when { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--body); line-height: 1.35; }
.when strong { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink); }
.what { font-size: 14.5px; font-weight: 500; display: block; }
.what .sub { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; font-weight: 400; }
.ev-inline { display: inline-flex; gap: 8px; align-items: center; }
.mini-slash { width: 9px; height: 18px; flex: none; }
.plain { margin: 0; padding-left: 18px; }
.plain li { margin: 6px 0; }
.plain-list li { padding: 10px 0; }
.mini-list { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13.5px; display: grid; gap: 6px; }

/* ---------- Capture ---------- */
.capture textarea { width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--paper); font-size: 15px; }
.capture textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.capture .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Task table ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th button { all: unset; cursor: pointer; }
.table th button:hover { color: var(--ink); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table.static tbody tr { cursor: default; }
.table tbody tr:hover td { background: #FAFAF8; }
.table .title { font-weight: 500; }
.next-line { display: block; font-size: 13px; color: var(--body); margin-top: 3px; }
.table .id { font-family: var(--mono); font-size: 12px; color: var(--body); white-space: nowrap; }
.table .due { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.table select.inline { border: 1px solid transparent; background: transparent; border-radius: 99px; padding: 4px 8px; font-size: 13px; min-height: 32px; }
.table select.inline:hover, .table select.inline:focus { border-color: var(--line); background: var(--white); outline: none; }
.table tr.is-done .title { color: var(--muted); text-decoration: line-through; }
.c-tick { width: 44px; }
.tick { width: 26px; height: 26px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--white); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--white); flex: none; padding: 0; }
.tick:hover { background: var(--sage); }
.tick.on { background: var(--ink); }
.task-cards { display: none; }
.scroll-x { overflow-x: auto; }

/* ---------- Events ---------- */
.attn-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 22px; }
.attn { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: center; min-height: 68px; }
.attn:hover, .attn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.attn .n { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; }
.attn .t { font-size: 13.5px; color: var(--body); line-height: 1.35; }
.attn.hot .n { color: var(--orange); }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--c, var(--ink)); background: transparent; font-weight: 500; font-size: 14px; }
.cat-chip[aria-pressed="true"] { background: var(--c, var(--ink)); }
.cat-chip.all[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.cat-chip.sport[aria-pressed="true"] { color: var(--white); }
.ev-head, .ev-row { display: grid; grid-template-columns: 92px 26px minmax(0, 2.1fr) 128px minmax(0, 1fr) 150px minmax(0, .9fr) minmax(0, 1.3fr); gap: 16px; align-items: center; }
.ev-head { padding: 0 18px 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ev-list { border-top: 2px solid var(--ink); }
.ev-row { padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; text-align: left; }
.ev-row:hover { background: var(--white); }
.ev-row .date { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1; white-space: nowrap; }
.ev-row .date small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .06em; margin-top: 6px; }
.ev-slash { width: 35px; height: 44px; }
.ev-row .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .01em; word-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.ev-row .venue { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--body); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-row .type { font-size: 13px; color: var(--body); }
.ev-row .type .cat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin-right: 4px; }
.ev-row .type .cat i { width: 9px; height: 9px; background: var(--c); display: inline-block; }
.ev-row .rev { font-size: 13.5px; }
.ev-row .rev .cc { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: block; margin-top: 3px; }
.ev-row .rev .cc.ok { color: var(--sage-text); }
.ev-row .flag { font-size: 13px; line-height: 1.35; color: var(--body); display: flex; gap: 8px; align-items: flex-start; }
.ev-row .flag .mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--ink); color: var(--orange); font-weight: 700; font-size: 13px; flex: none; }
.ev-row .flag.ready .mark { background: var(--sage); color: var(--sage-text); }
.month-h { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 22px; word-spacing: .12em; margin: 34px 0 12px; }
.month-h::before { content: ""; width: 19px; height: 24px; background: var(--orange); clip-path: polygon(64.2% 0, 100% 0, 35.8% 100%, 0 100%); }
@media (min-width: 1181px) { .ev-row .more { display: contents; } }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(18,18,18,.38); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .15s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--paper); z-index: 61; transform: translateX(102%); transition: transform .18s ease-out; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.12); }
.drawer.open { transform: none; }
.d-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--white); }
.d-body { overflow-y: auto; padding: 26px 28px 56px; flex: 1; }
.d-title { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 10px 0 4px; line-height: 1.15; word-spacing: .12em; }
.d-actions { margin-top: 18px; }
.d-section { margin-top: 30px; }
.d-section.first { margin-top: 0; }
.d-section > h3 { margin-bottom: 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.d-section.links { display: flex; gap: 8px; flex-wrap: wrap; }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 14px 16px; margin-top: 20px; font-size: 15px; }
.callout-l { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--body); margin-bottom: 4px; }
/* A box's controls sit on their own line under its text: a short label, the dropdown, then the button */
.box-t { margin: 0; }
.box-acts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 12px; }
.box-f { display: flex; flex-direction: column; gap: 4px; flex: 0 1 380px; min-width: min(100%, 220px); }
.box-f .select { width: 100%; }
.box-f .kv-l { margin-bottom: 0; }
.note-bar.stack { display: block; }
.note-bar.stack > span { display: block; }
.source-box { background: var(--white); border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--body); }
.source-box p { margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14.5px; margin: 0; }
.kv dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; }
.kv.compact { grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 13.5px; }
.dd-note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.band { position: relative; overflow: hidden; margin: -26px -28px 14px; padding: 28px 28px 24px; background: var(--c); color: var(--ink); min-height: 160px; }
.band.light { color: var(--white); }
.band .bslash { position: absolute; right: -6px; top: -10px; height: 200px; width: 158px; background: var(--ink); clip-path: polygon(64.2% 0, 100% 0, 35.8% 100%, 0 100%); }
.band > *:not(.bslash) { position: relative; max-width: 78%; }
.band .tag, .band .vline { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.band .vline { margin-top: 4px; }
.band h2 { font-size: 27px; margin: 8px 0 8px; }
.id-line { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.lifecycle, .stage-track { display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.lc { font-size: 12.5px; color: var(--muted); padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.lc.done { color: var(--ink); }
.lc.cur { background: var(--ink); color: var(--white); font-weight: 600; }
.lc-sep { color: var(--line); font-family: var(--display); font-weight: 700; padding: 0 1px; }
.lc.drop { border: 1px dashed var(--muted); margin-left: 10px; }
.lc-label { margin-top: 10px; }
.two-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box { border-radius: var(--radius); padding: 18px; }
.box.private { background: var(--white); border: 1px solid var(--line); }
.box.public { background: var(--ink); color: var(--white); }
.box .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.box.public .lbl { color: var(--orange); }
.box .v { font-family: var(--display); font-weight: 600; font-size: 22px; word-spacing: .1em; }
.box p { margin: 10px 0 0; font-size: 13px; color: var(--body); }
.box.public p { color: var(--on-ink); }
.box.public .live b { color: var(--white); }
.cov-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cov-btns button { min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 500; }
.cov-btns button:hover { border-color: var(--ink); }
.cov-btns button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.flagbox { background: var(--ink); color: var(--white); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; font-size: 14px; }
.flagbox > b { color: var(--orange); font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.flagbox .opts { color: var(--on-ink); font-size: 13px; margin-top: 8px; }
.flagbox.ready { background: var(--sage); color: var(--ink); }
.flagbox.ready > b, .flagbox.ready .opts { color: var(--sage-text); }
.flagbox.info { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.flagbox.info > b { color: var(--muted); }
.flagbox.info .opts { color: var(--body); }
.cond, .res-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 14.5px; }
.cond .ev, .res-row .ev, .step-row .ev { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cstat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; border-radius: 99px; padding: 5px 11px; border: 1px solid var(--line); background: var(--white); min-height: 32px; white-space: nowrap; }
.cstat.satisfied { background: var(--sage); color: var(--sage-text); border-color: var(--sage); }
.cstat.open { color: var(--ink); border-color: var(--ink); }
.cstat.unknown { border-style: dashed; color: var(--muted); }
.placeholder-link { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--body); border: 1px dashed var(--line); border-radius: 99px; padding: 8px 14px; background: var(--white); min-height: 36px; }
.placeholder-link:hover { border-color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline.pad { margin: 18px 20px 18px 26px; }
.timeline li { position: relative; padding: 0 0 14px 16px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 99px; background: var(--ink); }
.t-at { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.t-who { font-family: var(--mono); font-size: 11px; color: var(--body); margin-right: 6px; }

/* ---------- People ---------- */
.avatar { width: 44px; height: 44px; border-radius: 99px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 19px; flex: none; }
.avatar.big { width: 64px; height: 64px; font-size: 28px; }
.avatar.ph { background: transparent; color: var(--muted); border: 1.5px dashed var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 32px; }
.person { padding: 22px; display: flex; flex-direction: column; }
.person.ph { background: #FBFBF9; border-style: dashed; }
.person-top, .person-head { display: flex; gap: 14px; align-items: center; }
.person-head { margin-bottom: 18px; align-items: flex-start; }
.person-top h3 { font-size: 17px; }
.person-top p { margin: 2px 0 0; }
.progress { height: 6px; background: var(--badge); border-radius: 3px; overflow: hidden; margin: 14px 0; }
.progress span { display: block; height: 100%; background: var(--ink); }
.person .btn-row { margin-top: auto; padding-top: 16px; }
.person-card, .pick-row { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.pc-main { flex: 1; min-width: 0; }
.pc-name { font-weight: 600; }
.pick { list-style: none; padding: 0; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.step-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.step-row .cstat { width: 100%; }
.mini-ev { display: flex; gap: 10px; align-items: center; width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; text-align: left; flex-wrap: wrap; }
.me-date { font-family: var(--mono); font-size: 11px; }
.me-name { flex: 1; font-weight: 500; min-width: 140px; }

/* ---------- Alerts ---------- */
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin-bottom: 24px; }
.leg { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--body); }
.leg .astatus { flex: none; }
.alerts { display: grid; gap: 14px; }
.alert-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.alert-card.is-new { border-left: 4px solid var(--orange); }
.ac-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ac-kind { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--body); }
.alert-card h3 { font-size: 18px; }
.ac-subj { margin: 6px 0 0; font-size: 14.5px; }
.alert-card .note-bar { margin: 14px 0 0; }
.earlier { margin-top: 14px; }
.earlier summary { cursor: pointer; font-size: 13px; color: var(--body); min-height: 32px; display: flex; align-items: center; }
.earlier .timeline { margin-top: 10px; }

/* ---------- Modal and fix flow ---------- */
.modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 80; background: rgba(18,18,18,.45); padding: 16px; overflow-y: auto; }
.modal.open { display: grid; }
.modal .card { width: min(540px, 100%); padding: 26px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal .card.wide { width: min(760px, 100%); }
.modal h2 { font-size: 22px; margin: 8px 0 10px; }
.modal p { color: var(--body); margin: 10px 0; font-size: 14.5px; }
.modal ul { margin: 8px 0; padding-left: 18px; font-size: 14px; color: var(--body); }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal .text-input { margin: 4px 0 8px; }
.modal .kv-l { margin-top: 12px; }
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 18px 0 20px; flex-wrap: wrap; }
.stepper li { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--paper); }
.stepper li span { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }
.stepper li.cur { color: var(--ink); font-weight: 600; }
.stepper li.cur span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stepper li.done span { background: var(--sage); border-color: var(--sage); }
.cmp { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cmp td, .cmp th { font-size: 13.5px; cursor: default; }
.ok-mark { color: var(--sage-text); font-weight: 600; white-space: nowrap; }
.bad-mark { color: var(--ink); font-weight: 600; white-space: nowrap; }
.radio-list { display: grid; gap: 8px; margin: 12px 0; }
.radio { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.radio input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.quote { border-left: 3px solid var(--orange); padding-left: 12px; font-style: italic; }
.apply-log { font-family: var(--mono); font-size: 12.5px; padding-left: 20px; color: var(--body); }
.apply-log li { margin: 6px 0; }
.pkg { display: grid; gap: 2px; margin: 10px 0; }

/* ---------- Pipeline ---------- */
.stagebar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.stage-seg { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 78px; position: relative; display: flex; flex-direction: column; }
.stage-seg:hover, .stage-seg[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stage-seg .n { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1; }
.stage-seg .t { font-size: 13px; color: var(--body); margin-top: 6px; }
.stage-seg .bn { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; background: var(--ink); color: var(--orange); border-radius: 3px; padding: 2px 5px; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.pcard-top { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; }
.pcard-top .cbar { background: var(--c); }
.pcard-main { padding: 18px 20px; min-width: 0; }
.pcard-main h3 { font-size: 17px; }
.pcard-main .vline { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--body); margin-top: 6px; }
.pcard-side { padding: 18px 20px; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.track .step { height: 6px; border-radius: 3px; background: var(--badge); }
.track .step.done { background: var(--ink); }
.track .step.cur { background: repeating-linear-gradient(-63deg, var(--ink) 0 4px, var(--badge) 4px 8px); }
.track-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.track-labels .cur { color: var(--ink); font-weight: 600; }
.pcard-body { border-top: 1px solid var(--line); padding: 16px 20px 18px; background: #FBFBF9; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.checks.single { grid-template-columns: 1fr; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; padding: 7px 0; min-height: 34px; }
.checks input { width: 18px; height: 18px; accent-color: var(--ink); margin: 1px 0 0; flex: none; }
.checks .you { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; background: var(--ink); color: var(--white); border-radius: 3px; padding: 1px 5px; margin-left: 6px; white-space: nowrap; }
.checks .opt { color: var(--muted); font-size: 12px; margin-left: 4px; }
.checks .is-done .txt { color: var(--muted); text-decoration: line-through; }
.pcard-actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.clock { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.clock.late { background: var(--ink); color: var(--orange); padding: 3px 7px; border-radius: 3px; }

/* ---------- Marketing ---------- */
.cal-head { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; flex-wrap: wrap; }
.cal-head h2 { min-width: 170px; text-align: center; }
.cal-head .hint { margin-left: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--white); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px; }
.cal-cell { background: var(--white); min-height: 118px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell.empty { background: #FAFAF8; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-cell.launch { background: #FFF6F3; }
.cal-cell.over { background: var(--sage); }
.cal-d { font-family: var(--display); font-weight: 600; font-size: 15px; }
.cal-flag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; background: var(--orange); color: var(--ink); border-radius: 3px; padding: 1px 5px; font-weight: 600; vertical-align: middle; }
.post-chip { display: flex; flex-direction: column; text-align: left; background: var(--paper); border: 0; border-left: 4px solid var(--c); border-radius: 6px; padding: 5px 7px; font-size: 11.5px; line-height: 1.3; cursor: grab; min-width: 0; }
.post-chip:hover { background: var(--badge); }
.post-chip.dragging { opacity: .4; }
.post-chip.st-Approved, .post-chip.st-Scheduled, .post-chip.st-Posted { background: var(--sage); }
.pc-ch { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--body); }
.pc-f { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-s { font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; }
.cal-fallback { display: none; }
.post-list { overflow: hidden; }
.pl-day { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 14px 20px 8px; background: #FAFAF8; border-bottom: 1px solid var(--line); }
.pl-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 20px; border-bottom: 1px solid var(--line); width: 100%; }
.pl-row:hover { background: #FAFAF8; }
.pl-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.pl-ch { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; border-left: 4px solid var(--c); padding-left: 8px; }
.pl-f { display: block; font-weight: 600; }
.pl-why { display: block; font-size: 13px; color: var(--body); margin-top: 3px; }
.pl-next { display: block; font-size: 13.5px; margin-top: 6px; }
.pl-chips { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.move-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.move-row .text-input { width: auto; flex: 0 1 180px; }
.move-row .select { flex: 1 1 200px; }
.creative { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tpl { overflow: hidden; display: flex; flex-direction: column; }
.tpl-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tpl-body p { margin: 6px 0 0; font-size: 14px; }
.tpl-body .btn-row { margin-top: auto; padding-top: 12px; }
.tp { aspect-ratio: 4 / 3; position: relative; overflow: hidden; border-radius: 10px; font-family: var(--display); }
.tpl .tp { border-radius: 0; }
.tp-empty { background: var(--badge); display: grid; place-items: center; font-family: var(--sans); color: var(--muted); font-size: 13px; }
.tp-ink { background: var(--ink); color: var(--white); padding: 16px; }
.tp-ink b { position: absolute; left: 16px; bottom: 16px; font-size: 22px; font-weight: 600; word-spacing: .1em; }
.tp-slash2 { position: absolute; right: 22px; top: 18px; width: 35px; height: 44px; background: var(--orange); clip-path: polygon(64.2% 0, 100% 0, 35.8% 100%, 0 100%); }
.tp-eb { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--orange); }
.tp-card { display: grid; grid-template-columns: 62% 38%; grid-template-rows: 1fr 18%; background: var(--ink); }
.tp-panel { padding: 10px; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.tp-panel span { font-family: var(--mono); font-size: 8.5px; }
.tp-panel b { font-size: 15px; line-height: 1.05; font-weight: 600; word-spacing: .1em; max-width: 80%; }
.tp-photo { background: linear-gradient(135deg, #9a9a96, #4a4a47); margin-left: -12%; }
.tp-slash { display: none; }
.tp-strip { grid-column: 1 / -1; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; padding: 6px 10px; }
.tp-radar { background: var(--paper); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tp-row { display: grid; grid-template-columns: 44px 8px 1fr; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.tp-row b { font-size: 15px; font-weight: 600; }
.tp-row i { height: 18px; width: 14px; clip-path: polygon(64.2% 0, 100% 0, 35.8% 100%, 0 100%); }
.tp-row span { height: 8px; background: var(--ink); border-radius: 2px; width: 80%; }
.tp-sage, .tp-paper { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tp-sage { background: var(--sage); }
.tp-paper { background: var(--paper); border-bottom: 1px solid var(--line); }
.tp-sage .tp-eb, .tp-paper .tp-eb { color: var(--ink); }
.tp-sage b, .tp-paper b { font-size: 24px; font-weight: 600; }
.tp-line { height: 8px; background: rgba(18,18,18,.25); border-radius: 2px; }
.tp-line.short { width: 60%; }

/* ---------- Resources ---------- */
.res-list { overflow: hidden; }
.res-item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); width: 100%; }
.res-item:last-child { border-bottom: 0; }
.res-item:hover { background: #FAFAF8; }
.res-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ri-title { display: block; font-weight: 600; }
.ri-loc { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.ri-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 520px; }

/* ---------- Launch, decisions, agents ---------- */
.launch-hero { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 30px 34px; }
.launch-hero .eyebrow { color: var(--orange); }
.launch-hero .days { font-family: var(--display); font-weight: 600; font-size: 96px; line-height: .9; }
.launch-hero .days small { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; color: var(--orange); margin-top: 10px; }
.launch-hero p { color: var(--on-ink); margin: 12px 0 0; }
.five { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.five .s { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px; text-align: center; }
.five .s:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.five svg { width: 26px; height: 50px; }
.five .s span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--on-ink); line-height: 1.35; }
.gates { list-style: none; padding: 0; margin: 0; }
.gates li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.gates li:last-child { border-bottom: 0; }
.gstat { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.g-done { background: var(--ink); color: var(--white); }
.g-progress { border: 2px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.g-todo { border: 2px solid var(--ink); }
.g-launchday { border: 2px dashed var(--muted); }
.gl { font-weight: 600; }
.gd { font-size: 13.5px; color: var(--body); margin-top: 2px; }
.dec-row { display: grid; grid-template-columns: 64px 116px minmax(0, 1fr) 150px 110px; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; font-size: 14.5px; }
.dec-row:last-child { border-bottom: 0; }
.dn { font-family: var(--mono); font-weight: 600; }
.dd { font-family: var(--mono); font-size: 12px; color: var(--body); }
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.agent { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.agent-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.agent .state { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.agent .state.on { background: var(--sage); color: var(--sage-text); }
.agent .state.paused { background: var(--ink); color: var(--orange); }
.agent .needs { font-size: 13.5px; background: var(--paper); border-radius: 10px; padding: 12px 14px; margin-top: auto; }

/* ---------- Toast, skeleton ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(580px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--white); border-radius: 12px; padding: 13px 16px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: flex-start; pointer-events: auto; width: 100%; }
.toast .sim-tag { flex: none; margin-top: 2px; }
.toast button { margin-left: auto; background: none; border: 1px solid #444; color: var(--white); border-radius: 99px; padding: 4px 12px; font-size: 12.5px; flex: none; min-height: 32px; }
.skel { background: linear-gradient(90deg, #ebebe7 0%, #f6f6f3 50%, #ebebe7 100%); background-size: 200% 100%; animation: sk 1.1s infinite linear; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .drawer, .scrim { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-today { grid-template-columns: 1fr; gap: 0; }
  .ev-head { display: none; }
  .ev-row { grid-template-columns: 78px 22px minmax(0, 1fr) auto; grid-template-areas: "d s n c" "d s m m"; row-gap: 12px; }
  .ev-row .date { grid-area: d; align-self: start; }
  .ev-row .ev-slash { grid-area: s; align-self: start; }
  .ev-row .nm { grid-area: n; min-width: 0; }
  .ev-row .cv { grid-area: c; align-self: start; }
  .ev-row .more { grid-area: m; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
  .ev-row .type, .ev-row .pb, .ev-row .rev { display: contents; }
  .ev-row .flag { flex-basis: 100%; }
  .agent-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --side: 0px; }
  .proto-strip .long { display: none; } .proto-strip .short { display: inline; }
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 29px; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; z-index: 30; overflow-x: auto; overflow-y: hidden; }
  .side .brand img { width: 112px; margin-left: -12px; }
  .side .brand small, .side-box, .side .spacer, .side .sim, .nav-h, .nav .key, .nav .slash { display: none; }
  .nav, .nav-group { flex-direction: row; gap: 4px; }
  .nav a { min-height: 44px; padding: 0 12px; white-space: nowrap; font-size: 14px; }
  main { padding: 26px 16px 90px; }
  h1 { font-size: 32px; }
  .intro { font-size: 15.5px; }
  .section { margin-top: 40px; }
  .page-head { margin-bottom: 24px; }
  .rec { grid-template-columns: 28px minmax(0, 1fr); padding: 20px 16px; gap: 12px; }
  .rec .num { font-size: 22px; }
  .reason, .d-grid2 { grid-template-columns: 1fr; }
  .rec-acts .reorder { margin-left: 0; }
  .table-wrap { display: none; }
  .task-cards { display: block; }
  .tcard { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); }
  .tcard:last-child { border-bottom: 0; }
  .tcard .tick { width: 44px; height: 44px; margin: -8px -6px 0 -8px; border: 0; background: transparent; position: relative; color: var(--white); z-index: 0; }
  .tcard .tick::before { content: ""; position: absolute; inset: 8px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--white); z-index: -1; }
  .tcard .tick.on::before { background: var(--ink); }
  .tcard .tick:hover { background: transparent; }
  .tcard-main { all: unset; cursor: pointer; flex: 1; min-width: 0; }
  .tcard-main .title { font-weight: 500; display: block; }
  .tcard.is-done .title { text-decoration: line-through; color: var(--muted); }
  .t2 { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
  .stagebar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .checks { grid-template-columns: 1fr; }
  .two-box { grid-template-columns: 1fr; }
  .kv, .kv.compact { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .launch-hero { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
  .launch-hero .days { font-size: 72px; }
  .dec-row { grid-template-columns: 56px minmax(0, 1fr); }
  .dec-row .dd, .dec-row .da { display: none; }
  .dec-row .ds { grid-column: 2; }
  .drawer { width: 100vw; }
  .d-body { padding: 22px 18px 56px; }
  .band { margin: -22px -18px 14px; padding: 24px 18px 20px; }
  .search { max-width: none; }
  .pcard-top { grid-template-columns: 6px minmax(0, 1fr); }
  .pcard-side { grid-column: 2; text-align: left; align-items: flex-start; padding-top: 0; }
  .track-labels { display: none; }
  .cal, .cal-head { display: none; }
  .cal-fallback { display: block; }
  .pl-row { grid-template-columns: 1fr; gap: 8px; }
  .pl-chips { flex-direction: row; align-items: center; }
  .creative { grid-template-columns: 1fr; }
  .res-item { grid-template-columns: 1fr; }
  .ri-chips { justify-content: flex-start; }
  .step-row { grid-template-columns: 1fr; gap: 6px; }
  .step-row .cstat { width: auto; justify-self: start; }
  .people-grid { margin-top: 24px; }
  .seg button, .btn.small, .cov-btns button, .cstat, .placeholder-link, .cat-chip, .toggle.small { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .checks label { min-height: 44px; align-items: center; }
}
@media (max-width: 420px) {
  .strip { gap: 10px; }
  .tile { padding: 14px; }
  .tile .val { font-size: 26px; }
  .tile .val-name { font-size: 18px; }
  .ev-row { grid-template-columns: 64px 18px minmax(0, 1fr); grid-template-areas: "d s n" "d s c" "m m m"; }
  .ev-row .date { font-size: 20px; }
  .ev-row .date small { font-size: 9px; letter-spacing: .02em; }
  .stagebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================= v3 additions ======================= */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.who { border-top: 1px solid #2c2c2c; padding-top: 14px; font-size: 12.5px; }
.who label { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--white); font-weight: 600; margin-bottom: 6px; }
.who p { margin: 6px 0 0; color: var(--muted); }
.who button { margin-top: 10px; background: none; border: 1px solid #3a3a3a; color: var(--white); border-radius: 99px; min-height: 36px; padding: 0 14px; font-size: 13px; }
.select.dark { background-color: #1e1e1e; color: var(--white); border-color: #3a3a3a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); }
.nav > .nav-h { padding: 14px 12px 4px; display: block; }
.nav { gap: 2px; }
.sync-pill { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--on-ink); text-decoration: none; padding: 8px 10px; border-radius: 10px; border: 1px solid #2c2c2c; }
.sync-pill.sp-bad { border-color: var(--orange); color: var(--white); }
.sync-pill .evid { color: #6d6d69; }
.ss-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--muted); display: inline-block; flex: none; }
.ss-dot.ok { background: #5fae79; } .ss-dot.pend { background: var(--family); } .ss-dot.off { background: var(--orange); }
.banner-wrap { position: fixed; top: 31px; left: var(--side); right: 0; z-index: 35; padding: 10px 24px; }
.remote { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ink); color: var(--white); border-radius: 12px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 14px; }
.remote .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.offline-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: var(--orange); color: var(--ink); text-align: center; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.strip.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
.blocker { color: var(--ink); font-weight: 600; }
.blocker::before { content: "■ "; color: var(--orange); }
.invalid { border-color: var(--orange) !important; box-shadow: 0 0 0 2px rgba(255,77,46,.25); }
.hint-line.pad { padding: 0 20px 14px; }
.center { text-align: center; justify-content: center; }

/* Today */
.recs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rec3 { padding: 22px; display: flex; flex-direction: column; }
.rec3.accepted { background: #FAFAF8; }
.rec3-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rec3-n { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1; margin-right: 4px; }
.rec3 h3 { font-size: 17.5px; line-height: 1.3; }
.rec3-dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 14px; }
.rec3-dl dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.rec3-dl dd { margin: 0; color: var(--body); }
.rec3-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 16px; }
.ms { list-style: none; margin: 0; padding: 0; }
.ms-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); }
.ms-row:first-child { border-top: 0; }
.ms-id { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.ms-main b { display: block; font-weight: 500; font-size: 14.5px; }
.ms-look { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; border-radius: 99px; padding: 3px 9px; white-space: nowrap; border: 1px dashed var(--muted); color: var(--body); }
.ms-look.look-At-risk { background: var(--ink); color: var(--orange); border: 0; }
.ms-look.look-Looks-done { background: var(--sage); color: var(--sage-text); border: 0; }
.att-li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.att-li:first-child { border-top: 0; }
.att-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 220px; }
.att-main .astatus { align-self: flex-start; }
.att-main b { font-weight: 600; font-size: 14.5px; }
.att-acts { display: flex; gap: 6px; }
.health .hrow { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.health .hrow:first-child { border-top: 0; padding-top: 0; }
.health .hrow b { font-size: 16px; }
.daily { padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.wk { padding: 18px 20px; margin-bottom: 12px; }
.wk.done { background: #FAFAF8; }
.wk-head { display: flex; gap: 14px; align-items: flex-start; }
.wk-body { margin: 10px 0 0 40px; font-size: 14.5px; }
.wk-body .plain li { margin: 8px 0; }

/* Tasks */
.tlist { list-style: none; margin: 0; padding: 0; }
.trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 130px auto; gap: 12px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.trow-main { all: unset; cursor: pointer; display: block; min-width: 0; }
.trow-main.static { cursor: default; }
.trow-main:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.t-title { font-weight: 500; display: block; }
.trow.is-done .t-title { color: var(--muted); text-decoration: line-through; }
.t2 { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.t-due { font-family: var(--mono); font-size: 12px; padding-top: 4px; }
.t-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form-grid.one { grid-template-columns: 1fr; margin-bottom: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.sync-badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.sb-pend { background: #FFF5D6; color: #6b5300; }
.sb-ok { background: var(--sage); color: var(--sage-text); }
.sb-bad { background: var(--ink); color: var(--orange); }
.cmp-mini { width: 100%; margin: 10px 0; font-size: 13px; border-collapse: collapse; }
.cmp-mini td, .cmp-mini th { padding: 6px 8px; border-bottom: 1px solid #333; text-align: left; color: var(--white); }

/* Events */
.ev-row2 { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 92px 26px minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); width: 100%; }
.ev-row2:hover { background: var(--white); }
.ev-row2:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ev-row2 .date { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1; white-space: nowrap; }
.ev-row2 .date small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .06em; margin-top: 6px; white-space: normal; }
.ev-row2 .date .nw { white-space: nowrap; }
.ev-row2 .name { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; word-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.ev-row2 .venue { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--body); margin-top: 5px; }
.ev-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ev-meta .cat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.ev-meta .cat i { width: 9px; height: 9px; background: var(--c); display: inline-block; }
.ev-next { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--body); }
.ev-next .mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--ink); color: var(--orange); font-weight: 700; font-size: 13px; flex: none; }
.ev-next .mark.ready { background: var(--sage); color: var(--sage-text); }
/* D361: a Dropped row fades as a whole; the coverage key; the filter row; What's on | Just been */
.ev-row2.is-dropped { opacity: .5; }
.ev-row2.is-dropped .cov-Dropped { opacity: 1; }
.cov-key { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--body); margin: 2px 0 6px; }
.cov-key .k { display: inline-flex; gap: 7px; align-items: center; }
.ev-filters { margin-bottom: 10px; }
.ev-filters .select { flex: 0 1 auto; }
.ev-filters .search { flex: 1 1 200px; max-width: 300px; }
.select.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.ev-side { margin: 0 0 14px; }
.ev-side .tcount { margin-left: 2px; }
.ev-side button[aria-pressed="true"] .tcount { background: #3a3a3a; color: var(--white); }
/* The month calendar: Monday to Sunday, weekends shaded, one bar per event across its dates */
.ecal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.ecal-head h2 { font-size: 22px; min-width: 180px; text-align: center; }
.ecal { border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.ecal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ecal-dow span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--body); padding: 8px; }
.ecal-dow span:nth-child(n+6) { background: rgba(18, 18, 18, .045); }
.ecal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 30px repeat(var(--lanes, 0), 24px) 10px; row-gap: 3px; border-bottom: 1px solid var(--line); min-height: 70px; }
.ecal-week:last-child { border-bottom: 0; }
.ecal-day { grid-row: 1 / -1; border-right: 1px solid var(--line); padding: 5px 6px; display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; min-width: 0; }
.ecal-day:nth-child(7) { border-right: 0; }
.ecal-day.wkend { background: rgba(18, 18, 18, .045); }
.ecal-day.out .ecal-dn { color: #B9B9B4; }
.ecal-dn { font-family: var(--mono); font-size: 12px; line-height: 20px; }
.ecal-day.today .ecal-dn { background: var(--ink); color: var(--white); border-radius: 99px; padding: 0 7px; }
.ecal-clash { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--ink); color: var(--orange); font-weight: 700; font-size: 12px; flex: none; cursor: help; }
.ecal-bar { all: unset; box-sizing: border-box; cursor: pointer; position: relative; z-index: 1; align-self: center; margin: 0 3px; height: 22px; line-height: 22px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--c); color: var(--ink); min-width: 0; }
.ecal-bar.sport { color: var(--white); }
.ecal-bar:hover { filter: brightness(.95); }
.ecal-bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* Coverage on a bar (D363): Committed filled with an Ink outline, Pencilled filled, Watching outlined, Not set faded,
   Dropped faded and struck through; finished events greyed */
.ecal-bar.cb-Committed { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
.ecal-bar.cb-Watching { background: var(--white); box-shadow: inset 0 0 0 2px var(--c); color: var(--ink); }
.ecal-bar.cb-none { background: color-mix(in srgb, var(--c) 28%, var(--white)); color: var(--body); }
.ecal-bar.cb-Dropped { opacity: .45; text-decoration: line-through; }
.ecal-bar.cb-done { filter: grayscale(1); opacity: .5; }
.cb-w { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; margin-right: 5px; }
.ecal-bar.demo { display: inline-block; cursor: default; margin: 0; vertical-align: middle; }
/* Watch events aren't on the site yet (D365): no fill and a dotted outline in the category colour, with WATCH before
   the name, whatever their coverage */
.ecal-bar.cb-watch { background: transparent; border: 2px dotted var(--c); line-height: 18px; color: var(--ink); }
.ecal-bar.inline { display: inline-block; margin: 0; max-width: 100%; vertical-align: middle; }
/* The Dates TBC line at the top of a month, and the Watch events with no month yet under the calendar (D365) */
.ecal-tbc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ecal-tbc-l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--body); margin-right: 4px; }
.ecal-undated { margin-top: 18px; }
.ecal-undated-l { display: flex; flex-wrap: wrap; gap: 6px 8px; }
@media (max-width: 640px) {
  .ev-filters .select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .ev-filters .search { max-width: none; flex-basis: 100%; }
  .ecal-week { grid-template-rows: 26px repeat(var(--lanes, 0), 20px) 8px; row-gap: 2px; }
  .ecal-day { padding: 3px 4px; }
  .ecal-dow span { padding: 6px 4px; font-size: 9.5px; }
  .ecal-bar { margin: 0 1px; height: 18px; line-height: 18px; padding: 0 4px; font-size: 10px; }
  .ecal-bar.cb-watch { line-height: 14px; }
  .ecal-bar.inline { margin: 0; }
  .ecal-head h2 { font-size: 19px; min-width: 150px; }
}
.denied { padding: 26px; }
.denied.page { max-width: 640px; padding: 40px 0; }

/* Reviews */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rv-card { overflow: hidden; display: flex; flex-direction: column; }
.rv-band { height: 8px; background: var(--c); }
.rv-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rv-body h3 { font-size: 17px; margin-top: 4px; }
.rv-body .btn { align-self: flex-start; margin-top: auto; }
.mini-track { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 8px; }
.mini-track span { height: 6px; border-radius: 3px; background: var(--badge); }
.mini-track span.done { background: var(--ink); }
.mini-track span.cur { background: var(--orange); }
.clockline { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; margin: 4px 0 0; }
.clockline.late { color: var(--white); background: var(--ink); padding: 4px 8px; border-radius: 4px; align-self: flex-start; }
.ws-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; margin-bottom: 22px; }
.ws-head > .btn { margin-top: 6px; }
.ws-title h1 { font-size: 34px; }
.ws-title .intro { font-size: 15.5px; margin-top: 8px; }
.ws-clock { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; max-width: 280px; }
.ws-clock.late { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ws-clock .lbl { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.ws-clock b { display: block; font-size: 18px; margin: 4px 0; }
.ws-clock .evid { color: inherit; opacity: .8; }
.phases { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0 0 8px; }
.phases li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; font-size: 13px; }
.phases li span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.phases li.done { background: var(--sage); border-color: var(--sage); }
.phases li.cur { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.phase-h { margin: 28px 0 12px; }
.stage { padding: 16px 20px; margin-bottom: 10px; }
.stage.later { opacity: .72; }
.stage.cur { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stage-top { display: flex; gap: 14px; align-items: center; }
.stage-n { font-family: var(--display); font-weight: 600; font-size: 24px; width: 32px; }
.stage-t { flex: 1; }
.stage .checks { margin-top: 12px; }
.sub-panel { background: var(--paper); border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 14px; }
.rsteps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.rsteps li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rsteps li.cur { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rsteps li.done { background: #FAFAF8; }
.rs-n { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; border: 1.5px solid var(--ink); font-weight: 700; font-size: 13px; }
.rsteps li.done .rs-n { background: var(--ink); color: var(--white); }

/* Capture */
.person-seg { margin-bottom: 14px; }
.cap-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: sticky; top: 31px; z-index: 5; }
.cap-status { margin-left: 8px; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--badge); }
.cap-status.st-Submitted, .cap-status.st-Accepted { background: var(--sage); color: var(--sage-text); }
.cap-status.st-Returned { background: var(--ink); color: var(--orange); }
.save-state { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--body); }
.off-toggle { font-size: 13px; min-height: 36px; }
.templates-line { margin: 12px 2px; }
.review-panel { background: var(--sage); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.thread { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.thread .q { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.thread .reply { margin-left: 16px; }
.outstanding { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 12px 16px; margin: 12px 0; font-size: 14px; }
.outstanding.ok { border-left-color: var(--sage-text); }
.outstanding ul { margin: 8px 0 0; padding-left: 18px; }
.outstanding li { margin: 4px 0; }
.cap-sec { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; overflow: hidden; }
.cap-sec.open { border-color: var(--ink); }
.cap-h { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 18px; min-height: 52px; font-weight: 600; font-size: 15.5px; }
.cap-h:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cap-h > span:first-child { flex: 1; }
.cap-c { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.req { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); background: var(--ink); border-radius: 3px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.cap-b { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 12px; min-width: 0; }
.fld.wide { width: 100%; }
.fld textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 400; font-size: 15px; resize: vertical; background: var(--white); }
.fld textarea:focus { outline: none; border-color: var(--ink); }
.fld input, .fld textarea, .fld select { font-weight: 400; }
.fld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.help { font-size: 13px; color: var(--muted); font-style: normal; font-weight: 400; margin: 6px 0; }
.cap-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.cap-row .fld { flex: 1 1 140px; margin-top: 6px; }
.cap-row + .btn { margin-top: 10px; }
.promise, .ck-item, .price-row, .q-area { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ck-item.set b, .price-row b { color: var(--ink); }
.small-seg { margin-top: 8px; }
.small-seg button { min-height: 36px; font-size: 13px; }
.q-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check-line.small { min-height: 32px; font-size: 13px; }
.warnline { background: var(--ink); color: var(--white); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.private-box { background: var(--paper); border: 1px dashed var(--ink); border-radius: 10px; padding: 12px 14px; }
.submit-bar { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; margin-top: 18px; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.ratings-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.rg-h { margin: 14px 0 6px; }
.rate-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.text-input.rate { min-height: 40px; text-align: center; padding: 6px 8px; }
.guide dl { display: grid; grid-template-columns: 64px 1fr; gap: 8px 10px; font-size: 13.5px; }
.guide dt { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.guide dd { margin: 0; color: var(--body); }
.score-head { display: flex; gap: 20px; align-items: center; margin: 16px 0; }
.score-big { font-family: var(--display); font-weight: 600; font-size: 64px; line-height: 1; }
.score-big small { font-size: 22px; color: var(--muted); }
.score-table td { vertical-align: middle; }
.draft-ro { background: var(--paper); border-radius: 10px; padding: 12px 14px; font-size: 14px; white-space: pre-wrap; margin: 8px 0 14px; max-height: 200px; overflow: auto; }
.art-field { margin-top: 16px; }
.af-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.af-h .evid { flex: 1 1 180px; }
.select.prov { min-height: 34px; font-size: 12.5px; }
.prov-ai { border-color: var(--orange); }
.prov-none { border-style: dashed; }

/* Website-style preview */
.site-preview { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 860px; }
.sp-hero { height: 240px; background: linear-gradient(135deg, #b9b5aa, #6d6b65); position: relative; display: grid; place-items: center; color: var(--white); font-family: var(--mono); font-size: 12px; }
.sp-slash { position: absolute; right: 30px; bottom: -30px; width: 95px; height: 120px; clip-path: polygon(64.2% 0, 100% 0, 35.8% 100%, 0 100%); }
.sp-head { padding: 26px 28px 10px; }
.sp-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.sp-head h2 { font-size: 34px; text-transform: uppercase; margin: 8px 0; }
.sp-meta, .sp-by { font-family: var(--mono); font-size: 11px; color: var(--body); text-transform: uppercase; letter-spacing: .04em; }
.sp-headline { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 16px 0 6px; }
.sp-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 28px 20px; }
.sp-box { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.sp-box.ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sp-box.ink p { color: var(--on-ink); }
.sp-box b { display: block; font-family: var(--display); font-size: 40px; font-weight: 600; margin: 6px 0; }
.sp-box b.small { font-size: 16px; }
.sp-box em { font-style: normal; }
.sp-l { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--orange); }
.sp-l.ink { color: var(--ink); }
.sp-sec { padding: 18px 28px; border-top: 1px solid var(--line); }
.sp-sec h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.sp-sec h4 { margin: 0 0 6px; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-card { background: var(--white); border-radius: 12px; padding: 14px; }
.sp-card.sage { background: var(--sage); }
.sp-card .sp-l { color: var(--ink); }
.sp-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; margin: 0; }
.sp-dl dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.sp-dl dd { margin: 0; }
.sp-disc { font-size: 13px; color: var(--body); font-style: italic; }
.sp-prices { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-prices td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sp-prices td:last-child { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.sp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sp-gallery span { aspect-ratio: 4/3; background: var(--badge); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--muted); border-radius: 6px; }
blockquote { margin: 8px 0; font-family: var(--display); font-size: 18px; font-weight: 600; }
blockquote cite { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); font-style: normal; margin-top: 4px; }
.ph-missing { color: var(--muted); font-style: italic; font-size: 13px; background: repeating-linear-gradient(-63deg, transparent 0 6px, rgba(0,0,0,.04) 6px 12px); padding: 1px 6px; border-radius: 4px; }

/* Marketing studio */
.cal-d { display: flex; justify-content: space-between; align-items: center; }
.cal-add { width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-size: 16px; line-height: 1; opacity: 0; }
.cal-cell:hover .cal-add, .cal-add:focus { opacity: 1; }
.cal-cell.prelaunch { background: #FCFCFA; }
.pc-blocked { border-left-style: dashed !important; background: #fff !important; box-shadow: inset 0 0 0 1px var(--orange); }
.pc-await { background: #FFF5D6 !important; }
.pc-ok { background: var(--sage) !important; }
.pc-dropped { opacity: .45; text-decoration: line-through; }
.pst-ok { background: var(--sage); color: var(--sage-text); }
.pst-blocked { background: var(--ink); color: var(--orange); }
.pst-await { background: #FFF5D6; color: #6b5300; }
.pst-plan { background: var(--badge); color: var(--body); }
.pst-dropped { border: 1px dashed var(--muted); color: var(--muted); }
.cal-cell.over, .thumb.over { background: var(--sage); }
.studio { display: grid; grid-template-columns: 170px minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 10px; }
.st-thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb { border: 1.5px solid transparent; border-radius: 12px; padding: 4px; background: var(--white); }
.thumb.cur { border-color: var(--ink); }
.thumb-btn { all: unset; cursor: pointer; display: block; position: relative; width: 100%; }
.thumb-btn:focus-visible { outline: 2px solid var(--ink); }
.thumb .art { font-size: 6px; }
.tn { position: absolute; top: 4px; left: 4px; z-index: 2; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 10px; border-radius: 4px; padding: 0 5px; }
.thumb-acts { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.thumb-acts .icon-btn { width: 28px; height: 28px; font-size: 12px; }
.st-stage { position: sticky; top: 50px; }
.stage-art { max-width: 520px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: 12px; overflow: hidden; }
.stage-art .art { font-size: 16px; }
.stage-empty { aspect-ratio: 4/5; max-width: 520px; margin: 0 auto; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.st-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 18px; }
.st-side .tabs { margin-bottom: 12px; }
.st-side-body h3 { margin: 6px 0 4px; }
.src { display: inline-block; font-family: var(--mono); font-size: 10.5px; border-radius: 4px; padding: 2px 6px; font-weight: 400; margin-top: 2px; }
.src.ver { background: var(--sage); color: var(--sage-text); }
.src.you { background: var(--badge); color: var(--body); }
.src.ai { background: #FFF5D6; color: #6b5300; }
.src.missing { background: var(--ink); color: var(--orange); }
.img-picks { display: flex; gap: 8px; margin: 6px 0; }
.img-pick { width: 44px; height: 44px; border-radius: 8px; border: 2px solid transparent; }
.img-pick.on { border-color: var(--ink); }
.upload { cursor: pointer; }
.mini-checks { list-style: none; padding: 0; margin: 10px 0; font-size: 13.5px; display: grid; gap: 4px; }
.mini-checks li::before { content: "○ "; color: var(--orange); }
.mini-checks li.ok::before { content: "✓ "; color: var(--sage-text); }
/* slide art (aspect 4:5, sizes in em) */
.art { aspect-ratio: 4 / 5; position: relative; overflow: hidden; font-family: var(--display); color: var(--ink); background: var(--paper); }
.art .eb { position: absolute; top: 1.2em; left: 1.4em; font-family: var(--mono); font-size: .7em; letter-spacing: .08em; color: var(--orange); }
.art b { position: absolute; left: 1.3em; right: 1.3em; bottom: 1.6em; font-size: 1.7em; line-height: 1.12; font-weight: 600; word-spacing: .1em; }
.art-ink { background: var(--ink); color: var(--white); }
.art-ink .slash2 { position: absolute; right: 1.4em; top: 1.2em; width: 2.53em; height: 3.2em; background: var(--orange); clip-path: polygon(64.2% 0, 100% 0, 35.8% 100%, 0 100%); }
.art-sage { background: var(--sage); }
.art-sage .eb, .art-paper .eb, .art-quote .eb, .art-radar .eb { color: var(--ink); }
.art-paper { background: var(--paper); }
.art-quote { background: var(--white); }
.art-quote b { font-size: 1.5em; }
.art img, .art-photo { position: absolute; inset: 0 0 45% 0; width: 100%; height: 55%; object-fit: cover; }
.art-photo { display: grid; place-items: center; }
.art-photo span { font-family: var(--mono); font-size: .55em; color: var(--white); }
.art-photo.grey { background: linear-gradient(135deg, #9a9a96, #4a4a47); filter: grayscale(1); position: static; height: 100%; }
.art-card { background: var(--ink); display: grid; grid-template-columns: 62% 38%; grid-template-rows: 1fr 13%; }
.ac-panel { padding: 1em; display: flex; flex-direction: column; justify-content: space-between; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); z-index: 1; }
.ac-panel span { font-family: var(--mono); font-size: .55em; }
.ac-panel b { position: static; font-size: 1.35em; }
.ac-photo { margin-left: -14%; position: relative; }
.ac-photo img, .ac-photo .art-photo { position: absolute; inset: 0; height: 100%; filter: grayscale(1); }
.ac-score { position: absolute; right: .8em; bottom: 15%; z-index: 2; color: var(--white); }
.ac-score b { position: static; font-size: 2em; }
.ac-score em { font-style: normal; font-weight: 600; font-size: 1em; }
.ac-strip { grid-column: 1 / -1; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: .55em; letter-spacing: .06em; padding: .8em 1.2em; display: flex; align-items: center; }
.art-pitch { display: grid; grid-template-rows: 1fr 1fr; background: var(--white); }
.ap-col { padding: 1.2em 1.4em; }
.ap-col.sage { background: var(--sage); }
.ap-col span { font-family: var(--mono); font-size: .6em; letter-spacing: .08em; }
.ap-col p { font-family: var(--sans); font-size: .85em; margin: .6em 0 0; }
.ap-img { display: none; }
.art-radar { background: var(--paper); padding: 3em 1.2em 1em; display: flex; flex-direction: column; gap: .5em; }
.ar-row { display: flex; gap: .7em; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .5em; }
.ar-row i { width: 1.26em; height: 1.6em; clip-path: polygon(64.2% 0, 100% 0, 35.8% 100%, 0 100%); }
.ar-row b { position: static; font-size: .9em; }
.art-missing { color: var(--orange); background: rgba(255,77,46,.08); border: 1px dashed var(--orange); border-radius: .2em; padding: 0 .2em; font-family: var(--mono); font-size: .55em; font-weight: 400; word-spacing: 0; }
.art-ink .art-missing { background: rgba(255,77,46,.15); }
/* phone preview */
.phone { width: min(340px, 100%); margin: 14px auto 4px; border: 10px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--white); }
.ph-top { display: flex; gap: 8px; align-items: center; padding: 10px 12px; font-size: 13px; }
.ph-av { width: 26px; height: 26px; border-radius: 99px; background: var(--ink); border: 2px solid var(--orange); }
.ph-media { position: relative; }
.ph-media .art { font-size: 11px; }
.ph-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 99px; border: 0; background: rgba(255,255,255,.85); font-size: 18px; }
.ph-nav.l { left: 8px; } .ph-nav.r { right: 8px; }
.ph-dots { display: flex; gap: 4px; justify-content: center; padding: 8px; }
.ph-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); }
.ph-dots i.on { background: var(--sport); }
.ph-cap { font-size: 13px; padding: 0 12px 14px; margin: 0; white-space: pre-line; }

/* Onboarding */
.onb-top { margin-bottom: 18px; display: grid; gap: 10px; }
.onb-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.onb-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 20px; }
.onb-step.done { background: #FAFAF8; }
.os-n { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; border: 1.5px solid var(--ink); font-weight: 700; }
.onb-step.done .os-n { background: var(--ink); color: var(--white); }
.os-body p { margin: 6px 0; color: var(--body); font-size: 14.5px; }
.quiz { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.quiz legend { font-weight: 600; font-size: 14.5px; padding: 0 4px; }
.quiz .radio { margin-top: 6px; padding: 8px 10px; }

/* Manage */
.mg-body { margin-top: 8px; }
.demo-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.demo-row:first-child { border-top: 0; padding-top: 0; }
.demo-row p { margin: 4px 0 0; font-size: 14px; color: var(--body); max-width: 70ch; }

/* v3 responsive */
@media (max-width: 1180px) {
  .recs3 { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 140px minmax(0, 1fr); }
  .st-side { grid-column: 1 / -1; }
  .ev-row2 { grid-template-columns: 78px 22px minmax(0, 1fr); }
  .ev-row2 .ev-next { grid-column: 3; }
  .ws-head { grid-template-columns: 1fr; }
  .ws-clock { max-width: none; }
}
@media (max-width: 860px) {
  .banner-wrap { left: 0; top: 88px; padding: 8px 12px; }
  .strip.three { grid-template-columns: 1fr; }
  .who, #sync-status { display: none; }
  body.reviewer-mode .side { flex-wrap: nowrap; }
  .trow { grid-template-columns: 36px minmax(0, 1fr); }
  .trow .t-due, .trow .t-acts { grid-column: 2; justify-content: flex-start; }
  .form-grid, .fld-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: repeat(5, minmax(76px, 1fr)); overflow-x: auto; }
  .ratings-wrap { grid-template-columns: 1fr; }
  .rate-row { grid-template-columns: minmax(0, 1fr) 80px; }
  .rate-row .check-line { grid-column: 1 / -1; }
  .studio { grid-template-columns: 1fr; }
  .st-thumbs { flex-direction: row; overflow-x: auto; }
  .thumb { min-width: 110px; }
  .st-stage { position: static; }
  .sp-two, .sp-scores { grid-template-columns: 1fr; }
  .sp-head h2 { font-size: 26px; }
  .cap-bar { top: 88px; }
  .rsteps li { grid-template-columns: 30px 1fr; }
  .rsteps li .btn { grid-column: 2; justify-self: start; }
  .rec3-dl { grid-template-columns: 1fr; }
  .ws-title h1 { font-size: 26px; }
  .cal-add { opacity: 1; }
  .ev-row2 { grid-template-columns: 64px 18px minmax(0, 1fr); }
  .ev-row2 .ev-next { grid-column: 1 / -1; }
  .score-big { font-size: 48px; }
  .person-seg button { min-height: 44px; }
  .small-seg button, .thumb-acts .icon-btn, .cal-add { min-height: 44px; min-width: 44px; }
  .thumb-acts .icon-btn { width: 44px; height: 44px; }
  .img-pick { width: 48px; height: 48px; }
}

/* v3.3 tap targets: every control gets at least a 44px hit area, without changing how it looks */
.tick { position: relative; }
.tick::after { content: ""; position: absolute; inset: -9px; }
.linkish { display: inline-flex; align-items: center; min-height: 44px; }
.text-input.rate, .select.prov { min-height: 44px; }
.check-line, label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.check-line.small { min-height: 44px; }

/* v3.3 phone: the score table stacks into one card per area; the ops table scrolls inside its card */
@media (max-width: 640px) {
  .score-table thead { display: none; }
  .score-table, .score-table tbody, .score-table tr, .score-table td { display: block; width: 100%; }
  .score-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .score-table td { padding: 4px 0; border: 0; }
  .score-table td.st-area { font-weight: 600; padding-bottom: 6px; }
  .score-table td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .score-table td[data-label]::before { content: attr(data-label); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .score-table td[data-label]:empty { display: none; }
  .score-table .text-input.rate { width: 90px; flex: none; }
  .card:has(> .table.static:not(.score-table)) { overflow-x: auto; }
}

/* v3.4 CHECK list rows: question on the left, answer buttons on the right; stacked on narrow screens */
.trow.chk-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.chk-row .evid { display: block; margin-top: 4px; }
.chk-row .seg { justify-self: end; }
@media (max-width: 640px) {
  .trow.chk-row { grid-template-columns: minmax(0, 1fr); }
  .chk-row .seg { justify-self: start; }
}
.trow.idea-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
.idea-row .when { white-space: nowrap; }
@media (max-width: 640px) { .trow.idea-row { grid-template-columns: 56px minmax(0, 1fr); } .idea-row .t-acts { grid-column: 2; } }
.dec-row { grid-template-columns: 64px 116px minmax(0, 1fr) 110px minmax(150px, auto); }
.dec-row .ds { white-space: nowrap; }
@media (max-width: 1100px) { .dec-row { grid-template-columns: 56px minmax(0, 1fr); } .dec-row .dd, .dec-row .da { display: none; } .dec-row .ds { grid-column: 2; white-space: normal; } }
/* Date ranges (23–26) need room on tablet and phone */
@media (max-width: 860px) { .ev-row2 { grid-template-columns: 84px 18px minmax(0, 1fr); } }
@media (max-width: 560px) { .ev-row2 { grid-template-columns: 70px 16px minmax(0, 1fr); gap: 12px; } .ev-row2 .date { font-size: 19px; } }
.sp-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-gallery span { overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
@media (max-width: 640px) {
  .sp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 6px; }
  .ms-row .ms-look { grid-column: 2; justify-self: start; }
  .card.scroll-x > .table.static, .card:has(> .table.static:not(.score-table)) > .table.static { min-width: 780px; }
}

/* v3.5 Studio with the T92 templates */
.stage-art { border-radius: 4px; }
.stage-art.tall { max-width: 380px; }
.thumb-btn .ab-frame { border-radius: 4px; }
.thumb-btn .tn { z-index: 2; }
.tpl-art { background: var(--line); }
.tpl-group { margin: 28px 0 12px; }
.tpl-grid .tpl-art .ab-frame { max-height: 440px; }
.side-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.side-h h3 { margin: 0; }
.src.draft { background: #FFF5D6; color: #6b5300; }
.auto-list { margin: 4px 0; font-size: 14px; }
.ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 6px 0; }
.ph-pick { all: unset; cursor: pointer; aspect-ratio: 1; border-radius: 6px; overflow: hidden; outline: 2px solid transparent; outline-offset: 1px; min-height: 44px; }
.ph-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-pick img.bw { filter: grayscale(1); }
.ph-pick.on { outline-color: var(--ink); outline-width: 3px; }
.ph-pick:focus-visible { outline-color: var(--orange); }
.add-slide { display: block; margin-top: 4px; }
.add-slide .kv-l { display: block; margin-bottom: 4px; }
.export-host { position: fixed; left: -30000px; top: 0; pointer-events: none; }
.ph-media .ab-frame { border-radius: 0; }
.stage-art { max-width: min(520px, calc((100vh - 230px) * 0.8)); }
.stage-art.tall { max-width: min(380px, calc((100vh - 230px) * 0.5625)); }
@media (max-width: 640px) { .thumb { min-width: 152px; } .thumb-acts { gap: 2px; } }
@media (max-width: 1100px) and (min-width: 641px) { .studio { grid-template-columns: 158px minmax(0, 1fr); } }
@media (max-width: 1100px) { .thumb-acts { gap: 2px; } }
@media (max-width: 860px) { .thumb { min-width: 152px; } }
.stage-art img[data-pan] { cursor: grab; touch-action: none; }
.stage-art img[data-pan]:active { cursor: grabbing; }
.crop-ctl { margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.crop-ctl .help { margin: 2px 0 6px; }
.rng { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 8px; min-height: 44px; font-size: 13.5px; }
.rng input { width: 100%; min-height: 44px; accent-color: var(--ink); }
.rng b { font-family: var(--mono); font-size: 12px; font-weight: 400; }
/* Back to the previous page */
.backbar { margin: -8px 0 14px; }
.back-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 14.5px; color: var(--body); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.back-btn:hover { color: var(--ink); text-decoration-color: var(--orange); }
.back-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Reviews: stage names under each phase, phase cards that open their tab */
.phase-title { margin-bottom: 14px; }
.phase-title h2 { margin: 0; }
.phase-stages { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 12px; color: var(--body); }
.phases li { padding: 0; }
.phases li > button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; padding: 10px 12px; min-height: 44px; border-radius: 10px; }
.phases li > button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.phases li > button:hover { background: rgba(0,0,0,.03); }
.phases li .ph-st { font-family: var(--mono); font-size: 10.5px; color: var(--body); line-height: 1.45; }
.phases li.cur { border-color: var(--line); box-shadow: none; }
.phases li.open { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ph-now, .ph-done { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; vertical-align: 2px; margin-left: 4px; font-weight: 400; }
.ph-now { background: var(--orange); color: var(--white); }
.ph-done { background: var(--white); color: var(--sage-text); }
/* Review notes, pinned at the top */
.notes-panel { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.np-next { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; }
.np-next > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np-next > div:first-child { flex: 1 1 280px; }
.np-next .btn { margin-left: auto; }
.np-l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.np-thread { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.np-thread h2 { font-size: 17px; margin: 0; }
.np-list { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.np-list li { background: var(--paper); border-radius: 10px; padding: 8px 12px; max-width: 80%; }
.np-list li.me { align-self: flex-end; background: var(--sage); }
.np-list p { margin: 2px 0 0; }
.np-add { display: flex; gap: 8px; align-items: flex-end; }
.np-add textarea { flex: 1; min-height: 44px; }
.notes-panel.compact { padding: 12px 16px; }
.np-more { margin-top: 8px; font-size: 13.5px; color: var(--body); }
@media (max-width: 640px) { .np-next .btn { margin-left: 0; } .np-list li { max-width: 100%; } .np-add { flex-direction: column; align-items: stretch; } }
/* Claude hand-offs */
.claude-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px dashed var(--ink); border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: var(--white); }
.claude-box > div { flex: 1 1 240px; }
.claude-box.st-Reportback { border-style: solid; border-color: var(--orange); }
.claude-box.st-Accepted { border-style: solid; border-color: var(--sage); background: var(--sage); }
.mono-area, pre.brief { font-family: var(--mono); font-size: 12px; line-height: 1.5; }
pre.brief { white-space: pre-wrap; background: var(--paper); border-radius: 8px; padding: 10px 12px; max-height: 260px; overflow: auto; margin: 6px 0; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.prov-checked { border-color: var(--sage-text); background: var(--sage); }
.src-key { font-size: 13.5px; margin-bottom: 10px; }
/* Publish and Follow up */
.sub-h { font-size: 15px; margin: 0 0 6px; }
.ready-list { list-style: none; padding: 0; margin: 0 0 12px; }
.ready-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ready-list li.ok { color: var(--sage-text); }
.rl-i { font-family: var(--mono); width: 18px; }
.ready-list li > span:nth-child(2) { flex: 1 1 200px; }
.pub-steps { padding-left: 20px; margin: 8px 0 12px; }
.live-check { background: var(--paper); border-radius: 10px; padding: 12px 14px; margin: 8px 0 14px; }
.ok-line { color: var(--sage-text); font-weight: 600; }
.trow.pkg-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.pkg-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .trow.pkg-row { grid-template-columns: minmax(0, 1fr); } .pkg-acts { justify-content: flex-start; } }
@media (max-width: 640px) {
  .phases { grid-template-columns: 1fr; overflow: visible; }
  .phases li > button { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
  .phases li > button b { flex: 0 0 100%; }
}
/* Notifications */
.bell-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; margin: 4px 0 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: var(--on-ink); font-size: 14.5px; }
.bell-btn.has { color: var(--white); border-color: var(--orange); }
.bell-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.notif-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; background: var(--ink); color: var(--white); border-radius: 12px; padding: 10px 14px; margin: -8px 0 14px; }
.nb-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--orange); flex: none; }
.nb-text { flex: 1 1 260px; font-size: 14.5px; }
.nb-acts { display: flex; gap: 8px; }
.notif-bar .btn.quiet { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.inbox { list-style: none; padding: 0; margin: 10px 0; max-height: 50vh; overflow-y: auto; }
.inbox li button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 44px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.inbox li.unread button { background: #FFF5F2; border-left: 3px solid var(--orange); }
.inbox li button:focus-visible { outline: 2px solid var(--ink); }
/* Move on to the next stage */
.next-stage { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: 28px 0 8px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.next-stage.ready { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.next-stage.done { background: var(--sage); border-color: var(--sage); }
.next-stage ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--body); }
.next-stage > div:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1 1 300px; }
.ns-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* Resources: cards by document type */
.res-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.res-card { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 170px; padding: 18px 18px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.res-card:hover { border-color: var(--ink); }
.res-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rc-slash { position: absolute; right: 18px; top: 14px; width: 9px; height: 34px; background: var(--c); transform: skewX(-26.9deg); }
.rc-n { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; }
.res-card b { font-size: 17px; }
.rc-about { font-size: 14px; color: var(--body); }
.rc-eg { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: auto; }
.crumb { font-size: 14px; color: var(--body); align-self: center; }
.notif-bar .btn:not(.quiet) { background: var(--white); color: var(--ink); border-color: var(--white); }
/* Resource cards, v2: Sage, no category colours; the count sits bottom right */
.res-card { background: var(--sage); border-color: var(--sage); color: var(--ink); padding-bottom: 14px; }
.res-card:hover { border-color: var(--ink); }
.res-card .rc-slash { background: var(--ink); }
.res-card .rc-about { color: var(--sage-text); padding-right: 24px; }
.res-card .rc-eg { color: var(--sage-text); }
.res-card .rc-n { align-self: flex-end; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase; margin-top: 8px; }
.res-card.none { opacity: .55; }
.phases li .ph-now { color: var(--white); }
.tab-check { margin: 0 0 18px; }
.tab-check > summary { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--body); }
.tab-check .stage { margin-top: 6px; }
.cov-why { font-size: 14px; margin: 6px 0; }
.cov-guide summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.cov-steps { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
.cov-steps li { padding: 4px 0; color: var(--body); }
.cov-steps li b { color: var(--ink); margin-right: 6px; }
.cov-steps li.cur b { background: var(--ink); color: var(--white); padding: 1px 6px; border-radius: 4px; }
.ns-gaps { font-size: 13.5px; color: var(--body); flex-basis: 100%; text-align: right; min-height: 44px; }
/* Event conditions you can fix in place */
.cond { display: block; }
.cond-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cond-fix { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.cond-fix.seg { display: inline-flex; align-self: flex-start; }
.cond-fix .select { min-height: 44px; }
.out-list { list-style: none; padding: 0; margin: 6px 0; }
/* Alert tiles: plain text, no fill */
.attn .t { background: none; padding: 0; width: auto; height: auto; }
.em-cell { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; margin: 6px 0 10px; }
.wait-flag { margin: 8px 0 0; font-size: 14px; }
.wide-in { width: 100%; min-height: 44px; }
.row-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 12px; margin: 0 0 16px; }
.row-panel summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.row-kv { grid-template-columns: 170px minmax(0, 1fr); }
@media (max-width: 640px) { .row-kv { grid-template-columns: 1fr; } .row-kv dd { margin-bottom: 8px; } }
/* Tasks handed to Claude: easy to spot, without competing with deadline colours */
.trow.cj-row { background: #EEF3EF; box-shadow: inset 4px 0 0 var(--sage-text); }
.trow.cj-with { background-image: linear-gradient(var(--sage-text) 50%, transparent 50%); background-size: 4px 10px; background-repeat: repeat-y; background-position: left top; box-shadow: none; }
.trow.cj-back { box-shadow: inset 4px 0 0 var(--ink); }
.cj-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; background: var(--sage); color: var(--sage-text); border: 1px solid var(--sage-text); border-radius: 4px; padding: 2px 7px; }
.cj-chip.back { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cj-chip.back::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--orange); }
/* Event rows: room for the slash at the master angle (0.79 wide for its height) */
.ev-row2 { grid-template-columns: 92px 36px minmax(0, 1.6fr) minmax(0, 1fr); }
.ev-row2 .ev-slash { width: 100%; height: auto; max-width: 35px; }
@media (max-width: 860px) { .ev-row2 { grid-template-columns: 84px 28px minmax(0, 1fr); } }
@media (max-width: 560px) { .ev-row2 { grid-template-columns: 70px 24px minmax(0, 1fr); } }
.conf-pick { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; align-items: flex-start; }
/* Brain Dump: the idea first, details small underneath */
.ideas { list-style: none; padding: 0; margin: 0; }
.idea { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--line); }
.idea:first-child { border-top: 0; }
.idea-slash { width: 13px; height: 16px; margin-top: 4px; }
.idea-text { margin: 0; font-size: 16px; line-height: 1.45; }
.idea-meta { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.idea.is-done .idea-text { color: var(--muted); }
.idea.is-done .idea-slash path { fill: var(--line); }
@media (max-width: 640px) { .idea { grid-template-columns: 16px minmax(0, 1fr); } .idea > .btn { grid-column: 2; justify-self: start; } }

/* Watch: events you're tracking */
.grp-h { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 28px 0 4px; }
.grp-sub { color: var(--body); font-size: 14px; margin: 0 0 4px; }
.cov-btns button[disabled] { opacity: .4; cursor: not-allowed; }

/* Keep screen on (Capture): a real Screen Wake Lock switch in the sticky capture bar */
.wake-slot { flex: 1 1 260px; min-width: 0; }
.wake-sw { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.wake-sw[aria-disabled="true"] { cursor: default; opacity: .6; }
.wake-track { flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; transition: background .15s; }
.wake-track i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.wake-sw[aria-checked="true"] .wake-track { background: var(--ink); }
.wake-sw[aria-checked="true"] .wake-track i { transform: translateX(20px); }
.wake-sw:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wake-txt { display: flex; flex-direction: column; line-height: 1.25; }
.wake-txt b { font-size: 15px; }
.wake-txt small { font-size: 13px; color: var(--body); }
@media (prefers-reduced-motion: reduce) { .wake-track, .wake-track i { transition: none; } }

/* Autosave status: "Saves as you type" · "Saving…" · "Saved 9:02am" · "Not saved, retrying" */
.as-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); min-height: 20px; }
.as-status b { color: var(--ink); font-weight: 600; }
.as-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.as-dot.pend { background: var(--muted); animation: as-pulse 1s ease-in-out infinite; }
.as-dot.ok { background: var(--ink); }
.as-dot.bad { background: var(--orange); }
@keyframes as-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .as-dot.pend { animation: none; } }
.form-status { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.np-add + .as-status, textarea + .as-status, label + .as-status { margin-top: 6px; }

/* ---------- Voice card (D324) ---------- */
.vc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 18px 0 16px; }
.vsteps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.vsteps button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--body); font: 500 14px var(--sans); cursor: pointer; }
.vsteps .vs-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); font: 600 13px var(--mono); color: var(--ink); }
.vsteps button.done .vs-n { background: var(--sage); color: var(--sage-text); }
.vsteps button[aria-current="step"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vsteps button[aria-current="step"] .vs-n { background: var(--ink); color: var(--white); }
.vc-part h2, .claude-steps h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 6px 0 0; }
.vc-intro { color: var(--body); font-size: 15px; line-height: 1.5; background: var(--paper); border-radius: 10px; padding: 12px 14px; }
.vq { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.vq-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.vq-h b { font-size: 16px; }
.vq-h .help { margin: 4px 0 0; }
.vq-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font: 600 12px var(--mono); }
.vq textarea, .vq input.text-input { width: 100%; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.vchip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.vchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.traits { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.traits li { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.traits li.on { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.tr-pick { flex: 1; text-align: left; min-height: 48px; padding: 8px 12px; border: 0; background: none; font: 14px/1.35 var(--sans); color: var(--body); cursor: pointer; }
.tr-pick b { color: var(--ink); }
.tr-star { flex: none; width: 52px; border: 0; border-left: 1px solid var(--line); background: var(--paper); font-size: 20px; color: var(--ink); cursor: pointer; }
.tr-star:disabled { opacity: .3; cursor: default; }
.tr-star[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.dial { display: grid; grid-template-columns: 140px auto 1fr; align-items: center; gap: 8px 14px; padding: 8px 0; }
.dial-l { font-weight: 600; }
.dial-seg button { min-width: 44px; min-height: 44px; }
.vc-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.vc-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vc-pt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 8px; background: none; font: 13px var(--sans); color: var(--body); cursor: pointer; }
.vc-pt span { font: 600 12px var(--mono); }
.vc-pt.ok { border-style: solid; }
.vc-pt.ok span::after { content: " ✓"; }
.vc-pt.cur { border: 1px solid var(--ink); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .45; }
.center { text-align: center; }
/* The three Claude steps: one obvious button each */
.cs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.cs-list > li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.cs-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); font: 600 18px var(--display); }
.cs-list b { font-size: 17px; }
.cs-list p { margin: 4px 0 10px; color: var(--body); }
.cs-list textarea { width: 100%; margin-bottom: 10px; }
.send-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.stuck { margin-top: 14px; background: var(--sage); color: var(--sage-text); border-radius: 10px; padding: 0 14px; }
.stuck summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--ink); cursor: pointer; }
.stuck ul { margin: 0 0 12px; padding-left: 18px; }
.stuck li { margin: 6px 0; }
.peek summary { min-height: 44px; display: flex; align-items: center; font-size: 13px; color: var(--body); cursor: pointer; }
.peek pre, .stuck pre { max-height: 320px; overflow: auto; white-space: pre-wrap; }
.pol-sum { font-size: 13.5px; margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--paper); }
.pol-sum.warn { box-shadow: inset 3px 0 0 var(--orange); }
/* The card, in the Appendix B layout */
.vcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); margin-top: 12px; }
.vcard-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 16px; background: var(--ink); color: var(--white); }
.vcard-top .kv-l { color: var(--on-ink); display: block; }
.vcard-row { display: grid; grid-template-columns: minmax(180px, 32%) 1fr; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.vcard-row.missing { box-shadow: inset 3px 0 0 var(--orange); }
.vcard-l b { display: block; }
.vcard-l .evid { display: block; margin-top: 2px; }
.vcard-row textarea { width: 100%; }
.vcard-v { white-space: normal; line-height: 1.5; }
.vcard-keeps { padding: 12px 16px; background: var(--sage); color: var(--sage-text); border-top: 1px solid var(--line); }
.vcard-keeps b { color: var(--ink); }
.vcard-keeps ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.vc-ready { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 6px; }
.vc-ready li { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; }
.vc-ready li > div { flex: 1; min-width: 0; padding-top: 2px; }
.vc-ready li > span { flex: none; }
.vc-ready li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); font-weight: 700; }
.vc-ready li.ok > span { background: var(--ink); color: var(--white); }
.check-line.big { font-size: 16px; min-height: 48px; }
.check-line.big input { width: 22px; height: 22px; }
.drive-box { margin-top: 14px; }
.vc-answers h3 { font-family: var(--display); font-size: 18px; margin: 18px 0 6px; }
.vc-answers h3:first-child { margin-top: 0; }
.va { padding: 8px 0; border-top: 1px solid var(--line); }
.va p { margin: 4px 0 0; color: var(--body); }
.vc-line { font-size: 14px; margin: 6px 0; }
/* Laine's view of a reviewer's polished draft (D325) */
.rpol { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 14px 16px; margin-bottom: 14px; }
.rpol-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.rpol-text { max-height: 520px; overflow: auto; font-size: 14.5px; line-height: 1.55; padding: 12px; background: var(--paper); border-radius: 8px; }
.rpol textarea { width: 100%; }
mark.chk { background: color-mix(in srgb, var(--orange) 16%, var(--white)); color: var(--ink); padding: 0 2px; border-radius: 3px; box-shadow: inset 0 -2px 0 var(--orange); }
.self-polish > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
@media (max-width: 809px) {
  .vcard-top { grid-template-columns: 1fr 1fr; }
  .vcard-row { grid-template-columns: 1fr; gap: 6px; }
  .dial { grid-template-columns: 1fr; gap: 4px; }
  .vsteps .vs-t { font-size: 13px; }
  .cs-list > li { grid-template-columns: 36px 1fr; gap: 10px; }
  .cs-n { width: 34px; height: 34px; font-size: 16px; }
}
.vs-cur { display: none; margin: 0; font-size: 14px; }
@media (max-width: 480px) {
  .vsteps { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; gap: 6px; }
  .vsteps button { width: 100%; justify-content: center; padding: 0; min-height: 48px; }
  .vsteps .vs-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vs-cur { display: block; width: 100%; }
  .vc-nav .btn { flex: 1 1 100%; }
  .vcard-top { grid-template-columns: 1fr; }
}
.gate-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 10px; }
.gate-list > li { padding: 10px 12px; border-radius: 8px; background: var(--paper); box-shadow: inset 3px 0 0 var(--line); display: grid; gap: 8px; }
.gate-list > li.ok { box-shadow: inset 3px 0 0 var(--ink); }
.gate h3 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; }
.vc-save { display: grid; gap: 2px; }
.drive-box ul ul { margin: 6px 0 0; padding-left: 18px; }
/* "Viewing as" at the foot of the page, phone and tablet only (the sidebar one is hidden there) */
.who-m { display: none; margin: 40px 0 8px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--white); }
.who-m label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; margin-bottom: 8px; }
.who-m select { min-height: 44px; width: 100%; }
@media (max-width: 860px) { .who-m { display: block; } }

/* v3.66 Templates Library: boards drawn by the template pack (T287). Only the frame around each board is styled here. */
.lib-filters { align-items: flex-end; }
.lib-f { display: flex; flex-direction: column; }
.lib-group { margin-top: 28px; }
.lib-gh { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lib-gh h2 { margin: 0; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.lib-card { overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.lib-art { background: var(--badge); height: 300px; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.lib-fit { position: relative; overflow: hidden; background: var(--white); box-shadow: 0 1px 8px rgba(18, 18, 18, .18); opacity: .35; transition: opacity .2s; }
.lib-fit.ready { opacity: 1; }
.lib-fit iframe { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; pointer-events: none; }
.lib-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.lib-body h3 { margin: 6px 0 0; }
.lib-body p { margin: 0; font-size: 13.5px; }
.lib-meta b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.lib-check { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px; padding: 8px 10px; margin-top: 6px !important; }
.lib-check b { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: .06em; margin-right: 4px; }
.lib-body .btn-row { margin-top: auto; padding-top: 10px; }
.lib-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-chips .chip { background: var(--badge); color: var(--ink); }
.lib-chips .lib-st-ready { background: var(--sage); color: var(--sage-text); }
.lib-chips .lib-st-check, .lib-chips .lib-st-not-for-posting-T169 { background: var(--ink); color: var(--white); }
.lib-chips .lib-st-test { background: var(--white); border-color: var(--line); color: var(--muted); }
.lib-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; padding: 0; font: 600 21px/1.12 var(--display); letter-spacing: -.005em; word-spacing: .12em; color: var(--ink); cursor: pointer; }
.lib-caret { font-size: 14px; width: 14px; }
.lib-tests > .evid { margin: 0 0 12px; }
.lib-art.wide { height: 170px; }
.lib-art-full { height: min(70vh, 720px); margin-top: 12px; border-radius: 8px; }
@media (max-width: 640px) {
  .lib-grid { grid-template-columns: minmax(0, 1fr); }
  .lib-art { height: 340px; }
  .lib-art.wide { height: 150px; }
  .lib-f, .lib-f .select { width: 100%; }
}

/* v3.67 Post studio on the template pack. Boards draw themselves; this only frames them and styles the panel. */
.pk-stage { height: min(72vh, 680px); border-radius: 10px; padding: 18px; }
.pk-stage.tall { height: min(78vh, 760px); }
.pk-stage.wide { height: 340px; }
.thumb-btn .pk-art-thumb { display: grid; height: 132px; padding: 6px; border-radius: 6px; }
.thumb-btn .tn { position: absolute; top: 4px; left: 4px; }
.pk-pv { height: 460px; padding: 0; background: var(--ink); }
.pk-qa { max-width: 640px; margin: 8px auto 0; font-size: 13.5px; }
.pk-ok { color: var(--sage-text); background: var(--sage); border-radius: 8px; padding: 8px 12px; margin: 0; }
.pk-bad { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px; padding: 8px 12px; }
.pk-bad ul { margin: 4px 0 0; padding-left: 18px; }
.pk-notes { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.pk-notes p { margin: 2px 0; }
.pk-sec { margin: 18px 0 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.pk-f { margin-top: 10px; }
.pk-f .help { display: block; font-size: 12px; margin-top: 2px; }
.pk-f.pk-missing textarea, .pk-f.pk-check textarea { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--orange); }
.src.set { background: var(--badge); color: var(--body); }
.pk-sw { display: flex; gap: 8px; flex-wrap: wrap; }
.pk-swb { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .15); position: relative; }
.pk-swb[aria-checked="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.pk-swb:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pk-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.pk-switch input { width: 20px; height: 20px; accent-color: var(--ink); }
.pk-pick { list-style: none; margin: 6px 0; padding: 0; font-size: 13.5px; }
.pk-pick li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pk-pick label { display: flex; gap: 8px; align-items: flex-start; min-height: 32px; cursor: pointer; }
.pk-pick input { margin-top: 3px; accent-color: var(--ink); }
.pk-files { margin-top: 12px; font-size: 13px; }
.pk-files p { margin: 6px 0; }
.pk-export-host { position: fixed; left: -20000px; top: 0; pointer-events: none; }
.pk-export-host iframe { border: 0; }
@media (max-width: 640px) {
  .pk-stage, .pk-stage.tall { height: 460px; padding: 10px; }
  .thumb-btn .pk-art-thumb { height: 110px; }
}
.pst-due { background: #FFF5D6; color: #6b5300; }
.pc-due { background: #FFF5D6 !important; }
.cal-table td { white-space: nowrap; }
.cal-table td:nth-child(8) { white-space: normal; min-width: 220px; }
.pk-note { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; font-size: 13.5px; }
.pk-note.on { border-color: var(--ink); }
