/* The investor area (DJ's Claude Design "Investor 3" and "Investor 4", 22 Nov).
   Dark by default, as drawn; the Light switch in the sidebar swaps the tokens. */
:root {
  --page: #262624; --side: #30302e; --panel: #30302e; --sunk: #2e2d2b; --raised: #3a3936;
  --line: #3e3d3a; --line-2: #4a4945; --text: #f5f4ef; --text-2: #c2c0b6; --muted: #a3a198;
  --blue: #2f7cf6; --blue-text: #72a5f9; --blue-soft: rgba(47,124,246,.16);
  --good: #3fb950; --warn: #e0a33a; --bad: #ec7e7e;
  --r: 10px; --r-lg: 14px;
  font-family: Satoshi, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --page: #f9f9f7; --side: #f3f2ee; --panel: #ffffff; --sunk: #efeeea; --raised: #ffffff;
  --line: #e7e6e1; --line-2: #d2d1c7; --text: #0b0b0b; --text-2: #52514e; --muted: #6d6b67;
  --blue: #2f7cf6; --blue-text: #2e65c0; --blue-soft: #eaf1fe;
  --good: #008300; --warn: #945d00; --bad: #b93535;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--page); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); background: var(--sunk); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
a { color: var(--blue-text); }
.boot { padding: 40px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 13px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.small { min-height: 28px; padding: 3px 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue-text); font-size: 13px; }
.chip { border: 0; background: var(--sunk); color: var(--text-2); border-radius: 9px; padding: 7px 12px; font-size: 13px; text-align: left; }
.chip:hover { color: var(--text); }
/* ⭐ DJ, 24 Nov: the All companies suggestions, thinner, smaller, more discreet. */
.chip.quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: 12px; line-height: 1.5; }
.chip.quiet:hover { color: var(--text-2); border-color: var(--line-2); }
.allfoot { display: grid; gap: 10px; margin-top: 18px; }
.row.chips-quiet { gap: 6px; }
/* The answers fill the page and the box sits at its foot, like a chat. */
.allpane > .thread { flex: 1; align-content: start; }
.err { color: var(--bad); margin: 0; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Log in */
.login { min-height: 100vh; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; text-align: center; }
.login .wm { justify-content: center; }
.login .benefits { text-align: left; justify-self: center; }
.login h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.login form { display: grid; gap: 8px; }
.login input { width: 100%; min-height: 44px; }
.login .btn { min-height: 44px; }
.benefits { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }

/* The shell */
.shell { height: 100vh; display: flex; overflow: hidden; }
.side { flex: 0 0 236px; width: 236px; background: var(--side); padding: 14px 8px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.side.folded { flex-basis: 58px; width: 58px; }
.side .brand { display: flex; align-items: center; gap: 8px; padding: 4px 4px 14px; }
.wm { display: inline-flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.wm img { width: 24px; height: 24px; }
.wm .wt { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.wm .wt span { color: var(--blue); }
.wm .role { font-size: 12px; color: var(--muted); }
/* ⭐ DJ, 24 Nov: on the sign-in, "Investor" beside the logo is a clear thin pill; the founder's way out is a button. */
.login .wm .role { font-size: 13px; font-weight: 500; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-left: 4px; }
.other-door { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
/* ⭐ DJ, 24 Nov: the way to the other sign-in is an action, so a blue stroke, never a blue fill. */
.other-door .btn { font-size: 15px; text-decoration: none; background: transparent; border: 1px solid var(--blue); color: var(--blue-text); }
.other-door .btn:hover { background: var(--blue-soft); }
.iconbtn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.iconbtn:hover { background: var(--raised); color: var(--text); }
.nav { font-size: 13.5px; font-weight: 500; text-align: left; padding: 7px 8px; border-radius: 10px; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; color: var(--text); }
.nav:hover, .nav[aria-current="page"] { background: var(--raised); }
.nav .ic { position: relative; width: 26px; height: 26px; flex: 0 0 26px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.badge { position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.filters { margin: 18px 4px 4px; display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--sunk); align-self: flex-start; }
.filters button { width: 34px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.filters button[aria-selected="true"] { background: var(--raised); color: var(--text); }
.listtitle { margin: 12px 8px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.co { text-align: left; padding: 7px 10px; border-radius: 10px; border: 0; background: transparent; display: grid; gap: 1px; color: var(--text); }
.co:hover, .co[aria-current="page"] { background: var(--raised); }
.co .n { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.co .l { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co .s { font-size: 11.5px; display: flex; justify-content: space-between; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 3px; display: inline-block; flex: 0 0 7px; }
.waiting { margin: 10px 4px 0; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; display: grid; gap: 6px; }
.side .foot { margin-top: auto; padding: 14px 6px 4px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.side .foot .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px 10px; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
.top h1 .watchbtn { margin-left: 10px; vertical-align: 4px; letter-spacing: 0; display: inline-flex; }
.top .sub { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 10px 12px; font-size: 13.5px; font-weight: 500; border-bottom: 2px solid transparent; display: inline-flex; gap: 6px; align-items: center; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--blue); }
.tabs .count { font-size: 11px; background: var(--blue); color: #fff; border-radius: 999px; padding: 0 6px; }
.content { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.pane { flex: 1; min-width: 0; overflow-y: auto; padding: 20px 28px 40px; display: flex; flex-direction: column; gap: 16px; }
.right { flex: 0 0 300px; background: var(--side); overflow-y: auto; padding: 8px 20px 28px; display: flex; flex-direction: column; gap: 32px; }
/* The right-hand panel, as DJ's design draws it (22 Nov). */
.rsec { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.rhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text); }
.rhead.line { padding-top: 10px; border-top: 1px solid var(--line); }
.plus { width: 30px; height: 26px; border-radius: 7px; border: 0; background: var(--sunk); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.plus svg { width: 15px; height: 15px; }
.ritem { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.ritem .rco { font-size: 13.5px; font-weight: 500; }
.ritem .rrule { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.ritem .rstate { font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.rkv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.rkv .k { color: var(--muted); }
.rkv .v { color: var(--text); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.rkv .v.none { color: var(--muted); font-weight: 400; }
.rnote { margin: 0; font-size: 12px; color: var(--muted); }
.rnote.line { padding-top: 6px; border-top: 1px solid var(--line); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
/* ⭐ DJ, 22 Nov: "ensure these are on one line". The status pills share the
   panel's width equally and never wrap. */
.pills[aria-label="Your status"] { flex-wrap: nowrap; gap: 5px; }
.pills[aria-label="Your status"] .pill { flex: 1 1 0; min-width: 0; padding: 6px 6px; font-size: 12.5px; white-space: nowrap; text-align: center; }
.right h3, .pane h3 { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 10px; }
.banner { border: 1px solid var(--blue); background: var(--blue-soft); border-radius: var(--r-lg); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Ask */
.thread { display: grid; gap: 14px; }
.q { justify-self: end; max-width: 80%; background: var(--raised); border-radius: 14px; padding: 9px 13px; }
.a { display: grid; gap: 6px; }
.a .h { font-size: 15px; }
.a ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.a .src { font-size: 12px; color: var(--muted); }
.askbar { display: flex; gap: 8px; }
.askbar input { flex: 1; min-height: 44px; }
.askbar .btn { min-height: 44px; }
.thinking { color: var(--muted); font-size: 13px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cmp th, table.cmp td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Pitch deck */
.deck { display: grid; gap: 10px; }
.deck .frame { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.deck .frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.deck .frame { position: relative; }
/* The controls sit on the slide (DJ, 22 Nov), as on the deck link page: faint
   until the pointer is on the slide, brighter on the one under it. */
.deck .ov { position: absolute; inset: 0; pointer-events: none; }
.deck .ov > * { position: absolute; pointer-events: auto; }
.deck .ov-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: rgba(0,0,0,.28); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: .45; transition: opacity .15s ease, background-color .15s ease; text-decoration: none; }
.deck .ov-btn svg { width: 16px; height: 16px; }
.deck .ov .prev { left: 8px; bottom: 8px; }
.deck .ov .next { right: 8px; bottom: 8px; }
.deck .ov-tr { right: 8px; top: 8px; display: flex; gap: 6px; }
.deck .ov-tr .ov-btn { position: static; font-size: 15px; }
.deck .ov-tl { left: 8px; top: 8px; display: flex; }
.deck .ov-tl .ov-btn { position: static; }
.deck .ov-pos { left: 50%; bottom: 12px; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.28); color: #fff; font-size: 12px; opacity: .45; pointer-events: none; transition: opacity .15s ease; }
.deck .frame:hover .ov-btn, .deck .frame:hover .ov-pos { opacity: .8; }
.deck .ov-btn:hover, .deck .ov-btn:focus-visible { opacity: 1; background: rgba(0,0,0,.55); outline: none; }
@media (hover: none) { .deck .ov-btn, .deck .ov-pos { opacity: .7; } }
.deck:fullscreen { background: #000; padding: 0; grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; box-sizing: border-box; }
.deck:fullscreen .frame { aspect-ratio: auto; height: 100%; border-radius: 0; }
.deck:fullscreen p { display: none; }
.deck.max { position: fixed; inset: 0; z-index: 50; background: #000; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; box-sizing: border-box; }
.deck.max .frame { aspect-ratio: auto; height: 100%; border-radius: 0; }
.deck.max p { display: none; }
body.deckmax { overflow: hidden; }
/* ⭐ DJ, 23 Nov: the team on its own tab, one card a person, two across when there is room. */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; } /* auto-fit: two people share the row (DJ, 24 Nov: full width) */
.tm { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.tm-head { display: flex; align-items: center; gap: 12px; }
.tm-head .pn { display: grid; gap: 2px; font-size: 14px; }
.tm-head .pn span { color: var(--muted); font-size: 12.5px; }
.face.big { width: 48px; height: 48px; font-size: 15px; flex: none; }
.tm-row { display: grid; gap: 2px; font-size: 13px; line-height: 1.45; }
.tm-k { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tm-ask { justify-self: start; }
/* ⭐ DJ, 23 Nov: access ended, the deck blurred out: no slide is sent, so this is its place, not a picture of it. */
.deck-off { aspect-ratio: 16 / 9; max-height: 360px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--raised), var(--soft)); filter: saturate(.6); display: grid; place-items: center; border: 1px solid var(--line); }
.deck-off-in { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }
.deck-off-in svg { width: 26px; height: 26px; }
.ended-facts { display: grid; gap: 12px; margin: 4px 0 6px; }
.co.ended .n { color: var(--text-2); }
.person { display: flex; align-items: center; gap: 9px; }
.face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-2); }
.person .pn { display: grid; font-size: 13px; }
.person .pn span { color: var(--muted); font-size: 12px; }
.video { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Messages */
.msgs { display: grid; gap: 8px; }
.msg { max-width: 80%; padding: 9px 12px; border-radius: 12px; background: var(--sunk); display: grid; gap: 2px; }
.msg.mine { justify-self: end; background: var(--blue-soft); }
.msg small { font-size: 11px; color: var(--muted); }
textarea { width: 100%; resize: vertical; }
.convo { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 4px; display: grid; gap: 2px; color: var(--text); }
.convo:hover { background: var(--sunk); }
.convo .l1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; }
.convo .pv { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Alerts */
/* The alert guide (DJ, 22 Nov): tick several figures, one aligned row each. */
.guide { display: grid; gap: 14px; container: guide / inline-size; }
.step-h { display: flex; gap: 10px; align-items: baseline; }
.step-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); flex: none; }
.pick-group { display: grid; gap: 6px; }
.pick-gh { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pick input { margin-top: 3px; flex: none; }
.pick.on { border-color: var(--blue); }
.pick-t { display: grid; gap: 2px; min-width: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunk); justify-self: start; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.seg button[aria-checked=true] { background: var(--panel); color: var(--text); }
.cond-grid { display: grid; grid-template-columns: 36px minmax(140px, 1fr) 180px minmax(170px, 1fr) 28px; gap: 8px 10px; align-items: center; }
.cond-grid .join { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.cond-grid .name { display: grid; gap: 1px; font-weight: 500; min-width: 0; }
.cond-grid .name .small { font-weight: 400; }
.cond-grid select { width: 100%; min-width: 0; }
.cond-grid .val { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; }
.cond-grid .val input[type=number] { width: 100px; min-width: 0; }
.cond-grid .u { color: var(--muted); }
.cond-grid .sym { width: 12px; flex: none; text-align: right; }
.cond-grid .val select.cur { width: auto; flex: none; padding-left: 8px; padding-right: 18px; }
.cond-grid .val select.cur + input[type=number] { width: auto; flex: 1 1 64px; max-width: 120px; }
.checks-line { margin: 6px 0 0; }
/* ⭐ DJ, 22 Nov: "format is not correct in the edit alerts". With the right-hand
   panel open the guide is narrower than the window says, so the rows follow the
   guide's own width: below 640px each figure takes two lines, its name on the
   first, its test, value and remove button lined up under it. */
@container guide (max-width: 640px) {
  .cond-grid { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 6px 10px; }
  .cond-grid .join { grid-column: 1; }
  .cond-grid .name { grid-column: 2 / 5; }
  .cond-grid select { grid-column: 2; }
  .cond-grid .val { grid-column: 3; }
  .cond-grid .iconbtn { grid-column: 4; }
}
/* ⭐ DJ, 23 Nov: "put all these drop downs on one line or 2 equal columns".
   One row of equal widths; two equal columns when the box is narrow. */
.check-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.check-row select { width: 100%; min-width: 0; }
@container guide (max-width: 560px) { .check-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .check-row > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

.alert-sentence { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--sunk); }
.alert-row { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.met { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.met.unread .t { font-weight: 600; }
.met .d { font-size: 13px; color: var(--text-2); }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--raised); color: var(--text); padding: 9px 14px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; font-size: 13px; }
#toast.on { opacity: 1; }

@media (max-width: 900px) {
  .right:not(.over) { display: none; }
  /* ⭐ On a narrow window the panel opens over the page (DJ, 22 Nov). */
  .main.split > .right.over { position: fixed; top: 0; right: 0; bottom: 0; height: 100vh; width: min(320px, 88vw); z-index: 30; box-shadow: -12px 0 40px rgba(0,0,0,.35); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .main.split .rfold { z-index: 31; }
}
@media (max-width: 640px) {
  .shell { flex-direction: column; height: auto; min-height: 100vh; overflow: visible; }
  .side, .side.folded { width: 100%; flex-basis: auto; max-height: none; }
  /* ⭐ A phone (DJ, 22 Nov): the sidebar is a slim top bar; its menu opens the rest over the page. */
  .side.phone { position: sticky; top: 0; z-index: 40; padding: 8px 12px; }
  .side.phone .brand { padding: 0; justify-content: space-between; }
  .side.phone:not(.open) > :not(.brand) { display: none; }
  .side.phone.open { position: fixed; inset: 0; overflow-y: auto; }
  .side.phone.open .brand { padding-bottom: 12px; }
  .main.chatopen > .top { display: none; }
  .menubtn { position: relative; }
  .menubtn .mdot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
  .main { overflow: visible; }
  .content { overflow: visible; }
  .top, .tabs, .pane { padding-left: 16px; padding-right: 16px; }
}

/* The company page: the right-hand panel runs the full height beside the page
   and folds away (DJ, 22 Nov). */
.main.split { flex-direction: row; }
.main.split > .col { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.main.split > .right { height: 100vh; padding-top: 18px; }

/* The panel's fold button, level with the sidebar's (both 18px from the top). */
.main.split > .col { position: relative; }
.main.split .rfold { position: absolute; top: 18px; right: 16px; z-index: 2; }
.main.split .top { padding-right: 60px; }

/* The unibox (DJ, 22 Nov): companies on the left, the conversation on the right.
   ⭐ Narrow, as a messaging app on a phone: the list alone, or one conversation
   with "‹ Messages" to go back. It follows the box's own width, so it works
   beside the right-hand panel as well as on a phone. */
.pane:has(> .uni) { container: uni / inline-size; }
.uni { display: grid; grid-template-columns: 260px minmax(0, 1fr); border-top: 1px solid var(--line); min-height: 480px; }
.uni-list { border-right: 1px solid var(--line); padding: 12px 12px 12px 0; display: flex; flex-direction: column; gap: 6px; }
.uni-list .filters { margin-bottom: 6px !important; }
.uni-list .convo[aria-current=true] { background: var(--sunk); border-radius: 8px; }
.uni-list .pv.new { color: var(--text); }
.uni-thread { min-width: 0; padding: 12px 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.uni-head { display: flex; align-items: center; gap: 10px; }
.uni-head .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uni-head .back { display: none; border: 0; background: none; color: var(--blue); font: inherit; font-size: 14px; padding: 4px 0; cursor: pointer; }
@container uni (max-width: 640px) {
  .uni { grid-template-columns: 1fr; border-top: 0; min-height: 0; }
  .uni-list { border-right: 0; padding-right: 0; }
  .uni-list .convo[aria-current=true] { background: transparent; }
  .uni-thread { display: none; padding-left: 0; }
  .uni.open .uni-list { display: none; }
  .uni.open .uni-thread { display: flex; min-height: calc(100dvh - 120px); }
  .uni-head { position: sticky; top: 0; z-index: 2; background: var(--page); padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
  .uni-head .back { display: inline-block; }
  .uni-head .btn { display: none; }
}

/* One conversation, as a messaging app draws it (DJ, 22 Nov). */
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.chat .msgs { padding: 4px 0 8px; flex: 1; align-content: end; }
.chat .msg { max-width: min(80%, 520px); }
.composer { position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; resize: none; padding: 7px 0; max-height: 160px; line-height: 1.4; box-shadow: none; }
.sendbtn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sendbtn svg { width: 16px; height: 16px; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 0 4px; }
.mailtog { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.mailtog input { width: auto; margin: 0; }

/* An alert as a lead line and one bullet per figure (DJ, 22 Nov). */
.alert-sum { display: grid; gap: 4px; }
.alert-sum ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
button.ritem { text-align: left; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; width: 100%; }

/* An alert met (DJ, 22 Nov): one bullet per figure, the met ones ticked and
   brighter, the others plain with "Not met". */
.met-pts { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 4px; }
.met-pts li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--text-2, var(--muted)); }
.met-pts li .mk { width: 14px; flex: none; text-align: center; }
.met-pts li.hit { color: var(--text); }
.met-pts li.hit .mk { color: var(--good); font-weight: 700; }
.met-pts li.miss { opacity: .75; }
.box > .met:first-child { border-top: 0; padding-top: 0; }

/* ⭐ DJ, 22 Nov: "make this font much smaller - like terms and conditions".
   The small print under the ask box. */
.fine { margin: 0; font-size: 10.5px; line-height: 1.4; color: var(--muted); }

/* A pop-up that asks before something is done (DJ, 22 Nov). */
.popback { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.popup { width: min(420px, 100%); background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.popup h3 { margin: 0; font-size: 16px; }
.popup p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2, var(--muted)); }
.popup .row { gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ⭐ The investor area on a phone, like an app (DJ, 22 Nov: a bottom tab bar,
   the deck full width and swiped, Ask as a WhatsApp chat). Phones only. */
.dots { display: none; }
@media (max-width: 640px) {
  body.phone-co .side.phone { display: none; }
  .main.phoneco .col { padding-bottom: 62px; overflow: visible; }
  .main.phoneco .content { overflow: visible; }
  .phead { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 8px 8px; background: var(--page); border-bottom: 1px solid var(--line); }
  .phead .pname { flex: 1; min-width: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .phead .iconbtn.on { color: var(--warn); }
  .tabs.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); background: var(--side); border-top: 1px solid var(--line); }
  .tabs.bottombar button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; border-radius: 0; font-size: 11px; color: var(--muted); background: none; position: relative; }
  .tabs.bottombar button[aria-selected=true] { color: var(--blue); box-shadow: none; }
  .tabs.bottombar button svg { width: 22px; height: 22px; }
  .tabs.bottombar .count { position: absolute; top: 2px; left: calc(50% + 6px); }
  /* The deck: edge to edge, swiped; dots show where you are. */
  .main.phoneco .pane > .deck { margin: 0 -16px; }
  .main.phoneco .deck .frame { border-radius: 0; }
  .dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
  .dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
  .dots span.on { background: var(--text); }
  /* Ask: a chat. */
  .main.phoneco .pane.chatpane { padding-bottom: 0; min-height: calc(100dvh - 47px - 62px); /* between the header and the tab bar */ display: flex; flex-direction: column; }
  .chatpane .thread { flex: 1; align-content: end; padding-bottom: 8px; }
  .chatpane .q { border-radius: 16px 16px 4px 16px; background: var(--blue-soft); }
  .chatpane .a { justify-self: start; max-width: 88%; background: var(--raised); border-radius: 16px 16px 16px 4px; padding: 10px 13px; }
  .askfoot { position: sticky; bottom: calc(62px + env(safe-area-inset-bottom)); display: grid; gap: 6px; padding: 8px 0 8px; background: var(--page); }
  .askfoot .starter { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .askfoot .starter .chip { flex: none; white-space: nowrap; }
  .askfoot .askbar { align-items: center; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
  .askfoot .askbar input { border: 0; background: transparent; min-height: 36px; padding: 0; box-shadow: none; outline: none; }
  .askfoot .fine { text-align: center; }
}

/* ⭐ DJ, 22 Nov: "we need to show the visuals". The deck link page's answer
   cards (cards.mjs), styled as there, each rule kept inside the card. The
   colours the deck link names are the investor area's own here. */
.cardv { --viz: var(--sunk); --radius-card: 12px; --soft: var(--sunk); --line-strong: var(--line-2); --faint: var(--muted); }
.cardv { background: var(--viz); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cardv .t { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.cardv .big { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.cardv .chg.up { color: var(--good); } .cardv .chg.down { color: var(--bad); } .cardv .chg { font-size: 13px; color: var(--muted); }
.cardv .src { font-size: 12px; color: var(--muted); }
.cardv .items { display: flex; flex-direction: column; } .cardv .items div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cardv .items div span:first-child { color: var(--muted); }
.cardv svg { width: 100%; max-width: 640px; display: block; overflow: visible; }
.cardv .ring { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cardv .ring ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.cardv .ring li span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.cardv .gaugebar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; } .gaugebar span { display: block; height: 8px; background: var(--blue); }
@media (max-width: 760px) { .cardv .items div { grid-template-columns: 1fr; gap: 2px; } .inv-top { padding: 0 16px; } }
.cardv { padding: 20px 22px; gap: 14px; }
.cardv .t { font-size: 15px; font-weight: 600; color: var(--text); }
.cardv .t span + span { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.cardv .big { font-size: 36px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cardv .chg { font-size: 15px; }
.cardv .items.one div { grid-template-columns: 1fr; }
.cardv .items.one div span:first-child { color: inherit; }
.cardv .tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cardv .tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; padding: 0 0 8px; }
.cardv .tbl td { padding: 7px 0; border-top: 1px solid var(--line); }
.cardv .tbl th:not(:first-child), .cardv .tbl td:not(:first-child) { text-align: right; }
.cardv .tbl td.up { color: var(--good); }
.cardv .tbl td.down { color: var(--bad); }
.cardv .face { border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-block; background: var(--soft); }
.cardv .face.none { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; border: 1px solid var(--line); }
.cardv .people, .cardv .people-card { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.cardv .people-card { flex-direction: column; gap: 12px; }
.cardv .person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cardv .person .pn { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.35; }
.cardv .person .pn span { color: var(--muted); font-size: 13px; }
.cardv .tblwrap { overflow-x: auto; }
.cardv .tbl.cols th, .cardv .tbl.cols td { text-align: left; padding-right: 14px; }
.cardv .tbl.cols tbody th { font-weight: 500; color: var(--muted); }
/* The team as a table: face and name, then a column per fact (DJ, 19 Nov). */
.cardv .ptbl tbody th { color: var(--text); font-weight: 600; white-space: nowrap; width: 1%; }
.cardv .ptbl td { color: var(--text-2); vertical-align: middle; }
.cardv .ptbl tbody th .person b { font-weight: 600; }
@media (max-width: 560px) {
  .cardv .ptbl thead { display: none; }
  .cardv .ptbl tr { display: block; padding: 8px 0; border-top: 1px solid var(--line); }
  .cardv .ptbl th, .cardv .ptbl td { display: block; border: 0; padding: 2px 0; width: auto; }
  .cardv .ptbl td:not(:empty)::before { content: attr(data-col) ": "; color: var(--muted); }
  .cardv .ptbl td.pbtn::before { content: none; } /* the profile button has no name to show (DJ, 22 Nov: a stray ":") */
}
/* A table's first column names the row: in full colour, level with its row. */
.cardv .tbl.cols tbody th { color: var(--text); font-weight: 600; }
.cardv .tbl.cols th, .cardv .tbl.cols td { vertical-align: top; }
.cardv .ptbl th, .cardv .ptbl td { vertical-align: middle; }
/* Two figures side by side (unit economics), each with whose figure it is. */
.cardv .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cardv .pair-one { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.cardv .pair-one .pl { font-size: 13px; color: var(--muted); }
.cardv .pair-one .pn { font-size: 12px; color: var(--muted); }
/* A chart's key: solid for real figures, dotted for a projection. */
.cardv .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.cardv .legend span { display: inline-flex; align-items: center; gap: 6px; }
.cardv .legend i { display: inline-block; width: 18px; height: 0; }
.cardv .ph { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.cardv .ph-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.cardv .ph-role { color: var(--muted); font-size: 15px; margin-top: 2px; }
.cardv .ph-facts { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 8px 16px; margin: 0; font-size: 14px; line-height: 1.45; }
.cardv .ph-facts dt { color: var(--muted); }
.cardv .ph-facts dd { margin: 0; }
/* ⭐ DJ, 20 Nov: the world map with a pin, and the timeline before and after the start. */
.cardv .worldmap { width: 100%; height: auto; display: block; }
.cardv .maplabel { font-weight: 700; font-size: 15px; margin-top: 6px; }
.cardv .timeline { width: 100%; height: auto; display: block; overflow: visible; }
.cardv .legend i.chk { width: 16px; height: 10px; border: 0; background: repeating-conic-gradient(color-mix(in srgb, var(--muted) 22%, transparent) 0 25%, transparent 0 50%) 0 0 / 6px 6px; }
.cardv .gantt { display: flex; flex-direction: column; gap: 6px; }
.cardv .gantt .gr { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: 12px; align-items: center; }
.cardv .gantt .gn { display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; min-width: 0; }
.cardv .gantt .gn b { font-weight: 600; }
.cardv .gantt .gn span { color: var(--muted); font-size: 12px; }
.cardv .gantt .gtrack { position: relative; height: 22px; border-left: 1px solid var(--line-strong); }
.cardv .gantt .ghead { height: 16px; border-left: 0; }
.cardv .gantt .gt { position: absolute; top: 0; font-size: 11px; color: var(--muted); white-space: nowrap; }
.cardv .gantt .gb { position: absolute; top: 4px; height: 14px; border-radius: 4px; background: var(--blue); min-width: 6px; }
.cardv .gantt .gg { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px solid #eb6834; }

/* A card inside a phone's chat bubble keeps to the bubble. */
.a .cardv { min-width: 0; }
@media (max-width: 640px) { .chatpane .a { max-width: 94%; } .chatpane .a .cardv { padding: 12px; } .chatpane .a .cardv .big { font-size: 28px; } }
/* ⭐ DJ, 23 Nov: "Finding the answer" moves, as on the deck link. */
.thinking { display: inline-flex; align-items: center; gap: 10px; }
.think-dots { display: inline-flex; gap: 4px; }
.think-dots i { width: 6px; height: 6px; border-radius: 50%; background: #2f7cf6; opacity: .35; animation: think-dot 1.1s ease-in-out infinite; }
.think-dots i:nth-child(2) { animation-delay: .15s; } .think-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes think-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
.think-word { background: linear-gradient(90deg, var(--muted) 0%, var(--text) 50%, var(--muted) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: think-shine 1.6s linear infinite; }
@keyframes think-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .think-dots i, .think-word { animation: none; } .think-word { color: var(--muted); background: none; } }
/* ⭐ DJ, 23 Nov: a plain note when the founder hasn't switched something on; the action stays. */
.note-off { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--text); font-size: 13px; line-height: 1.45; }

/* ⭐ DJ, 23 Nov: asking across companies, the figures side by side as bars,
   then each company's own answer with its card. */
.across { display: grid; gap: 14px; }
.cmpchart { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; container: cmp / inline-size; }
.cmp-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 2px; }
/* ⭐ DJ, 23 Nov ("as graphical as possible"): name, bar, the figure with its month under it, and Yes or No. */
.cmp-row { display: grid; grid-template-columns: minmax(80px, 140px) minmax(80px, 1fr) minmax(110px, auto) 30px; gap: 4px 12px; align-items: center; font-size: 13px; }
.cmp-row.none { color: var(--muted); }
.cmp-co { text-align: left; justify-self: start; }
.cmp-bar { height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 5px; background: #2f7cf6; }
.cmp-v { display: grid; line-height: 1.3; }
.cmp-v .small { font-size: 11.5px; }
.cmp-m { font-size: 11.5px; font-weight: 600; text-align: right; }
.cmp-m.yes { color: var(--good); }
.cmp-m.no { color: var(--muted); }
/* Narrow: the name and the figure on one line, the bar full width under them. */
@container cmp (max-width: 520px) {
  .cmp-row { grid-template-columns: minmax(0, 1fr) auto 30px; }
  .cmp-row .cmp-co { grid-column: 1; grid-row: 1; }
  .cmp-row .cmp-v { grid-column: 2; grid-row: 1; text-align: right; }
  .cmp-row .cmp-m { grid-column: 3; grid-row: 1; }
  .cmp-row .cmp-bar { grid-column: 1 / -1; grid-row: 2; }
}
.across .lead { margin: 0; font-size: 15px; font-weight: 600; }
.acrosstab { width: 100%; border-collapse: collapse; font-size: 13px; }
.acrosstab th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 0 10px 6px 0; border-bottom: 1px solid var(--line); }
.acrosstab td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.acrosstab td:first-child { width: 1%; white-space: nowrap; }
.acrosstab tr.none td { color: var(--muted); }
.acrosstab td.key { font-weight: 600; white-space: nowrap; }
.acrosstab .cellpts { margin: 0; padding-left: 16px; }
.acrosstab a { color: var(--link, #2f7cf6); }
.askeach { display: grid; gap: 6px; }
