/* ============================================================
   CrewClone design system. Brand source of truth: the brand kit's
   tokens.css (black, Copy Gray, white; amber and red are status only).
   Neutral canvas, white cards, hairline borders, no shadows.
   ============================================================ */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink:      #111111;
  --ink-95:   rgba(17, 17, 17, .95);
  --ink-2:    #3f3f3f;   /* body copy */
  --ink-3:    #6e6e6e;   /* muted: captions, helper text */
  --line:     #e2e2e2;
  --line-2:   #ececec;
  --line-3:   #d2d2d2;
  --canvas:   #f4f4f4;
  --canvas-2: #ebebeb;   /* the sidebar, one shade deeper than the page */
  --surface:  #ffffff;
  --copy-gray:#8c8c8c;

  /* The primary colour is black in light mode and white in dark mode.
     --brand stays the name the JS knows. */
  --brand:      #111111;
  --on-brand:   #ffffff;
  --brand-ink:  #333333;   /* primary hover */
  --brand-tint: #e9e9e9;   /* ghost buttons, selected pills */
  --brand-tint-2: #dedede; /* ghost hover */
  --brand-line: #c8c8c8;

  /* Status only, never decoration. Amber = still needs your input. */
  --amber:      #e0a100;
  --amber-text: #8a5a00;
  --amber-tint: #fdf3d6;
  --danger:     #c2362b;
  --danger-text:#a12a21;
  --danger-tint:#fbe9e7;

  --r-sm: 10px;  /* buttons */
  --r:    12px;  /* cards */
  --r-lg: 12px;
  --r-xs: 4px;

  --sh-nav: 0 .7px 1.462px rgba(0, 0, 0, .015), 0 3px 9px rgba(0, 0, 0, .03);
  --sh-1: none;
  --sh-2: none;

  --nav-w: 250px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "lnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-underline-offset: 2px; }

::selection { background: var(--brand-tint); }

/* Subhead voice: Geist Medium in the muted colour. */
.serif { font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--ink-3); }
/* Numbers people read as numbers: scores, XP, levels, prices, counts. */
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ app shell */

.shell { display: flex; min-height: 100vh; }

.sidenav {
  width: var(--nav-w);
  flex: none;
  background: var(--canvas-2);
  border-right: 1px solid var(--line);
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.lockup { display: flex; align-items: center; padding: 6px 10px 22px; }
.lockup img { display: block; height: 22px; width: auto; }
/* Light and dark artwork from the brand kit; show the one that fits the theme. */
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

.nav-label {
  font-size: 12px; font-weight: 500; letter-spacing: .12px; text-transform: uppercase;
  color: var(--ink-3); padding: 16px 10px 4px;
}

.sidenav a.item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-sm);
  color: rgba(17, 17, 17, .62); text-decoration: none;
  font-weight: 500; font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.sidenav a.item svg { width: 17px; height: 17px; flex: none; opacity: .6; }
.sidenav a.item:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
.sidenav a.item:hover svg { opacity: .9; }
.sidenav a.item.on { background: var(--surface); color: var(--ink); }
.sidenav a.item.on svg { opacity: 1; }
.sidenav a.item .pill {
  margin-left: auto; font-size: 12px; font-weight: 500; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, .06); color: rgba(17, 17, 17, .62);
  padding: 1px 8px; border-radius: 9999px;
}
.sidenav a.item.on .pill { background: var(--brand); color: var(--on-brand); }

.sidenav .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sidenav .whoami { padding: 6px 10px; }
.sidenav .whoami .co { font-weight: 600; font-size: 14px; letter-spacing: -.011em; }
.sidenav .whoami .role { font-size: 12px; color: var(--ink-3); }
.sidenav .whoami .role.is-admin { color: var(--ink); font-weight: 500; }

.content { flex: 1; min-width: 0; }

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 40px 96px;
}

.page-head { margin-bottom: 28px; }
.page-head h1 {
  font-size: 42px; line-height: 1.04; letter-spacing: -.03em; font-weight: 600;
  margin: 0 0 10px;
}
/* Subhead under the display headline: Geist Medium, muted. */
.page-head p {
  font-size: 17px; font-weight: 500; line-height: 1.5;
  color: var(--ink-3); margin: 0; max-width: 62ch;
}

h2 { font-size: 22px; line-height: 1.27; letter-spacing: -.02em; font-weight: 600; margin: 0 0 4px; }
.muted { color: var(--ink-3); font-size: 14px; line-height: 1.43; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }

/* Signature device: a black pill sitting behind one word of a sentence. */
.hl {
  display: inline-block;
  background: var(--brand); color: var(--on-brand);
  border-radius: 9999px; padding: 2px 20px;
  line-height: inherit;
}

/* Hand-drawn punctuation. Decoration only — never carries meaning. */
.squiggle { display: inline-block; vertical-align: middle; opacity: .9; }
.squiggle svg { display: block; }

/* --------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.card + .card { margin-top: 12px; }
.card > h2:first-child { margin-top: 0; }
.card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.card-head .muted { margin-top: 2px; }

/* Panels that paint the canvas instead of bordering it. Grey, or solid black. */
.card.accent { border: none; }
.card.accent.marigold, .card.accent.sky { background: var(--brand-tint); }
.card.accent.coral, .card.accent.midnight { background: var(--brand); color: var(--on-brand); }
.card.accent.midnight .muted, .card.accent.coral .muted { color: var(--on-brand); opacity: .7; }

/* ------------------------------------------------------------ controls */

button, .btn {
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: normal;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 15px; min-height: 36px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--brand); color: var(--on-brand); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.btn { text-decoration: none; }
button:hover:not(:disabled), .btn:hover { background: var(--brand-ink); color: var(--on-brand); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Modifiers are element-agnostic so an <a class="btn ghost"> looks like a ghost
   button and not a primary one. Only one filled black button per view. */
.ghost { background: var(--brand-tint); color: var(--ink); border-color: transparent; }
.ghost:hover:not(:disabled) { background: var(--brand-tint-2); color: var(--ink); }
.quiet { background: transparent; color: var(--ink-95); border-color: transparent; padding: 6px 10px; min-height: 32px; }
.quiet:hover:not(:disabled) { background: rgba(0, 0, 0, .05); color: var(--ink); }
.outline { background: transparent; color: var(--ink); border-color: var(--ink); border-radius: var(--r-xs); padding: 5px 10px; min-height: 30px; }
.outline:hover:not(:disabled) { background: rgba(0, 0, 0, .05); color: var(--ink); }
.small { font-size: 13px; padding: 5px 11px; min-height: 30px; }
button.link { background: none; border: none; color: var(--ink); padding: 2px; min-height: 0; text-decoration: underline; }
button.link:hover { background: none; color: var(--ink-2); }
.danger { background: transparent; color: var(--danger); border-color: transparent; }
.danger:hover:not(:disabled) { background: var(--danger-tint); color: var(--danger); }
.accent-btn { background: var(--brand); }
.accent-btn:hover:not(:disabled) { background: var(--brand-ink); }
button svg, .btn svg { width: 15px; height: 15px; }

input, select, textarea {
  font: inherit;
  font-size: 16px; /* below 16px iOS zooms in and never zooms back out */
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: #9a9a9a; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }

/* --------------------------------------------------------------- notes */

.note { padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.note.err  { background: var(--danger-tint); color: var(--danger-text); }
.note.ok   { background: var(--brand-tint);  color: var(--ink); }
.note.warn { background: var(--amber-tint);  color: var(--amber-text); }
.note.info { background: rgba(0, 0, 0, .04);  color: var(--ink-2); }
.note.info strong { color: var(--ink); }
.note + * { margin-top: 14px; }

/* ------------------------------------------------------------ segmented */

.seg { display: inline-flex; background: rgba(0, 0, 0, .05); border-radius: var(--r-sm); padding: 3px; gap: 2px; margin-bottom: 20px; flex-wrap: wrap; }
.seg button {
  background: transparent; color: rgba(17, 17, 17, .62); border: none;
  min-height: 30px; padding: 5px 13px; font-size: 14px; border-radius: 6px;
}
.seg button:hover:not(.on) { background: rgba(255, 255, 255, .7); color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 500; }

/* ----------------------------------------------------------- progress */

.bar { height: 8px; background: rgba(0, 0, 0, .06); border-radius: 9999px; overflow: hidden; display: flex; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 9999px; transition: width .2s ease; }
/* Follow-ups the built material is still waiting on, so a full bar cannot
   claim the work is finished when it is not. */
.bar > i.ask { background: var(--amber); }

.ring { --p: 0; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), rgba(0, 0, 0, .08) 0);
  display: grid; place-items: center; }
.ring::after { content: ''; width: 21px; height: 21px; border-radius: 50%; background: var(--surface); }
.ring.full { background: var(--brand); }
.ring.full::after { content: '✓'; color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* Big number, the way a Notion dashboard opens a section. */
.stat { display: flex; gap: 32px; flex-wrap: wrap; }
.stat .n { font-family: var(--font-mono); font-size: 40px; line-height: 1.04; letter-spacing: -.04em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 14px; color: var(--ink-3); }

/* ---------------------------------------------------------- interview */

.track {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.track:hover { border-color: var(--line-3); }
.track > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.track > summary::-webkit-details-marker { display: none; }
.track .t-title { font-weight: 600; font-size: 16px; letter-spacing: -.011em; }
.track .t-blurb { color: var(--ink-3); font-size: 14px; line-height: 1.43; }
.track .t-count { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.track .t-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.track .body { padding: 2px 20px 8px; border-top: 1px solid var(--line-2); }
.track[open] > summary { border-bottom: 1px solid transparent; }

/* One square per track: black when the track is complete, grey until then. */
.tmark {
  width: 28px; height: 28px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tmark svg { width: 15px; height: 15px; }

.q { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.q:last-child { border-bottom: none; }
.q .qt { font-weight: 500; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; letter-spacing: -.011em; }
.q .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .12); flex: none; margin-top: 8px; transition: background .2s ease; }
.q .dot.done { background: var(--brand); }
/* Follow-ups the last draft asked for. Amber, not black: they are a to-do, not
   a finished answer, and they sit among questions that are already done. */
.q .dot.ask { background: var(--amber); }
.gap-head { margin: 18px 0 4px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--amber-tint); color: var(--amber-text); }
.gap-head .muted { color: var(--amber-text); opacity: .8; }
.gap-q { border-left: 2px solid var(--amber); padding-left: 14px; }

.q .fu { margin-top: 12px; padding: 12px 0 0 15px; border-left: 2px solid var(--brand-line); }
.q .fu .qt { font-size: 14px; font-weight: 500; color: var(--ink); }
.answer-foot { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.saved { font-size: 12px; color: var(--ink-3); }
.saved.on { color: var(--ink); }

/* ------------------------------------------------------------ markdown */

.md { line-height: 1.6; overflow-wrap: break-word; color: var(--ink-2); }
/* Worksheets are full of long ______ fill-in runs that cannot wrap on their own. */
.md p, .md li, .md td, .md h1, .md h2, .md h3 { overflow-wrap: break-word; word-break: break-word; }
.md > :first-child { margin-top: 0; }
.md h1 { font-size: 32px; letter-spacing: -.028em; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.md h2 { font-size: 22px; letter-spacing: -.011em; font-weight: 600; color: var(--ink); margin: 28px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.md h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 20px 0 6px; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { padding-left: 20px; margin: 0 0 12px; }
.md li { margin: 5px 0; }
.md hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.md blockquote { margin: 16px 0; padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--canvas); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.md blockquote p:last-child { margin: 0; }
.md code { overflow-wrap: anywhere; font-family: var(--font-mono); background: rgba(0, 0, 0, .05); padding: 1.5px 5px; border-radius: var(--r-xs); font-size: 13px; }
.md li.check { list-style: none; margin-left: -20px; }
.md .cb { color: var(--ink-3); font-size: 16px; margin-right: 2px; }
/* [ASK OWNER]: still needs the owner's input, so it is amber. */
.md .ask { background: var(--amber-tint); color: var(--amber-text); border: 1px solid var(--amber); border-radius: 9999px; padding: 0 10px; font-weight: 500; font-size: 14px; }

/* --------------------------------------------------------------- chat */

.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.chat .log { padding: 20px; max-height: 56vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.bubble { overflow-wrap: break-word; max-width: 76%; padding: 11px 15px; border-radius: var(--r); white-space: pre-wrap; font-size: 15px; }
.bubble .tag { display: block; font-size: 12px; font-weight: 500; letter-spacing: .12px; text-transform: uppercase; opacity: .5; margin-bottom: 4px; }
.bubble.homeowner { background: rgba(0, 0, 0, .05); border-bottom-left-radius: var(--r-xs); align-self: flex-start; }
.bubble.rep { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: var(--r-xs); align-self: flex-end; }
.bubble.typing { display: flex; gap: 4px; align-items: center; padding: 15px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.3s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .2s; }
.bubble.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }
.chat .composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 10px; align-items: flex-end; background: var(--canvas); }
.chat .composer textarea { min-height: 54px; background: var(--surface); }

/* -------------------------------------------------------------- grade */

.score { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.score .num {
  width: 76px; height: 76px; border-radius: var(--r); flex: none;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 30px; font-weight: 600;
  letter-spacing: -.04em; color: var(--on-brand); font-variant-numeric: tabular-nums;
}
.crit { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.crit:last-child { border-bottom: none; }
.crit .head { display: flex; gap: 12px; align-items: center; font-weight: 500; font-size: 16px; }
.pips { margin-left: auto; display: flex; gap: 3px; flex: none; }
.pips i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .12); }
.pips i.on { background: var(--brand); }
.pips.low i.on { background: var(--danger); }

.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12px; color: var(--ink-3); padding: 0 12px 10px; }
.tbl td { padding: 12px; border-top: 1px solid var(--line-2); }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--canvas); }

/* Status pills: the Notion 'To do / In progress / Complete' device. */
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 9999px; background: rgba(0, 0, 0, .06); color: rgba(17, 17, 17, .66); white-space: nowrap; }
.badge.good { background: var(--brand); color: var(--on-brand); }
.badge.bad { background: var(--danger-tint); color: var(--danger-text); }
.badge.warm { background: var(--amber-tint); color: var(--amber-text); }
.badge.solid { background: var(--ink); color: var(--surface); }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty svg { width: 28px; height: 28px; opacity: .3; margin-bottom: 10px; }

/* --------------------------------------------------------------- login */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .box { width: min(400px, 100%); }
.auth .lockup { justify-content: center; padding: 0 0 14px; }
.auth .lockup img { height: 76px; }
.auth .tag { text-align: center; color: var(--ink-3); font-weight: 500; margin: 0 0 24px; }
.auth .card { padding: 24px; }
.auth footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------- responsive */

/* Desktop never shows the phone top bar or the menu backdrop. */
.mobilebar, .nav-scrim, .nav-close { display: none; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }

  /* A slim top bar: where you are, Help, Menu. */
  .mobilebar {
    display: flex; align-items: center; gap: 6px;
    position: sticky; top: 0; z-index: 40;
    height: 56px; padding: 0 8px 0 16px;
    background: var(--canvas); border-bottom: 1px solid var(--line);
  }
  .mobilebar img { height: 24px; width: auto; margin-right: 6px; }
  .mobilebar .where { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobilebar .bar-btn { min-height: 40px; padding: 8px 10px; gap: 6px; color: var(--ink); }
  .mobilebar .bar-btn svg { width: 20px; height: 20px; }

  /* The full sidebar slides out from the left as a drawer. */
  .sidenav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    width: min(320px, 86vw); height: 100%;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateX(-102%); transition: transform .22s ease;
    padding-top: 14px;
  }
  body.nav-open .sidenav { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav-close { display: inline-flex; position: absolute; top: 10px; right: 8px; min-height: 40px; padding: 8px; }
  .nav-close svg { width: 20px; height: 20px; }
  .sidenav .lockup { padding: 8px 10px 18px; }
  .sidenav a.item { padding: 10px 10px; font-size: 15px; }
  .nav-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .32); }
  body.nav-open .nav-scrim { display: block; }

  .page { padding: 28px 16px 72px; }
  .page-head h1 { font-size: 32px; letter-spacing: -.03em; }
  .hl { padding: 0 14px; }
  .bubble { max-width: 88%; }
  .stat { gap: 22px; }
  .stat .n { font-size: 32px; }
  /* Wide tables scroll inside their card; the page itself never slides. */
  .tbl { min-width: 540px; }
  .tbl th, .tbl td { padding: 10px 8px; white-space: nowrap; }
  .tbl-scroll::after {
    content: 'swipe →'; display: block; text-align: right;
    font-size: 11px; color: var(--ink-3); padding: 2px 2px 0;
  }
}

@media print {
  .sidenav, .seg, button, .noprint, .page-head p { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page { padding: 0; max-width: none; }
  .card { border: none; padding: 0; }
  .md h2 { break-after: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Checkboxes must not inherit the 100% text-input width. */
input[type="checkbox"], input[type="radio"] { width: auto; flex: none; }

/* ============================================================
   Meeting slides — one renderer for thumbnails, presenter, print.
   Every size is in container units so a slide scales as a picture.
   ============================================================ */

.lbl { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 10px 0 6px; }

.deck-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.deck-topic {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-3); padding: 12px 14px; height: auto;
  white-space: normal; font-weight: 400; justify-content: flex-start;
}
.deck-topic span { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.deck-topic:hover:not(:disabled) { background: var(--canvas); color: var(--ink); }
.deck-topic.on { border-color: var(--ink); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--ink); }

.deck-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; border-color: transparent; padding-left: 0; }
.deck-title:hover, .deck-title:focus { border-color: var(--line-3); padding-left: 10px; }

.deck-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.deck-thumb { cursor: pointer; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); position: sticky; top: 16px; }
.deck-thumb:hover { border-color: var(--brand-line); }
.deck-fields .lbl:first-child { margin-top: 0; }
.deck-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) {
  .deck-edit-grid { grid-template-columns: 1fr; }
  .deck-thumb { position: static; }
  .deck-cols { grid-template-columns: 1fr; }
}

.slide {
  /* A slide is what the room sees, so it keeps its own light palette even
     when the dashboard around it is dark. */
  --canvas: #f4f4f4; --surface: #ffffff; --ink: #111111; --ink-2: #3f3f3f; --ink-3: #6e6e6e;
  --brand: #111111; --line: #e2e2e2; --line-3: #d2d2d2;
  color-scheme: light;
  container-type: inline-size; aspect-ratio: 16 / 9; width: 100%; position: relative; overflow: hidden;
  background: var(--canvas); color: #111111; font-family: var(--font);
}
.slide-in { position: absolute; inset: 6cqw 5cqw 7cqw; display: flex; flex-direction: column; overflow: hidden; }
.slide h1 { font-size: 6.4cqw; line-height: 1.05; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.slide h2 { font-size: 4cqw; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 2.6cqw; font-weight: 700; }
.slide ul, .slide ol { margin: 0; padding-left: 3.4cqw; font-size: 2.55cqw; line-height: 1.35; }
.slide li { margin-bottom: 1.3cqw; padding-left: .6cqw; }
.slide li::marker { color: var(--deck-accent, var(--brand)); font-weight: 700; }
.slide .sub { font-size: 2.6cqw; margin: 2cqw 0 0; opacity: .85; }
.slide-title, .slide-section { background: var(--deck-fill, var(--brand)); color: var(--deck-on, #fff); }
.slide-title .slide-in, .slide-section .slide-in { justify-content: center; }
.slide-section h1 { font-size: 5.4cqw; }
.slide-section .slide-foot { color: var(--deck-on, #fff); opacity: .75; }
.slide blockquote {
  margin: 0 0 2.4cqw; padding: .4cqw 0 .4cqw 2.6cqw; border-left: .8cqw solid var(--deck-accent, var(--brand));
  font-style: italic; font-weight: 500; font-size: 3.4cqw; line-height: 1.3;
}
.slide-say_this ul { font-size: 2cqw; color: var(--ink-2); }
.slide .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2cqw; flex: 1; min-height: 0; }
.slide .col { background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 1.2cqw; padding: 2cqw 2.2cqw; overflow: hidden; }
.slide .col ul { font-size: 2.1cqw; }
.slide .col-label { color: var(--deck-accent, var(--brand)); font-weight: 700; font-size: 2.2cqw; margin-bottom: 1.4cqw; }
.slide .kicker { color: var(--deck-accent, var(--brand)); font-weight: 700; font-size: 1.6cqw; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.2cqw; }
.slide-foot {
  position: absolute; left: 5cqw; right: 5cqw; bottom: 2.6cqw; display: flex; justify-content: space-between;
  font-size: 1.35cqw; color: var(--ink-3);
}

.slide-notes { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-top: 10px; }
.slide-notes mark { background: var(--amber-tint); color: var(--amber-text); padding: 1px 4px; border-radius: 3px; }

.present {
  position: fixed; inset: 0; z-index: 300; background: #0d0d0c; display: flex; flex-direction: column;
}
.present-stage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; cursor: pointer;
  user-select: none; -webkit-user-select: none;
}
/* Fit 16:9 inside whatever space is left after the bar and the notes. */
.present-stage .slide { width: min(100%, calc((100vh - 64px) * 16 / 9)); max-height: 100%; }
.present-notes .slide-notes { margin: 0; }
.present-notes {
  max-height: 28vh; overflow-y: auto; background: #1a1a18; color: #e8e6e3; padding: 14px 22px; font-size: 17px;
}
.present-notes .slide-notes { color: #e8e6e3; font-size: 17px; }
.present-notes .muted { color: #8b8986; }
.present-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #141413; }
.present-bar button { background: transparent; color: #e8e6e3; border: 1px solid #3a3936; }
.present-bar button:hover:not(:disabled) { background: #262624; color: #fff; }
.present-count { color: #a8a8a8; font-family: var(--font-mono); font-size: 14px; min-width: 64px; text-align: center; }

.deck-print { display: none; }
@media print {
  body.printing-deck > *:not(.deck-print) { display: none !important; }
  body.printing-deck .deck-print { display: block; }
  .deck-print-page { break-inside: avoid; page-break-inside: avoid; margin-bottom: 18pt; }
  .deck-print-page .slide { border: 1px solid #ccc; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .deck-print-page .slide-notes { font-size: 10.5pt; }
}
.present-bar button:focus:not(:hover) { background: transparent; color: #e8e6e3; }
.present-bar button:focus-visible { outline: 2px solid #ffffff; outline-offset: 1px; }
.present-bar .present-exit { background: #fff; color: #141413; border-color: #fff; font-weight: 600; }
.present-bar .present-exit:hover:not(:disabled), .present-bar .present-exit:focus:not(:hover) { background: #e8e6e3; color: #141413; }

/* The company's logo on its slides. Sits on a white chip on coloured slides
   so a dark logo never disappears into a dark brand colour. */
.slide-logo { display: inline-flex; align-self: flex-start; background: #fff; border-radius: 1cqw; padding: 1.2cqw 1.8cqw; margin-bottom: 3cqw; }
.slide-logo img { display: block; max-height: 8cqw; max-width: 28cqw; object-fit: contain; }
.slide-foot-logo { display: inline-flex; align-items: center; }
.slide-foot-logo img { display: block; max-height: 2.6cqw; max-width: 14cqw; object-fit: contain; }
.slide-section .slide-foot-logo { background: #fff; border-radius: .6cqw; padding: .4cqw .8cqw; }
.slide-foot { align-items: center; }

/* ============================================================
   Dark dashboard. Same tokens, night values; the handful of rules
   that hard-code black-at-an-alpha are redone in white-at-an-alpha.
   Slides keep their own light canvas on purpose: they are what the
   room sees, not part of the dashboard.
   ============================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink:      #f4f4f4;
  --ink-95:   rgba(244, 244, 244, .95);
  --ink-2:    #d0d0d0;
  --ink-3:    #9a9a9a;
  --line:     #2a2a2a;
  --line-2:   #222222;
  --line-3:   #3a3a3a;
  --canvas:   #0e0e0e;
  --canvas-2: #141414;
  --surface:  #1a1a1a;

  --brand:      #f4f4f4;
  --on-brand:   #0e0e0e;
  --brand-ink:  #d6d6d6;
  --brand-tint: rgba(255, 255, 255, .09);
  --brand-tint-2: rgba(255, 255, 255, .15);
  --brand-line: rgba(255, 255, 255, .28);

  --amber:      #f2b53a;
  --amber-text: #f2b53a;
  --amber-tint: #3a2e10;
  --danger:     #f0786e;
  --danger-text:#f0786e;
  --danger-tint:#3d1d1a;
}
:root[data-theme="dark"] .nav-label,
:root[data-theme="dark"] .sidenav .whoami .role,
:root[data-theme="dark"] .track .t-count,
:root[data-theme="dark"] .tbl th,
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: rgba(255, 255, 255, .42); }
:root[data-theme="dark"] .sidenav a.item,
:root[data-theme="dark"] .seg button { color: rgba(255, 255, 255, .62); }
:root[data-theme="dark"] .sidenav a.item:hover,
:root[data-theme="dark"] .quiet:hover:not(:disabled),
:root[data-theme="dark"] .outline:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: var(--ink); }
:root[data-theme="dark"] .sidenav a.item.on { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .sidenav a.item .pill,
:root[data-theme="dark"] .badge { background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .72); }
:root[data-theme="dark"] .badge.good,
:root[data-theme="dark"] .sidenav a.item.on .pill { background: var(--brand); color: var(--on-brand); }
:root[data-theme="dark"] .badge.bad { background: var(--danger-tint); color: var(--danger-text); }
:root[data-theme="dark"] .badge.warm,
:root[data-theme="dark"] .note.warn,
:root[data-theme="dark"] .gap-head,
:root[data-theme="dark"] .gap-head .muted { background: var(--amber-tint); color: var(--amber-text); }
:root[data-theme="dark"] .note.err { color: var(--danger-text); }
:root[data-theme="dark"] .note.info,
:root[data-theme="dark"] .seg,
:root[data-theme="dark"] .bar,
:root[data-theme="dark"] .md code,
:root[data-theme="dark"] .bubble.homeowner { background: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .seg button.on { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .seg button:hover:not(.on) { background: rgba(255, 255, 255, .08); color: var(--ink); }
:root[data-theme="dark"] .outline { color: var(--ink); border-color: rgba(255, 255, 255, .55); }
:root[data-theme="dark"] .ghost:hover:not(:disabled) { background: var(--brand-tint-2); color: var(--ink); }
:root[data-theme="dark"] .q .dot,
:root[data-theme="dark"] .pips i { background: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .md blockquote { background: rgba(255, 255, 255, .04); }
:root[data-theme="dark"] .badge.solid { background: var(--ink); color: var(--canvas); }
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select { background-color: var(--canvas-2); color: var(--ink); border-color: var(--line-3); }
:root[data-theme="dark"] .deck-topic { background: var(--surface); }
:root[data-theme="dark"] .deck-topic:hover:not(:disabled) { background: rgba(255, 255, 255, .05); }
:root[data-theme="dark"] .deck-topic.on { background: var(--brand-tint); }
:root[data-theme="dark"] .deck-thumb,
:root[data-theme="dark"] .brand-preview .slide { border-color: transparent; }
:root[data-theme="dark"] .slide-notes mark { background: var(--amber-tint); color: var(--amber-text); }

/* ----------------------------------------------------------- brand panel */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.brand-logo-box {
  height: 120px; border: 1px dashed var(--line-3); border-radius: var(--r); display: grid; place-items: center;
  background: repeating-conic-gradient(rgba(127, 127, 127, .08) 0 25%, transparent 0 50%) 0 0 / 16px 16px; padding: 14px;
}
.brand-logo-box img { max-width: 100%; max-height: 92px; object-fit: contain; }
.swatch { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-3); }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.swatch:hover:not(:disabled) { opacity: .85; }
.brand-picker { width: 44px; height: 36px; padding: 2px; border-radius: var(--r-sm); cursor: pointer; }
.brand-preview { display: grid; gap: 10px; }
.brand-preview .slide { border-radius: var(--r-sm); border: 1px solid var(--line); }
@media (max-width: 860px) { .brand-grid { grid-template-columns: 1fr; } }


/* ---------------------------------------------------------------- help panel */
.help-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .28);
  display: flex; justify-content: flex-end;
}
body.help-open { overflow: hidden; }
.help-drawer {
  width: min(520px, 100%); height: 100%;
  background: var(--canvas); border-left: 1px solid var(--line);
  padding: 22px 22px 18px; overflow-y: auto;
  display: flex; flex-direction: column;
}
.help-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.help-head h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.011em; }
.help-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.help-close { font-size: 16px; }
.help-drawer .seg { margin-bottom: 16px; }
.help-ask { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.help-ask .chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat .help-log { flex: 1; max-height: none; min-height: 220px; }
.help-answer { white-space: normal; }
.help-answer .md { color: inherit; font-size: 15px; }
.help-answer .md p:last-child, .help-answer .md ul:last-child, .help-answer .md ol:last-child { margin-bottom: 0; }
.help-starters { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.help-starters button { text-align: left; }
.help-offer { align-self: flex-start; }
.help-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.help-intro { color: var(--ink-2); font-size: 14px; margin: 0 0 12px; }
.help-report textarea { width: 100%; margin-bottom: 12px; }
.help-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.help-check input { margin-top: 3px; }
.help-status:not(:empty) { margin-bottom: 12px; }
.help-sent { text-align: center; padding: 28px 20px; }
.help-sent .row { justify-content: center; }
.help-sent h3 { margin: 10px 0 6px; }
.help-sent p { color: var(--ink-2); margin: 0 0 16px; }
.help-sent-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 9999px; align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); }
.help-empty p { color: var(--ink-2); }
.help-item-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.help-date { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.help-item-text { margin: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.help-reply { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--brand-tint); }
.help-reply .tag { display: block; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12px; color: var(--ink-3); margin-bottom: 4px; }
.help-reply p { margin: 0; white-space: pre-wrap; }

@media (max-width: 860px) {
  .help-drawer { border-left: none; padding: 18px 16px 14px; }
  .help-drawer .seg { display: grid; grid-template-columns: 1fr 1fr; }
}
@media print { .help-overlay, .mobilebar, .nav-scrim { display: none !important; } }

/* An action failed and nothing else said so. */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400;
  max-width: min(520px, calc(100% - 32px));
  padding: 11px 16px; border-radius: var(--r-sm);
  background: var(--danger-tint); color: var(--danger-text); border: 1px solid var(--danger);
  font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.slide-foot-right { display: inline-flex; align-items: center; gap: 2.4cqw; }
.slide-credit { display: inline-flex; align-items: center; gap: .7cqw; color: #8c8c8c; font-size: 1.1cqw; }
.slide-credit img { display: block; height: 1.7cqw; width: auto; }

/* Answer what's left: the open items, one at a time, at the top of the brain dump. */
.card.todo { border-color: var(--amber); }
.todo-q { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; margin-bottom: 10px; }
.todo-list { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.todo-list summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.todo-list ol { margin: 10px 0 0; padding-left: 22px; font-size: 14px; }
.todo-list li { margin: 6px 0; }
.todo-list button.link { text-align: left; font-size: 14px; text-decoration: none; }
.todo-list button.link:hover { text-decoration: underline; }
.todo-list button.link.on { font-weight: 600; text-decoration: underline; }

/* A practice hint: in the conversation, but visibly not part of it. */
.bubble.hint { align-self: stretch; max-width: 100%; white-space: normal; background: transparent; border: 1px dashed var(--line-3); }
.bubble.hint .hint-read { color: var(--ink-3); font-size: 14px; }
.bubble.hint .hint-say { font-weight: 600; margin-top: 6px; }
.bubble.hint .hint-why { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

/* On a quote: big, fast, readable at arm's length. */
.field-answer { margin-top: 14px; padding: 16px; border-radius: var(--r); background: var(--canvas); border: 1px solid var(--line); }
.field-say { font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; margin: 6px 0 10px; }
.field-line { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.field-item { border-top: 1px solid var(--line-2); padding: 12px 0; }
.field-item:first-child { border-top: none; }
.field-item summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.field-item .md { margin-top: 10px; }
.field-then { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.field-then > div { font-size: 17px; font-weight: 600; line-height: 1.4; margin-top: 2px; }
