/* Capelo Care staff admin (admin.capelocare.com). Classroom's gentler layout with Capelo Care's tokens
   (src/constants/theme.ts; spec A-staff-admin "Look"). Series colors: the validated categorical palette, fixed order. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; src: url('/_admin/fonts/PlusJakartaSans_400Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; src: url('/_admin/fonts/PlusJakartaSans_600SemiBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; src: url('/_admin/fonts/PlusJakartaSans_700Bold.ttf') format('truetype'); font-display: swap; }
:root {
  --bg: #F7F6F2; --surface: #FFFFFF; --ink: #0B1F3A; --muted: #5A6475; --line: #E2E0D8; --divider: #EEECE5;
  --teal: #167560; --on-teal: #FFFFFF; --teal-soft: #E8F5F1; --attention: #B4532E; --attention-soft: #FBEDE6; --attention-on-soft: #A84C29; --grid: #EEECE5;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; } h2 { font-size: 1.1rem; margin: 24px 0 8px; } h3 { font-size: 1rem; margin: 0 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .attention { color: var(--attention); }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
nav.side { border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; }
/* Wordmark (Tim, Nov 6, 2026): "Capelo Care" in Capelo Care's navy, "staff" in orange. The orange is the darker
   attention tone, because brand coral (#E8825A) fails text contrast on this background. */
nav.side .brand { font-weight: 700; font-size: 17px; padding: 0 10px 16px; }
nav.side .brand .wm { color: var(--ink); } nav.side .brand .st { color: var(--attention); }
nav.side a.sec, nav.side .sec.demo { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
nav.side a.sec:hover { background: var(--teal-soft); }
nav.side a.sec[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }
/* Hubs and alerts on tiles (Nov 6, 2026). Every indicator carries words, never color alone. */
.tile.go { display: block; color: var(--ink); text-decoration: none; min-height: 120px; }
.tile.go:hover { border-color: var(--teal); }
.tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.tile-head .t { font-weight: 600; }
.tile .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tiles.hubs, .tiles.secs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ind { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 1px 9px; white-space: nowrap; }
.ind i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; }
.ind-alert { background: #FBE4E2; color: #A1271F; }
.ind-action { background: var(--attention-soft); color: var(--attention-on-soft); }
.ind-new { background: var(--teal-soft); color: var(--teal); }
nav.side a.sec .ind { font-size: 11px; padding: 0 7px; }
.spark { color: var(--teal); display: block; margin-top: 8px; }
.bar { height: 8px; background: var(--divider); border-radius: 999px; overflow: hidden; margin: 2px 0 8px; }
.bar span { display: block; height: 100%; background: var(--teal); }
.mix { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.crumb { margin: 0 0 8px; }
nav.side .foot .footlink { font-weight: 600; display: inline-block; min-height: 32px; }
nav.side .count { background: var(--attention-soft); color: var(--attention); border-radius: 999px; font-size: 12px; padding: 0 8px; min-width: 22px; text-align: center; }
nav.side .foot { margin-top: auto; padding: 16px 10px 0; font-size: 13px; color: var(--muted); word-break: break-all; }
main { padding: 28px 32px 64px; max-width: 1180px; width: 100%; }
main > p.lead { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.tile .n { font-size: 1.8rem; font-weight: 700; line-height: 1.15; } .tile .l { color: var(--muted); font-size: 13px; }
.tile.warn { border-color: var(--attention); } .tile.warn .n { color: var(--attention); }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.link { cursor: pointer; } tr.link:hover td, tr.link:focus-visible td { background: var(--teal-soft); }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 600; background: var(--divider); color: var(--ink); }
.pill.open { background: var(--attention-soft); color: var(--attention-on-soft); } .pill.ok { background: var(--teal-soft); color: var(--teal); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.pills button { border-radius: 999px; min-height: 36px; font-weight: 600; }
.pills button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
button, .btn { white-space: nowrap; font: inherit; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
button.primary { background: var(--teal); color: var(--on-teal); border-color: var(--teal); }
button.quiet-danger { color: var(--attention); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 6px 10px; }
textarea { width: 100%; min-height: 140px; resize: vertical; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 8px 0 16px; }
.filters label { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.filters .check { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); min-height: 44px; margin: 0; font-size: 14px; }
.filters .check input { min-height: auto; }
.thread { display: grid; gap: 10px; margin: 16px 0; }
.msg { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); white-space: pre-wrap; max-width: 760px; }
.msg.staff { background: var(--teal-soft); border-color: transparent; margin-left: 40px; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.banner { border: 1px solid var(--attention); background: var(--attention-soft); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.center { max-width: 420px; margin: 12vh auto; padding: 0 16px; }
.center .card { padding: 24px; } .center input { width: 100%; }
.err { color: var(--attention); min-height: 1.5em; margin-top: 8px; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-width: 140px; display: none; z-index: 3; }
.tip .t { font-weight: 700; margin-bottom: 2px; } .tip .r { display: flex; justify-content: space-between; gap: 12px; } .tip .r i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
details summary { cursor: pointer; font-weight: 600; margin: 16px 0 8px; min-height: 44px; display: flex; align-items: center; }
.reqs { display: grid; gap: 12px; }
.req-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; font-size: 14px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.hardest { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; }
.next { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; margin: 8px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
textarea.short { min-height: 64px; }
fieldset.reason { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0 0; padding: 8px 12px 12px; }
fieldset.reason legend { font-weight: 600; padding: 0 4px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; min-height: 44px; margin: 0; }
label.check input { min-height: auto; }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  nav.side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  nav.side .brand { width: 100%; padding: 0 0 6px; } nav.side .foot { width: 100%; margin-top: 6px; padding: 0; }
  main { padding: 16px; } .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } table { display: block; overflow-x: auto; }
}

/* Articles editor (W Insights manager). The preview below copies capelocare.com's article rules from
   marketing/src/assets/shell.css (lines .ccs-article*), so a draft looks the way the live page will. Keep them in step.
   Fonts: the live site's Poppins and Nunito aren't loaded here (scripts and fonts come only from this site), so the
   preview uses the nearest system fonts; sizes, colors and spacing match. */
.ccs-article { max-width: 820px; margin: 0 auto; padding: 72px 20px 64px; box-sizing: border-box; }
.ccs-article-title { font-family: 'Poppins', sans-serif; font-weight: 400; color: #2c8a8f; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; margin: 0 0 28px; }
.ccs-article-body p, .ccs-article-body li { font-family: 'Nunito', sans-serif; font-size: 20px; line-height: 1.6; color: #6b7280; font-weight: 400; }
.ccs-article-body p { margin: 0 0 26px; }
.ccs-article-body ul, .ccs-article-body ol { margin: 0 0 26px; padding-left: 1.4em; }
.ccs-article-body h2 { font-family: 'Poppins', sans-serif; font-weight: 500; color: #2c8a8f; font-size: 26px; line-height: 1.35; margin: 44px 0 14px; }
.ccs-article-body h3 { font-family: 'Poppins', sans-serif; font-weight: 500; color: #14284b; font-size: 21px; line-height: 1.4; margin: 32px 0 10px; }
.ccs-article-body a { color: #2c8a8f; text-decoration: underline; text-underline-offset: 3px; }
.ccs-article-body strong { color: #4b5563; }
.ccs-article-body table { border-collapse: collapse; width: 100%; margin: 0 0 26px; font-family: 'Nunito', sans-serif; font-size: 17px; display: block; overflow-x: auto; }
.ccs-article-body th { color: #14284b; background: #f3f6f8; font-weight: 600; }
.ccs-article-body td { color: #374151; font-weight: 400; }
.ccs-article-body th, .ccs-article-body td { border: 1px solid #dde3e8; padding: 10px 12px; text-align: left; vertical-align: top; }
.ccs-article-body figure { margin: 0 0 26px; }
.ccs-article { padding: 24px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; max-width: none; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.editor input[type=text], .editor select, .editor textarea { width: 100%; }
.editor textarea.body { min-height: 520px; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.editor .preview-col { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.hint { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.checks { margin: 0 0 12px; } .checks li { margin: 4px 0; }
.checks .where { color: var(--muted); font-size: 12px; }
.confirm { border: 1px solid var(--attention); background: var(--attention-soft); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.status-line { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
td select { min-height: 36px; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } .editor .preview-col { position: static; max-height: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Needs-you list in the sidebar (Nov 6, 2026): every alert and action, most urgent first. */
nav.side .side-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 10px 6px; }
nav.side a.need { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; min-height: 44px; }
nav.side a.need:hover, nav.side a.need[aria-current="page"] { background: var(--teal-soft); }
nav.side a.need i { width: 8px; height: 8px; border-radius: 50%; grid-row: 1 / span 2; }
nav.side a.need .what { font-weight: 600; font-size: 14px; line-height: 1.25; }
nav.side a.need .lbl { font-size: 12px; grid-column: 2; }
nav.side a.need-alert i { background: #A1271F; } nav.side a.need-alert .lbl { color: #A1271F; }
nav.side a.need-action i { background: var(--attention); } nav.side a.need-action .lbl { color: var(--attention); }
nav.side .need-empty { padding: 0 10px; }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }

/* Home: app-launcher tiles, one per hub (Tim, Nov 6, 2026: "the okta style of tiles"). */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 8px; }
.app { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 16px 20px; min-height: 196px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.app:hover, .app:focus-visible { border-color: var(--teal); box-shadow: 0 2px 10px rgba(11, 31, 58, .07); }
.app .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; }
.app .t { font-weight: 700; font-size: 15px; }
.app .n { font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.app .l { color: var(--muted); font-size: 12px; }
.app .app-ind { margin-top: auto; padding-top: 10px; min-height: 30px; }
.icon-money { background: var(--teal-soft); color: var(--teal); }
.icon-growth { background: #E7ECF4; color: var(--ink); }
.icon-members { background: var(--teal-soft); color: var(--teal); }
.icon-support { background: var(--attention-soft); color: var(--attention-on-soft); }
.icon-verification { background: #E7ECF4; color: var(--ink); }
.icon-systems { background: var(--divider); color: var(--muted); }

/* Beta and regular members (Nov 6, 2026). */
.pill.beta { background: var(--attention-soft); color: var(--attention-on-soft); } .pill.regular { background: #E7ECF4; color: var(--ink); }
.card.compare { grid-column: 1 / -1; }
.card.compare table { border: 0; margin: 4px 0 8px; } .card.compare th, .card.compare td { padding: 8px 10px; }
@media (max-width: 760px) {
  nav.side .side-h { width: 100%; margin: 8px 0 2px; } nav.side #needs { width: 100%; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .app { min-height: 168px; padding: 22px 10px 16px; }
}

/* All members or beta only (Nov 6, 2026): a switch at the top right of member pages. */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 32px; }
.page-head .crumb { margin: 0; }
label.switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; min-height: 44px; font-weight: 600; font-size: 14px; cursor: pointer; }
label.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.switch .track { width: 42px; height: 24px; border-radius: 999px; background: #7C8595; position: relative; transition: background .15s; flex: none; }
label.switch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: left .15s; box-shadow: 0 1px 2px rgba(11, 31, 58, .2); }
label.switch input:checked + .track { background: var(--teal); }
label.switch input:checked + .track .knob { left: 21px; }
label.switch input:focus-visible + .track { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Small charts (hubs and the funder report). */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 8px; }
figure.chart { margin: 0; position: relative; }
figure.chart .t { font-weight: 600; display: block; margin-bottom: 2px; }
.mini { position: relative; margin-top: 8px; }
.mini svg { display: block; width: 100%; height: auto; overflow: visible; }
.nums summary { min-height: 32px; display: flex; align-items: center; color: var(--muted); margin: 4px 0 0; }
.nums table { margin-top: 6px; font-size: 13px; }

/* Funder report */
.report-actions { margin: 8px 0 16px; }
.report-head .brand { font-weight: 700; font-size: 17px; } .report-head .wm { color: var(--ink); }
.report section { margin-top: 8px; }
.report-title { font-size: 1.5rem; margin: 2px 0 4px; }
.report-notes p { max-width: 860px; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12px; }
  .shell { display: block; } nav.side, .noprint, .crumb, .tip { display: none !important; }
  main { padding: 0; max-width: none; }
  .card, figure.chart, .report section { break-inside: avoid; }
  .tiles { grid-template-columns: repeat(3, 1fr); } .charts { grid-template-columns: repeat(2, 1fr); }
}

/* Revenue (Money step 2, Nov 6, 2026) */
.banner.alert { border-color: #A1271F; background: #FBE4E2; color: #7A1D17; }
.pill.internal { background: #E7ECF4; color: var(--muted); }
.check-open { border-color: #A1271F; margin: 12px 0; }
.check-open p { margin: 8px 0; }
.check-open form { align-items: end; flex-wrap: wrap; }
.check-open .grow { flex: 1 1 260px; margin: 0; }
.check-open .grow input { width: 100%; }
/* Back one level (Tim, Nov 7, 2026): a clear link to the parent hub, at least 44px tall. */
.crumb a.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.crumb a.back:hover { border-color: var(--teal); text-decoration: none; }
.crumb a.back span { font-size: 18px; line-height: 1; }
.report-table { margin-top: 16px; }
.report h3 { margin: 20px 0 0; }
/* Requirement reports (Nov 7, 2026): the resolved answer a repeat points to, set off inside its card. */
.card.matched { margin: 8px 0; padding: 10px 12px; background: var(--bg); border-left: 3px solid var(--teal); }
/* Demos in the sidebar (Nov 7, 2026): the same row as a section link, as a real button. */
nav.side button.sec.demo { width: 100%; background: none; border: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
nav.side button.sec.demo:hover { background: var(--teal-soft); }
nav.side button.sec.demo:disabled { opacity: .6; cursor: progress; }
nav.side span.sec.demo.off { color: var(--muted); font-weight: 600; }
nav.side .side-note { margin: 4px 10px 0; }
/* Customer success figures (step 3, 3b): one card per figure, its chart inside without a second border. */
.cs-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 8px; }
.cs-fig .n { font-size: 28px; font-weight: 700; }
.cs-fig figure.card { border: 0; padding: 0; margin: 8px 0 0; box-shadow: none; }
@media (max-width: 600px) { .cs-figs { grid-template-columns: 1fr; } }
/* Check-ins (step 3, 3c) */
.warn-list { margin: 6px 0; padding-left: 18px; color: var(--attention-on-soft); }
.ci-pre { white-space: pre-wrap; font: inherit; background: var(--bg); padding: 10px; border-radius: 8px; }
.ci-tpl { margin-top: 12px; }
.ci-tpl textarea, [id^="ci-"] textarea { width: 100%; }

/* Sidebar panels (Tim, Nov 7, 2026: Needs you and Demos each in their own on-brand color).
   Needs you: soft coral, the attention color, so it reads as "act on this". Demos: soft navy. Text 4.5:1 or better on
   the panel and on hover (labels in the panel use a deeper coral, #8F3F21, 6.3:1). */
nav.side .side-panel { border-radius: 12px; padding: 4px 4px 8px; margin-top: 14px; }
nav.side .side-panel .side-h { margin: 10px 8px 4px; }
nav.side .panel-needs { background: var(--attention-soft); }
nav.side .panel-needs .side-h { color: #8F3F21; }
nav.side .panel-needs a.need:hover, nav.side .panel-needs a.need[aria-current="page"] { background: #F6DDD0; }
nav.side .panel-needs a.need-action .lbl { color: #8F3F21; } nav.side .panel-needs a.need-action i { background: #B4532E; }
nav.side .panel-needs .need-empty { color: #8F3F21; }
nav.side .panel-demos { background: #E7ECF4; }
nav.side .panel-demos .side-h { color: var(--ink); }
nav.side .panel-demos button.sec.demo:hover { background: #D7DFEC; }
nav.side .panel-demos .side-note, nav.side .panel-demos .muted { color: #4A5568; }
nav.side .demo-setup { margin: 6px 8px 2px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--ink);
  color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }
nav.side .demo-wake { display: block; width: calc(100% - 16px); min-height: 44px; }
nav.side .demo-setup:disabled { opacity: .7; cursor: progress; }
nav.side .panel-demos .sec.demo { gap: 8px; }

/* Builds (ADM, Nov 8, 2026): the list's states and the project timeline, matching the claude.ai Chartbook page's
   information (done, now, upcoming, past estimate, milestones open) in the admin's tokens. Words always carry the state. */
.pill.late { background: #FBE4E2; color: #A1271F; }
.build-check { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.build-err { border-left: 3px solid #A1271F; background: #FBE4E2; color: #7A1D17; border-radius: 6px; padding: 6px 10px; margin: 8px 0; font-size: 13px; }
.build-links { margin: 0 0 12px; }
.build-sum { display: grid; gap: 8px; max-width: 760px; }
.build-err-row td { padding-top: 0; }
main .build-err { max-width: 760px; }
.build-sum .label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.build-sum .big { font-weight: 700; font-size: 1.05rem; }
.build-sum .bar { height: 6px; margin: 0; }
.build-sum .bar > i { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.build-signals, .build-prs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 760px; }
.build-signals li, .build-prs li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.build-signals .ind { margin-right: 8px; }
.tl-stage { max-width: 760px; }
.tl-stage h2 { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 20px 0 10px; }
ol.tl { list-style: none; margin: 0; padding: 0; position: relative; }
ol.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
ol.tl li { position: relative; padding: 0 0 14px 30px; }
ol.tl li::before { content: ""; position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid #8B95A6; }
ol.tl li.done::before { background: var(--teal); border-color: var(--teal); }
ol.tl li.now::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
ol.tl li.ms::before { border-radius: 3px; transform: rotate(45deg); width: 12px; height: 12px; left: 2px; top: 5px; }
.tl-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tl-name { font-weight: 600; min-width: 0; }
ol.tl li.done .tl-name { color: var(--muted); font-weight: 400; }
.tl-date { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-note { color: var(--muted); font-size: 13px; margin-top: 1px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.chip-now { background: var(--teal-soft); color: var(--teal); }
.chip-late { background: var(--attention-soft); color: var(--attention-on-soft); }
.chip-open { background: var(--divider); color: var(--muted); }

/* Battle cards: a company's card opens as a pop-up over the list (Nov 10). Native <dialog>: Escape closes it. */
.bc-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  overflow: auto; background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px rgba(11, 31, 58, 0.18); }
.bc-dialog::backdrop { background: rgba(11, 31, 58, 0.45); }
.bc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bc-head h2 { margin: 0; }
.bc-close { min-height: 44px; min-width: 44px; }
.bc-form { display: grid; gap: 12px; margin-top: 12px; }
.bc-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.bc-form input, .bc-form textarea { width: 100%; box-sizing: border-box; }
.bc-more { border-top: 1px solid var(--divider); padding-top: 10px; }
.bc-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.bc-more > * + * { margin-top: 12px; }
@media (max-width: 600px) { .bc-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; margin: 0; padding: 16px; } }

/* Battle card risk and market (Nov 10). Text on its tint is 5:1 or better; the left stripe is 3:1 or better on white
   (WCAG 1.4.11). The words always sit beside the colour (1.4.1). */
.bc-tile { border-left: 6px solid #8A8A8A; }
.bc-tile.risk-high { border-left-color: #C0392B; }
.bc-tile.risk-medium { border-left-color: #A87300; }
.bc-tile.risk-low { border-left-color: #167560; }
.bc-pills, .bc-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.bc-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.bc-pill.risk-high { background: #FBE4E1; color: #9B2C1F; }
.bc-pill.risk-medium { background: #FDF1CF; color: #7A5300; }
.bc-pill.risk-low { background: #E8F5F1; color: #167560; }
.bc-pill.risk-none { background: #EEECE5; color: #4A5568; }
.bc-pill.mkt-in { background: #FFFFFF; color: #0B1F3A; border: 1px solid #0B1F3A; }
.bc-pill.mkt-adjacent { background: #FFFFFF; color: #4A5568; border: 1px dashed #4A5568; }
.bc-pill.mkt-out { background: #EEECE5; color: #4A5568; }
.bc-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bc-choices select { min-height: 44px; width: 100%; }
/* LEGAL (Nov 18, 2026): the review fields, label and field side by side on a wide screen. */
.grid2 { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 8px 12px; align-items: center; max-width: 640px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
