/* Startup TNT brand: charcoal leads (#32292f), the pink "A" (#e8538a) is a rare accent that marks what needs you,
   teal (#70abaf) is the quiet "read" colour in the data room map. Type follows startuptnt.com (Avenir Next Condensed). */
:root {
  --paper: #f5f4f3;
  --card: #ffffff;
  --sunk: #efedeb;
  --ink: #2b2428;
  --ink-2: #514a4e;
  --muted: #7d767a;
  --line: #e7e4e1;
  --line-2: #d7d3cf;
  --tnt: #32292f;
  --pink: #e8538a;
  --pink-ink: #c13a6c;
  --pink-soft: #fbe8ef;
  --teal: #70abaf;
  --teal-ink: #3e7a7e;
  --teal-soft: #e5f0f0;
  --red: #b4432e;
  --red-soft: #f8e8e3;
  --amber: #8f620f;
  --amber-soft: #f6eedb;
  --slate: #4f5561;
  --slate-soft: #eceef1;
  --green: #3d7444;
  --green-soft: #e6f0e5;
  --violet: #5d4f8c;
  --violet-soft: #eeebf6;
  --accent: var(--ink);
  --accent-soft: var(--sunk);
  --display: "Avenir Next Condensed", "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --serif: var(--display);
  --sans: "Avenir Next", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgb(43 36 40 / .05), 0 6px 20px rgb(43 36 40 / .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #18161a; --card: #211e22; --sunk: #151316; --ink: #f0edef; --ink-2: #cdc7cb; --muted: #9a9397;
    --line: #322e33; --line-2: #423d43; --pink: #ff6c9f; --pink-ink: #ff8db5; --pink-soft: #3a1f2a;
    --teal: #78b6ba; --teal-ink: #9fd0d3; --teal-soft: #1c2c2d;
    --red: #f0907a; --red-soft: #3a221c; --amber: #e4b45e; --amber-soft: #352b15; --slate: #aab2be; --slate-soft: #262a30;
    --green: #92cf94; --green-soft: #1d2d1f; --violet: #b9abe9; --violet-soft: #29243a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .25); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 14.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0; margin: 0; }
h1 { font-size: 32px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.25; }
p { margin: 0 0 .6em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 13px; color: var(--ink-2); }
.brand img { width: 22px; height: 22px; }
.room-name { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 6px 9px; border-radius: 6px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--sunk); text-decoration: none; }
.nav a.on { background: var(--ink); color: var(--paper); }
.nav a.on .count { color: var(--paper); opacity: .75; }
.count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.main { min-width: 0; padding: 22px 28px 60px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }

/* ---------- pieces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.flush { padding: 0; }
.card h3 { margin-bottom: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); padding: 6px 11px; border-radius: 7px; cursor: pointer; font-weight: 550; font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--sunk); }
.btn.sm { padding: 3px 8px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.claude { border-color: color-mix(in srgb, var(--violet) 40%, transparent); color: var(--violet); }
input[type=text], input[type=email], input[type=search], textarea, select {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 10px; width: 100%; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 18%, transparent); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
select { width: auto; padding: 4px 8px; }
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
label.field, div.field { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 4px 10px; cursor: pointer; font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--ink); color: var(--paper); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 18px; }
.k-red_flag { background: var(--red-soft); color: var(--red); }
.k-question { background: var(--amber-soft); color: var(--amber); }
.k-risk { background: var(--slate-soft); color: var(--slate); }
.k-strength { background: var(--green-soft); color: var(--green); }
.t-claude { background: var(--violet-soft); color: var(--violet); }
.t-plain { background: var(--sunk); color: var(--ink-2); }
.sev { display: inline-flex; gap: 2px; vertical-align: middle; }
.sev i { width: 4px; height: 11px; border-radius: 1px; background: var(--line-2); }
.sev.s3 i { background: var(--red); } .sev.s2 i:nth-child(-n+2) { background: var(--amber); } .sev.s1 i:first-child { background: var(--slate); }

.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; flex: none; letter-spacing: .02em; position: relative; }
.avatar.sm { width: 19px; height: 19px; font-size: 9px; }
.avatar.live::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #3fae5a; border: 2px solid var(--paper); }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }

.list { display: flex; flex-direction: column; }
.list > .item { padding: 10px 14px; border-top: 1px solid var(--line); }
.list > .item:first-child { border-top: 0; }
.item.click { cursor: pointer; }
.item.click:hover { background: var(--sunk); }
.empty { padding: 22px; text-align: center; color: var(--muted); }

.stat { display: grid; gap: 4px; align-content: start; }
.stat b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12.5px; }
.bar { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }

/* ---------- issues board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--sunk); border-radius: var(--r); padding: 8px; min-height: 120px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 8px; font-weight: 650; font-size: 13px; }
.col-head .muted { font-weight: 500; }
.icard { background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 10px; margin-bottom: 7px; cursor: pointer; box-shadow: 0 1px 1px rgb(27 26 23 / .03); }
.icard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.icard.sel { border-color: var(--ink); }
.icard .t { font-weight: 600; line-height: 1.35; margin: 5px 0 7px; }
.icard .meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.inum { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- drawer ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgb(20 19 17 / .25); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--card); border-left: 1px solid var(--line); z-index: 41; overflow: auto; box-shadow: -10px 0 40px rgb(0 0 0 / .1); }
.drawer-head { position: sticky; top: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 10px; align-items: flex-start; z-index: 2; }
.drawer-body { padding: 16px 18px 40px; }
.drawer h2 { font-size: 21px; line-height: 1.25; }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; }
.callout { border-radius: 7px; padding: 10px 12px; background: var(--sunk); }
.callout.claude { background: var(--violet-soft); }
.callout.answer { background: var(--teal-soft); }
.callout.done { background: var(--green-soft); }
.callout.bad { background: var(--red-soft); }

.ref { display: flex; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; background: var(--card); }
.ref:hover { border-color: var(--line-2); }
.ref .q { font-family: var(--serif); font-style: italic; color: var(--ink-2); }

.thread { display: grid; gap: 12px; }
.cmt { display: grid; grid-template-columns: 24px 1fr; gap: 9px; }
.cmt .who { font-weight: 600; font-size: 13px; }
.cmt .body { margin-top: 1px; }
.md p:last-child { margin-bottom: 0; }
.md ul { margin: 4px 0 8px; padding-left: 18px; }
.md li { margin: 2px 0; }
.cite { display: inline-flex; align-items: center; padding: 0 5px; margin: 0 1px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font: 600 11px/17px var(--mono); cursor: pointer; vertical-align: 1px; }
.cite:hover { text-decoration: none; filter: brightness(.95); }
.inum-link { font-family: var(--mono); font-size: 12px; font-weight: 600; cursor: pointer; }

/* ---------- data room ---------- */
.dr { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); min-height: calc(100vh - 130px); }
.dr-list { border-right: 1px solid var(--line); overflow: auto; max-height: calc(100vh - 130px); }
.folder { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 650; color: var(--muted); letter-spacing: .02em; }
.doc { padding: 7px 12px; cursor: pointer; display: grid; gap: 3px; border-left: 3px solid transparent; }
.doc:hover { background: var(--sunk); }
.doc.on { background: var(--sunk); border-left-color: var(--ink); }
.doc .dt { font-weight: 550; line-height: 1.3; }
.doc .dm { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 100%; }
.viewer iframe { width: 100%; height: calc(100vh - 132px); border: 0; background: #525659; border-radius: 0; }
.vside { border-left: 1px solid var(--line); padding: 14px; overflow: auto; max-height: calc(100vh - 130px); display: flex; flex-direction: column; gap: 14px; }
.sheet { overflow: auto; max-height: calc(100vh - 180px); padding: 10px 14px; }
.sheet table { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.sheet td { border: 1px solid var(--line); padding: 2px 6px; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.sheet tr:first-child td { background: var(--sunk); font-weight: 600; }
.coverage { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 3px; }
.coverage i { aspect-ratio: 1; border-radius: 3px; background: var(--sunk); cursor: pointer; }
.coverage i.c1 { background: color-mix(in srgb, var(--teal) 40%, var(--sunk)); }
.coverage i.c2 { background: color-mix(in srgb, var(--teal) 70%, var(--sunk)); }
.coverage i.c3 { background: var(--teal-ink); }
.coverage i.na { background: repeating-linear-gradient(45deg, var(--sunk), var(--sunk) 3px, var(--line) 3px, var(--line) 5px); }

/* ---------- checklist ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; }
.tbl td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr.sec td { background: var(--sunk); font-family: var(--serif); font-weight: 600; font-size: 15px; padding: 8px 10px; }
.tbl tr:hover td:not(.secc) { background: color-mix(in srgb, var(--sunk) 50%, transparent); }
.pv { border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; border: 0; cursor: pointer; }
.pv-missing { background: var(--red-soft); color: var(--red); }
.pv-partial { background: var(--amber-soft); color: var(--amber); }
.pv-provided { background: var(--green-soft); color: var(--green); }
.pv-na { background: var(--sunk); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; cursor: pointer; background: var(--card); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip:hover { border-color: var(--line-2); }

/* ---------- stances ---------- */
.stances { display: grid; gap: 6px; }
.stance-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stance-scale button { font-size: 11.5px; line-height: 1.2; border: 1px solid var(--line-2); background: var(--card); border-radius: 6px; padding: 6px 4px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.stance-scale button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.st-in { color: var(--green); } .st-leaning_in { color: var(--green); } .st-unsure { color: var(--amber); } .st-leaning_out { color: var(--red); } .st-out { color: var(--red); }

/* ---------- activity ---------- */
.feed { display: grid; gap: 9px; }
.ev { display: grid; grid-template-columns: 19px 1fr; gap: 8px; font-size: 13px; line-height: 1.4; }
.ev .when { color: var(--muted); font-size: 11.5px; }
.ev a { cursor: pointer; }

/* ---------- ask ---------- */
.chat { display: grid; gap: 16px; }
.qa .q { font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.qa .a { margin: 6px 0 0 32px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.composer { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--paper) 22%); padding-top: 18px; }
.composer .box { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; box-shadow: var(--shadow); }
.composer textarea { border: 0; box-shadow: none; min-height: 44px; padding: 4px 6px; }
.typing::after { content: "▍"; animation: blink 1s steps(2) infinite; color: var(--violet); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- memo ---------- */
.memo-sec { border-top: 1px solid var(--line); padding: 16px 0; }
.memo-sec:first-child { border-top: 0; }
.memo-sec .prompt { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 2px 0 8px; }
.memo-body { font-family: var(--serif); font-size: 15.5px; line-height: 1.55; }
.memo-body ul { padding-left: 20px; }

/* ---------- toasts & login ---------- */
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 6px; z-index: 60; }
.toast { background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); animation: up .2s ease-out; max-width: 520px; }
.toast.err { background: var(--red); color: #fff; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.login { max-width: 400px; margin: 12vh auto; padding: 0 16px; }
.login .card { padding: 26px; }
.login h1 { margin: 14px 0 6px; }
.code-input { font-size: 26px !important; letter-spacing: 8px; text-align: center; font-family: var(--mono) !important; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.room-card { cursor: pointer; transition: border-color .15s; }
.room-card:hover { border-color: var(--ink-2); }
.kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 0 4px; border-radius: 4px; color: var(--muted); }

@media (max-width: 1280px) {
  .dr { grid-template-columns: 250px minmax(0, 1fr); }
  .viewer { grid-template-columns: 1fr; }
  .viewer iframe { height: 72vh; }
  .vside { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 10px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav a { white-space: nowrap; gap: 6px; }
  .side-foot { display: none; }
  .main { padding: 16px 16px 60px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr { grid-template-columns: 1fr; }
  .dr-list { max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .viewer { grid-template-columns: 1fr; }
  .viewer iframe { height: 70vh; }
  .vside { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .tbl .hide-sm { display: none; }
  .topbar { flex-direction: column; }
}

/* ---------- connect your AI ---------- */
.connect-link { margin-top: 8px; border: 1px dashed var(--line-2); }
.warn { background: var(--card); border: 2px solid var(--red); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); }
.warn-tag { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.warn-title { font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.warn-lead { font-size: 16.5px; line-height: 1.6; margin-bottom: 12px; }
.howto { background: var(--sunk); border-radius: 10px; padding: 14px; margin: 16px 0; }
.howto-head { font-weight: 700; font-size: 15.5px; margin-bottom: 10px; }
.howto-item { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.howto-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; padding: 14px 16px; font-size: 16px; font-weight: 650; cursor: pointer; text-align: left; }
.howto-btn span:last-child { color: var(--pink-ink); font-size: 14px; white-space: nowrap; }
.howto-body { padding: 0 16px 14px; font-size: 16px; line-height: 1.6; }
.howto-body ol { padding-left: 22px; margin: 0 0 10px; }
.howto-body li { margin: 4px 0; }
.howto-notes { font-size: 15px; line-height: 1.55; padding-left: 20px; margin: 12px 0 0; }
.howto-notes li { margin: 6px 0; }
.warn-check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; margin-top: 10px; cursor: pointer; background: var(--card); }
.warn-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.warn-go { margin-top: 16px; font-size: 16px; padding: 12px 18px; }
.addr { font-family: var(--mono); font-size: 13px; background: var(--sunk); padding: 6px 10px; border-radius: 6px; word-break: break-all; flex: 1; }
.code { font-family: var(--mono); font-size: 12px; background: var(--sunk); padding: 10px 12px; border-radius: 6px; margin: 0; white-space: pre-wrap; word-break: break-all; flex: 1; }
.steps { padding-left: 22px; margin: 0; line-height: 1.7; font-size: 15px; }

/* ---------- company selector ---------- */
.summit { margin-bottom: 28px; }
.summit-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.summit-head h2 { font-size: 18px; }
.room-card { display: flex; flex-direction: column; gap: 10px; }
.room-title { font-size: 21px; line-height: 1.2; }
.room-tag { margin: 0; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.logo { display: inline-grid; place-items: center; flex: none; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo.mono { color: #fff; font-family: var(--serif); font-weight: 600; border: 0; letter-spacing: .02em; }
.rooms.archived { opacity: .7; }

/* ======================= Brand pass (2026-11-04) ======================= */
.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ico.sm { width: 14px; height: 14px; vertical-align: -2px; }

/* logo + product name */
.logo-tnt { display: block; height: 18px; width: auto; }
.logo-tnt.dark-only { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-tnt.light-only { display: none; } :root:not([data-theme="light"]) .logo-tnt.dark-only { display: block; } }
.product { display: grid; gap: 6px; text-decoration: none; }
.product:hover { text-decoration: none; }
.product-name { font: 600 13px/1 var(--display); letter-spacing: .02em; color: var(--muted); }

/* sidebar */
.side { background: var(--card); gap: 20px; padding: 20px 12px; }
.side .room-head { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.room-name { font: 600 19px/1.15 var(--display); }
.nav { gap: 2px; }
.nav a { position: relative; height: 34px; padding: 0 10px 0 14px; border-radius: 8px; color: var(--ink-2); text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a.on { background: var(--sunk); color: var(--ink); font-weight: 600; }
.nav a.on::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--pink); }
.nav a.on .count { color: var(--muted); opacity: 1; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.connect-link { margin-top: 0; border: 0; }
.count { font: 500 12px/1 var(--sans); }
.side-foot { padding: 0 8px; gap: 8px; }

/* buttons */
.btn { height: 32px; padding: 0 12px; border-radius: 8px; font: 600 13px/1 var(--sans); gap: 6px; text-decoration: none; color: var(--ink); transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.btn:active { transform: scale(.98); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; }
.btn.primary { background: var(--tnt); border-color: var(--tnt); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); } }
.btn.primary:hover { opacity: 1; background: #46393f; }
.btn.claude { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 35%, var(--line-2)); }
.btn.adopt { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.adopt:hover { background: var(--pink-ink); }

/* headings on pages: title + one quiet line at most */
.topbar h1 { font-size: 30px; }
.lede { color: var(--muted); margin-top: 4px; max-width: 640px; }

/* citations: neutral chips */
.cite { background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line); font: 600 11px/17px var(--mono); }
.cite:hover { border-color: var(--line-2); color: var(--ink); }

/* signature: the pink A marks what needs you */
.needs { display: inline-block; width: 11px; height: 11px; flex: none; background: url(/brand/a-mark.svg) center/contain no-repeat; vertical-align: -1px; }

/* issue lifecycle rail */
.rail { display: flex; gap: 3px; }
.rail i { width: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.rail i.done { background: var(--ink-2); }
.rail i.now { background: var(--pink); }
.rail.closed i { background: var(--green); }
.rail.dead i { background: var(--red); }
.flow { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-bottom: 12px; flex-wrap: wrap; }
.flow b { color: var(--ink-2); font-weight: 600; }
.col-head .ico { color: var(--muted); }

/* data room map: the moment on a room's front page */
.drmap { display: grid; gap: 8px; }
.drmap-folder { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; min-height: 32px; }
.drmap-folder > span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drmap-tiles { display: flex; flex-wrap: wrap; gap: 4px; }
.tile { position: relative; width: 26px; height: 32px; border-radius: 4px; background: var(--sunk); border: 1px solid var(--line); cursor: pointer; transition: transform .12s var(--ease), border-color .12s var(--ease); }
.tile:hover { transform: translateY(-2px); border-color: var(--ink-2); }
.tile.r1 { background: color-mix(in srgb, var(--teal) 35%, var(--card)); border-color: transparent; }
.tile.r2 { background: color-mix(in srgb, var(--teal) 70%, var(--card)); border-color: transparent; }
.tile.r3 { background: var(--teal-ink); border-color: transparent; }
.tile.scan { background: repeating-linear-gradient(135deg, var(--sunk), var(--sunk) 4px, var(--line) 4px, var(--line) 6px); }
.tile.mine::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--card); }
.tile .flag { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; background: url(/brand/a-mark.svg) center/contain no-repeat; }
.drmap-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.drmap-key .tile { width: 12px; height: 15px; cursor: default; border-radius: 2px; }
.drmap-key .tile:hover { transform: none; }
.drmap-key span { display: inline-flex; align-items: center; gap: 6px; }

/* stats row: compact, numbers first */
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 4px 0 20px; }
.stats .stat b { font: 600 28px/1 var(--display); }

/* checklist: provided is a real control */
.pv-select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; padding: 2px 22px 2px 10px; font: 600 12px/18px var(--sans); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d767a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 12px; }
.tbl th small { display: block; font-weight: 500; color: var(--muted); }

/* founder steps */
.step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--sans); margin-right: 8px; }

/* login */
.login .logo-tnt { height: 22px; }
.login h1 { font-size: 30px; margin: 22px 0 6px; }

/* rooms page */
.rooms-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.room-card { transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.room-card:hover { box-shadow: var(--shadow); }
.summit-head h2 { font-size: 20px; }

@media (max-width: 900px) { .drmap-folder { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- demo ---------- */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 16px; background: var(--tnt); color: #fff; font-size: 12.5px; flex-wrap: wrap; text-align: center; }
.demo-bar .btn { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); height: 24px; }
.demo-bar .btn:hover { border-color: #fff; }
.demo-bar + .shell .side { top: 0; }
body.fuse .nav a.on::before, body.fuse .needs, body.fuse .tile .flag { animation: fuse .3s steps(2) 8; }
@keyframes fuse { 50% { filter: brightness(1.8) drop-shadow(0 0 4px var(--pink)); } }

/* ---------- no blow-outs, no chopped text (2026-11-04) ----------
   Grid and flex children default to "as wide as my longest word", so one long line could widen a whole
   column and push the page sideways. Let them shrink, and let long text wrap instead of being cut off. */
.grid2 > *, .grid3 > *, .grid4 > *, .stack > *, .stances > *, .dr > *, .viewer > *, .board > *, .shell > * { min-width: 0; }
.md, .lede, .room-tag, .stance-note, .callout, .icard .t, .item, .drmap-folder > span { overflow-wrap: anywhere; }
.stances { gap: 10px; }
.stance-row { display: grid; grid-template-columns: 19px 1fr; gap: 8px; align-items: start; font-size: 13px; line-height: 1.4; }
.stance-row .avatar { margin-top: 1px; }
.stance-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.chip { white-space: normal; overflow: visible; text-overflow: clip; max-width: 100%; line-height: 1.35; padding: 2px 7px; text-align: left; }
.drmap-folder > span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
.sheet td { white-space: pre-wrap; overflow: visible; text-overflow: clip; vertical-align: top; }
/* Stance buttons wrap as whole buttons instead of squeezing their words onto several lines. */
.stance-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.stance-scale button { flex: 1 1 auto; white-space: nowrap; padding: 6px 10px; }
/* The activity feed is a list of links; underline only on hover. */
.feed a, .ev a { text-decoration: none; }
.feed a:hover, .ev a:hover { text-decoration: underline; }

/* ---------- AI changes ---------- */
.ai-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--r); background: var(--card); font-size: 13.5px; }
.ai-notice .ico { color: var(--teal-ink); }
.ai-notice a { margin-left: auto; font-weight: 600; }
.run-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.run-undone { opacity: .65; }
.run-items { margin: 12px -16px -16px; border-top: 1px solid var(--line); }
.run-items .item { gap: 10px; }
.is-undone a { text-decoration: line-through; color: var(--muted); }

/* Demo sign-up: how long to keep the copy */
.keep { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.keep .small { margin-right: 4px; }
.keep-opt { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.keep-opt:hover { border-color: var(--ink-2); }
.keep-opt.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.keep-opt:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.code-input + .btn { display: block; width: 100%; }

/* Who opened what: a person opening a file is solid ink; their AI reading it is teal and hatched. */
.who-line { display: flex; align-items: center; gap: 10px; }
.who-bar { width: 120px; flex: none; }
.who-bar i { background: var(--ink); }
.who-bar.ai { background: transparent; box-shadow: inset 0 0 0 1px var(--teal); }
.who-bar.ai i { background: repeating-linear-gradient(135deg, var(--teal) 0 3px, transparent 3px 6px); }
.who-ai { color: var(--teal-ink); }
.who-detail { margin: 12px 0 2px 44px; }
.who-run { padding: 8px 10px; border-left: 2px dashed var(--teal); }
.who-chips { gap: 4px; margin-top: 8px; }
.who-searched { border-style: dashed; color: var(--muted); }
.who-none td { color: var(--muted); }
.who-sub > td { background: var(--sunk); padding: 0 0 0 40px; }
.who-tbl td { vertical-align: middle; }
.founder-person { border-top: 1px solid var(--line); padding-top: 12px; }
.founder-person ul { margin: 4px 0 8px; padding-left: 18px; }
.founder-person li { margin: 2px 0; }
.who-ai-list li::marker { color: var(--teal); }
@media print {
  .side, .no-print, .toasts { display: none !important; }
  .shell, .main { display: block; padding: 0; margin: 0; max-width: none; }
  .founder-list .card { box-shadow: none; border: 0; padding: 0; }
  .founder-person { break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- who can see a company (site/access.js) ---------- */
.access-mark { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; border: 1.5px solid var(--ink); }
.access-mark.in { background: var(--ink); }
.access-mark.wait { background: transparent; border-style: dashed; border-color: var(--amber); }
.access-mark.out { border-color: var(--line-2); background: var(--line); }
.access-founders { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: var(--sunk); border-radius: 7px; }
.access-list, .access-trail { border: 1px solid var(--line); border-radius: 7px; max-height: 460px; overflow: auto; }
.access-list > .item { padding: 8px 12px; }
.access-trail > .item { padding: 6px 12px; }
.access-tag { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.mail-body { white-space: pre-wrap; font: 12.5px/1.5 var(--sans); background: var(--sunk); border-radius: 7px; padding: 10px 12px; margin: 6px 0 4px; max-height: 320px; overflow: auto; }
.room-card.locked { cursor: default; border-style: dashed; background: transparent; }
.logo.lock { background: var(--sunk); position: relative; }
.logo.lock::after { content: ''; position: absolute; left: 50%; top: 52%; width: 16px; height: 12px; transform: translate(-50%, -20%); border-radius: 3px; background: var(--line-2); }
.logo.lock::before { content: ''; position: absolute; left: 50%; top: 30%; width: 10px; height: 10px; transform: translateX(-50%); border: 2.5px solid var(--line-2); border-bottom: 0; border-radius: 7px 7px 0 0; }
.founder-page { max-width: 720px; margin: 0 auto; padding-top: 32px; }
.founder-confirm { border-color: var(--ink); margin-top: 16px; }
.room-card.locked:hover { box-shadow: none; border-color: var(--line-2); }

/* ---------- updated data rooms, retention, deleting ---------- */
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--red) 85%, #000); }
.danger-text, .btn.danger-text { color: var(--red); }
.vtag { font: 600 11px/16px var(--sans); padding: 0 5px; border-radius: 4px; background: var(--sunk); color: var(--ink-2); vertical-align: 1px; }
.doc.is-gone .dt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.chg { display: inline-block; min-width: 0; font: 600 11.5px/18px var(--sans); padding: 0 7px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); }
.chg-changed { background: var(--amber-soft); color: var(--amber); }
.chg-added, .chg-restored { background: var(--teal-soft); color: var(--teal-ink); }
.chg-removed { color: var(--muted); }
.dr-plan { display: grid; gap: 12px; }
.dr-plan-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.dr-plan ul, .dr-update-list, .founder-files { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.dr-update { border-left: 3px solid var(--ink); }
.dr-update-list { list-style: none; padding: 0; }
.dr-update-list a { cursor: pointer; }
.callout.recheck { background: var(--amber-soft); align-items: center; }
.recheck-dot { font: 600 11px/16px var(--sans); color: var(--amber); background: var(--amber-soft); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.cite.gone { color: var(--muted); cursor: default; text-decoration: none; }
.ref.gone { cursor: default; }
.retention-notice { display: block; margin-bottom: 18px; text-decoration: none; color: inherit; border-left: 3px solid var(--amber); line-height: 1.6; }
.retention-notice:hover { border-color: var(--amber); background: var(--sunk); }
.due { font-weight: 600; white-space: nowrap; }
.due-soon { color: var(--amber); }
.due-now { color: var(--red); }
.founder h2 { font-size: 18px; }
