/* Discover the Role: app styles. Palette: canvas Option 1 (teal & marigold) plus small pops.
   Fonts load from Google Fonts in each page's <head>. */
:root {
  /* Ground and ink */
  --deep: #0B2530;        /* deep teal: top bar, hero bands */
  --teal: #10404A;        /* teal: primary actions, headings on light */
  --teal-2: #2F5E68;      /* borders on dark */
  --on-deep: #F6F8F7;
  --on-deep-muted: #A8C3C9;
  --bg: #F6F8F7;          /* clean white ground */
  --surface: #FFFFFF;
  --surface-2: #EEF3F2;
  --mint: #D9F0EC;
  --ink: #13222A;
  --muted: #43535A;
  --muted-2: #56666C;
  --line: #D5DEE0;

  /* Brand accents */
  --marigold: #FFB020;
  --coral: #F0532E;
  --coral-text: #C23A1A;

  /* Status */
  --good: #1E5B3E; --good-soft: #D7EBDD; --good-solid: #2E7D52;
  --warn: #8A4A0E; --warn-soft: #F8E3C4;
  --bad: #8E2B22;  --bad-soft: #F5D9D5;

  /* Complementary pops, used one per topic/card stripe */
  --pop-1: #F0532E; --pop-1-soft: #FDE3DC;   /* coral */
  --pop-2: #E79A00; --pop-2-soft: #FFF0CC;   /* marigold (darkened for stripes) */
  --pop-3: #1F8FB8; --pop-3-soft: #DDF0F8;   /* sky */
  --pop-4: #2E9E77; --pop-4-soft: #D8F2E8;   /* jade */
  --pop-5: #7A55C7; --pop-5-soft: #ECE5FA;   /* violet */

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 37, 48, .06), 0 8px 24px rgba(11, 37, 48, .06);
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* legacy names still used in a few inline styles */
  --forest: var(--teal); --forest-soft: var(--teal-2); --cream: var(--bg); --paper: var(--surface);
  --amber: var(--marigold); --danger: var(--bad);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--teal); }
a:hover { color: var(--coral-text); }
img { max-width: 100%; }

/* ---- Top bar ---- */
.topbar {
  background: var(--deep);
  color: var(--on-deep);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a.brand {
  color: var(--on-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .06em; text-transform: uppercase;
}
.topbar a.brand::before {
  content: ""; width: 28px; height: 28px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Crect x='1' y='1' width='32' height='32' rx='7' fill='none' stroke='%23FFB020' stroke-width='2'/%3E%3Cpath d='M7.5 27.5c5 0 8.5-1.3 8.5-4.2S9 20.2 9 17.4s4.6-3.3 9-3.3c3.8 0 6.4-1.3 6.4-4' fill='none' stroke='%23FFB020' stroke-width='2.4' stroke-linecap='round' stroke-dasharray='3.2 2.6'/%3E%3Cpath d='M24.4 4.6c-2.4 0-4.2 1.8-4.2 4.1 0 3.1 4.2 6.8 4.2 6.8s4.2-3.7 4.2-6.8c0-2.3-1.8-4.1-4.2-4.1z' fill='%23F0532E'/%3E%3Ccircle cx='24.4' cy='8.7' r='1.5' fill='%230B2530'/%3E%3C/svg%3E") center / contain no-repeat;
}
.topbar .muted { color: var(--on-deep-muted); font-size: .9rem; }
.appnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-right: auto; margin-left: 14px; }
.appnav a { color: var(--mint); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 7px 12px; border-radius: 999px; }
.appnav a:hover { color: var(--marigold); background: rgba(255,255,255,.06); }
.appnav a[aria-current="page"] { color: var(--on-deep); background: rgba(255,255,255,.1); }
.appnav a.cta { color: var(--deep); background: var(--marigold); margin-left: 4px; }
.appnav a.cta:hover { background: #FFC14D; color: var(--deep); }
.appnav .nav-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
@media (max-width: 720px) { .appnav { order: 3; width: 100%; margin: 4px 0 0; } .topbar [data-account] { margin-left: auto; } }
.topbar .link { color: var(--on-deep); }
.topbar .link:hover { color: var(--marigold); }
.topbar .owner-link { color: var(--marigold); font-size: .9rem; margin-right: 14px; font-weight: 600; text-decoration: none; }

/* ---- Layout ---- */
main { width: 100%; max-width: 860px; margin: 0 auto; padding: 32px 16px 72px; flex: 1; }
main.wide { max-width: 1120px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; }
h1 { color: var(--ink); font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 8px; }
h2 { color: var(--ink); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 32px 0 12px; }
h3 { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
p.lead { color: var(--muted); margin: 0 0 24px; font-size: 1.05rem; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text); margin: 0 0 8px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.small-text { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.actions { margin-top: 24px; }
.scroll { overflow-x: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ---- Forms ---- */
label { display: block; font-weight: 600; margin: 16px 0 6px; }
.hint { color: var(--muted); font-size: .875rem; font-weight: 400; }
input[type=text], input[type=email], input[type=url], input[type=date], textarea, select {
  width: 100%;
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
select { width: auto; padding: 8px 12px; }
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---- Buttons ---- */
button, .button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  background: var(--marigold);
  color: var(--deep);
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
  transition: background .15s, box-shadow .15s, transform .05s;
}
button:hover, .button:hover { background: #FFC14D; color: var(--deep); }
button:active, .button:active { transform: translateY(1px); }
button[disabled] { opacity: .55; cursor: progress; }
button.secondary, .button.secondary { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
button.secondary:hover, .button.secondary:hover { background: var(--mint); }
button.dark, .button.dark { background: var(--teal); color: var(--on-deep); }
button.dark:hover, .button.dark:hover { background: var(--deep); color: var(--on-deep); }
button.link { background: none; padding: 0; color: var(--teal); text-decoration: underline; font-weight: 500; border-radius: 0; }
button.link:hover { color: var(--coral-text); background: none; }
button.small, .button.small { padding: 7px 14px; font-size: .875rem; }
button.link.small { padding: 0; font-size: .85rem; color: var(--muted); }

/* ---- Notices, badges ---- */
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--marigold); padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; }
.notice.error, .error { border-left-color: var(--coral); background: #FFF4F1; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ready { background: var(--good-soft); color: var(--good); }
.badge.researching { background: var(--warn-soft); color: var(--warn); }
.badge.failed { background: var(--bad-soft); color: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.strong, .pill.good { background: var(--good-soft); color: var(--good); }
.pill.partial { background: var(--warn-soft); color: var(--warn); }
.pill.gap { background: var(--bad-soft); color: var(--bad); }
.pill.pri { background: var(--mint); color: var(--teal); }
.pill.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }
.fit { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.fit-strong { background: var(--good-soft); color: var(--good); }
.fit-partial { background: var(--warn-soft); color: var(--warn); }
.fit-gap { background: var(--bad-soft); color: var(--bad); }

/* ---- Lists ---- */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list a { color: var(--teal); font-weight: 700; text-decoration: none; }
.list a:hover { color: var(--coral-text); }
.interviewer { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin-top: 12px; background: var(--bg); }

.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--coral); border-radius: 50%; display: inline-block; vertical-align: middle; animation: spin 1s linear infinite; margin-right: 8px; }
.spinner.small { width: 14px; height: 14px; border-width: 2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px; }
footer a { color: var(--muted); }

/* ---- Intake ---- */
.inline-field { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-field input { flex: 1 1 260px; }
.field-status { font-size: .9rem; margin-top: 6px; min-height: 1.2em; color: var(--muted); }
.field-status.ok { color: var(--good); }
.field-status.bad { color: var(--bad); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg); padding: 24px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone > * { pointer-events: none; }
.dropzone .link { pointer-events: auto; }
.dropzone.over { border-color: var(--coral); background: var(--pop-1-soft); }

/* ---- Prose (older prose dossiers, markdown bodies) ---- */
.prose { overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); text-transform: none; letter-spacing: 0; }
.prose h2 { font-size: 1.35rem; margin: 22px 0 8px; }
.prose h3 { font-size: 1.15rem; margin: 18px 0 6px; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.prose pre { background: var(--surface-2); padding: 12px; border-radius: 8px; overflow-x: auto; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border-radius: 4px; padding: 0 4px; }
.prose table.rows { display: table; font-size: .92rem; margin: 16px 0; }
.prose table.rows td ul { margin: 0; padding-left: 18px; }
.prose .fields h3 { font-size: 1rem; margin: 18px 0 6px; }
.prose .fields h3:first-child { margin-top: 0; }
.prose .fields p { margin: 0 0 8px; }
@media (max-width: 640px) {
  .prose table.rows, .prose table.rows tbody, .prose table.rows tr, .prose table.rows td { display: block; width: 100%; }
  .prose table.rows thead { display: none; }
  .prose table.rows tr { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }
  .prose table.rows td { border: 0; padding: 4px 0; }
  .prose table.rows td:empty { display: none; }
  .prose table.rows td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
}

/* ---- Owner page ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-top: 4px solid var(--tile-pop, var(--teal)); }
.tiles .tile:nth-child(5n+1) { --tile-pop: var(--pop-1); }
.tiles .tile:nth-child(5n+2) { --tile-pop: var(--pop-2); }
.tiles .tile:nth-child(5n+3) { --tile-pop: var(--pop-3); }
.tiles .tile:nth-child(5n+4) { --tile-pop: var(--pop-4); }
.tiles .tile:nth-child(5n+5) { --tile-pop: var(--pop-5); }
.tile-label { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.tile-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.05; margin-top: 4px; }
.tile-note { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 80px; gap: 10px; align-items: center; font-size: .875rem; }
.bar-track { background: var(--surface-2); border-radius: 999px; height: 12px; overflow: hidden; }
.bar { display: block; height: 100%; background: var(--marigold); border-radius: 999px; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; }
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); white-space: nowrap; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data a { color: var(--teal); font-weight: 700; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 80px 1fr 64px; } }

/* =====================================================================
   Dossier dashboard
   ===================================================================== */
body.dossier main { max-width: 1120px; padding-top: 0; }
.d-hero { background: var(--deep); color: var(--on-deep); padding: 26px 16px 0; }
.d-hero .wrap { max-width: 1120px; margin: 0 auto; }
.d-back { color: var(--on-deep-muted); text-decoration: none; font-size: .9rem; }
.d-back:hover { color: var(--marigold); }
.d-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; margin: 10px 0 18px; }
.d-head h1 { color: var(--on-deep); margin: 0; font-size: clamp(1.9rem, 4.6vw, 3rem); }
.d-company { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--marigold); margin: 0 0 6px; }
.d-head .row { gap: 8px; }
.d-chip { font-family: var(--font-mono); font-size: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--on-deep); border: 1px solid var(--teal-2); white-space: nowrap; }
.d-chip.hot { background: var(--marigold); color: var(--deep); border-color: var(--marigold); }
.d-hero button.secondary { color: var(--on-deep); box-shadow: inset 0 0 0 1.5px var(--teal-2); }
.d-hero button.secondary:hover { background: var(--teal); }

.d-rail { position: sticky; top: 0; z-index: 5; background: var(--deep); border-bottom: 1px solid var(--teal-2); }
.d-rail .wrap { max-width: 1120px; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.d-rail .wrap::-webkit-scrollbar { display: none; }
.d-tab {
  background: none; border-radius: 0; color: var(--on-deep-muted); padding: 13px 14px 10px; border-bottom: 3px solid transparent;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.d-tab:hover { background: none; color: var(--on-deep); }
.d-tab[aria-selected="true"] { color: var(--on-deep); border-bottom-color: var(--coral); }
.d-tab .count { font-family: var(--font-mono); font-size: 11px; font-weight: 500; margin-left: 6px; color: var(--marigold); }

.d-view { padding-top: 26px; }
.d-sec { margin-top: 34px; }
.d-sec:first-child { margin-top: 0; }
.d-sec > h2 { margin: 0 0 6px; }
.d-sec > .lede { color: var(--muted); max-width: 70ch; margin: 0 0 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 14px; }
.panel h3 { font-size: 1.25rem; }
.panel.mint { background: var(--mint); border-color: transparent; box-shadow: none; }
.panel.dark { background: var(--teal); color: var(--on-deep); border-color: transparent; }
.panel.dark .muted { color: var(--on-deep-muted); }
.panel.pop { border-top: 4px solid var(--pop, var(--teal)); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grid2 > .panel, .grid3 > .panel, .grid-auto > .panel { margin-top: 0; }
@media (max-width: 820px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.panel.dark .label { color: var(--on-deep-muted); }
.big { font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: 22px; color: var(--muted); font-weight: 700; }

/* pops: each item takes a color */
[data-pop="1"] { --pop: var(--pop-1); --pop-soft: var(--pop-1-soft); }
[data-pop="2"] { --pop: var(--pop-2); --pop-soft: var(--pop-2-soft); }
[data-pop="3"] { --pop: var(--pop-3); --pop-soft: var(--pop-3-soft); }
[data-pop="4"] { --pop: var(--pop-4); --pop-soft: var(--pop-4-soft); }
[data-pop="5"] { --pop: var(--pop-5); --pop-soft: var(--pop-5-soft); }

/* fit meter */
.fitbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.fitbar span { display: block; height: 100%; }
.fitbar .s { background: var(--good-solid); }
.fitbar .p { background: var(--marigold); }
.fitbar .g { background: var(--coral); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* topic ports */
.ports { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.port {
  position: relative; text-align: left; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 14px 14px 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-height: 118px; font-weight: 400;
}
.port::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 12px 12px 0 0; background: var(--pop, var(--teal)); }
.port:hover { background: var(--surface); border-color: var(--pop, var(--teal)); }
.port[aria-current="true"] { border-color: var(--pop, var(--teal)); box-shadow: 0 0 0 2px var(--pop, var(--teal)); }
.port .tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--pop, var(--teal)); }
.port .nm { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.1; }
.port .st { font-size: 12px; color: var(--muted); margin-top: auto; }
.led { position: absolute; right: 12px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #B9C6C9; }
.led[data-d="0"] { background: var(--coral); }
.led[data-d="1"] { background: var(--marigold); }
.led[data-d="2"] { background: var(--good-solid); }
.led[data-d="3"] { background: var(--good-solid); box-shadow: 0 0 0 4px var(--good-soft); }
.seg { display: flex; gap: 4px; }
.seg b { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); }
.seg b.on { background: var(--good-solid); }
.seg b.part { background: var(--marigold); }

/* key/value */
.kv { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.kv dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* timeline (news) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
.timeline .when { font-family: var(--font-mono); font-size: 12px; color: var(--coral-text); padding-top: 3px; }
.timeline .what { font-weight: 700; }
.timeline .what a { color: var(--ink); text-decoration-color: var(--line); }
.timeline .what a:hover { color: var(--coral-text); }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* implication cards */
.impl { display: grid; gap: 8px; }
.impl .sig { font-size: .92rem; color: var(--muted); }
.impl .mean { font-weight: 600; }
.impl .arrow { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; border-top: 1px dashed var(--line); padding-top: 8px; }

/* numbered list */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps > li::before {
  content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1;
  color: var(--coral); width: 34px; flex: none;
}
.steps .why { color: var(--muted); font-size: .9rem; }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 7px 14px; font-size: .875rem; font-weight: 600; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--teal); color: var(--on-deep); box-shadow: none; }
.chip .n { font-family: var(--font-mono); font-weight: 500; font-size: 12px; opacity: .8; margin-left: 4px; }

/* fit cards */
.fitlist { display: grid; gap: 10px; }
.fitcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; border-left: 5px solid var(--fc, var(--line)); }
.fitcard[data-fit="strong"] { --fc: var(--good-solid); }
.fitcard[data-fit="partial"] { --fc: var(--marigold); }
.fitcard[data-fit="gap"] { --fc: var(--coral); }
.fitcard .req { font-weight: 700; }
.fitcard > .pill { align-self: start; }
.fitcard .type { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.fitcard .detail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; font-size: .92rem; }
.fitcard .detail .label { display: block; margin-bottom: 2px; }
@media (max-width: 640px) { .fitcard .detail { grid-template-columns: minmax(0, 1fr); } }

/* question bank */
details.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
details.qa summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before { content: "+"; font-family: var(--font-mono); font-weight: 500; color: var(--coral-text); width: 14px; flex: none; }
details.qa[open] summary::before { content: "\2212"; }
details.qa .qt { flex: 1; min-width: 0; font-weight: 600; }
details.qa .body { padding: 0 16px 16px 42px; max-width: 80ch; }
details.qa .body ol, details.qa .body ul { padding-left: 20px; margin: 6px 0 10px; }
.prac { display: inline-flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--muted); font-weight: 500; margin: 6px 0 0; }
.prac input { width: 18px; height: 18px; accent-color: var(--good-solid); }
.pitch { white-space: pre-wrap; font-size: 1.05rem; max-width: 72ch; margin: 0 0 12px; }

/* study session */
.topic-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; align-items: flex-start; }
.seg-ctl { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg-ctl button { background: none; color: var(--muted); padding: 8px 16px; font-size: .9rem; }
.seg-ctl button:hover { background: var(--surface); }
.seg-ctl button[aria-pressed="true"] { background: var(--teal); color: var(--on-deep); }
.teach h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--pop, var(--coral-text)); margin: 22px 0 6px; }
.teach h4:first-child { margin-top: 0; }
.teach p, .teach li { max-width: 72ch; }
.teach ul, .teach ol { padding-left: 22px; margin: 0 0 10px; }
.teach li { margin-bottom: 5px; }
.bridge { background: var(--mint); border-radius: 12px; padding: 16px 18px; margin-top: 20px; }
.bridge .label { color: var(--teal); }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-height: 260px; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--pop, var(--teal)); }
.fcard .meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted-2); }
.fcard .q { font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1.15; text-wrap: balance; }
.fcard .ans { border-top: 1px dashed var(--line); padding-top: 14px; max-width: 72ch; }
.rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.rate button { border-radius: 12px; padding: 13px 8px; font-weight: 700; }
.rate .r1 { background: var(--bad-soft); color: var(--bad); }
.rate .r2 { background: var(--warn-soft); color: var(--warn); }
.rate .r3 { background: var(--good-soft); color: var(--good); }
.rate button:hover { filter: brightness(.97); }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dots button { width: 30px; height: 30px; border-radius: 8px; padding: 0; background: var(--surface-2); color: var(--muted); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.dots button[data-r="1"] { background: var(--bad-soft); color: var(--bad); }
.dots button[data-r="2"] { background: var(--warn-soft); color: var(--warn); }
.dots button[data-r="3"] { background: var(--good-soft); color: var(--good); }
.dots button[aria-current="true"] { outline: 2px solid var(--teal); outline-offset: 1px; }
.weak { border-left: 4px solid var(--marigold); padding: 8px 12px; margin: 10px 0; background: var(--bg); border-radius: 0 8px 8px 0; }
table.tiers { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.tiers th, table.tiers td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tiers th { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
textarea.copybox { width: 100%; min-height: 150px; font-family: var(--font-mono); font-size: 13px; background: var(--bg); margin-top: 10px; }
.sources { margin: 0; padding-left: 20px; font-size: .9rem; }
.sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.save-state { font-family: var(--font-mono); font-size: 12px; color: var(--on-deep-muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--marigold); display: inline-block; }
.save-state[data-s="ok"] i { background: #5CD69B; }

/* Research console (dossier page while research runs) */
.rc { background: var(--deep); color: var(--on-deep); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px rgba(11,37,48,.2); }
.rc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 32px; padding: 24px 26px 20px; border-bottom: 1px solid var(--teal-2); }
.rc-head h2 { color: var(--on-deep); margin: 4px 0 8px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.rc-lede { color: var(--on-deep-muted); margin: 0; max-width: 60ch; }
.rc-clock { text-align: right; }
.rc-clock .label { display: block; color: var(--on-deep-muted); }
.rc-clock #rc-elapsed { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--marigold); }
.rc-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 820px) { .rc-body { grid-template-columns: minmax(0, 1fr); } .rc-clock { text-align: left; } }
.rc-stages { list-style: none; margin: 0; padding: 18px 22px 22px; display: grid; gap: 4px; }
.rc-stage { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 10px; border-radius: 12px; align-items: start; transition: background .3s; }
.rc-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--teal-2); color: var(--on-deep-muted); }
.rc-title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-sub { font-size: .9rem; color: var(--on-deep-muted); margin-top: 2px; }
.rc-count { font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: rgba(255,176,32,.16); color: var(--marigold); }
.rc-stage[data-st="pending"] .rc-title { color: var(--on-deep-muted); }
.rc-stage[data-st="pending"] .rc-sub { opacity: .7; }
.rc-stage[data-st="active"] { background: rgba(255,255,255,.06); }
.rc-stage[data-st="active"] .rc-dot { border-color: var(--pop); color: var(--deep); background: var(--pop); animation: rc-pulse 1.6s ease-in-out infinite; }
.rc-stage[data-st="active"] .rc-sub { color: var(--on-deep); }
.rc-stage[data-st="done"] .rc-dot { background: var(--good-solid); border-color: var(--good-solid); color: #fff; }
.rc-stage[data-st="error"] .rc-dot { background: var(--coral); border-color: var(--coral); color: #fff; }
@keyframes rc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,176,32,.0); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.12); } }
@media (prefers-reduced-motion: reduce) { .rc-stage[data-st="active"] .rc-dot { animation: none; } }
.rc-feed-wrap { padding: 20px 22px 22px; border-left: 1px solid var(--teal-2); background: #071A21; }
@media (max-width: 820px) { .rc-feed-wrap { border-left: 0; border-top: 1px solid var(--teal-2); } }
.rc-feed-wrap .label { color: var(--on-deep-muted); }
.rc-feed { list-style: none; margin: 0; padding: 0; max-height: 540px; overflow-y: auto; display: grid; gap: 7px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; scrollbar-color: var(--teal-2) transparent; }
.rc-ev { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; color: var(--on-deep-muted); }
.rc-ev time { color: #6F8D94; white-space: nowrap; }
.rc-ev[data-kind="start"] span { color: var(--on-deep); }
.rc-ev[data-kind="search"] span { color: #8FD3F0; }
.rc-ev[data-kind="search"] span::before { content: "⌕ "; }
.rc-ev[data-kind="read"] span { color: #9FB9BF; }
.rc-ev[data-kind="done"] span { color: #7FD1A4; }
.rc-ev[data-kind="done"] span::before { content: "✓ "; }
.rc-ev[data-kind="step"] span { color: var(--marigold); }
.rc-ev[data-kind="error"] span { color: #FF9A8F; }
.rc-ev .spinner { border-color: var(--teal-2); border-top-color: var(--marigold); }

/* Public sample */
.sample-bar { background: var(--marigold); color: var(--deep); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 9px 16px; font-size: .92rem; text-align: center; }
.sample-bar .button { background: var(--deep); color: var(--on-deep); }
.sample-bar .button:hover { background: var(--teal); color: var(--on-deep); }
.panel.dark button.link { color: var(--marigold); }
.panel.dark button.link:hover { color: #FFC14D; }

/* Interviewers */
.person + .person { margin-top: 18px; }
.person-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.person-head h2 { font-size: 1.8rem; }
button.person-mini { text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--ink); background: var(--surface); border-radius: var(--radius); font-weight: 400; }
button.person-mini:hover { background: var(--surface); border-color: var(--pop); }

/* Interviewer tabs: "top" = cards across the top, "side" = rail on the left */
.people-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.people-top { display: grid; gap: 16px; }
.pnav { display: flex; gap: 8px; }
.pnav-side { flex-direction: column; position: sticky; top: 62px; }
.pnav-top { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ptab { text-align: left; display: flex; flex-direction: column; gap: 2px; background: var(--surface); color: var(--ink); border-radius: 12px;
  padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 400; position: relative; }
.pnav-top .ptab { min-width: 210px; flex: none; }
.ptab::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pop, var(--teal)); }
.pnav-top .ptab::before { left: 10px; right: 10px; top: 0; bottom: auto; width: auto; height: 4px; border-radius: 0 0 4px 4px; }
.ptab:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--pop, var(--teal)); }
.ptab[aria-selected="true"] { background: var(--deep); color: var(--on-deep); box-shadow: none; }
.ptab-when { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--coral-text); }
.ptab[aria-selected="true"] .ptab-when { color: var(--marigold); }
.ptab-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.ptab-role { font-size: .85rem; color: var(--muted); }
.ptab[aria-selected="true"] .ptab-role { color: var(--on-deep-muted); }
.ptab-add { flex-direction: row; align-items: center; gap: 10px; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; border: 0; outline-offset: 2px; }
.ptab-add::before { display: none; }
.ptab-add { box-shadow: none; border: 2px dashed var(--line); }
.ptab-add:hover { border-color: var(--coral); background: var(--pop-1-soft); box-shadow: none; }
.ptab-add[aria-selected="true"] { background: var(--marigold); color: var(--deep); border-color: var(--marigold); }
.ptab-plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--marigold); color: var(--deep); font-weight: 800; font-size: 18px; flex: none; }
.ptab-add[aria-selected="true"] .ptab-plus { background: var(--deep); color: var(--marigold); }
.ptab-add .ptab-name { font-size: 18px; }
@media (max-width: 860px) {
  .people-side { grid-template-columns: minmax(0, 1fr); }
  .pnav-side { position: static; flex-direction: row; overflow-x: auto; }
  .pnav-side .ptab { min-width: 200px; flex: none; }
}

/* Free beta seat option */
.beta-opt { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--pop-2-soft); border: 1px solid #F3D18A; width: 100%; cursor: pointer; }
.beta-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }

/* Legal pages and footer links */
.legal-main { max-width: 760px; }
.legal-main h1 { margin-bottom: 10px; }
.legal-main .legal-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); margin: -10px 0 28px; }
.legal-main section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.legal-main h2 { font-size: 1.35rem; margin: 0 0 8px; }
.legal-main p, .legal-main li { max-width: 68ch; }
.legal-main ul { padding-left: 22px; margin: 8px 0; }
.legal-main li { margin-bottom: 6px; }
.legal-main .callout-list { list-style: none; padding: 0; }
.legal-main .callout-list li { padding-left: 26px; position: relative; }
.legal-main .callout-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good-solid); font-weight: 700; }
.contact-card { border-top: 4px solid var(--coral) !important; }
.contact-email { font-family: var(--font-display); font-size: clamp(1.15rem, 5.4vw, 2.4rem); font-weight: 800; margin: 4px 0 6px; overflow-wrap: anywhere; }
.contact-email a { text-decoration: none; }
.legal-foot, footer.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.legal-foot nav, footer .foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
footer .foot-links a, .legal-foot nav a { color: var(--muted); text-decoration: none; }
footer .foot-links a:hover, .legal-foot nav a:hover { color: var(--coral-text); }
.agree { font-size: .85rem; color: var(--muted); flex-basis: 100%; margin: 0; }

/* interviewer: change date */
details.ivdate { display: inline-block; }
details.ivdate > summary { list-style: none; cursor: pointer; color: var(--muted); text-decoration: underline; font-size: .85rem; }
details.ivdate > summary::-webkit-details-marker { display: none; }

/* round debrief */
.pill.bad { background: var(--bad-soft); color: var(--bad); }
details.debrief { margin-top: 18px; }
details.debrief > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
details.debrief > summary::-webkit-details-marker { display: none; }
details.debrief > summary h3 { font-size: 1.5rem; margin: 6px 0 2px; }
details.debrief > summary h3::after { content: " +"; color: var(--muted-2); font-weight: 600; }
details.debrief[open] > summary h3::after { content: " −"; }
.debrief-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.debrief .chips .pill { white-space: normal; text-align: left; }
.debrief-form textarea { min-height: 0; }
.rating { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.rating legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.rating label { margin: 0; cursor: pointer; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating span { display: inline-block; padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .9rem; color: var(--muted); background: var(--surface); }
.rating input:checked + span { background: var(--marigold); color: var(--deep, #0E2A33); box-shadow: none; }
.rating input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.dq { display: grid; gap: 8px; }
.dq-row { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.dq-q { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.dq-q strong { flex: 1 1 18em; }
.dq-row .why { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.dq-topic { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
ul.tight { margin: 0; padding-left: 20px; }
ul.tight li { margin: 4px 0; }
details.redo { margin-top: 18px; }
details.redo > summary, details.ty > summary { cursor: pointer; font-weight: 600; color: var(--teal); }
details.ty { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
details.ty > summary .muted { font-weight: 400; color: var(--muted); }
.ty-note { margin-top: 10px; }
.ty-form > div label { margin-top: 0; }

/* expandable sections ("twist rows") on an interviewer */
.tws { margin-top: 18px; border-top: 1px solid var(--line); }
.tw { border-bottom: 1px solid var(--line); }
.tw-h { margin: 0; font: inherit; }
.tw-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 6px; min-height: 56px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; box-shadow: none; }
.tw-head:hover { background: var(--surface-2); }
.tw-head:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tw-chev { flex: none; color: var(--muted-2); transition: transform .25s ease, color .2s; }
.tw.open .tw-chev { transform: rotate(90deg); color: var(--teal); }
.tw-title { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.tw-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.tw-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.tw.open .tw-fold { grid-template-rows: 1fr; }
.tw-inner { overflow: hidden; visibility: hidden; transition: visibility 0s linear .3s; }
.tw.open .tw-inner { visibility: visible; transition: visibility 0s; }
.tw-body { padding: 4px 6px 22px 38px; }
@media (max-width: 640px) { .tw-body { padding-left: 6px; } }
@media (prefers-reduced-motion: reduce) { .tw-fold, .tw-chev { transition: none; } }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clampbox .link { margin-top: 4px; }

/* debrief: one question at a time */
.dstep { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.dstep-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dstep .dots { display: flex; gap: 6px; align-items: center; }
.dstep .dots i { width: 9px; height: 9px; border-radius: 999px; background: var(--line); transition: width .2s, background .2s; }
.dstep .dots i.on { width: 24px; background: var(--teal); }
.dstep .dots i.done { background: var(--pop-4); }
.mono-s { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.dstep-q { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; color: var(--deep); margin: 0 0 4px; }
.dstep textarea { min-height: 0; }
.dstep-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.rating-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.chip-btn:hover { color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--surface); }
.chip-btn.on { background: var(--marigold); color: var(--deep); box-shadow: none; }

/* Interview tab: the general prep tile in the left column */
.ptab-prep { --pop: var(--teal); }
.prep-body > .d-sec:first-child { margin-top: 0; }
.prep-body > .d-sec:first-child > h2 { margin-top: 0; }

/* Steer (was the "Your input" tab): header button and slide-in panel */
.steer-btn { background: var(--marigold); color: var(--deep); }
.steer-btn .count { margin-left: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.steer-scrim { position: fixed; inset: 0; background: rgba(11, 37, 48, .38); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 40; }
.steer-scrim.on { opacity: 1; pointer-events: auto; }
.steer-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); box-sizing: border-box; padding: 22px 24px 32px; background: var(--bg); box-shadow: -12px 0 40px rgba(11, 37, 48, .22); transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s; overflow-y: auto; z-index: 41; visibility: hidden; }
.steer-panel.on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.steer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.steer-panel .grid2 { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .steer-panel, .steer-scrim { transition: none; } }

/* Preparation: group label in the left column */
.pnav-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px 4px; }

/* Five tabs fit a phone: an even grid, labels may wrap, counts drop below */
@media (max-width: 640px) {
  .d-rail .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0 4px; overflow: visible; }
  .d-tab { white-space: normal; text-align: center; font-size: 14.5px; line-height: 1.05; padding: 10px 2px 8px; min-height: 52px; }
  .d-tab .count { display: block; margin: 3px 0 0; font-size: 10px; }
}
.d-tab .ts { display: none; }
@media (max-width: 640px) {
  .d-tab { font-size: 13.5px; letter-spacing: 0; }
  .d-tab .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .d-tab .ts { display: inline; }
}

/* Preparation: "Add a topic" tile at the end of the knowledge grid */
.port-add { align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--line); background: transparent; box-shadow: none; color: var(--teal); font-weight: 700; }
.port-add::before { display: none; }
.port-add:hover { border-color: var(--teal); background: var(--surface); }
.port-add .plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--marigold); color: var(--deep); font-size: 20px; line-height: 1; }

/* Interview team: the reminder under each summary */
.human-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--mint, #E4F2EE); color: var(--ink); font-size: .92rem; line-height: 1.5; }

/* Ask about this role: top-bar button and slide-in chat */
[data-account] { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ask-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--marigold); color: var(--deep); font-weight: 700; font-size: .92rem; box-shadow: none; }
.ask-btn:hover { background: #ffc24d; color: var(--deep); }
@media (max-width: 640px) { .acct-email { display: none; } }
.ask-scrim { position: fixed; inset: 0; background: rgba(11, 37, 48, .38); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 60; }
.ask-scrim.on { opacity: 1; pointer-events: auto; }
.ask-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); box-sizing: border-box; display: flex; flex-direction: column; padding: 18px 20px 14px; background: var(--bg); box-shadow: -12px 0 40px rgba(11, 37, 48, .22); transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s; visibility: hidden; z-index: 61; }
.ask-panel.on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .ask-panel, .ask-scrim { transition: none; } }
.ask-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ask-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ask-head select { width: 100%; }
.ask-pos1 { font-weight: 700; }
.ask-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ask-count.low { color: var(--coral-text, #C23A1A); }
.ask-log { flex: 1; overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; font-size: .96rem; overflow-wrap: anywhere; }
.ask-msg.user { align-self: flex-end; background: var(--deep); color: var(--paper, #F6F8F7); border-bottom-right-radius: 4px; }
.ask-msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ask-msg.assistant p { margin: 0 0 8px; } .ask-msg.assistant p:last-child { margin-bottom: 0; }
.ask-msg.assistant ul, .ask-msg.assistant ol { margin: 4px 0 8px; padding-left: 20px; }
.ask-msg.pending { color: var(--muted); }
.ask-intro p { color: var(--muted); margin: 0 0 12px; }
.ask-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-sugg .chip-btn { min-height: 38px; padding: 6px 14px; text-align: left; }
.ask-form textarea { width: 100%; min-height: 64px; resize: vertical; }
.ask-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.ask-web { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; margin: 0; font-weight: 500; }
.ask-web .hint { margin-left: 4px; }
.ask-foot { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
.ask-empty { padding: 24px 4px; color: var(--muted); }
.ask-consent { padding: 6px 2px; }
.ask-consent h3 { margin: 4px 0 10px; font-size: 1.4rem; }
.ask-consent ul { margin: 0 0 16px; padding-left: 20px; line-height: 1.55; }
.ask-consent li { margin: 6px 0; }
.ask-agree { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 600; }
.ask-out { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ask-out p { margin: 0 0 10px; }

/* Your data: delete, keep, purge */
button.danger { background: var(--bad, #B3261E); color: #fff; }
button.danger:hover { background: #8E1D17; color: #fff; }
button.danger:disabled { opacity: .45; }
.notice.ok { background: var(--good-soft, #D7EBDD); color: var(--ink); border-left-color: var(--good, #2E7D52); }
.retention-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
#retention:not([hidden]) { display: block; }
.retention-row { flex-basis: 100%; font-size: .88rem; color: var(--coral-text, #C23A1A); }
.list li { flex-wrap: wrap; }
.del-confirm { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.del-confirm span { flex-basis: 100%; }
.del-confirm input { width: 140px; }
.your-data p { line-height: 1.55; }
details.purge { margin-top: 10px; }
details.purge > summary { cursor: pointer; font-weight: 700; color: var(--bad, #B3261E); }
.purge-body { margin-top: 12px; }
.purge-body ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.55; }
