/* Guestbook — V10 Studio. Luma's event editor: a working pane in the centre,
   a live guest-view preview sticky on the right. Ice-wash, frosted glass,
   cobalt, a mono display reserved for the preview's cover type. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/static/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/static/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --font: "Hanken Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: var(--font);

  /* ice wash: a very soft radial field, not a sky */
  --ice-1: #e8eefb;
  --ice-2: #f6f8fd;

  --ink: #0f1a33;
  --ink-2: #4a5670;
  --ink-3: #737d93;

  --bg: #f6f8fd;
  --bg-subtle: rgba(255, 255, 255, 0.55);
  --bg-hover: rgba(255, 255, 255, 0.92);
  --bg-active: rgba(218, 227, 248, 0.85);
  --border: rgba(15, 26, 51, 0.09);
  --border-strong: rgba(15, 26, 51, 0.17);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --header: var(--ink);
  --header-text: #eef2fb;
  --header-muted: rgba(238, 242, 251, 0.66);

  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --panel-blur: 14px;
  --panel-border: rgba(15, 26, 51, 0.08);

  --accent: #2b59c3;
  --accent-hover: #2149a3;
  --accent-wash: #e2e9fa;
  --accent-text: #2149a3;
  --accent-contrast: #ffffff;

  --blue-bg: #e2e9fa;   --blue-fg: #2149a3;
  --green-bg: #e1f3ea;  --green-fg: #0f7a52;
  --amber-bg: #fbf0d9;  --amber-fg: #8a5c12;
  --red-bg: #fbe9ea;    --red-fg: #ad3131;
  --grey-bg: #edf0f6;   --grey-fg: #57607a;
  --violet-bg: #ece7fb; --violet-fg: #5c46ab;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 51, 0.05);
  --shadow-md: 0 18px 40px -18px rgba(15, 26, 51, 0.28);
  --shadow-lg: 0 28px 60px -20px rgba(15, 26, 51, 0.32);

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;

  --content-max: 1180px;
  --duration: 150ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 57px;
  --sidebar-w: 220px;
  --preview-w: 380px;

  color-scheme: light;
}

/* This direction has one deliberate mood: ice, not dark. Dark-mode viewers
   get the same tokens rather than a jarring flip to a palette the direction
   never designed for. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1100px 640px at 14% -8%, var(--ice-1), transparent 60%),
    radial-gradient(ellipse 900px 700px at 100% 0%, #eef9f7, transparent 55%),
    var(--ice-2);
  background-attachment: fixed;
  color: var(--text);
  font: var(--text-base)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 8px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; font-family: var(--display); }
h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--text-lg); font-weight: 700; }
h3 { font-size: var(--text-base); font-weight: 600; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

.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;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------- shell: sidebar + content */

.shell { display: flex; align-items: stretch; min-height: 100vh; }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }

.mobile-bar {
  display: none;
  position: sticky; top: 0; z-index: 40;
  align-items: center; gap: 12px;
  min-height: var(--header-h);
  padding: 0 16px;
  background: var(--panel-strong);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border-bottom: 1px solid var(--panel-border);
}
.mobile-menu-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}
.mobile-menu-btn:hover { background: var(--bg-hover); }
.mobile-wordmark { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.mobile-wordmark:hover { text-decoration: none; }
.mobile-preview-btn[hidden] { display: none; }
.mobile-preview-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.nav-scrim {
  display: none;
  position: fixed; inset: 0; z-index: 44;
  background: rgba(16, 38, 45, 0.32);
}

.sidebar {
  flex: none;
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px 20px;
  background: var(--panel);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border-right: 1px solid var(--panel-border);
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 9px;
  margin: 2px 6px 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: var(--text-base);
}
.sidebar-brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--accent), #4a93ac);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 500;
}
.side-link svg { flex: none; opacity: 0.85; }
.side-link:hover { background: var(--bg-hover); color: var(--ink); text-decoration: none; }
.side-link.is-active { background: var(--bg-active); color: var(--ink); font-weight: 600; }
.side-link.is-active svg { opacity: 1; color: var(--accent); }

.side-group { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--panel-border); }
.side-label {
  margin: 0 0 8px 10px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* the plan timeline: a thin line with dots, mirrored from the page's own
   stepper/plan-steps by app.js — done dots filled, the current one ringed */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; padding-left: 4px; }
.timeline-step { position: relative; padding: 0 0 0 22px; }
.timeline-step a {
  display: block;
  padding: 8px 8px 8px 0;
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 500;
}
.timeline-step a:hover { color: var(--ink); text-decoration: none; }
.timeline-dot {
  position: absolute; left: 0; top: 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 2px var(--border-strong);
}
.timeline-step::before {
  content: "";
  position: absolute; left: 5px; top: 22px; bottom: -2px;
  width: 2px;
  background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-step.is-done .timeline-dot { background: var(--accent); box-shadow: none; }
.timeline-step.is-done::before { background: var(--accent); opacity: 0.4; }
.timeline-step.is-skipped .timeline-dot { background: var(--grey-bg); box-shadow: inset 0 0 0 2px var(--border-strong); }
.timeline-step.is-current .timeline-dot { background: var(--panel-strong); box-shadow: 0 0 0 3px var(--accent-wash), inset 0 0 0 2px var(--accent); }
.timeline-step.is-current a { color: var(--ink); font-weight: 700; }

.content-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

main {
  width: 100%;
  max-width: var(--content-max);
  min-width: 0;
  margin: 0 auto;
  padding: 30px 32px 80px;
}

.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px 28px;
  color: var(--text-3);
  font-size: var(--text-xs);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text-2); }

/* legacy header markup (older pages predating the shell) collapses quietly */
.site-header { display: none; }

/* ---------------------------------------------------------------- page header */

.eyebrow, .breadcrumb, .crumb {
  margin: 0 0 6px;
  color: var(--text-3);
  font-size: var(--text-sm);
  font-weight: 500;
}
.eyebrow a, .breadcrumb a, .crumb a { color: var(--accent-text); }
.crumb { margin-bottom: 16px; }
.lede { max-width: 64ch; color: var(--text-2); font-size: var(--text-base); }
.sub, .stat-line, .stat-detail, .org-sub, .card-bio { color: var(--text-2); font-size: var(--text-sm); }
.muted, .mins, .section-meta, .count-hint, .first-timers-stat { color: var(--text-3); font-size: var(--text-sm); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.section-heading { margin: 24px 0 12px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.slate-head, .readback-head, .spec-form-head { margin-bottom: 28px; }
.readback-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }

/* ---------------------------------------------------------------- workflow tabs (older host pages) */

.campaign-nav {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border);
  overflow-x: auto;
}
.campaign-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.campaign-nav a:hover { color: var(--ink); text-decoration: none; background: var(--bg-hover); }
.campaign-nav a.active { color: var(--ink); background: var(--bg-active); font-weight: 700; }

/* the in-page plan stepper is mirrored into the sidebar timeline by app.js;
   keep it in the DOM (for that read) but out of the flow */
.stepper { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.btn:hover { background: var(--bg-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: var(--accent-contrast); }
.btn-secondary { background: var(--panel); }
.btn-compact { min-height: 30px; padding: 0 12px; font-size: var(--text-xs); }
.btn-add { border-style: dashed; box-shadow: none; color: var(--text-2); }
.btn-remove {
  width: 32px; height: 32px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
}
.btn-remove:hover { background: var(--bg-hover); color: var(--text); }
.btn[disabled], .btn:disabled {
  opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn[disabled]:hover, .btn:disabled:hover { transform: none; box-shadow: none; background: var(--panel); }

/* ---------------------------------------------------------------- tags */

.chips, .chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--grey-bg);
  color: var(--grey-fg);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.chip-warm { background: var(--blue-bg); color: var(--blue-fg); }
.chip-match, .chip-good { background: var(--green-bg); color: var(--green-fg); }
.chip-warn { background: var(--amber-bg); color: var(--amber-fg); }
.chip-status { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); }

/* ---------------------------------------------------------------- view pills (lane filter) */

.role-tabs-shell { margin-top: 16px; }
.role-tabs { display: flex; gap: 4px; overflow-x: auto; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.tab:hover { background: var(--bg-hover); text-decoration: none; }
.tab.active { border-color: var(--panel-border); background: var(--panel-strong); color: var(--text); box-shadow: var(--shadow-sm); font-weight: 700; }
.tab-count { color: var(--text-3); font-variant-numeric: tabular-nums; }

.more-actions { margin-top: 10px; font-size: var(--text-sm); }
.more-actions summary { color: var(--text-2); cursor: pointer; }
.more-actions nav { display: flex; gap: 16px; margin-top: 8px; }

/* ---------------------------------------------------------------- candidate table */

.seat-group, .org-lane, .advice { margin-bottom: 32px; }
.seat-group > h2, .org-lane > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: var(--text-base);
}
.fill-count, .count-hint {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--grey-bg);
  color: var(--grey-fg);
  font-size: var(--text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.candidate-list {
  --cols: minmax(220px, 1.25fr) minmax(240px, 1.5fr) minmax(160px, 0.8fr) 244px;
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border);
  overflow: hidden;
}
.list-head, .candidate-card {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 16px;
  padding: 0 16px;
}
.list-head {
  min-height: 36px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 26, 51, 0.03);
  color: var(--text-3);
  font-size: var(--text-xs);
  font-weight: 600;
}
.candidate-card {
  align-items: start;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}
.candidate-card:last-child { border-bottom: 0; }
.candidate-card:hover { background: var(--bg-hover); }
.cell { min-width: 0; }

.cell-person { display: flex; gap: 10px; }
.avatar {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(155deg, #cfe8ec, #b9dde2);
  color: var(--accent-text);
  font-size: var(--text-xs);
  font-weight: 700;
}
.candidate-name { font-size: var(--text-sm); font-weight: 600; line-height: 28px; }
.candidate-bio {
  margin: 0;
  color: var(--text-2);
  font-size: var(--text-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cell-signals { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; }
.warnings { display: flex; flex-direction: column; gap: 2px; }
.warning { color: var(--amber-fg); font-size: var(--text-xs); }
.warning::before { content: "⚠ "; }
.why > summary { width: fit-content; color: var(--text-3); font-size: var(--text-xs); cursor: pointer; }
.why > summary:hover { color: var(--text); }
.reasons {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 10px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(15, 26, 51, 0.035);
  font-size: var(--text-xs);
}
.reasons dt { color: var(--text-3); }
.reasons dd { margin: 0; color: var(--text); }

.cell-path { padding-top: 4px; font-size: var(--text-sm); }
.connectors { margin: 0 0 2px; color: var(--text); font-size: var(--text-sm); }
.connectors strong { font-weight: 500; }
.connectors.muted { color: var(--text-3); }
.card-reach { font-size: var(--text-xs); }

.cell-decision { padding-top: 2px; }
.card-actions { display: flex; flex-direction: column; gap: 6px; }
.verdict-badge { display: none; }
.verdict-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.verdict-form .btn {
  min-height: 30px;
  padding: 0 6px;
  border: 0;
  border-right: 1px solid var(--panel-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
  font-size: var(--text-xs);
}
.verdict-form .btn:hover { transform: none; box-shadow: none; }
.verdict-form .btn:last-child { border-right: 0; }
.verdict-form .btn:hover { background: var(--bg-hover); color: var(--text); }
.btn-shortlist.active, .btn-shortlist.active:hover { background: var(--green-bg); color: var(--green-fg); font-weight: 700; }
.btn-skip.active, .btn-skip.active:hover { background: var(--bg-active); color: var(--text); font-weight: 700; }
.btn-not-fit.active, .btn-not-fit.active:hover { background: var(--red-bg); color: var(--red-fg); font-weight: 700; }

/* a row that isn't a ranked candidate (door sheet, lookalikes) keeps the card look */
.candidate-card:not(:has(.cell)) { display: block; padding: 14px 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.card-name { font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; }
.door-checkin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.bench { margin-top: 10px; }
.bench > summary { color: var(--text-2); font-size: var(--text-sm); cursor: pointer; }
.bench > .candidate-list { margin-top: 10px; }

/* ---------------------------------------------------------------- record cards (orgs) */

.org-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.org-card {
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
}
.org-card h3 { margin-bottom: 4px; font-size: var(--text-sm); }
.org-detail { margin: 0 0 2px; font-size: var(--text-sm); }

/* ---------------------------------------------------------------- callouts */

.mix-warnings, .shortfall { margin: 0 0 20px; }
.mix-warnings ul, .shortfall ul { display: flex; flex-direction: column; gap: 6px; }
.mix-warnings li, .shortfall li, .warn, .form-note, .form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  color: var(--amber-fg);
  font-size: var(--text-sm);
}
.form-error { background: var(--red-bg); color: var(--red-fg); }
.form-note { background: var(--accent-wash); color: var(--accent-text); }

.empty, .empty-state {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px dashed var(--border-strong);
  color: var(--text-2);
  font-size: var(--text-sm);
}
.empty-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.empty-action h2 { margin-bottom: 4px; color: var(--text); }
.empty-action p { margin: 0; }

.caveat { display: inline-block; vertical-align: middle; margin-left: 6px; }
.caveat > summary {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grey-bg);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.caveat > summary::-webkit-details-marker { display: none; }
.caveat p { max-width: 52ch; margin-top: 8px; color: var(--text-2); font-size: var(--text-sm); font-weight: 400; }

/* ---------------------------------------------------------------- home: calendars */

.rooms { margin-bottom: 40px; }
.rooms > .section-head { margin-bottom: 12px; }
.room-list {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  overflow: hidden;
}
.room-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.2fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.room-card:last-child { border-bottom: 0; }
.room-card:hover { background: var(--bg-hover); }
.room-name { color: var(--text); font-size: var(--text-sm); font-weight: 700; }
.room-card > .card-bio { margin: 0; }
.source-link { color: var(--text-2); font-weight: 500; }
.source-link:hover { color: var(--accent-text); }
.next-action { grid-column: 3; display: flex; align-items: center; gap: 12px; margin: 0; }
.next-action .mins { white-space: nowrap; }

.sources { margin-bottom: 40px; }
.sources > .section-head { margin-bottom: 8px; }
.source-list { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); overflow: hidden; }
.source-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.source-list li:last-child { border-bottom: 0; }
.source-list li > a:first-child { color: var(--text); font-weight: 600; }

.home-hero { max-width: 680px; margin: 40px 0; }
.home-hero h1 { margin-bottom: 8px; }
.home-hero .lede { margin-bottom: 24px; }
.home-hero-compact {
  max-width: 680px;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
.home-hero-compact h1 { font-size: var(--text-lg); }
.home-hero-compact .lede { font-size: var(--text-sm); margin-bottom: 12px; }
.input-action { display: flex; gap: 8px; }
.input-action input { flex: 1; }
.trust-line { margin-top: 10px; color: var(--text-3); font-size: var(--text-xs); }
.claim-form { display: grid; gap: 6px; max-width: 640px; }
.claim-form > .btn { justify-self: start; margin-top: 8px; }
.claim-form > label { margin-top: 8px; }
.claim-status { display: flex; align-items: center; gap: 10px; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.data-note { margin-bottom: 16px; color: var(--text-2); font-size: var(--text-sm); }
.data-note summary { cursor: pointer; }
.data-note p { max-width: 64ch; margin-top: 6px; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 24px; }
.metric {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
.metric-value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metric-label { color: var(--text-3); font-size: var(--text-xs); font-weight: 500; }
.metric-label::first-letter { text-transform: uppercase; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr); gap: 16px; margin-bottom: 16px; }
.dashboard-grid > section, .prior-rooms {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  overflow: hidden;
}
.dashboard-grid .section-head, .prior-rooms > h2 {
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-size: var(--text-sm);
  margin-bottom: 0;
}
.dashboard-grid h2 { font-size: var(--text-sm); }
.dashboard-grid > section > h2 {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 26, 51, 0.03);
  font-size: var(--text-sm);
}
.dashboard-grid .empty-state { margin: 12px 16px; border: 0; background: transparent; padding: 0; }
.people-grid { grid-template-columns: 1fr 1fr; }
.scene-list li, .city-list li, .person-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.scene-list li:last-child, .city-list li:last-child, .person-list li:last-child { border-bottom: 0; }
.more-rows { border-top: 1px solid var(--border); }
.more-rows > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.more-rows > summary::-webkit-details-marker { display: none; }
.more-rows > summary::before { content: "+"; width: 20px; color: var(--text-3); }
.more-rows[open] > summary::before { content: "−"; }
.more-rows .person-list, .more-rows > ul { border-top: 1px solid var(--border); }
.scene-name, .person-name { flex: none; font-weight: 600; }
.scene-detail, .person-bio { min-width: 0; color: var(--text-2); font-size: var(--text-xs); text-align: right; }
.person-bio { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-list .n { color: var(--text-2); font-variant-numeric: tabular-nums; }
.first-timers-stat { margin: 0 0 24px; }
.prior-rooms { margin-bottom: 24px; }
.prior-rooms > h2 { display: flex; align-items: center; }
.prior-rooms ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.prior-rooms ul li:hover { background: var(--bg-hover); }
.room-link { color: var(--text); font-weight: 500; }
.row-action { color: var(--text-3); font-size: var(--text-xs); }
.row-action:hover { color: var(--accent-text); }
.prior-rooms ul li:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- forms: Luma's editor grammar
   Rows of frosted fields — the working pane's default field wrapper. */

label { display: block; margin: 12px 0 4px; color: var(--text); font-size: var(--text-sm); font-weight: 600; }
input[type=text], input[type=email], input[type=number], input[type=url], input[type=date], input[type=file], input[type=search], textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); outline: none; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::placeholder { color: var(--text-3); }

.spec-form-head, .spec-form { max-width: 820px; }
.form-panel {
  margin: 0 0 16px;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
.form-panel legend { padding: 0 4px; font-size: var(--text-sm); font-weight: 700; }
.draft-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.draft-note { color: var(--text-3); font-size: var(--text-xs); }
.seat-section { padding: 10px 0; border-bottom: 1px solid var(--border); }
.seat-section:last-child { border-bottom: 0; }
.seat-section h3 { margin-bottom: 6px; color: var(--text-2); font-size: var(--text-xs); font-weight: 700; }
.seat-rows, .notlike-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.seat-row, .notlike-row { display: flex; align-items: center; gap: 6px; }
.seat-row input[type=text] { flex: 1; }
.seat-count {
  flex: 0 0 104px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-left: 10px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: var(--panel);
  color: var(--text-3);
  font-size: var(--text-xs);
  font-weight: 400;
}
.seat-count input[type=number] { min-height: 34px; border: 0; box-shadow: none; padding-left: 0; background: transparent; }
.seat-count input[type=number]:focus { box-shadow: none; }
.guest-picker {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.guest-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  cursor: pointer;
}
.guest-option:hover { background: var(--bg-hover); }
.form-disclosure {
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
}
.form-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.form-disclosure > summary::-webkit-details-marker { display: none; }
.form-disclosure > summary::before { content: "›"; color: var(--text-3); font-size: 16px; transition: transform var(--duration) ease; }
.form-disclosure[open] > summary::before { transform: rotate(90deg); }
.form-disclosure > summary span { margin-left: auto; color: var(--text-3); font-size: var(--text-xs); font-weight: 400; }
.form-disclosure .form-panel { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; background: transparent; }
.form-submit {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 10px 10px 16px;
  border-radius: var(--radius);
  background: var(--panel-strong);
  backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-md);
}
.form-submit > span { color: var(--text-3); font-size: var(--text-xs); }

/* a labelled row with a leading icon, Luma's editor grammar */
.field-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  margin-bottom: 10px;
}
.field-row-icon {
  flex: none;
  display: grid; place-items: center;
  width: 22px; height: 40px;
  color: var(--text-3);
}
.field-row-body { flex: 1; min-width: 0; }
.field-row-body label { margin: 0 0 4px; }
.field-row-body input, .field-row-body textarea { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 24px; }
.field-row-body input:focus, .field-row-body textarea:focus { box-shadow: none; }
.field-row-hint { margin: 2px 0 0; color: var(--text-3); font-size: var(--text-xs); }

/* ---------------------------------------------------------------- secondary views */

.advice { margin-top: 24px; }
.advice h2 { margin-bottom: 10px; }
.evidence-list, .channel-list {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  overflow: hidden;
}
.evidence-list li, .channel-list li {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 600;
}
.evidence-list li:last-child, .channel-list li:last-child { border-bottom: 0; }
.evidence { display: block; margin-top: 2px; color: var(--text-2); font-size: var(--text-xs); font-weight: 400; }
.bench .evidence-list { margin-top: 8px; }
.ask-body { min-height: 240px; font-family: var(--mono); font-size: var(--text-sm); }
.verdict-shortlisted { color: var(--green-fg); }
.verdict-not_a_fit { color: var(--red-fg); }
.error-page { padding: 64px 0; text-align: center; }

/* ---------------------------------------------------------------- studio: two-pane grid */

.studio { display: grid; grid-template-columns: minmax(0, 1fr) var(--preview-w); gap: 28px; align-items: start; }
.studio-work { min-width: 0; }

/* .studio-aside is the whole right-hand column — the live preview card, and
   on Draft, "Where to send it" stacked under it. It owns the sticky
   positioning and the mobile collapse-to-sheet so every card inside it
   (whatever the page) moves and hides together. */
.studio-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.studio-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-md);
}
.studio-preview:empty { display: none; }
.studio-preview-label {
  display: flex; align-items: center; gap: 6px;
  margin: 0;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.studio-preview-label svg { opacity: 0.7; }

/* the polaroid cover: a paper card peeking behind, a square cover made
   entirely in CSS with the title set large in layered, fading repeats
   behind a solid final line */
.preview-stack { position: relative; padding-top: 14px; }
.preview-peek {
  position: absolute;
  top: 0; left: 10px; right: -6px;
  height: 92%;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: rotate(2.4deg);
}
.preview-peek::before {
  content: "";
  position: absolute; top: -8px; left: 14px; right: 14px; height: 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}
.preview-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.28), transparent 45%),
    linear-gradient(200deg, #3a66d1, #16264f 78%);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.preview-cover-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 14px;
  overflow: hidden;
  pointer-events: none;
}
.preview-cover-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-width: 100%;
  min-width: 0;
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: normal;
  overflow-wrap: break-word;
  overflow: hidden;
}
.preview-cover-line[data-depth="3"] { flex: none; font-size: 10px; opacity: 0.14; }
.preview-cover-line[data-depth="2"] { flex: none; font-size: 13px; opacity: 0.22; }
.preview-cover-line[data-depth="1"] { flex: none; font-size: 16px; opacity: 0.38; }
.preview-cover-line[data-depth="0"] { position: relative; flex: none; font-size: 19px; opacity: 1; text-shadow: 0 4px 18px rgba(0,0,0,0.25); }
.preview-card-badge {
  position: relative;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-meta { display: grid; gap: 3px; }
.preview-title { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.preview-line { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--text-sm); }
.preview-line svg { flex: none; color: var(--text-3); }
.preview-line-date { font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.01em; }
.preview-host { margin-top: 4px; color: var(--text-3); font-size: var(--text-xs); }

.preview-going { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--panel-border); }
.preview-avatars { display: flex; }
.preview-avatar {
  width: 26px; height: 26px;
  margin-left: -8px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--panel-strong);
  background: linear-gradient(155deg, #cfe8ec, #a9d6dd);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
}
.preview-avatar:first-child { margin-left: 0; }
.preview-avatar-more {
  background: var(--ink);
  color: #fff;
}
.preview-going-count { font-size: var(--text-sm); color: var(--text); }
.preview-going-count strong { font-weight: 700; }
.preview-going-empty { color: var(--text-3); font-size: var(--text-sm); font-style: italic; }

.preview-cta {
  width: 100%;
  justify-content: center;
  background: var(--grey-bg);
  border-color: var(--panel-border);
  color: var(--text-2);
}

/* the "what they receive" email-card preview, used on Draft and Send */
.preview-email { display: grid; gap: 10px; }
.preview-email-field { display: grid; gap: 2px; }
.preview-email-field span { color: var(--text-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.preview-email-subject { font-weight: 700; color: var(--ink); font-size: var(--text-sm); }
.preview-email-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
}
.preview-email-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  max-height: 46vh;
  overflow-y: auto;
}
.preview-email-body mark { background: var(--accent-wash); color: var(--accent-text); padding: 0 2px; border-radius: 3px; }
.preview-empty { color: var(--text-3); font-size: var(--text-sm); padding: 20px 4px; text-align: center; }

@media (max-width: 1180px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-aside { display: none; }
  .studio-aside.is-open {
    display: flex;
    position: fixed; inset: auto 0 0 0; z-index: 42;
    top: auto;
    max-height: 82vh;
    padding: 16px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--panel-strong);
    backdrop-filter: blur(var(--panel-blur));
    box-shadow: 0 -20px 50px rgba(15, 26, 51,0.35);
  }
}

/* ---------------------------------------------------------------- start: the create-event layout */

.start-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
.start-cover-wrap { position: sticky; top: 24px; }
.start-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(200deg, #3a66d1, #16264f 78%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-1.2deg);
}
.start-cover-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
}
.start-form { display: grid; gap: 0; }
.start-form .field-row textarea { min-height: 76px; }
.start-cta { margin-top: 12px; }
.start-cta .btn { width: 100%; min-height: 48px; font-size: var(--text-base); }

@media (max-width: 900px) {
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .start-cover-wrap { position: static; max-width: 280px; margin: 0 auto; }
}

/* ---------------------------------------------------------------- eval labelling (owner-only) */

.eval-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.eval-stat-card {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
}
.eval-stat-card h3 { margin-bottom: 6px; }
.eval-stat-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }

.eval-spec-list {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.eval-spec-row + .eval-spec-row { border-top: 1px solid var(--border); }
.eval-spec-row a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); }
.eval-spec-row a:hover { background: var(--bg-hover); text-decoration: none; }
.eval-spec-row-done a { color: var(--text-2); }
.eval-spec-id { flex: none; font-family: var(--mono); font-size: var(--text-xs); color: var(--text-3); }
.eval-spec-purpose { flex: 1; min-width: 0; }

.eval-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  align-items: start;
}
.eval-column {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
}
.eval-column-head {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 26, 51, 0.03);
  border-radius: var(--radius) var(--radius) 0 0;
}
.eval-column-head h2 { margin-bottom: 6px; font-size: var(--text-sm); }
.eval-arm-form { display: flex; gap: 4px; }
.eval-arm-btn { flex: 1; min-height: 26px; padding: 0 4px; font-size: var(--text-xs); }

.eval-person-list { padding: 6px; }
.eval-person-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
}
.eval-person-row + .eval-person-row { border-top: 1px solid var(--border); }
.eval-person-marked { background: var(--accent-wash); }
.eval-person-text { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.eval-person-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: 600;
}
.eval-bio-dot { margin-left: 2px; color: var(--blue-fg); }
.eval-mark { flex: none; color: var(--accent-text); font-size: 11px; }

.eval-pick-form { flex: none; display: flex; gap: 2px; }
.eval-pick-btn { min-width: 26px; min-height: 26px; padding: 0 4px; }
.btn-pick-right.active, .btn-pick-right.active:hover { background: var(--green-bg); color: var(--green-fg); font-weight: 700; }
.btn-pick-wrong.active, .btn-pick-wrong.active:hover { background: var(--red-bg); color: var(--red-fg); font-weight: 700; }

@media (max-width: 600px) {
  .eval-stat-grid { grid-template-columns: 1fr; }
  .eval-columns { gap: 6px; }
  .eval-column-head { padding: 6px; }
  .eval-column-head h2 { font-size: 11px; }
  .eval-arm-btn { min-height: 24px; font-size: 10px; padding: 0 2px; }
  .eval-person-list { padding: 4px; }
  .eval-person-row { padding: 4px 2px; gap: 4px; }
  .eval-person-row .avatar { display: none; }
  .eval-person-name { font-size: 10px; }
  .eval-pick-btn { min-width: 20px; min-height: 22px; font-size: 10px; }
}

/* ---------------------------------------------------------------- hosted: connect, board */

.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: baseline; }
.check-list li::before { content: "✓"; color: var(--green-fg); font-weight: 700; }
.check-list-no li::before { content: "✕"; color: var(--red-fg); }

.rec-list { list-style: none; margin: 0 0 16px; padding: 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); overflow: hidden; }
.rec-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 12px 16px; border-top: 1px solid var(--border); }
.rec-list li:first-child { border-top: 0; }
.rec-list .chip { min-width: 150px; justify-content: center; }
.rec-review .chip { background: var(--grey-bg); color: var(--grey-fg); }
.site-nav .signout { margin-top: 12px; }
@media (max-width: 720px) { .rec-list .chip { min-width: 0; } }

/* ---------------------------------------------------------------- the plan (cold-start C0) */

.plan-form textarea { min-height: 96px; }
.plan-seeds { border: 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); padding: 12px 16px 16px; margin: 12px 0; display: grid; gap: 6px; }
.plan-seeds legend { padding: 0 6px; font-weight: 700; }
.plan-goal { margin-top: 6px; color: var(--text); }
.plan-next { border: 0; border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-wash); padding: 14px 16px; margin: 0 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.plan-next .eyebrow { margin: 0; width: 100%; }
.plan-next-title { margin: 0; font-weight: 700; flex: 1 1 280px; }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-step {
  display: flex; gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: background var(--duration) var(--ease);
}
.plan-step:hover { background: var(--bg-hover); }
.plan-mark {
  flex: none; width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(15, 26, 51, 0.05);
  font-size: 13px; font-weight: 700;
  color: var(--text-3);
}
.plan-step-done .plan-mark { background: var(--accent); color: #fff; }
.plan-step-skipped .plan-mark { color: var(--grey-fg); }
.plan-step-skipped .plan-answer, .plan-step-skipped .sub { opacity: 0.6; }
.plan-step-unknown .plan-answer { color: var(--amber-fg); }
.plan-body { flex: 1; min-width: 0; }
.plan-title { margin: 2px 0 2px; }
.plan-title strong { display: inline-block; min-width: 88px; }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: var(--text-sm); }
.plan-actions form { display: inline-flex; gap: 10px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--text-3); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.btn-link:hover { color: var(--text); }
@media (max-width: 720px) { .plan-title strong { display: block; min-width: 0; } }

/* ---------------------------------------------------------------- plan: Who (C4) */

.who-head { margin-bottom: 14px; }
.who-head h1 { margin-bottom: 4px; }
.who-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--text-2); font-size: var(--text-sm); text-decoration: none; transition: background var(--duration), border-color var(--duration); }
.who-chip:hover { border-color: var(--border-strong); color: var(--text); }
.who-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.who-chip-n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.who-chip.is-on .who-chip-n { color: rgba(255,255,255,0.7); }
.hop-dots { color: var(--accent); letter-spacing: -1px; font-size: 9px; }
.who-showing { margin-left: auto; color: var(--text-3); font-size: var(--text-sm); }
.who-about { margin-bottom: 14px; font-size: var(--text-sm); color: var(--text-2); }
.who-about summary { cursor: pointer; color: var(--text-3); }
.who-about p { margin: 6px 0; max-width: 72ch; }

.who-grid { display: block; }
.who-list {
  list-style: none; margin: 0; padding: 0;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  overflow: hidden;
}
.who-row { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-bottom: 1px solid var(--border); transition: background var(--duration); }
.who-row:last-child { border-bottom: 0; }
.who-row:hover { background: var(--bg-hover); }
.who-row.is-selected { background: var(--bg-active); box-shadow: inset 3px 0 0 var(--accent); }
.who-row.is-skipped { opacity: 0.55; }
.who-row-head { display: flex; align-items: center; gap: 10px; }
.who-row p { margin: 0; }
.who-name { flex: 1; min-width: 0; font-weight: 700; font-size: var(--text-base); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.who-name a { color: var(--text); text-decoration: none; }
.who-name a:hover { text-decoration: underline; text-underline-offset: 2px; }
.who-city { font-weight: 400; font-size: var(--text-xs); color: var(--text-3); }
.who-city.is-away { color: var(--amber-fg); }
.who-bio { color: var(--text-2); font-size: var(--text-sm); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.who-path { font-size: var(--text-sm); color: var(--text); }
.hop { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; padding: 0 7px; min-height: 20px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; background: var(--grey-bg); color: var(--grey-fg); }
.hop-1, .hop-2 { background: var(--blue-bg); color: var(--blue-fg); }
.hop > span { font-size: 8px; letter-spacing: -1px; }
.who-why { color: var(--text-3); font-size: var(--text-xs); }
.who-side { flex: none; display: flex; align-items: center; gap: 8px; }
.fit-pill { min-width: 36px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--green-bg); color: var(--green-fg); font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.who-verdict form { display: flex; gap: 4px; }
.who-tick, .who-cross { width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--panel-border); background: var(--panel); color: var(--text-3); font-size: 13px; line-height: 1; cursor: pointer; transition: background var(--duration), color var(--duration), border-color var(--duration), transform var(--duration); }
.who-tick:hover { border-color: var(--green-fg); color: var(--green-fg); }
.who-cross:hover { border-color: var(--text-2); color: var(--text); }
.who-tick.is-on { background: var(--green-fg); border-color: var(--green-fg); color: #fff; transform: scale(1.05); }
.who-cross.is-on { background: var(--grey-bg); border-color: transparent; color: var(--text); }
.who-verdict .form-error { display: block; font-size: var(--text-xs); }
.who-more { margin: 12px 0 0; text-align: center; }

/* #who-panel is a frosted slide-over from the right, always fixed (never a
   grid column) so it can overlay the preview pane while open. .who-panel as
   a class is reused by .reach-channels for the same frosted-card look —
   the positioning below is scoped to the #who-panel id so that reuse isn't
   dragged into being a fixed overlay too. */
.who-panel { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); padding: 16px; }
#who-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 92vw;
  border-radius: 0;
  border-width: 0 0 0 1px;
  background: var(--panel-strong);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  padding: 56px 20px 20px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--duration) var(--ease);
  z-index: 46;
}
#who-panel.is-picked { transform: translateX(0); }
.who-panel-empty { display: grid; place-items: center; min-height: 160px; }
#who-panel .who-panel-close {
  display: grid; place-items: center;
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text-2);
  font-size: 18px;
  text-decoration: none;
}
#who-panel .who-panel-close:hover { background: var(--bg-active); color: var(--text); }
.who-panel-head { display: flex; gap: 12px; margin-bottom: 4px; }
.who-panel-head h2 { font-size: var(--text-lg); margin: 0 0 2px; }
.who-panel-head .chips { margin-top: 8px; }
.avatar-lg { width: 44px; height: 44px; font-size: var(--text-base); }
.who-panel-sec { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.who-panel-sec h3 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 0 0 6px; display: flex; justify-content: space-between; gap: 8px; }
.who-panel-sec h3 .muted { text-transform: none; letter-spacing: 0; font-size: var(--text-xs); }
.who-panel-sec p { margin: 0 0 8px; font-size: var(--text-sm); }
.who-panel-sec .btn-link { margin-left: 8px; font-size: var(--text-sm); }
.who-rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--text-sm); }
.who-rooms .chip { min-width: 52px; justify-content: center; }

.who-foot { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 12px 18px; border-radius: var(--radius); background: var(--panel-strong); backdrop-filter: blur(var(--panel-blur)); border: 1px solid var(--panel-border); box-shadow: var(--shadow-md); }
.who-tally { margin: 0; font-size: var(--text-sm); color: var(--text-2); }
.who-tally strong { color: var(--text); }
@media (max-width: 600px) {
  .who-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .who-row > .avatar { display: none; }
  .who-side { flex-direction: column; align-items: flex-end; }
  .who-showing { width: 100%; margin-left: 0; }
}

/* ---------------------------------------------------------------- plan: reach (RCH1) + hosts (RCH2) */

.reach-asks { display: grid; gap: 16px; margin-top: 8px; }
.ask-card { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); padding: 16px 18px 18px; }
.ask-card.is-primary { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ask-card h2 { font-size: var(--text-lg); margin: 0 0 2px; }
.ask-card .eyebrow { margin: 0 0 2px; }
.ask-card .sub { margin: 0; }
.ask-to { margin: 12px 0 6px; font-size: var(--text-sm); color: var(--text-2); }
.ask-card .ask-body { width: 100%; min-height: 0; resize: vertical; padding: 12px 14px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); background: rgba(15, 26, 51,0.03); color: var(--text); font-family: var(--font); line-height: 1.5; }
.ask-card .ask-body:focus { background: #fff; }
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.ask-actions .form-note { margin: 0; padding: 0; background: none; border: 0; color: var(--text-3); font-size: var(--text-sm); }
.reach-channels { padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.who-panel-sec-title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 0 0 8px; }

.host-list { list-style: none; margin: 0 0 32px; padding: 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); overflow: hidden; }
.host-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.host-card:last-child { border-bottom: 0; }
.host-card:hover { background: var(--bg-hover); }
.host-main { flex: 1 1 360px; min-width: 0; }
.host-main h2 { font-size: var(--text-base); margin: 0 0 2px; }
.host-main h2 a { color: var(--text); text-decoration: none; }
.host-main h2 a:hover { text-decoration: underline; text-underline-offset: 2px; }
.host-main .sub { margin: 0; }
.host-gap { margin: 6px 0 0; font-size: var(--text-sm); }
.host-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- plan: send (RCH4, C12) */

.send-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.send-row { padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.send-row.is-approved { box-shadow: 0 0 0 1px var(--green-fg) inset; }
.send-row.is-sent, .send-row.is-skipped { opacity: 0.65; }
.send-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.send-head h2 { font-size: var(--text-base); margin: 0 0 2px; }
.send-status-approved { background: var(--green-bg); color: var(--green-fg); }
.send-status-sent { background: var(--blue-bg); color: var(--blue-fg); }
.send-status-failed { background: var(--red-bg); color: var(--red-fg); }
.send-preview { margin: 8px 0 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(15, 26, 51,0.03); white-space: pre-wrap; font-size: var(--text-sm); line-height: 1.55; max-height: 12em; overflow: auto; }
.send-preview mark { background: var(--accent-wash); color: var(--accent-text); padding: 0 2px; border-radius: 2px; }
.send-form { display: grid; gap: 6px; }
.send-form label { font-size: var(--text-sm); color: var(--text-2); }
.send-form input[type=email], .send-form input[type=text] { max-width: 420px; }
.send-form input[aria-invalid=true] { border-color: var(--red-fg); }
.send-edit summary { cursor: pointer; color: var(--text-3); font-size: var(--text-sm); margin: 4px 0; }
.send-edit[open] { display: grid; gap: 6px; }
.send-foot form { margin: 0; }

/* ---------------------------------------------------------------- plan: own history (§13) */

.track-card { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); padding: 16px 18px; margin: 0 0 28px; }
.track-card h2 { font-size: var(--text-base); margin: 0 0 2px; }
.track-list { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 6px; font-size: var(--text-sm); color: var(--text-3); }
.track-list li::before { content: "○"; margin-right: 8px; }
.track-list li.is-on { color: var(--text); }
.track-list li.is-on::before { content: "●"; color: var(--green-fg); }

/* Search / lookalikes / reveal */

.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0;
}
.search-form input[type="search"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.search-count { margin: 0 0 8px; font-size: var(--text-sm); color: var(--text-2); }
.search-row-offgraph { border-bottom-style: dashed; }
.search-row-offgraph .who-name { color: var(--text-2); }

.search-boundary {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border-strong);
}
.search-boundary-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; font-size: var(--text-sm); color: var(--text); }
.search-boundary form { margin-top: 8px; }

.reveal-card { max-width: 420px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.reveal-card p { margin: 0 0 8px; }

@media (max-width: 600px) {
  .search-form { flex-direction: column; }
  .search-boundary form .btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- LRN3/LRN4: outcome check-in, keep-warm, next event */

.plan-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin-top: 10px; font-size: var(--text-sm); }
.plan-date label { color: var(--text-2); margin: 0; }
.plan-date input[type=date] { min-height: 34px; padding: 0 10px; width: auto; max-width: 200px; }
.plan-date .sub { flex-basis: 100%; }

.page-actions form { display: contents; }

.outcome-form { max-width: 640px; }
.outcome-form legend { font-weight: 700; margin-bottom: 8px; }
.outcome-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.outcome-result { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.outcome-result label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); margin: 0; }
.outcome-keepwarm .candidate-list { margin-top: 8px; }
.outcome-keepwarm .card-head { width: 100%; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }

@media (max-width: 600px) {
  .plan-date { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------- plan: titles (DEF6c) */

.titles-card { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); padding: 16px 18px; margin: 20px 0; }
.titles-card h2 { font-size: var(--text-base); margin: 0 0 2px; }
.titles-list { margin: 10px 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.titles-text { font-weight: 700; margin-right: 8px; }
.titles-note { margin: 8px 0 0; color: var(--text-3); font-size: var(--text-xs); }
.titles-card h3 { margin: 14px 0 4px; }
.titles-copy { max-width: 64ch; margin: 0 0 2px; line-height: 1.5; }

/* ---------------------------------------------------------------- responsive: shell
   One breakpoint for the sidebar-drawer, the mobile bar and the studio's
   preview-to-sheet collapse: below it nothing sits two-up any more, so the
   Preview pill that opens the sheet is never hidden without a way to reach it. */

@media (max-width: 1180px) {
  main { padding: 24px 24px 72px; }
  .shell { display: block; }
  .mobile-bar { display: flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 45;
    transform: translateX(-100%);
    transition: transform var(--duration) var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle-input:checked ~ .nav-scrim { display: block; }
  .nav-toggle-input:checked ~ .sidebar { transform: translateX(0); }
  main { padding: 20px 16px 56px; }
  .dashboard-grid, .people-grid { grid-template-columns: 1fr; }
  .campaign-nav { margin: 0 0 16px; }
  .section-head, .readback-head { flex-direction: column; align-items: stretch; }
  .dashboard-grid .section-head { flex-direction: row; align-items: center; }
  .page-actions .btn { flex: 1; }

  .list-head { display: none; }
  .candidate-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
  .candidate-list { --cols: minmax(0,1fr); }
  .cell-signals, .cell-path { padding-top: 0; }
  .cell-path { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
  .cell-decision { width: 100%; }
  .btn, .btn-compact, .tab, .side-link, .verdict-form .btn { min-height: 44px; }
  .btn-remove { width: 44px; height: 44px; }

  .room-card { grid-template-columns: 1fr; gap: 6px; }
  .next-action { grid-column: 1; justify-content: space-between; }
  .input-action { flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .empty-action { flex-direction: column; align-items: flex-start; }
  .seat-row { flex-wrap: wrap; }
  .seat-row input[type=text] { flex: 1 1 100%; }
  .scene-list li { flex-direction: column; gap: 2px; }
  .scene-detail { text-align: left; }
}

/* Draws: speaker and company asks (CNV8), drafted inline and opened on demand. */
.host-main h3 { font-size: var(--text-base); margin: 0 0 2px; }
.draw-ask { margin-top: 8px; }
.draw-ask > summary { cursor: pointer; color: var(--text-2); font-size: var(--text-sm); }
.draw-ask[open] > summary { margin-bottom: 8px; }
.org-card:has(.draw-ask[open]) { grid-column: 1 / -1; }

/* Invite waves (CNV1): the plan proposes, the host releases. */
.waves { margin-bottom: 24px; }
.wave-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--border); }
.wave { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wave > .sub { flex: 1 1 100%; margin: 0; }
.wave-name { margin: 0; font-weight: 600; }
.wave.is-done .wave-name::after { content: " ✓"; color: var(--green-fg); }
.draw-toggle { display: inline-flex; margin: 0; }
.draw-toggle button { cursor: pointer; }

/* The host's voice (CNV3). */
.voice { margin-bottom: 24px; }
.voice summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.voice summary h2 { display: inline; margin: 0; }
.voice-form { display: grid; gap: 8px; margin-top: 8px; }
.voice-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); font: inherit; line-height: 1.5; }

/* Rooms like yours: clash / go / partner (DEF2a′), and the chosen shape (DEF6f). */
.room-tags { display: inline-flex; gap: 4px; margin-left: 6px; }
.shape-form { display: grid; gap: 10px; margin-bottom: 24px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.shape-form h2 { font-size: var(--text-lg); margin: 0; }
.shape-form .sub { margin: 0; }
.shape-fields { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.shape-fields label { display: grid; gap: 4px; font-size: var(--text-sm); color: var(--text-2); }
.shape-fields input, .shape-fields select { min-width: 140px; padding: 8px 10px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.shape-form .btn { justify-self: start; }
.room-actions { margin: 4px 0 24px; }
.draw-name { margin: 6px 0 0; font-size: var(--text-sm); color: var(--text-2); }
.draw-name select { margin-left: 6px; padding: 4px 8px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.prospectus-text { white-space: pre-wrap; font-family: var(--font); font-size: var(--text-sm); line-height: 1.6; margin: 10px 0 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(15, 26, 51, 0.03); border: 1px solid var(--panel-border); }
.brief-edit { margin: 4px 0 10px; font-size: var(--text-sm); }
.brief-edit > summary { cursor: pointer; color: var(--text-2); }
.brief-edit label.check { display: flex; gap: 8px; align-items: center; color: var(--text-2); }

/* Replies and nudges (CNV10). */
.reply-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 4px 0 8px; font-size: var(--text-sm); }
.replies-tally { margin: 0 0 12px; }
.nudges { display: grid; gap: 12px; margin-bottom: 24px; }
.dictate { margin-top: 4px; font-size: var(--text-sm); }

/* Rate the room as a deck (LRN1): the card takes horizontal swipes, the page
   keeps vertical scroll. Everything else is the existing candidate card. */
.rate-deck.is-deck .candidate-card { touch-action: pan-y; user-select: none; }
/* .candidate-card sets display, which beats the hidden attribute. */
.rate-deck.is-deck [data-rate-card][hidden] { display: none; }

/* ---------------------------------------------------------------- attend (go) */
/* The attend door is built from Studio's own parts: the plan page's head and
   Next card, the Who page's rows and ✓ / ✕ buttons, and the preview cards of
   the right-hand aside. Only what those parts lack is here. */
.feed-section { margin-top: 24px; }
.feed-section .section-head { margin-bottom: 10px; }
.feed-more-note { margin: 8px 0 0; }
.feed-faces { display: inline-flex; margin-right: 8px; vertical-align: middle; }
.feed-faces .avatar { width: 22px; height: 22px; font-size: 10px; border: 2px solid var(--panel); margin-left: -6px; }
.feed-faces .avatar:first-child { margin-left: 0; }
.feed-faces-more { margin-left: 4px; color: var(--text-3); font-size: var(--text-xs); font-weight: 700; align-self: center; }
.feed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feed-foot .chip { white-space: normal; max-width: 100%; padding: 2px 8px; border-radius: var(--radius-sm); }
.feed-maybe:hover { border-color: var(--accent); color: var(--accent-text); }
.feed-maybe.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.feed-more { align-items: center; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.aside-row:last-child { border-bottom: 0; }
.aside-row.is-paused .aside-row-title { color: var(--text-3); }
.aside-row-title { margin: 0; font-weight: 700; font-size: var(--text-sm); color: var(--text); }
.aside-edit > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.aside-edit > summary::-webkit-details-marker { display: none; }
.aside-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.aside-form input[type="text"] { flex: 1 1 160px; min-width: 0; }
.aside-form-stack { flex-direction: column; }
.aside-form-stack label { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-xs); color: var(--text-2); }
.aside-actions { display: flex; align-items: center; gap: 12px; }
.aside-person { display: flex; align-items: center; gap: 12px; }
.aside-person p { margin: 0; }
.chip-add { cursor: pointer; border: 0; }
.fork-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 960px; }
.fork-door { gap: 10px; }
.fork-door h2 { margin: 0; font-size: var(--text-xl, 1.35rem); }
.fork-door .sub { margin: 0; }
.fork-door > .btn { align-self: flex-start; }
.fork-door-host { border-color: var(--accent); box-shadow: var(--shadow-md), inset 0 3px 0 var(--accent); }
.fork-coming { margin-top: 16px; }
@media (max-width: 760px) { .fork-doors { grid-template-columns: 1fr; } }
.about-card { display: block; }
.reach-note { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.reach-note textarea { min-height: 120px; }
.reach-note mark { background: var(--accent-wash); color: var(--accent-text); padding: 0 2px; border-radius: 3px; }
.who-chip.is-off { opacity: 0.5; cursor: not-allowed; }
[data-count-for].is-over { color: var(--red-fg, #b42318); font-weight: 700; }
.after-form .plan-seeds { margin-bottom: 16px; }
.after-form .who-chip input { margin: 0 4px 0 0; }
.after-form select { min-height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--panel-border); background: var(--panel); padding: 0 8px; font: inherit; font-size: var(--text-sm); }
.go-people-tiers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.go-people-tiers .hop { margin-left: 6px; }
.go-people-tiers .hop:first-child { margin-left: 0; }
.about-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; }
.about-card-head .btn-link { margin-left: auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 10px; }
.about-grid label { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-xs); color: var(--text-2); }
.about-grid-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .about-grid { grid-template-columns: 1fr; } }

/* The sidebar's plan list: one line per plan, the nav's own icons for its
   door, below "This plan" so the plan's timeline stays the sidebar's heart. */
.side-plan { min-height: 32px; font-size: var(--text-sm); color: var(--text-2); }
.side-plan-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Quick notes against a person (attend ATT39): the aside's list and form parts. */
.note-box { display: flex; flex-direction: column; gap: 6px; }
.note-meta { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; }
.note-add > summary { cursor: pointer; font-size: var(--text-sm); color: var(--text-2); }
.note-add form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.note-add .btn { align-self: flex-start; }
.who-row[data-longpress] { -webkit-touch-callout: none; }
/* The attend calendar view (ATT20a): Studio's surfaces and tokens only. The
   kinds reuse the chip colours: going is the accent, maybe the soft accent,
   ranked the plain surface, yours good, plans and busy muted. */
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 12px; padding: 0; font-size: var(--text-xs); color: var(--text-2); }
.cal-legend li { display: flex; align-items: center; gap: 6px; }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--border); }
.cal-grid { display: flex; flex-direction: column; gap: 6px; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head span { font-size: var(--text-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 0 6px; }
.cal-day { min-height: 96px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.is-out { background: transparent; border-style: dashed; opacity: .5; }
.cal-day.is-today { box-shadow: inset 0 2px 0 var(--accent); }
.cal-date { margin: 0; font-size: var(--text-xs); color: var(--text-3); }
.cal-date-wd { display: none; }
.cal-entry { display: block; font-size: var(--text-xs); line-height: 1.3; padding: 3px 6px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; margin: 0; border-left: 3px solid var(--border); background: var(--bg-subtle); }
.cal-entry { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
a.cal-entry:hover, a.cal-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-time { font-variant-numeric: tabular-nums; color: var(--text-2); }
.cal-going, .cal-dot.cal-going { border-left-color: var(--accent); background: var(--accent-wash); }
.cal-dot.cal-going { background: var(--accent); }
.cal-maybe, .cal-dot.cal-maybe { border-left-color: var(--accent); border-left-style: dashed; }
.cal-dot.cal-maybe { background: var(--accent-wash); }
.cal-ranked { border-left-color: var(--text-3); }
.cal-yours, .cal-dot.cal-yours { border-left-color: var(--green-fg); }
.cal-dot.cal-yours { background: var(--green-fg); }
.cal-other, .cal-plan, .cal-busy, .cal-dot.cal-other { color: var(--text-3); background: repeating-linear-gradient(135deg, transparent 0 4px, var(--border) 4px 5px); }
.cal-entry.is-clash { box-shadow: inset 0 0 0 1px var(--amber-fg); }
@media (max-width: 760px) {
  .cal-head { display: none; }
  .cal-row { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; }
  .cal-day.is-empty, .cal-day.is-out { display: none; }
  .cal-date-wd { display: inline; }
}

/* ---------------------------------------------------------------- long-form pages (/privacy) */
.doc { max-width: 72ch; padding-bottom: 48px; }
.doc > header { margin-bottom: 28px; }
.doc h1 { margin-bottom: 10px; }
.doc-meta { color: var(--text-3, var(--grey-fg)); font-size: var(--text-sm); margin-top: 8px; }
.doc section { margin-top: 32px; }
.doc h2 { font-size: var(--text-xl); margin-bottom: 10px; }
.doc p, .doc li { font-size: var(--text-lg); line-height: 1.6; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 10px; }
.doc ul { padding-left: 1.25em; list-style: disc; }
.doc li::marker { color: var(--text-3); }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--accent-text); }
.doc-table-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-strong); }
.doc-table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); line-height: 1.5; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); background: var(--bg-subtle); }
.doc-table td:first-child { font-weight: 600; width: 24%; }
.doc-table td:last-child { width: 28%; }
.doc-table code { font-size: var(--text-sm); white-space: nowrap; }
.footer-links { display: inline-flex; gap: 16px; }
@media (max-width: 600px) {
  .doc p, .doc li { font-size: var(--text-base); }
  /* One stacked card per row: three columns don't fit a phone. */
  .doc-table-wrap { border: 0; background: none; overflow: visible; }
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: auto; }
  .doc-table tr { background: var(--panel-strong); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
  .doc-table tr + tr { margin-top: 8px; }
  .doc-table td { border: 0; padding: 2px 0; }
  .doc-table td:first-child { width: auto; font-size: var(--text-base); padding-bottom: 4px; }
  .doc-table td:last-child { width: auto; }
  .doc-table td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--text-3); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
  .site-footer { flex-wrap: wrap; }
}
.footer-links a { white-space: nowrap; }

/* The sidebar's account: signed in as whom, or a way to sign in (28 Sep). */
.side-account { display: grid; gap: 2px; padding-block: 8px 12px; margin-block-end: 8px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.side-account-email { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-signout { justify-self: start; font-size: 13px; padding: 0; }
