/* Brand palette (light): navy #1d2b45, deep teal #0f766e, accent teal #0d9488,
   near black #0b0c0e, near white #f9fafb, light blue #dbe4ec. Dark mode is built
   from the same six colors plus transparency only. The presentation deck always
   uses the light tokens, because it is projected. */
:root, .deck {
  color-scheme: light;
  --navy: #1d2b45;
  --teal: #0f766e;
  --accent: #0d9488;
  --bar: #1d2b45;
  --heading: #1d2b45;
  --ink: #0b0c0e;
  --link: #0f766e;
  --mist: #dbe4ec;
  --alert: #dc2626;
  --alert-dark: #991b1b;
  --paper: #ffffff;
  --page: #f9fafb;
  --field: #ffffff;
  --line: #c9d4de;
  --muted: #3e4c63;
  --hover: #f1f5f9;
  --tint: #eef6f5;
  --tint-alert: #fdf0f0;
  --done: #cfe6e3;
  --ack: #f7f9fb;
  --suggest: #fffaf0;
  --divider-hover: #b9c8d6;
  --btn-hover: #1d2b45;
  --private: #1d2b45;
  --strong: #0f766e;
  --strong-bg: #d9efec;
  --partial: #8a5a00;
  --partial-bg: #fbeccb;
  --red-bg: #fbe1e1;
  --high: #9c4221;
  --high-bg: #fde3cf;
  --band-elevated: #d69e2e;
  --band-high: #dd6b20;
  --focus: rgba(15, 118, 110, 0.35);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(29, 43, 69, 0.08);
}

/* Dark: chosen with the theme switch, or by the device when it's on Auto. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --heading: #dbe4ec;
  --ink: #f9fafb;
  --link: #0d9488;
  --mist: #1d2b45;
  --alert-dark: #fbe1e1;
  --paper: color-mix(in srgb, #1d2b45 55%, #0b0c0e);
  --page: #0b0c0e;
  --field: #0b0c0e;
  --line: rgba(219, 228, 236, 0.18);
  --muted: rgba(219, 228, 236, 0.75);
  --hover: rgba(219, 228, 236, 0.08);
  --tint: rgba(13, 148, 136, 0.16);
  --tint-alert: rgba(220, 38, 38, 0.16);
  --done: rgba(13, 148, 136, 0.28);
  --ack: rgba(219, 228, 236, 0.05);
  --suggest: rgba(214, 158, 46, 0.12);
  --divider-hover: rgba(219, 228, 236, 0.3);
  --btn-hover: #0d9488;
  --private: rgba(219, 228, 236, 0.55);
  --strong: #f9fafb;
  --strong-bg: rgba(15, 118, 110, 0.55);
  --partial: #fbeccb;
  --partial-bg: rgba(214, 158, 46, 0.25);
  --red-bg: rgba(220, 38, 38, 0.25);
  --high: #fde3cf;
  --high-bg: rgba(221, 107, 32, 0.25);
  --focus: rgba(13, 148, 136, 0.55);
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --heading: #dbe4ec;
    --ink: #f9fafb;
    --link: #0d9488;
    --mist: #1d2b45;
    --alert-dark: #fbe1e1;
    --paper: color-mix(in srgb, #1d2b45 55%, #0b0c0e);
    --page: #0b0c0e;
    --field: #0b0c0e;
    --line: rgba(219, 228, 236, 0.18);
    --muted: rgba(219, 228, 236, 0.75);
    --hover: rgba(219, 228, 236, 0.08);
    --tint: rgba(13, 148, 136, 0.16);
    --tint-alert: rgba(220, 38, 38, 0.16);
    --done: rgba(13, 148, 136, 0.28);
    --ack: rgba(219, 228, 236, 0.05);
    --suggest: rgba(214, 158, 46, 0.12);
    --divider-hover: rgba(219, 228, 236, 0.3);
    --btn-hover: #0d9488;
    --private: rgba(219, 228, 236, 0.55);
    --strong: #f9fafb;
    --strong-bg: rgba(15, 118, 110, 0.55);
    --partial: #fbeccb;
    --partial-bg: rgba(214, 158, 46, 0.25);
    --red-bg: rgba(220, 38, 38, 0.25);
    --high: #fde3cf;
    --high-bg: rgba(221, 107, 32, 0.25);
    --focus: rgba(13, 148, 136, 0.55);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: "Roboto", Arial, Helvetica, sans-serif; color: var(--heading); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }
p { margin: 0 0 0.75em; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 880px; margin: 0 auto; padding: 16px; }
.wrap.wide { max-width: 1400px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar); color: #f9fafb;
  padding: 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
.topbar .brand { font-family: "Roboto", Arial, sans-serif; font-weight: 700; font-size: 1rem; }
.topbar .sub { opacity: 0.85; font-size: 0.85rem; }
.topbar .spacer { flex: 1; }
.topbar .chip { background: rgba(249, 250, 251, 0.14); color: #f9fafb; }
.topbar .logo { height: 26px; width: auto; display: block; flex: none; }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--paper); padding: 0 12px; }
.tabs button {
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: 10px 12px; cursor: pointer; color: var(--muted); white-space: nowrap; font-weight: 600;
}
.tabs button.active { color: var(--heading); border-bottom-color: var(--teal); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.private { border: 2px solid var(--private); }
.card.inject { border-left: 5px solid var(--alert); border-radius: 0 var(--radius) var(--radius) 0; }
.card.muted { background: var(--mist); border-color: var(--mist); box-shadow: none; }
.panel { background: var(--mist); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.callout { border-left: 4px solid var(--teal); background: var(--tint); padding: 10px 12px; margin: 10px 0; border-radius: 0; }
.callout.alert { border-left-color: var(--alert); background: var(--tint-alert); }

.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--link); margin-bottom: 4px; }
.small { font-size: 0.875rem; }
.muted-text { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 8px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--heading); background: var(--paper); color: var(--heading);
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #f9fafb; }
.btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.danger { border-color: var(--alert); color: var(--alert-dark); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 0.85rem; }
.btn.link { border: none; background: none; padding: 0; min-height: 0; color: var(--link); text-decoration: underline; font-weight: 500; }
.btn:disabled { opacity: 0.5; cursor: default; }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 4px; color: var(--heading); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

.option {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; background: var(--field);
}
.option.selected { border-color: var(--teal); background: var(--tint); }
.option input { margin-top: 4px; accent-color: var(--teal); }
.option .key { font-weight: 700; color: var(--heading); min-width: 1.2em; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--mist); color: var(--heading); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.78rem; font-weight: 700; }
.badge.strong { background: var(--strong-bg); color: var(--strong); }
.badge.partial { background: var(--partial-bg); color: var(--partial); }
.badge.red { background: var(--red-bg); color: var(--alert-dark); }
.badge.none { background: var(--mist); color: var(--muted); }

.timer { font-family: "Roboto", Arial, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer.warn { color: #ffd27a; }
.timer.over { color: #ff9b9b; }
.banner { padding: 10px 16px; font-weight: 600; text-align: center; }
.banner.warn { background: var(--partial-bg); color: var(--partial); }
.banner.alert { background: var(--red-bg); color: var(--alert-dark); }
.banner.info { background: var(--mist); color: var(--heading); }

.md table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; font-size: 0.92rem; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { background: var(--mist); color: var(--heading); }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 0.75em; }
.md li { margin-bottom: 4px; }
.md h1, .md h2, .md h3 { font-size: 1.05rem; margin-top: 1em; }

.meter { height: 10px; background: var(--mist); border-radius: 5px; overflow: hidden; }
.meter > div { height: 100%; border-radius: 5px; }
.band-low { background: var(--teal); }
.band-elevated { background: var(--band-elevated); }
.band-high { background: var(--band-high); }
.band-severe { background: var(--alert); }
.bandtext-low { color: var(--link); }
.bandtext-elevated { color: var(--partial); }
.bandtext-high { color: var(--high); }
.bandtext-severe { color: var(--alert-dark); }

.stat { background: var(--mist); border-radius: 8px; padding: 10px 12px; }
.stat .label { font-size: 0.78rem; color: var(--muted); }
.stat .value { font-family: "Roboto", Arial, sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--heading); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }

.code-big { font-family: "Roboto", Arial, sans-serif; font-size: 2.4rem; letter-spacing: 0.12em; font-weight: 700; color: var(--heading); }
.stepper { display: flex; flex-wrap: wrap; gap: 4px; }
.stepper span { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; background: var(--mist); color: var(--muted); }
.stepper span.done { background: var(--done); color: var(--strong); }
.stepper span.now { background: var(--teal); color: #f9fafb; }

table.plain { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 6px 6px; text-align: left; vertical-align: top; }
.scroll-x { overflow-x: auto; }

.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--bar); color: #f9fafb; padding: 10px 16px; border-radius: 8px; z-index: 50; max-width: calc(100% - 32px); }
.toast.error { background: #991b1b; }

/* Presentation mode: one full-screen slide at a time, for the projector. */
.deck { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); overflow: hidden; }
.deck.dark { background: var(--navy); color: #fff; }
.deck .slide { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 4vh 6vw 2vh; }
.deck h1, .deck h2, .deck h3 { color: inherit; }
.deck.dark h1, .deck.dark h2 { color: #fff; }
.deck .kicker { font-family: "Roboto", Arial, sans-serif; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-size: clamp(14px, 1.4vw, 22px); margin-bottom: 1.2vh; }
.deck.dark .kicker { color: #8fd3cb; }
.deck .headline { font-size: clamp(28px, 4vw, 64px); font-weight: 700; line-height: 1.1; margin: 0 0 2vh; }
.deck .sub { font-size: clamp(16px, 1.8vw, 28px); color: var(--muted); margin: 0; }
.deck.dark .sub { color: #c9d4de; }
.deck .cols { display: grid; gap: 2vw; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: stretch; }
.deck .team { border: 2px solid var(--mist); border-radius: 16px; padding: 2.4vh 1.6vw; display: flex; flex-direction: column; gap: 1.4vh; }
.deck .team-name { font-family: "Roboto", Arial, sans-serif; font-weight: 700; color: var(--navy); font-size: clamp(16px, 1.7vw, 28px); }
.deck .big { font-family: "Roboto", Arial, sans-serif; font-weight: 700; font-size: clamp(22px, 2.8vw, 48px); line-height: 1.1; }
.deck .big.strong { color: var(--teal); }
.deck .big.partial { color: var(--high); }
.deck .big.red { color: var(--alert-dark); }
.deck .metric-label { font-size: clamp(12px, 1.05vw, 18px); color: var(--muted); }
.deck .metric-value { font-family: "Roboto", Arial, sans-serif; font-weight: 700; font-size: clamp(18px, 2vw, 34px); color: var(--navy); }
.deck .pill { display: inline-block; padding: 0.4vh 0.9vw; border-radius: 999px; font-weight: 700; font-size: clamp(12px, 1.1vw, 20px); }
.deck .pill.strong, .deck .pill.low { background: var(--strong-bg); color: var(--strong); }
.deck .pill.partial, .deck .pill.elevated { background: var(--partial-bg); color: var(--partial); }
.deck .pill.high { background: var(--high-bg); color: var(--high); }
.deck .pill.red, .deck .pill.severe { background: var(--red-bg); color: var(--alert-dark); }
.deck .pill.none { background: var(--mist); color: var(--muted); }
.deck table.risk-table { width: 100%; border-collapse: collapse; font-size: clamp(14px, 1.4vw, 24px); }
.deck table.risk-table th, .deck table.risk-table td { padding: 1.4vh 1vw; border-bottom: 1px solid var(--mist); text-align: left; }
.deck table.risk-table th { font-family: "Roboto", Arial, sans-serif; color: var(--navy); }
.deck .choice { font-size: clamp(14px, 1.35vw, 24px); line-height: 1.35; }
.deck .choice .letter { font-family: "Roboto", Arial, sans-serif; font-weight: 700; color: var(--navy); margin-right: 0.4em; }
.deck .answer { margin-top: 3vh; background: var(--tint); border-left: 6px solid var(--teal); padding: 2vh 1.6vw; font-size: clamp(14px, 1.35vw, 24px); line-height: 1.4; }
.deck .answer strong { color: var(--teal); }
.deck ol.points { font-size: clamp(18px, 2.2vw, 36px); line-height: 1.35; padding-left: 1.2em; margin: 0; }
.deck ol.points li { margin-bottom: 2.2vh; }
.deck ol.points li.dim { opacity: 0.35; }
.deck .bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 1vh 2vw; font-size: 14px; color: var(--muted); opacity: 0.25; transition: opacity 0.2s; }
.deck .bar:hover, .deck .bar:focus-within { opacity: 1; }
.deck.dark .bar { color: #c9d4de; }
.deck .bar button { background: none; border: 1px solid currentColor; color: inherit; border-radius: 8px; padding: 4px 12px; cursor: pointer; font: inherit; }
.deck .brandmark { font-family: "Roboto", Arial, sans-serif; font-weight: 700; letter-spacing: 0.08em; }

/* Split layout: resources on the left, interactive work on the right. */
.shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.shell > .topbar { position: static; }
.split { flex: 1; min-height: 0; display: flex; }
.pane { min-width: 0; display: flex; flex-direction: column; }
.pane.resources { background: var(--paper); border-right: 1px solid var(--line); }
.pane .tabs { flex: none; }
.pane-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.pane.work .pane-body { padding: 16px 24px; }
.pane.work .pane-inner { max-width: 760px; margin: 0 auto; }
.pane-head { flex: none; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.divider { flex: none; width: 8px; cursor: col-resize; background: var(--mist); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.divider:hover, .divider.dragging { background: var(--divider-hover); }
.divider:focus-visible { outline: 3px solid var(--focus); }
.pane.resources .card { box-shadow: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (max-width: 600px) {
  .wrap { padding: 12px; }
  .code-big { font-size: 1.8rem; }
  .card { padding: 14px; }
}

/* Ownership notice */
.watermark { position: fixed; inset: 0; z-index: 9000; pointer-events: none; background-repeat: repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.legal-bar { font-size: 0.72rem; color: var(--muted); text-align: center; padding: 6px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.legal-bar a { color: inherit; }
.shell > .legal-bar { flex: none; }
.legal-line { font-size: 0.72rem; color: var(--muted); margin: 14px 0 0; }
.ack { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--ack); font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.ack input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.deck .deck-legal { font-size: 12px; text-align: center; flex: 1; padding: 0 16px; }

/* Custom exercise builder */
.builder { display: flex; gap: 0; min-height: calc(100vh - 64px); }
.builder-nav { width: 280px; flex: none; border-right: 1px solid var(--line); background: var(--paper); padding: 12px; overflow-y: auto; max-height: calc(100vh - 64px); position: sticky; top: 64px; }
.builder-group { margin-bottom: 14px; }
.builder-nav button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 0.85rem; color: var(--ink); cursor: pointer; }
.builder-nav button:hover { background: var(--hover); }
.builder-nav button.active { background: var(--mist); font-weight: 600; }
.builder-main { flex: 1; min-width: 0; padding: 16px 24px; max-width: 980px; }
.edit-group { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.edit-group legend { font-size: 0.8rem; font-weight: 700; color: var(--muted); padding: 0 4px; }
.edit-item { border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.edit-item:last-of-type { border-bottom: 0; }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.ai-box textarea { width: 100%; }
ol.steps { padding-left: 20px; }
ol.steps li { margin: 4px 0; color: var(--muted); }
ol.steps li.done { color: var(--link); }
ol.steps li.done::marker { content: "✓  "; }
ol.steps li.current { color: var(--heading); font-weight: 600; }
ol.steps li.failed { color: var(--alert-dark); font-weight: 600; }
@media (max-width: 900px) { .builder { flex-direction: column; } .builder-nav { width: auto; max-height: 40vh; position: static; border-right: 0; border-bottom: 1px solid var(--line); } .builder-main { padding: 12px 16px; } }
input.suggested, textarea.suggested { border-color: var(--partial); background: var(--suggest); }
.chip.suggested { background: var(--partial-bg); color: var(--partial); font-size: 0.72rem; font-weight: 600; margin-left: 6px; }

/* Theme switch, shown in the footer */
.theme-pick { white-space: nowrap; margin-left: 10px; }
.theme-pick select { width: auto; padding: 1px 4px; font-size: inherit; border-radius: 4px; }

/* Watermark: navy text on light pages, near white on dark ones. */
.watermark.wm-dark { display: none; }
:root[data-theme="dark"] .watermark.wm-light { display: none; }
:root[data-theme="dark"] .watermark.wm-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .watermark.wm-light { display: none; }
  :root:not([data-theme="light"]) .watermark.wm-dark { display: block; }
}

/* Pages before sign-in: header, content, footer */
.brand-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.brand-page > main { flex: 1; }

/* Collapsible decision cards */
.card.fold { padding: 0; }
.fold-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px; cursor: pointer; color: inherit; border-radius: var(--radius); }
.fold-head:hover { background: var(--hover); }
.fold-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fold-titles .eyebrow { margin-bottom: 2px; }
.fold-title { font-family: "Roboto", Arial, Helvetica, sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--heading); line-height: 1.25; }
.fold-status { flex: none; }
.fold-caret { flex: none; color: var(--muted); font-size: 0.9rem; }
.fold-body { padding: 0 16px 16px; }

/* Board chat */
.avatar { border-radius: 50%; flex: none; background: var(--mist); }
.seat-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.board-chat .fold-head:hover { background: none; }
.chat-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--ack); border: 1px solid var(--line); border-radius: 8px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; }
.chat-msg.mine { align-self: flex-end; }
.chat-msg.mine > div { background: var(--tint); }
.chat-msg > div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.chat-msg.seat > div { border-left: 3px solid var(--teal); }
.chat-who { font-size: 0.78rem; font-weight: 700; color: var(--heading); }
.chat-who span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.chat-text { font-size: 0.92rem; line-height: 1.4; white-space: pre-wrap; }
.chat-note { margin: 0; font-size: 0.8rem; font-style: italic; color: var(--muted); text-align: center; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; }

/* Self-run sessions */
.host-bar { border-left: 4px solid var(--teal); }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.seat-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--paper); }
.seat-card.mine { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.seat-card.taken { opacity: 0.65; }
.advisor-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #f9fafb; font-weight: 700; font-family: Roboto, sans-serif; }
.chat-msg.advisor > div { border-left-color: var(--navy); }

/* Agenda checklists, people, decisions in the chat, reference pack */
.checklist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.check-item { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; line-height: 1.4; cursor: pointer; }
.check-item input { margin-top: 3px; flex: none; accent-color: var(--teal); }
.check-item input:disabled { cursor: default; }
.check-item.done > span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.people { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.people li { display: flex; gap: 10px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line); }
.dot.on { background: var(--accent, #0d9488); }
.chat-decision { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 6px 10px; background: var(--paper); }
.chat-decision .eyebrow { margin-bottom: 2px; }
.ref-title { all: unset; cursor: pointer; display: block; width: 100%; color: var(--heading); font-family: Roboto, sans-serif; line-height: 1.35; padding: 4px 0; }
.ref-title:hover, .ref-title:focus-visible { color: var(--teal); }
.ref-body { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 6px 0 4px; font-size: 0.95rem; line-height: 1.55; color: var(--ink, inherit); }

/* Reference sections: more air */
.ref-body { line-height: 1.6; }
.ref-body p { margin: 0 0 0.85em; }
.ref-body ul, .ref-body ol { margin: 0 0 0.9em; padding-left: 1.2em; }
.ref-body li { margin: 0 0 0.55em; }
.ref-body li::marker { color: var(--accent); }
.ref-body h3, .ref-body h4 { margin: 1.1em 0 0.45em; color: var(--heading); }
.ref-body table { margin: 0.4em 0 1em; }
.ref-body td, .ref-body th { padding: 6px 8px; }

.chip.ok { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.chip.fundamental { font-size: 0.75rem; }
