/* ==========================================================================
   VBOMKARA — DESIGN SYSTEM  (Section 8, no deviation)
   Flat, quiet, generous whitespace. DM Sans (UI) + DM Mono (dates/versions/IDs).
   ========================================================================== */

:root {
  --bg: #FAFAF8;   /* v7.6: calmer near-neutral warm white (Claude-like) */
  --surface: #FFFFFF;
  --ink: #1F1205;
  --accent: #B0542B;

  --red: #B3261E;
  --amber: #B07C1F;
  --green: #3E7A46;
  --gray: #9A8F80;

  /* soft tints for chips */
  --red-tint: rgba(179, 38, 30, .10);
  --amber-tint: rgba(176, 124, 31, .12);
  --green-tint: rgba(62, 122, 70, .12);

  /* ONE hairline family (item 11): warm cream, 1px, three soft weights */
  --hair: #EFE7DA;        /* structural hairline — card / input / bar borders */
  --hair-strong: #E4DACB; /* slightly firmer — input rest borders */
  --foothair: #F2EBDF;    /* softest — interior dividers */
  --muted: rgba(31, 18, 5, .55);

  /* paper-calm warm grays (only accent, verdict dots, and ink carry colour) */
  --meta: #C6B9A5;        /* faint warm gray metadata (CASE-ID · vN) */
  --posttext: #44392C;    /* warm dark brown post text */
  --sepdot: #D8CCBA;      /* soft dot separators in the action line */
  --wbtn: #B3A692;        /* whisper 8-button label */
  --wbtn-faint: #DAD0BF;  /* inapplicable whisper button */
  --rail-hair: #E4DACB;   /* left-rail search underline */
  --filter-off: #A99C89;  /* inactive verdict-filter word */
  --head: #8A7E6C;        /* section headers — legible warm gray */
  --gold: #B8862F;        /* version thread-box left bar */
  --gold-ink: #7A5A16;    /* version type-chip ink */
  --gold-tint: rgba(184,134,47,.12);
  --accent-ink: #9A4824;  /* the one darker accent (button hover) */

  /* ONE card system (item 5) + ONE pop shadow */
  --card-radius: 14px;
  --pill-radius: 999px;
  --shadow-pop: 0 16px 48px rgba(31,18,5,.18);

  --radius: 11px;
  --radius-sm: 8px;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82em;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 247, 242, .9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap,
.site-header .header-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  max-width: 1400px; margin: 0 auto;
}
.site-header .header-inner .header-actions { margin-left: auto; }
.site-header .header-inner .brand { margin-left: 2px; }
.brand { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit; font-size: .9rem; font-weight: 500;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-sm);
  padding: 7px 13px; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* Check = primary emphasis (terracotta outline, white face) */
.btn-primary { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* Claude = the ONE accent-filled control on the page */
.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-accent:hover:not(:disabled) { background: #9a4824; color: #fff; }

.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--accent); border-color: transparent; }

/* ---------- lamp dots ---------- */
.dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  flex: 0 0 12px; vertical-align: middle;
}
.dot.gray   { background: var(--gray); }
.dot.red    { background: var(--red); }
.dot.amber  { background: var(--amber); }
.dot.green  { background: var(--green); }
.dot.unchecked { background: var(--gray); }

/* ---------- post card (feed) — borderless soft white shape ---------- */
.post {
  background: #FFFFFF;
  border: none;
  border-radius: 16px;
  padding: 22px 26px;
  margin: 16px 0;
}
.post-head { display: flex; align-items: center; gap: 9px; }
.post-head .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.post-name { font-weight: 500; font-size: .97rem; letter-spacing: -0.01em; }
a.post-name { color: var(--ink); }
a.post-name:hover { color: var(--accent); text-decoration: none; }
.post-meta { color: var(--meta); margin-left: auto; white-space: nowrap; }
.post-body { margin: 12px 0 2px; white-space: pre-wrap; font-size: .87rem; line-height: 1.65; color: var(--posttext); }
.post-body.muted { color: var(--muted); font-size: .9rem; }
.post-body .reader-toggle { color: var(--accent); font-weight: 500; cursor: pointer; margin-left: 4px; }

/* ---------- one quiet action line ---------- */
.action-line { margin-top: 12px; font-size: .78rem; display: flex; flex-wrap: wrap; align-items: center; }
.action-line a { color: var(--accent); cursor: pointer; }
.action-line a:hover { text-decoration: underline; }
.action-line .sep { color: var(--sepdot); margin: 0 8px; }
.action-line .caret { font-size: .72em; margin-left: 1px; }

/* source-document paperclip chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* v4.4 ONE QUIET CHIP FAMILY — the paperclip (.chip), pasted-note (.chip-note), and
   report (.chip-report) chips all wear the same #F2ECE3 tint + quiet ink as .chip-sector.
   Only their marks differ (paperclip 📎 / text-note 📝 / document). */
.chip {
  font-size: .8rem; color: #6B5A45;
  border: 1px solid #E5DCCE; border-radius: 999px;
  padding: 3px 10px; background: #F2ECE3; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* the constant 8-button row — a whisper under a single faint hairline */
.action-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--foothair);
}
.wbtn {
  font-family: inherit; font-size: .67rem; letter-spacing: .01em;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--wbtn); white-space: nowrap;
}
.wbtn:hover:not(:disabled) { color: var(--accent); }
.wbtn:disabled, .wbtn.is-faint { color: var(--wbtn-faint); cursor: default; }
.wbtn.is-claude { color: var(--accent); }
.wbtn.is-active { color: var(--accent); font-weight: 500; }
.row-note { color: var(--muted); font-size: .8rem; margin-top: 8px; }

/* ---------- add-thesis inline form ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 16px 18px; margin: 16px 0;
}
.panel[hidden] { display: none; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 5px; }
.input, .textarea, input[type=file] {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--hair-strong);
  border-radius: var(--radius-sm); padding: 9px 11px;
}
.textarea { min-height: 84px; resize: vertical; }
.panel-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }

/* ---------- login ---------- */
.center-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 28px; width: 100%; max-width: 360px;
}
.login-card h1 { margin: 0 0 4px; font-size: 1.3rem; }
.login-card .sub { color: var(--muted); margin: 0 0 20px; font-size: .9rem; }

/* ---------- grill-note reader (rendered content_md) ---------- */
.reader {
  margin-top: 12px; padding: 12px 0 0;
  border-top: 1px solid var(--foothair);
  font-size: .9rem; color: var(--posttext);
}
.reader[hidden] { display: none; }
.reader h1, .reader h2, .reader h3 { letter-spacing: -0.01em; margin: .9em 0 .4em; }
.reader h1 { font-size: 1.2rem; }
.reader h2 { font-size: 1.05rem; }
.reader h3 { font-size: .98rem; }
.reader table { border-collapse: collapse; width: 100%; margin: .6em 0; font-size: .9rem; display: block; overflow-x: auto; }
.reader th, .reader td { border: 1px solid var(--hair); padding: 6px 9px; text-align: left; }
.reader code { background: rgba(31,18,5,.06); padding: 1px 5px; border-radius: 4px; font-family: "DM Mono", monospace; font-size: .85em; }
.reader :first-child { margin-top: 0; }

/* ---------- queries strip — closed by default, unfolds in place ---------- */
.queries {
  margin-top: 10px; padding: 10px 0 0;
  background: none; border: none; border-top: 1px solid var(--foothair);
}
.queries[hidden] { display: none; }
.queries-head { font-size: .72rem; color: var(--meta); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.query-line { font-size: .84rem; margin: 5px 0; color: var(--posttext); }
.query-line .mono { color: var(--accent); margin-right: 4px; }
.wa-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* v3.5: copy button + Close ▲ (top and bottom) inside a questions panel */
.q-copy { margin-top: 10px; }
.q-copy .copy-wa { color: var(--accent); cursor: pointer; font-size: .82rem; }
.q-copy .copy-wa:hover { text-decoration: underline; }
.q-close { text-align: right; }
.q-close.top { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--foothair); }
.q-close:not(.top) { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--foothair); }
.q-collapse { font-size: 11px; color: var(--filter-off); cursor: pointer; }
.q-collapse:hover { color: var(--accent); }
.q-snapshot-label { margin-bottom: 8px; }

/* ---------- misc ---------- */
.msg { font-size: .88rem; margin-top: 10px; min-height: 1.2em; }
.msg.error { color: var(--red); }
.msg.ok { color: var(--green); }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }
.spin {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--hair-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .action-row .btn { flex: 1 1 auto; }
}

/* ---------- profile page — same paper-calm language ---------- */
.profile-header { padding: 20px 0 4px; }
.profile-header h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.profile-sub { color: var(--meta); margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .84rem; }
.profile-sub .mono { color: var(--meta); }
.verdict-pill { display: inline-flex; align-items: center; gap: 6px; border: none; padding: 0; font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.verdict-pill .dot { width: 8px; height: 8px; flex: 0 0 8px; }

/* versions control: closed chip -> plain list -> inline frozen expand */
.versions-chip { background: none; border: none; padding: 0; color: var(--accent); font-weight: 500; font-size: .82rem; cursor: pointer; }
.versions-chip:hover { text-decoration: underline; }
.versions-list { margin-top: 8px; border: none; background: none; max-width: 420px; }
.versions-list[hidden] { display: none; }

/* the one quiet action line on the profile */
.action-line { margin: 14px 0; font-size: .78rem; display: flex; flex-wrap: wrap; align-items: center; }
.action-line a { color: var(--accent); cursor: pointer; }
.action-line a:hover { text-decoration: underline; }
.action-line .sep { color: var(--sepdot); margin: 0 8px; }
.action-line .caret { font-size: .72em; margin-left: 1px; }

.section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--meta); margin: 26px 0 8px; }

.report { background: #FFFFFF; border: none; border-radius: 16px; padding: 22px 26px; font-size: .9rem; line-height: 1.6; color: var(--posttext); scroll-margin-top: 110px; }
.report h1, .report h2, .report h3 { letter-spacing: -0.01em; margin: .9em 0 .4em; color: var(--ink); }
.report h1 { font-size: 1.25rem; } .report h2 { font-size: 1.08rem; } .report h3 { font-size: 1rem; }
.report p { margin: .5em 0; }
.report table { border-collapse: collapse; width: 100%; margin: .6em 0; font-size: .88rem; display: block; overflow-x: auto; }
.report th, .report td { border: 1px solid var(--foothair); padding: 6px 9px; text-align: left; }
.report code { background: rgba(31,18,5,.06); padding: 1px 5px; border-radius: 4px; font-family: "DM Mono", monospace; font-size: .85em; }
.report :first-child { margin-top: 0; }

.thread-item { background: #FFFFFF; border: none; border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.type-chip { display: inline-block; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; background: none; border: none; padding: 0; margin-right: 8px; color: var(--meta); }
.thread-summary { display: inline; font-size: .86rem; color: var(--posttext); }
.thread-links { margin-top: 6px; font-size: .8rem; display: flex; gap: 14px; flex-wrap: wrap; }

.jump-strip { position: sticky; top: 62px; z-index: 5; display: inline-flex; gap: 16px; background: rgba(250,247,242,.92); backdrop-filter: blur(6px); border: none; border-radius: 999px; padding: 7px 2px; margin: 12px 0 2px; font-size: .8rem; }
.jump-strip a { color: var(--meta); }
.jump-strip a:hover { color: var(--accent); }

.frozen-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair); margin-bottom: 18px; flex-wrap: wrap; }
#top { scroll-margin-top: 90px; }
#queries, #thread { scroll-margin-top: 110px; }

/* ==========================================================================
   POLISH ROUND — three-column shell, rails, overlays, landing, lifecycle
   ========================================================================== */

/* ---- generic small controls ---- */
.icon-btn {
  font-family: inherit; font-size: 1.05rem; line-height: 1;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  border-radius: var(--radius-sm); padding: 6px 9px; cursor: pointer;
}
.icon-btn:hover { color: var(--accent); }
.only-mobile { display: none; }
.link-btn {
  font-family: inherit; font-size: .84rem; background: none; border: none;
  color: var(--accent); cursor: pointer; padding: 0;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }

/* ---- recognizable PDF badge ---- */
.pdf-badge {
  display: inline-block; font-family: "DM Mono", monospace; font-size: .6rem;
  font-weight: 500; letter-spacing: .04em; color: #fff; background: var(--red);
  border-radius: 3px; padding: 1px 4px; vertical-align: 1px; margin-right: 4px;
}
.pdf-link { white-space: nowrap; }

/* ---- three-column shell ---- */
.app-shell {
  display: grid;
  /* Permanently TWO columns on desktop: a slim index rail and the feed. The talk
     lane is a fixed overlay (see .talk-float) — it never adds a column or reflows. */
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px; align-items: start;
  max-width: 1200px; margin: 0 auto; padding: 8px 20px 60px;
}
.rail { position: sticky; top: 76px; align-self: start; }
.rail-left { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 92px); }
/* Center feed dominates; content held to a comfortable reading width. */
.feed-col { min-width: 0; width: 100%; max-width: 620px; margin: 0 auto; }

/* ---- left rail: no boxes, plain lines only ---- */
.index-search {
  text-align: left; width: 100%; color: var(--filter-off);
  background: none; border: none; border-bottom: 1px solid var(--rail-hair);
  border-radius: 0; padding: 6px 2px; cursor: pointer; font-size: .82rem;
}
.index-search:hover { color: var(--accent); border-color: var(--accent); }

/* verdict filters as plain text words separated by soft dots */
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; }
.fchip {
  display: inline; background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: .8rem; color: var(--filter-off);
}
.fchip .dot { display: none; }
.fchip + .fchip::before { content: "·"; color: var(--sepdot); margin: 0 7px; }
.fchip:hover { color: var(--accent); }
.fchip.is-active { color: var(--ink); font-weight: 500; }

/* + Add thesis — plain accent text, no border */
.index-add {
  width: 100%; text-align: left; background: none; border: none; padding: 2px 2px;
  color: var(--accent); font-weight: 500; font-size: .84rem; cursor: pointer;
}
.index-add:hover { text-decoration: underline; }

.index-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.index-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 2px; color: var(--ink);
}
.index-row .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.index-row:hover { text-decoration: none; }
.index-row:hover .index-name { color: var(--accent); }
.index-name { flex: 1 1 auto; font-size: .86rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index-case { color: var(--meta); flex-shrink: 0; }
.index-empty { color: var(--filter-off); font-size: .82rem; padding: 12px 2px; }

/* ---- archived drawer — faint text entry ---- */
.archived-drawer { margin-top: auto; padding-top: 10px; }
.archived-head { width: 100%; text-align: left; background: none; border: none; color: var(--filter-off); font-size: .78rem; cursor: pointer; padding: 6px 2px; }
.archived-head:hover { color: var(--accent); }
.archived-list { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.arch-row { display: flex; flex-direction: column; gap: 3px; padding: 4px 2px; }
.arch-name { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: .83rem; }
.arch-name .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.arch-case { color: var(--meta); }
.arch-actions { display: flex; gap: 14px; padding-left: 15px; }

/* ---- talk lane — a fixed overlay that slides in from the right ---- */
/* The feed and index never move or resize; the panel floats above the page. */
.talk-float {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 100vw; z-index: 60;
  background: #FFFFFF; border-left: 1px solid var(--hair);
  box-shadow: -14px 0 44px rgba(31,18,5,.10);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .22s ease, visibility .22s;
}
.talk-float.open { transform: translateX(0); visibility: visible; }
.talk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--foothair); }
.talk-title { font-size: .82rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.talk-note { padding: 14px 18px; color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--foothair); }
.talk-body { padding: 14px 18px; flex: 1 1 auto; overflow-y: auto; }
.talk-composer { width: 100%; min-height: 180px; height: 100%; resize: vertical; font-family: inherit; font-size: .9rem; color: var(--ink); background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: 10px 12px; }

/* ---- post polish ---- */
.post-links { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: .9rem; }

/* ---- add-thesis modal ---- */
.modal-scrim { position: fixed; inset: 0; background: rgba(31,18,5,.35); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 60; overflow-y: auto; }
.modal-scrim[hidden] { display: none; }
.modal-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; width: 100%; max-width: 460px; box-shadow: 0 16px 50px rgba(31,18,5,.22); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.dup-warn { margin-top: 8px; font-size: .84rem; color: var(--amber); background: var(--amber-tint); border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: 8px 10px; }
.dup-warn[hidden] { display: none; }

/* ---- search overlay ---- */
.search-overlay { position: fixed; inset: 0; background: rgba(31,18,5,.35); z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; }
.search-overlay[hidden] { display: none; }
.search-box { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); width: 100%; max-width: 560px; box-shadow: 0 16px 50px rgba(31,18,5,.22); overflow: hidden; }
.search-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.search-input { flex: 1 1 auto; font-family: "DM Mono", monospace; font-size: .95rem; color: var(--ink); background: transparent; border: none; outline: none; }
.search-chips { padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 8px 4px; }
.search-hint { color: var(--muted); font-size: .85rem; padding: 16px 10px; }
.recent-row { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-family: inherit; font-size: .88rem; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.recent-row:hover { background: var(--bg); color: var(--accent); }
.search-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink); }
.search-row:hover { background: var(--bg); text-decoration: none; }
.search-name { flex: 1 1 auto; font-size: .9rem; font-weight: 500; }
.search-case { color: var(--muted); }
.arch-tag { color: var(--muted); font-size: .7rem; border: 1px solid var(--hair); border-radius: 999px; padding: 0 6px; }

/* ---- profile: versions inline + staged bar + archive ---- */
.versions-wrap { margin-top: 10px; }
.versions-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--foothair); }
.versions-row:last-child { border-bottom: none; }
.version-open { display: flex; align-items: center; gap: 12px; background: none; border: none; color: var(--ink); font-family: inherit; font-size: .85rem; cursor: pointer; text-align: left; padding: 0; }
.version-open:hover { color: var(--accent); }
.vrow-date { color: var(--meta); }
.vrow-type { color: var(--meta); font-size: .8rem; }

.frozen-inline { margin-top: 12px; }
.frozen-inline[hidden] { display: none; }
.frozen-card { background: #FFFFFF; border-radius: 16px; overflow: hidden; }
.frozen-badge { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--amber-tint); border: none; border-radius: 16px 16px 0 0; padding: 12px 20px; }
.frozen-badge .mono { color: var(--ink); }
.frozen-report { border-radius: 0 0 16px 16px; }

.staged-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #FFFFFF; border: none; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.staged-count { color: var(--meta); font-size: .8rem; }
.staged-btn { background: none; border: none; padding: 0; color: var(--accent); font-family: inherit; font-weight: 500; font-size: .82rem; cursor: pointer; }
.staged-btn:hover { text-decoration: underline; }
.staged-btn.is-locked { opacity: .6; cursor: wait; }

.archive-btn { color: var(--meta); }
.archive-btn:hover { color: var(--red); }

/* ---- login + landing brand ---- */
.login-mark { display: block; color: var(--accent); font-size: .9rem; letter-spacing: .02em; margin-bottom: 14px; }
.login-foot { color: var(--muted); font-size: .72rem; text-align: center; margin: 16px 0 0; }

.landing-body { background: var(--bg); }
.landing { max-width: 860px; margin: 0 auto; padding: 9vh 22px 60px; text-align: center; }
.landing-mark { color: var(--accent); font-size: 1rem; letter-spacing: .04em; margin-bottom: 40px; }
.landing-headline { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; }
.landing-headline-neg { color: var(--muted); }
.landing-sub { max-width: 560px; margin: 0 auto 44px; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; margin-bottom: 40px; }
.mode-card { display: block; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px; color: var(--ink); transition: border-color .12s, transform .12s; }
.mode-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.mode-tag { color: var(--accent); font-size: .74rem; letter-spacing: .08em; }
.mode-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin: 8px 0 6px; }
.mode-text { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 14px; }
.mode-go { color: var(--accent); font-size: .86rem; font-weight: 500; }
/* IDEATION not built yet: a quiet, non-clickable placeholder card. */
.mode-card.is-soon { cursor: default; opacity: .72; }
.mode-card.is-soon:hover { border-color: var(--hair); transform: none; }
.mode-card.is-soon .mode-go { color: var(--muted); }
.mode-soon { color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.landing-actions { margin-bottom: 46px; }
.landing-foot { color: var(--muted); font-size: .74rem; letter-spacing: .04em; }

/* ==========================================================================
   RESPONSIVE — index becomes a drawer, talk lane full-screen, feed default
   ========================================================================== */
@media (max-width: 820px) {
  .only-mobile { display: inline-flex; }
  .app-shell { grid-template-columns: minmax(0,1fr); padding: 8px 14px 60px; }
  .feed-col { max-width: 620px; }

  /* left rail becomes a slide-in drawer */
  .rail-left {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: 82vw; max-width: 320px; max-height: 100vh;
    background: var(--bg); border-right: 1px solid var(--hair);
    padding: 18px 16px; transform: translateX(-104%);
    transition: transform .2s ease; box-shadow: 0 0 40px rgba(31,18,5,.18);
  }
  body.index-open .rail-left { transform: translateX(0); }
  body.index-open::after { content: ""; position: fixed; inset: 0; background: rgba(31,18,5,.3); z-index: 79; }

  /* talk lane fills the screen on mobile */
  .talk-float { width: 100vw; max-width: 100vw; border-left: none; }
}

/* ==========================================================================
   v2.9 — PAGE ONE: top bar · pill row · sidebar · full-width feed · talk column
   Type scale is fixed (Part D). Only accent, verdict colors, and ink carry colour.
   ========================================================================== */

/* ---- fixed top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: 52px; padding: 0 18px;
  background: rgba(250,247,242,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.tb-brand { font-family: "DM Mono", monospace; color: var(--accent); font-size: .92rem; letter-spacing: .02em; white-space: nowrap; }
.tb-brand:hover { text-decoration: none; opacity: .8; }
.tb-search { position: relative; flex: 1 1 auto; max-width: 560px; }
.tb-search-input {
  width: 100%; font-family: inherit; font-size: .8rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair-strong);
  border-radius: 999px; padding: 8px 15px;
}
.tb-search-input::placeholder { color: var(--filter-off); }
.tb-search-input:focus { outline: none; border-color: var(--accent); }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-add { font-family: inherit; font-size: .8rem; font-weight: 500; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.tb-add:hover { background: #9a4824; }
.tb-signout { font-family: inherit; font-size: .8rem; background: none; border: none; color: var(--filter-off); cursor: pointer; }
.tb-signout:hover { color: var(--accent); }

/* search results dropdown */
.tb-results { position: absolute; top: 42px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 16px 46px rgba(31,18,5,.16); max-height: 64vh; overflow-y: auto; z-index: 50; padding: 6px; }
.tb-results[hidden] { display: none; }
.tb-result { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--ink); cursor: pointer; }
.tb-result:hover { background: var(--bg); text-decoration: none; }
.tb-result .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.tb-r-name { flex: 1 1 auto; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-r-meta { font-size: .68rem; color: var(--meta); flex-shrink: 0; }
.tb-r-add { font-size: .7rem; color: var(--accent); flex-shrink: 0; }
.tb-r-empty { padding: 12px 12px; color: var(--filter-off); font-size: .8rem; }
.tb-r-section { padding: 8px 10px 4px; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--meta); }

/* ---- pill row ---- */
.pillrow {
  position: sticky; top: 52px; z-index: 30;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 18px;
  background: rgba(250,247,242,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.vpills { display: flex; gap: 6px; flex-wrap: wrap; }
.vpill { font-family: inherit; font-size: .72rem; color: var(--filter-off); background: transparent; border: 1px solid var(--hair); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.vpill:hover { border-color: var(--accent); color: var(--accent); }
.vpill.is-active { color: #fff; border-color: transparent; }
.vpill[data-filter="all"].is-active { background: var(--ink); }
.vpill[data-filter="red"].is-active { background: var(--red); }
.vpill[data-filter="amber"].is-active { background: var(--amber); }
.vpill[data-filter="green"].is-active { background: var(--green); }
.vpill[data-filter="unchecked"].is-active { background: var(--gray); }
.sector-select { font-family: inherit; font-size: .72rem; color: var(--ink); background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 3px 10px; cursor: pointer; max-width: 200px; }

/* ---- the page grid: sidebar | feed | (talk) ---- */
.page { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
.page.talk-open { grid-template-columns: 232px minmax(0, 1fr) 400px; }

/* ---- sidebar ---- */
.sidebar { position: sticky; top: 96px; align-self: start; height: calc(100vh - 96px); overflow-y: auto; padding: 14px 8px 20px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; }
.side-group { margin-bottom: 6px; }
/* DATABASE (Archived) pinned to the bottom, visually separated */
#grp-database { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hair); }
.side-head { width: 100%; text-align: left; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 8px 6px; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: #8A7E6C; }
.side-head:hover { color: var(--accent); }
.side-caret { font-size: .7em; transition: transform .15s; }
.side-group.collapsed .side-caret { transform: rotate(-90deg); }
.side-group.collapsed .side-list { display: none; }
.side-list { display: flex; flex-direction: column; }
.side-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--ink); }
.side-row:hover { background: var(--bg); text-decoration: none; }
.side-row .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.side-name { flex: 1 1 auto; font-size: 11.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-case { font-family: "DM Mono", monospace; font-size: 9px; color: var(--meta); flex-shrink: 0; }
.side-empty { color: var(--filter-off); font-size: .74rem; padding: 8px; }

/* archived rows inside DATABASE */
.side-arch-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 8px; }
.side-arch-name { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink); }
.side-arch-name .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.side-arch-actions { display: flex; gap: 12px; padding-left: 15px; }

/* ---- full-width feed rows ---- */
.feed2 { min-width: 0; padding: 14px 18px 60px; }
.frow { position: relative; background: var(--surface); border-radius: 12px; padding: 14px 20px 12px 22px; margin-bottom: 12px; overflow: hidden; }
.frow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gray); }
.frow[data-verdict="red"]::before { background: var(--red); }
.frow[data-verdict="amber"]::before { background: var(--amber); }
.frow[data-verdict="green"]::before { background: var(--green); }
.frow[data-verdict="unchecked"]::before { background: var(--gray); }

.frow-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.frow-name { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
a.frow-name:hover { color: var(--accent); text-decoration: none; }
.frow-case { font-family: "DM Mono", monospace; font-size: 10.5px; color: var(--meta); }
.mpill { font-size: 10.5px; color: var(--meta); background: var(--bg); border: 1px solid var(--hair); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.frow-date { margin-left: auto; font-family: "DM Mono", monospace; font-size: 10.5px; color: var(--meta); white-space: nowrap; }
.frow-body { margin: 9px 0 2px; font-size: 12.5px; line-height: 1.6; color: var(--posttext); white-space: pre-wrap; }
.frow-body.muted { color: var(--filter-off); }
.frow-body .reader-toggle { color: var(--accent); cursor: pointer; margin-left: 4px; }
.frow .reader { margin-top: 10px; padding: 10px 0 0; border-top: 1px solid var(--foothair); font-size: 12.5px; color: var(--posttext); }
.frow .reader[hidden] { display: none; }
.frow .action-line, .profile-main .action-line { font-size: 11.5px; }
.frow .queries { margin-top: 8px; }

/* whisper 8-button row — 10px faint */
.frow .action-row, .profile-main .action-row { margin-top: 14px; padding-top: 10px; }
.wbtn { font-size: 10px; }

/* ---- talk lane as a true column ---- */
.talk-col { display: none; }
.page.talk-open .talk-col, .profile-page.talk-open .talk-col { display: flex; flex-direction: column; }
.talk-col {
  position: sticky; top: 96px; height: calc(100vh - 96px);
  background: var(--surface); border-left: 1px solid var(--hair);
}
.talk-col .talk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--foothair); }
.talk-col .talk-note { padding: 12px 16px; color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--foothair); }
.talk-col .talk-body { padding: 12px 16px; flex: 1 1 auto; overflow-y: auto; }

/* ---- profile page under the v2.9 top bar ---- */
.profile-page { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.profile-page.talk-open { grid-template-columns: minmax(0, 1fr) 400px; }
.profile-main { min-width: 0; max-width: 820px; margin: 0 auto; padding: 0 20px 60px; width: 100%; }

/* ---- responsive: sidebar drawer, talk full-screen ---- */
@media (max-width: 860px) {
  .page, .page.talk-open { grid-template-columns: minmax(0,1fr); }
  .profile-page, .profile-page.talk-open { grid-template-columns: minmax(0,1fr); }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: 82vw; max-width: 300px; height: 100vh;
    background: var(--bg); border-right: 1px solid var(--hair);
    transform: translateX(-104%); transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(31,18,5,.18);
  }
  body.side-open .sidebar { transform: translateX(0); }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(31,18,5,.3); z-index: 79; }
  .page.talk-open .talk-col, .profile-page.talk-open .talk-col {
    position: fixed; inset: 0; z-index: 85; width: 100vw; height: 100vh; border-left: none;
  }
}
@media (min-width: 861px) { .tb-menu { display: none; } }

/* ---- add-thesis autocomplete over the master ---- */
.ac-wrap { position: relative; }
.ac-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin-top: 4px; background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; box-shadow: 0 12px 34px rgba(31,18,5,.14); max-height: 240px; overflow-y: auto; }
.ac-list[hidden] { display: none; }
.ac-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; font-size: .85rem; color: var(--ink); cursor: pointer; }
.ac-item:hover { background: var(--bg); color: var(--accent); }
.ac-sec { color: var(--meta); font-size: .72rem; flex-shrink: 0; }
.ac-meta { margin-top: 6px; font-size: .74rem; color: var(--meta); }
.ac-meta[hidden] { display: none; }

/* ---- back arrow in the top bar ---- */
.tb-back { font-size: 1.05rem; line-height: 1; color: var(--filter-off); padding: 4px 4px; border-radius: 6px; }
.tb-back:hover { color: var(--accent); text-decoration: none; }

/* ---- search as a centered command overlay ---- */
.tb-search-input { cursor: pointer; }
.search-ov { position: fixed; inset: 0; z-index: 90; background: rgba(31,18,5,.32); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px; }
.search-ov[hidden] { display: none; }
.search-ov-panel { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 24px 64px rgba(31,18,5,.26); overflow: hidden; }
.search-ov-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.search-ov-input { flex: 1 1 auto; font-family: "DM Mono", monospace; font-size: .95rem; color: var(--ink); background: transparent; border: none; outline: none; }
.search-ov-input::placeholder { color: var(--filter-off); }
.search-ov-esc { font-family: "DM Mono", monospace; font-size: .64rem; color: var(--meta); border: 1px solid var(--hair); border-radius: 5px; padding: 2px 6px; }
/* ✕ clear inside the search overlay — quiet, appears only when the box has text. */
.search-ov-clear { font-family: inherit; font-size: .9rem; line-height: 1; color: var(--filter-off); background: none; border: none; cursor: pointer; padding: 2px 4px; }
.search-ov-clear:hover { color: var(--accent); }
.search-ov-body { max-height: 56vh; overflow-y: auto; padding: 8px; }
.so-section { padding: 8px 10px 4px; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--meta); }
.so-hint { padding: 16px 12px; color: var(--filter-off); font-size: .82rem; }
.so-recent { display: block; width: 100%; text-align: left; background: none; border: none; font-family: inherit; font-size: .86rem; color: var(--ink); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.so-recent:hover { background: var(--bg); color: var(--accent); }
.so-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; color: var(--ink); }
.so-row:hover { background: var(--bg); text-decoration: none; }
.so-row .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.so-name { flex: 1 1 auto; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-meta { font-size: .7rem; color: var(--meta); flex-shrink: 0; }
.so-add { font-size: .72rem; color: var(--accent); flex-shrink: 0; }

/* ---- expanded inline report must always be closable ---- */
.reader-bar { display: flex; justify-content: flex-end; padding: 2px 0 8px; }
.reader-bar + * { margin-top: 0; }
.reader-close { font-family: inherit; font-size: 10.5px; background: none; border: none; color: var(--filter-off); cursor: pointer; padding: 2px 4px; }
.reader-close:hover { color: var(--accent); }
.reader-bar.bottom { border-top: 1px solid var(--foothair); margin-top: 10px; padding-top: 8px; }

/* ---- profile as a thread (report closed by default) ---- */
.back-link { display: inline-block; margin: 14px 0 2px; font-size: .8rem; color: var(--filter-off); }
.back-link:hover { color: var(--accent); text-decoration: none; }
.report-section { margin: 22px 0 0; scroll-margin-top: 100px; }
.report-toggle { font-family: inherit; font-size: .82rem; font-weight: 500; background: none; border: none; padding: 8px 0; color: var(--accent); cursor: pointer; }
.report-toggle:hover { text-decoration: underline; }
.report-toggle .caret { font-size: .8em; }
.report-body[hidden] { display: none; }
.report-body { margin-top: 6px; }
/* compact single-line thread events */
.thread-item.tline { display: flex; align-items: center; gap: 10px; }
.tline .thread-summary { flex: 1 1 auto; }
.tline-links { display: inline-flex; gap: 12px; flex-shrink: 0; }
.tline-date { color: var(--meta); flex-shrink: 0; }

/* ==========================================================================
   v3.0 — THREAD-FIRST COMPANY PAGE
   ========================================================================== */
.cp-main { min-width: 0; padding: 0 24px 90px; }
.back-link { display: inline-block; margin: 14px 0 6px; font-size: .8rem; color: var(--filter-off); }
.back-link:hover { color: var(--accent); text-decoration: none; }

/* compact header line (mirrors a feed row) */
.cp-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0 14px; border-bottom: 1px solid var(--foothair); margin-bottom: 16px; }
.cp-name { font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.cp-case { font-family: "DM Mono", monospace; font-size: 10.5px; color: var(--meta); }
.cp-lamp { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); letter-spacing: .03em; }
.cp-lamp .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.cp-since { font-size: 11px; color: var(--meta); }
.cp-archive { margin-left: auto; }

/* body grid: reference rail | thread | year jumper */
.cp-body { display: grid; grid-template-columns: 190px minmax(0, 1fr) 40px; gap: 22px; align-items: start; }

/* reference rail */
.cp-rail { position: sticky; top: 96px; display: flex; flex-direction: column; }
.rail-line { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 12px; color: var(--ink); padding: 9px 4px; border-bottom: 1px solid var(--foothair); }
.rail-line:hover { color: var(--accent); }
.rail-line .caret { color: var(--meta); font-size: .8em; margin-right: 4px; }
.rail-panel { padding: 8px 4px 12px; border-bottom: 1px solid var(--foothair); }
.rail-panel[hidden] { display: none; }
.rail-vrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 11.5px; }
.rail-vrow .v-open { display: inline-flex; gap: 8px; align-items: baseline; background: none; border: none; padding: 0; font-family: inherit; font-size: 11.5px; color: var(--accent); cursor: pointer; }
.rail-vrow .v-open:hover { text-decoration: underline; }
.rail-vrow .vdate { color: var(--meta); }
.rail-vrow .v-links { display: inline-flex; gap: 10px; }
.rail-empty { color: var(--filter-off); font-size: 11px; padding: 4px; }
.rail-copy { margin-top: 8px; }
.rail-panel-head { font-size: 10.5px; color: var(--meta); padding: 2px 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--foothair); }
.rail-panel-head .rail-head-note { color: var(--filter-off); }

/* thread */
.cp-thread { position: relative; min-width: 0; }
.tbox { background: var(--surface); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; position: relative; scroll-margin-top: 100px; }
.tbox.version { padding-left: 18px; }
.tbox.version::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #D3B879; border-radius: 3px 0 0 3px; }
/* v4.5 CHAT WIDTH — INPUT boxes (their) are a narrow 60% column FLUSH against the right
   edge, with a clear empty left side (unmistakably a chat). Right edge == our boxes' right
   edge. margin-left:auto pushes it right in the block-flow thread; margin-right:0 pins the
   right edge; width+max-width both 60% so content can NEVER widen it; align-self:flex-end
   keeps it flush even if the thread ever becomes flex. OUR boxes (thesis + versions) stay
   flush LEFT full-width with their gold bar. */
.tbox.their { width: 60%; max-width: 60%; margin-left: auto; margin-right: 0; align-self: flex-end; }
.tbox.their .tbox-summary { min-width: 0; overflow-wrap: break-word; }   /* long summaries wrap INSIDE the box, never widen it */
@media (max-width: 720px) { .tbox.their { width: 80%; max-width: 80%; } }   /* mobile: wider column, still flush right */
.tbox-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tbox-chip { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--meta); background: var(--bg); border: 1px solid var(--hair); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
/* version chips share the ONE type-chip tint — the 3px gold left bar is the sole version marker */
.tbox-summary { flex: 1 1 auto; font-size: 12.5px; color: var(--posttext); }
.tbox-date { margin-left: auto; font-family: "DM Mono", monospace; font-size: 10.5px; color: var(--meta); white-space: nowrap; }
.tbox-actions { margin-top: 9px; font-size: 11.5px; display: flex; flex-wrap: wrap; align-items: center; }
.tbox-actions a { color: var(--head); cursor: pointer; }
.tbox-actions a:hover { color: var(--accent); text-decoration: underline; }
.tbox-actions .sep { color: #E4DACB; margin: 0 8px; }
/* v4.0: the "Files:" line under a version box (and the Thesis box's inline files) */
.tbox-files { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; }
.tbox-files .files-label, .tbox-files .fb-label { color: var(--meta); }
.tbox-files .files-sep { color: var(--sepdot); }
.tbox-files .chip { font-size: .74rem; padding: 2px 9px; }
/* v4.0 TWO FILE-CHIP STYLES (shared, used everywhere files appear):
   .chip = the neutral SOURCE paperclip (unchanged); .chip-report = the vbomkara
   REPORT chip (a version's own stored report PDF), terracotta-tinted + doc mark. */
.chip-report {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: .74rem; padding: 2px 9px; border-radius: 999px;
  /* v4.1: the vbomkara chip sits in the SAME quiet family as the sector pill
     (.chip-sector) — same tint, border, and ink; the doc mark inherits this ink
     via currentColor. Distinction from the source paperclip is carried by the
     doc mark + "vN report · vbomkara" label, not by colour. */
  background: #F2ECE3; border: 1px solid #E5DCCE; color: #6B5A45;
}
.chip-report .ri-doc { flex: none; }   /* the doc mark inherits the chip colour via currentColor */
.chip-report:hover { border-color: var(--accent); }
.chip-report.is-pending { cursor: default; opacity: .65; }
.tbox-more { display: inline-block; margin-top: 9px; font-size: 11.5px; color: var(--accent); cursor: pointer; }
/* v4.2 PASTED-NOTE chip — source-chip family, text-note mark instead of the paperclip */
.chip-note {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: .74rem; padding: 2px 9px; border-radius: 999px;
  background: #F2ECE3; border: 1px solid #E5DCCE; color: #6B5A45;
}
.chip-note:hover { border-color: var(--accent); color: var(--accent); }
/* inline pasted-text panel opened by a pasted-note chip (opens in place) */
.note-panel { margin-top: 8px; border: 1px solid var(--hair); border-radius: var(--radius-sm); background: var(--surface); padding: 10px 12px; }
.note-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.note-panel-head .note-close { color: var(--accent); cursor: pointer; font-size: 11.5px; }
.note-body { font-size: 12.5px; line-height: 1.6; color: var(--ink); }

/* v4.2 the Creating PULSE + red FAILED state */
.job-pulse { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: var(--radius-sm); background: var(--surface); }
.job-pulse.is-failed { border-color: var(--red); background: #FBEDEA; }
.pulse-head { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.pulse-phases { margin-top: 8px; font-size: 11.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pulse-phases .ph-arrow { color: var(--sepdot); }
.pulse-phases .ph { color: var(--muted); }
.pulse-phases .ph-done { opacity: .65; }
.pulse-phases .ph-now { color: var(--accent); font-weight: 500; }
.pulse-phases .ph-next { opacity: .45; }
.pulse-phases .ph-long { font-weight: 400; opacity: .8; }
.pulse-clock { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.pulse-failed { font-size: 12.5px; color: var(--red); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-badge { background: var(--red); color: #fff; border-radius: 4px; padding: 1px 7px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.tbox-more:hover { text-decoration: underline; }
.tbox-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--foothair); font-size: 12.5px; line-height: 1.6; color: var(--posttext); }
.tbox-body[hidden] { display: none; }
.tbox-body table { border-collapse: collapse; width: 100%; margin: .6em 0; font-size: .88rem; display: block; overflow-x: auto; }
.tbox-body th, .tbox-body td { border: 1px solid var(--foothair); padding: 6px 9px; text-align: left; }
.tbox-body h1, .tbox-body h2, .tbox-body h3 { color: var(--ink); margin: .8em 0 .3em; }
.tbox-body :first-child { margin-top: 0; }
.tbox-close { margin-top: 12px; text-align: right; }
.tbox-close.top { margin-top: 0; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--foothair); }
.tbox-collapse { font-size: 11px; color: var(--filter-off); cursor: pointer; }
.tbox-collapse:hover { color: var(--accent); }
.qbox { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--foothair); }
.qbox[hidden] { display: none; }
.frozen-badge-line { font-family: "DM Mono", monospace; font-size: 10.5px; color: var(--ink); background: var(--amber-tint); border-radius: 6px; padding: 4px 8px; display: inline-block; margin-bottom: 8px; }

/* workbench (under the newest box only) */
.workbench { margin-top: 6px; padding: 14px 16px; background: var(--surface); border-radius: 12px; }
.wb-title { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--meta); margin-bottom: 10px; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-chip { font-family: inherit; font-size: 11px; background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--muted); }
.wb-chip:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wb-chip:disabled { opacity: .4; cursor: not-allowed; }
/* all eight chips share ONE quiet outline pill; only enabled/faded differs (v3.2) */
.wb-panel { margin-top: 12px; border-top: 1px solid var(--foothair); padding-top: 12px; }
.wb-panel[hidden] { display: none; }
.wb-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wb-panel-title { font-size: 12px; color: var(--ink); }
.wb-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.staged-bar2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; border-top: 1px solid var(--foothair); padding-top: 12px; }
.staged-bar2[hidden] { display: none; }
.staged-list { font-size: 11.5px; color: var(--meta); display: flex; flex-wrap: wrap; align-items: center; }
.staged-lead { color: var(--meta); margin-right: 4px; }
/* v4.3 each staged item as a chip carrying an unstage ✕ (removes it before Create) */
.staged-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 2px 8px; margin: 0 6px 4px 0; }
.staged-chip .unstage { color: var(--muted); cursor: pointer; font-size: 12px; line-height: 1; text-decoration: none; }
.staged-chip .unstage:hover { color: var(--red); }
.staged-create { font-family: inherit; font-size: 12px; font-weight: 500; background: none; border: none; color: var(--accent); cursor: pointer; }
.staged-create:hover { text-decoration: underline; }

/* year/quarter jumper on the thread's right edge */
.year-jump { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 8px; align-items: center; padding-top: 4px; }
.year-jump a { font-family: "DM Mono", monospace; font-size: 10px; color: var(--meta); cursor: pointer; }
.year-jump a:hover { color: var(--accent); }

/* frozen version expanded inline (full width, from the rail) */
.frozen-view { margin-bottom: 16px; }
.frozen-view[hidden] { display: none; }
.frozen-view .tbox-body { border-top: none; padding-top: 0; }
.frozen-view .frozen-badge-line { margin-bottom: 0; }
.wb-panel #wb-note { margin-top: 10px; }

/* floating ↑ Top */
.top-btn { position: fixed; right: 18px; bottom: 18px; z-index: 55; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 999px; padding: 8px 13px; font-family: inherit; font-size: 12px; color: var(--ink); cursor: pointer; box-shadow: 0 6px 20px rgba(31,18,5,.14); opacity: 0; pointer-events: none; transition: opacity .18s; }
.top-btn.show { opacity: 1; pointer-events: auto; }
.top-btn:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 860px) {
  .cp-main { padding: 0 14px 90px; }
  .cp-body { grid-template-columns: minmax(0, 1fr); }
  .cp-rail { position: static; margin-bottom: 12px; }
  .year-jump { display: none; }
}

/* ==========================================================================
   v3.1 DESIGN-SYSTEM ENFORCEMENT (visual audit, items 5–11)
   One card system · one pill system · two button styles · color discipline ·
   spacing rhythm · type scale · one hairline family. Placed last so single-
   class normalisations win by source order.
   ========================================================================== */

/* ---- 5 · ONE CARD SYSTEM: same radius; flat content vs hairline dialog; one shadow ---- */
.frow, .tbox, .workbench, .frozen-card,
.modal-card, .login-card, .search-ov-panel, .mode-card, .search-box {
  border-radius: var(--card-radius);
}
.frow, .tbox, .workbench, .frozen-card { border: 1px solid var(--hair); box-shadow: none; }
.modal-card, .login-card, .search-ov-panel, .mode-card {
  border: 1px solid var(--hair); box-shadow: var(--shadow-pop);
}
.mode-card { box-shadow: none; }                    /* static landing cards: no shadow */
.frow    { padding: 16px 20px 16px 22px; margin: 0 0 12px; }
.tbox    { padding: 15px 18px; margin: 0 0 18px; }
.workbench { padding: 16px; }
.modal-card { padding: 20px; }
.login-card { padding: 24px; }
.mode-card  { padding: 24px; }
.ac-list, .top-btn { box-shadow: var(--shadow-pop); }

/* ---- 6 · ONE PILL SYSTEM: shared geometry, differ only by colour role ---- */
.vpill, .mpill, .tbox-chip, .wb-chip, .chip, .sector-select, .arch-tag {
  font-size: 10.5px; line-height: 1.5; border-radius: var(--pill-radius);
  padding: 4px 11px; border: 1px solid var(--hair); white-space: nowrap;
}
/* type chips (item 3): ONE geometry, ONE tint — legible ink on soft cream, never faint.
   Version chips are IDENTICAL to all others; the 3px gold left bar is the only marker. */
.tbox-chip, .tbox.version .tbox-chip {
  color: var(--ink); background: var(--foothair); border-color: var(--hair);
  font-weight: 500; letter-spacing: .04em; font-size: 10.5px; padding: 4px 11px;
}

/* v3.5 — the ONLY two badge styles, shared site-wide (legible, never faint).
   chip-sector = the company's sector; chip-stage = a version/type stage badge.
   Used on both pages and future pages inherit automatically. NOT for controls
   (verdict filter pills, workbench chips, paperclip chips, staged-item chips). */
.chip-sector, .chip-stage {
  display: inline-block; font-size: 10.5px; line-height: 1.5; font-weight: 400;
  letter-spacing: 0; text-transform: none;
  border-radius: var(--pill-radius); padding: 4px 11px; border: 1px solid; white-space: nowrap;
}
.chip-sector { background: #F2ECE3; border-color: #E5DCCE; color: #6B5A45; }
.chip-stage  { background: #F4EFE8; border-color: transparent; color: #93826C; }

/* ---- 7 · TWO BUTTON STYLES ONLY ---- */
/* PRIMARY = filled accent; SECONDARY = quiet outline OR plain accent text. */
.btn { border-radius: var(--radius-sm); border: 1px solid var(--hair-strong); background: var(--surface); color: var(--ink); font-weight: 500; font-size: .84rem; padding: 8px 14px; }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-accent, .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover:not(:disabled), .btn-primary:hover:not(:disabled) { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); }
.btn-ghost { background: none; border-color: transparent; color: var(--accent); }
.btn-ghost:hover:not(:disabled) { color: var(--accent-ink); border-color: transparent; }
.tb-add:hover { background: var(--accent-ink); }

/* ---- 8 · COLOUR DISCIPLINE: accent focus rings, no browser blue ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.input:focus, .textarea:focus, input:focus, textarea:focus, select:focus, .search-ov-input:focus { outline: none; border-color: var(--accent); }
.msg.error { color: var(--red); }
.msg.ok { color: var(--green); }

/* ---- 9 · SPACING RHYTHM (4px scale) on shared containers ---- */
.field { margin-bottom: 12px; }
.panel-actions, .wb-actions, .modal-head { gap: 12px; }
.section-title { margin: 24px 0 8px; }

/* ---- 10 · TYPE SCALE: mono for every date / time / case ID / version no. ---- */
.mono, .frow-case, .frow-date, .cp-case, .tbox-date, .side-case, .vdate, .frozen-badge-line { font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- 11 · HAIRLINES: one family, 1px (vars already routed) ---- */
.topbar, .pillrow { border-bottom: 1px solid var(--hair); }
.sidebar { border-right: 1px solid var(--hair); }
.talk-col { border-left: 1px solid var(--hair); }

/* ---- feed rows are tappable (item 1) ---- */
.frow { cursor: pointer; }
.frow a, .frow .chip, .frow .q-toggle { cursor: pointer; }

/* ---- reference-rail one-list bits (item 2) ---- */
.rail-analyst { border-bottom: 1px solid var(--foothair); padding-bottom: 8px; margin-bottom: 4px; }
.v-label { font-size: 11.5px; color: var(--ink); }
.rail-vrow .vdate { color: var(--meta); margin-left: 4px; }
.v-note { color: var(--meta); font-size: 10.5px; }
.rail-vrow .v-links a { color: var(--accent); cursor: pointer; }

/* ---- house-style DROP ZONE (item 4) ---- */
.dropzone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; min-height: 64px; padding: 0 16px; cursor: pointer;
  border: 1.5px dashed var(--hair-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--filter-off); font-size: .85rem;
  transition: border-color .12s, color .12s, background .12s;
}
.dropzone input[type=file] { display: none; }   /* keep the native control out of flow */
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: var(--accent); background: rgba(176,84,43,.05); }
.dropzone.has-file { border-style: solid; border-color: var(--accent); color: var(--ink); }
.dropzone.dz-error { border-style: solid; border-color: var(--red); color: var(--red); background: var(--red-tint); }
.dz-ico { font-size: 1rem; line-height: 1; }
.dz-text { line-height: 1.3; }

/* ---- auto-growing paste box (item 2): ~3 rows, grows to ~10 then scrolls ---- */
.autogrow { min-height: 72px; max-height: 240px; overflow-y: auto; resize: none; }

/* ---- workbench: a version whose frozen PDF still needs completing ---- */
.wb-pdf-pending { font-size: 11.5px; color: var(--amber); background: var(--amber-tint); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 12px; }
.wb-pdf-pending .link-btn { color: var(--accent); }

/* ============================================================================
   7b-2 · THE IDEATION SHELF — ideation-specific bits only; everything else
   (.topbar, .pillrow/.vpill, .frow*, .dropzone, .modal-*, .ac-*, .chip-sector,
   .dot, .spin, .job-pulse/.ph-*, .search-ov*) is reused from above.
   ============================================================================ */
.id-feed-wrap { max-width: 860px; margin: 0 auto; }

/* verdict lamp = coloured dot PLUS the letter (colour decorates, letter carries) */
.id-lamp { display: inline-flex; align-items: center; gap: 5px; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; padding: 2px 8px 2px 6px; border-radius: 999px; border: 1px solid var(--hair-strong); line-height: 1; }
.id-lamp .dot { width: 8px; height: 8px; flex: 0 0 8px; }
.id-lamp-s { color: var(--green); border-color: rgba(62,122,70,.35); background: var(--green-tint); }
.id-lamp-p { color: var(--amber); border-color: rgba(176,124,31,.35); background: var(--amber-tint); }
.id-lamp-d { color: var(--red);   border-color: rgba(179,38,30,.35);  background: var(--red-tint); }
.id-lamp-gray { color: var(--gray); }

.id-looks { font-family: "DM Mono", monospace; font-size: 10.5px; color: var(--meta); }
.frow-head .id-looks { margin-left: 2px; }
.id-reason { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }

/* the brief: 3-line clamp, "Read more ▾" unfolds the full brief in place */
.id-brief-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.id-brief-clamp[hidden] { display: none; }
.frow .id-brief-full { white-space: normal; }
.id-more, .id-retry { color: var(--accent); cursor: pointer; }
.id-more:hover, .id-retry:hover { text-decoration: underline; }

/* the guard box above Run */
.id-guard { font-size: .84rem; border-radius: var(--radius-sm); padding: 8px 10px; margin: -2px 0 12px; line-height: 1.5; }
.id-guard[hidden] { display: none; }
.id-guard div + div { margin-top: 3px; }
.id-guard.is-info { color: var(--posttext); background: #F5EFE6; border: 1px solid var(--hair); }
.id-guard.is-bad  { color: var(--red); background: var(--red-tint); border: 1px solid rgba(179,38,30,.25); }

.id-opt { color: var(--filter-off); font-weight: 400; font-size: .78rem; }

/* removable peer chips + attached-file rows */
.id-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.id-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; background: #F2ECE3; border: 1px solid #E5DCCE; color: #6B5A45; border-radius: 999px; padding: 3px 6px 3px 11px; }
.id-chip-x, .id-file-x { border: none; background: none; color: var(--filter-off); cursor: pointer; font-size: .8rem; line-height: 1; padding: 2px; }
.id-chip-x:hover, .id-file-x:hover { color: var(--red); }
.id-file-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.id-file-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--posttext); background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: 5px 8px 5px 10px; }
.id-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* brief intent chips (one-shot toggles) */
.id-intents { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.id-intent { font-family: inherit; font-size: .74rem; color: var(--filter-off); background: transparent; border: 1px solid var(--hair-strong); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.id-intent:hover { border-color: var(--accent); color: var(--accent); }
.id-intent.is-on { color: #fff; background: var(--accent); border-color: var(--accent); }



/* ==========================================================================
   v7.5 INSPECT calm — the analyst-reply drawer (on demand) + its orange button.
   The reply column mirrors the talk-col right column (pushes, never overlaps).
   Orange is reserved site-wide for exactly one thing now: an analyst reply.
   ========================================================================== */
.reply-col { display: none; position: sticky; top: 96px; height: calc(100vh - 96px);
  background: var(--surface); border-left: 1px solid var(--hair); flex-direction: column; }
.profile-page.reply-open .reply-col { display: flex; }
.profile-page.reply-open { grid-template-columns: minmax(0, 1fr) 400px; }
.reply-col .reply-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; border-bottom: 1px solid var(--foothair); }
.reply-col .reply-title { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.reply-col #reply-body { padding: 16px; flex: 1 1 auto; overflow-y: auto; }
.reply-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.reply-sum { font-size: 12.5px; color: var(--posttext); line-height: 1.55; margin-bottom: 12px; }
.reply-feed { font-size: 10.5px; color: var(--head); margin-bottom: 16px; }
.reply-files { border-top: 1px solid var(--foothair); padding-top: 12px; }
.reply-files-label { display: block; font-size: 11px; color: var(--meta); margin-bottom: 8px; }
.reply-note { font-size: 12px; color: var(--ink); line-height: 1.55; margin-top: 8px;
  padding: 10px 12px; background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius-sm); }
/* the one orange element: the analyst-reply button on a version box */
.reply-btns { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.reply-view { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 11px;
  color: var(--accent); background: rgba(176,84,43,.07); border: 1px solid rgba(176,84,43,.28);
  border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.reply-view:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .profile-page.reply-open { grid-template-columns: minmax(0,1fr); }
  .profile-page.reply-open .reply-col { position: fixed; inset: 0; z-index: 85; width: 100vw; height: 100vh; border-left: none; }
}

/* ==========================================================================
   v7.5 INSPECT — the Talk lane wired as an ephemeral, company-aware chat.
   Message log + composer inside the existing right-hand talk-col.
   ========================================================================== */
.talk-log { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.talk-hello { font-size: 12px; color: var(--muted); line-height: 1.6; }
.talk-msg { font-size: 12.5px; line-height: 1.55; padding: 9px 12px; border-radius: 12px; max-width: 92%; overflow-wrap: break-word; }
.talk-msg.me { align-self: flex-end; background: rgba(176,84,43,.08); color: var(--ink); border: 1px solid rgba(176,84,43,.18); }
.talk-msg.ai { align-self: flex-start; background: var(--bg); color: var(--posttext); border: 1px solid var(--hair); }
.talk-msg.ai :first-child { margin-top: 0; } .talk-msg.ai :last-child { margin-bottom: 0; }
.talk-msg.ai table { border-collapse: collapse; font-size: .92em; margin: .4em 0; }
.talk-msg.ai td, .talk-msg.ai th { border: 1px solid var(--hair); padding: 3px 7px; }
.talk-msg.talk-think { color: var(--muted); border-style: dashed; }
.talk-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--foothair); }
.talk-form .talk-composer { flex: 1 1 auto; min-height: 42px; max-height: 160px; height: auto; resize: none;
  font-family: inherit; font-size: .88rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: 9px 11px; }
.talk-send { flex: none; align-self: stretch; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .82rem; font-weight: 500; padding: 0 15px; cursor: pointer; }
.talk-send:hover:not(:disabled) { background: var(--accent-ink); border-color: var(--accent-ink); }
.talk-send:disabled { opacity: .5; cursor: not-allowed; }

/* copy button on a chat answer (send it on to an analyst) */
.talk-msg .talk-copy { display: inline-block; margin-top: 9px; font-family: inherit; font-size: 10.5px; color: var(--accent); background: none; border: none; padding: 0; cursor: pointer; }
.talk-msg .talk-copy:hover { text-decoration: underline; }
