/* fundThumb — super simple. Typewriter/monospace, highly legible, no rules across
   the page. Warm cream paper, ink text, separation by whitespace, not lines. */
:root {
  --bg: #f4efe4; --surface: #fbf7ee; --paper: #ece5d6; --ink: #23211c; --muted: #807c70;
  --line: #e2dccd; --accent: #355c8a; --pos: #2c6a4f; --neg: #a23a2c;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", "SFMono-Regular", Menlo, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: var(--mono); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.65; font-size: 15px;
  letter-spacing: -0.01em;
}

/* ---- masthead (no rules) ---- */
.masthead { text-align: center; padding: 30px 20px 6px; }
.wordmark { display: inline-block; height: 60px; width: auto; max-width: 88%; vertical-align: middle; }
/* firm brand (top) */
.brand { min-height: 56px; display: flex; align-items: center; justify-content: center; }
.firmlogo { max-height: 56px; max-width: 320px; width: auto; object-fit: contain; }
.firmname { font-family: var(--mono); font-weight: 700; font-size: 30px; letter-spacing: -0.5px; }
/* fundThumb footer — pinned to the bottom of the viewport, content scrolls above */
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); padding: 9px 20px; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 10px; }
.poweredby { display: inline-flex; align-items: center; text-decoration: none; opacity: 0.85; }
.poweredby:hover { opacity: 1; }
.pb-logo { height: 20px; width: auto; display: block; }
.gear { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; line-height: 0; }
.gear:hover { color: var(--ink); }
.gear .ico { width: 18px; height: 18px; }
.flbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 10px 0 4px; }
.dateline {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin: 8px auto 0; font-size: 11px; color: var(--muted);
}
.dateline .tag { color: var(--muted); }
.dateline .edition { color: var(--muted); }

main { max-width: 760px; margin: 0 auto; padding: 24px 20px 84px; }
.bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
h1 { font-family: var(--mono); font-size: 21px; font-weight: 700; letter-spacing: -0.3px; }
h2 { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); font-weight: 400; }
.empty { padding: 48px 0; text-align: center; }

/* ---- section nav (plain text, no underline rule) ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 22px 0 18px; }
.tabs { display: flex; gap: 22px; margin-bottom: 20px; }
.tab {
  border: 0; background: transparent; padding: 0; font-family: var(--mono);
  font-weight: 400; font-size: 13px; color: var(--muted); cursor: pointer;
}
.tab.on { color: var(--ink); font-weight: 700; }
.tab:hover { color: var(--ink); }
.tab.signout { margin-left: auto; }

/* ---- cards (soft blocks, no borders/lines) ---- */
.card { background: var(--surface); border: 0; border-radius: 8px; padding: 20px 22px; }
/* Updates are collapsible cards: a clickable header, body revealed on .open */
.update { margin-bottom: 12px; padding: 0; overflow: hidden; }
.u-head { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; color: inherit; padding: 15px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.u-head:hover { background: rgba(0,0,0,0.018); }
.u-head-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.u-title { display: flex; align-items: center; gap: 9px; }
.u-title h2 { margin: 0; font-size: 16px; }
.u-period { font-size: 12px; }
.u-preview { font-size: 13px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update.open .u-preview { display: none; }
.chev { color: var(--muted); flex: 0 0 auto; margin-top: 4px; transition: transform 0.15s ease; }
.chev .ico { width: 18px; height: 18px; }
.update.open .chev { transform: rotate(180deg); }
.u-body { display: none; padding: 0 22px 18px; }
.update.open .u-body { display: block; }
.u-body .summary { margin-top: 4px; }
.u-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.atts { margin-top: 14px; }
.atts-h { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.att-row { display: flex; flex-wrap: wrap; gap: 8px; }
.att { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 6px; padding: 5px 10px; font-size: 12.5px; }
.att .ico { width: 13px; height: 13px; color: var(--muted); }
.u-foot-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.reply { display: inline-flex; align-items: center; gap: 6px; }
.reply .ico { width: 14px; height: 14px; }

/* modal */
.askbar.scoped input { border-color: var(--accent); background: var(--surface); }
/* Per-company notes (shared, attributed) */
.notes-card { margin-top: 12px; }
.notes-h { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.notes-h .ico { width: 15px; height: 15px; color: var(--muted); }
/* collapsible notes */
.notes-toggle { width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; text-align: left; margin-bottom: 0; }
.notes-toggle .chev { margin-left: auto; transition: transform 0.15s ease; }
.notes-card.collapsed .notes-toggle { margin-bottom: 0; }
.notes-card.collapsed .notes-toggle .chev { transform: rotate(-90deg); }
.notes-card.collapsed .notes-body { display: none; }
.notes-body { margin-top: 14px; }
.cnote-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.cnote-meta { font-size: 11.5px; }
.cnote-author { font-weight: 700; }
.cnote-text { font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; margin-top: 2px; }
.cnote-del { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font: inherit; }
.cnote-del:hover { color: var(--neg); text-decoration: underline; }
.note-add { display: flex; gap: 8px; align-items: flex-end; }
.note-add textarea { flex: 1; margin-bottom: 0; }
.co-note { display: inline-flex; vertical-align: middle; color: var(--muted); margin-left: 8px; }
.co-note .ico { width: 13px; height: 13px; }
.co-suggest { display: inline-flex; vertical-align: middle; color: var(--accent); margin-left: 8px; }
.co-suggest .ico { width: 13px; height: 13px; }
.suggest-note { color: var(--accent); }

.ai-glyph { display: inline-flex; vertical-align: middle; color: var(--muted); cursor: default; }
.ai-glyph .ico { width: 14px; height: 14px; }
.ai-glyph:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(10px); background: var(--ink); color: var(--surface); font-size: 13px; padding: 10px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; z-index: 200; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-wrap { position: fixed; inset: 0; background: rgba(20,18,14,0.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.modal { background: var(--surface); border-radius: 10px; max-width: 640px; width: 100%; max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-x { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 4px; }
.modal-x:hover { color: var(--ink); }
.modal-body { padding: 16px 20px; overflow: auto; }
.orig-meta { font-size: 12px; margin: 0 0 12px; }
.orig-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; margin: 0; font-family: var(--mono); }
.summary { margin: 10px 0 12px; line-height: 1.65; font-size: 14.5px; }

/* hover tooltip for sentiment dots / trends (any element with data-tip) */
.sentiment, .tip { position: relative; }
.dots-trend.tip { display: inline-flex; }
.sentiment::after, .tip::after, .tl-dot::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: var(--ink); color: var(--surface); font-size: 11px; white-space: nowrap; padding: 3px 7px; border-radius: 5px;
  opacity: 0; pointer-events: none; transition: opacity 0.12s ease; z-index: 6;
}
.sentiment:hover::after, .tip:hover::after, .tl-dot:hover::after { opacity: 1; }
.dot.tip { cursor: default; }
.tl-dot { cursor: default; }

/* always-visible mood clue for the latest update */
.mood-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.mood-chip.positive { color: var(--pos); background: rgba(44,106,79,0.12); }
.mood-chip.concerning { color: var(--neg); background: rgba(162,58,44,0.12); }
.mood-chip.mixed { color: #8a6d0b; background: rgba(184,134,11,0.16); }
.mood-chip.neutral { color: var(--muted); background: rgba(128,124,112,0.16); }

/* metric tiles — consistent grid instead of awkwardly-spaced inline numbers */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 14px 0; }
.metric { background: var(--paper); border-radius: 8px; padding: 9px 11px; }
.mval { font-family: var(--mono); font-size: 17px; font-weight: 700; line-height: 1.2; }
.mlbl { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

.demo-note { background: var(--surface); border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

/* Updates search box */
.updsearch { width: 100%; margin-bottom: 14px; }

/* Radar — classified portfolio news */
.rchips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.rchip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink); font-family: inherit; }
.rchip:hover { border-color: var(--muted); }
.rchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radar-list { display: flex; flex-direction: column; gap: 8px; }
.radar-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 8px; padding: 13px 16px; }
.ri-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; background: var(--paper); flex: 0 0 auto; }
.ri-logo.ph { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.ri-body { min-width: 0; flex: 1; }
.ri-top { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; flex-wrap: wrap; }
.ri-co { font-weight: 700; font-size: 14px; cursor: pointer; }
.ri-co:hover { text-decoration: underline; }
.ri-type { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.ri-type.major { color: var(--neg); border-color: var(--neg); }
.ri-date { font-size: 11.5px; margin-left: auto; }
.ri-headline { font-size: 13.5px; line-height: 1.5; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 5px; }
.ri-headline:hover { text-decoration: underline; }
.ri-headline .ico { width: 12px; height: 12px; color: var(--muted); }
/* grouped (company with 2+ items) */
.rg-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 8px; }
.rg-count { font-size: 11.5px; }
.rg-events { display: flex; flex-direction: column; gap: 8px; }
.rg-event { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.rg-event .ri-type { flex: 0 0 auto; }
.rg-event .ri-headline { font-size: 13.5px; flex: 1; min-width: 60%; }
.rg-date { font-size: 11.5px; margin-left: auto; white-space: nowrap; }

/* section header inside a card */
.sec-h { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }

/* Recent news (from the web) feed on a company page */
.news { margin-top: 12px; }
.news-h { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.news-summary { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.news-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.news-l li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.news-l li:last-child { border-bottom: 0; }
.news-l a { color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.45; }
.news-l a:hover { text-decoration: underline; }
.news-l a .ico { width: 12px; height: 12px; color: var(--muted); }
.news-date { font-size: 11.5px; white-space: nowrap; flex: 0 0 auto; }
.x-posts { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.x-posts-h { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.news-foot { font-size: 11.5px; margin-top: 12px; }
.news-refresh { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--accent); }

/* Focused single-update view (from a newsletter company segment) */
.crumb { margin-bottom: 12px; }
.crumb a { color: var(--muted); font-size: 13px; text-decoration: none; }
.crumb a:hover { color: var(--ink); }
/* Updates list — one clickable row per company */
.update-row { margin-bottom: 10px; padding: 14px 18px; cursor: pointer; transition: background 0.12s ease; }
.update-row:hover { background: rgba(0,0,0,0.018); }
.ur-head { display: flex; align-items: center; gap: 9px; }
.ur-head h2 { margin: 0; font-size: 16px; }
.ur-count { font-size: 11.5px; margin-left: auto; }
.ur-head .chev .ico { width: 16px; height: 16px; }
.update-row .chev { color: var(--muted); transform: rotate(-90deg); }
.ur-preview { font-size: 13px; line-height: 1.5; margin: 6px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Company timeline */
.timeline-card { padding: 22px 24px; }
.tl-top { margin-bottom: 6px; }
.tl-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-title h1 { margin: 0; font-size: 22px; }
.dots-trend { display: inline-flex; align-items: center; gap: 5px; }
.dots-trend .dot { width: 9px; height: 9px; }
.arc { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 10px 0 0; }
.since { background: var(--paper); border-radius: 8px; padding: 12px 14px; margin: 16px 0 4px; }
.since-h { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.delta-metric { display: inline-block; font-size: 13.5px; margin-bottom: 6px; }
.since-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.since-l li { position: relative; padding-left: 15px; font-size: 13.5px; line-height: 1.5; }
.since-l li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }

.timeline { position: relative; margin-top: 18px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-node { position: relative; padding: 0 0 14px; }
.tl-node:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -22px; top: 4px; width: 11px; height: 11px; box-shadow: 0 0 0 3px var(--surface); }
.tl-head { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; color: inherit; padding: 0; display: flex; align-items: baseline; gap: 10px; }
.tl-when { font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.tl-preview { font-size: 13px; line-height: 1.5; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-node.open .tl-preview { display: none; }
.tl-head .chev { color: var(--muted); margin-left: auto; flex: 0 0 auto; }
.tl-head .chev .ico { width: 16px; height: 16px; transition: transform 0.15s ease; }
.tl-node.open .tl-head .chev .ico { transform: rotate(180deg); }
.tl-body { display: none; padding-top: 8px; }
.tl-node.open .tl-body { display: block; }

/* Portfolio-health strip — the aggregates a GP scans first */
.pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 16px 0 4px; }
.pulse-tile { background: var(--paper); border-radius: 8px; padding: 11px 12px; text-align: center; }
.pulse-v { font-family: var(--mono); font-size: 21px; font-weight: 700; line-height: 1.1; }
.pulse-l { font-size: 10.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }
.quiet-note { font-size: 12.5px; color: var(--neg); margin: 10px 0 0; }
.src-sub { font-size: 12px; margin: -6px 0 10px; }

/* Whole newsletter segments are clickable into the in-depth update — lighten on hover */
.clickable { cursor: pointer; border-radius: 8px; transition: background 0.12s ease; }
.clickable:hover { background: rgba(0,0,0,0.04); }
.entry.clickable { padding: 9px 12px; margin: -1px -12px 8px; }
.feat.clickable { padding: 11px 12px; margin: 0 -12px; }

.row { display: flex; gap: 12px; margin-top: 10px; }
.lbl { flex: 0 0 80px; font-size: 11px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--paper); border: 0; border-radius: 5px; padding: 3px 9px; font-size: 12.5px; }
/* Labeled fact lists (Highlights / Asks / Risks) — readable bullets, color-coded by a left rule. */
.facts { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--line); }
.facts-h { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.facts-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.facts-l li { position: relative; padding-left: 15px; font-size: 13.5px; line-height: 1.5; }
.facts-l li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.facts.good { border-left-color: var(--pos); }
.facts.good .facts-h { color: var(--pos); }
.facts.good .facts-l li::before { background: var(--pos); }
.facts.ask { border-left-color: var(--accent); }
.facts.ask .facts-h { color: var(--accent); }
.facts.ask .facts-l li::before { background: var(--accent); }
.facts.risk { border-left-color: var(--neg); }
.facts.risk .facts-h { color: var(--neg); }
.facts.risk .facts-l li::before { background: var(--neg); }
.when { margin-top: 14px; font-size: 11px; color: var(--muted); }

/* ---- controls (simple) ---- */
.btn {
  height: 38px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 6px; font-family: var(--mono); font-weight: 700; font-size: 12px; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.ghost { border-color: var(--line); font-weight: 400; }
.btn.ghost:hover { background: var(--paper); color: var(--ink); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.note { margin: -8px 0 16px; font-size: 12px; }

.login { max-width: 360px; margin: 40px auto; display: flex; flex-direction: column; gap: 12px; }
.login h1 { text-align: center; }
.login-logo { height: 34px; width: auto; margin: 0 auto 4px; display: block; }
.login-logo.firm { height: 44px; max-width: 200px; object-fit: contain; }
.login-firmname { text-align: center; font-size: 22px; font-weight: 700; margin: 0 auto 2px; }
.join-tag { text-align: center; font-size: 13px; color: var(--muted); margin: 2px 0; }
.invite-badge { width: max-content; margin: 0 auto 10px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
body.loggedout .site-footer { display: none; }
.members { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.members-h { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.member { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.member:last-child { border-bottom: 0; }
.m-email { font-size: 13.5px; }
.m-meta { font-size: 11.5px; color: var(--muted); }
/* invite manager — every control shares the 38px button height for a clean row */
.invite-new { display: flex; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; align-items: center; }
.invite-new select {
  height: 38px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: 12.5px; cursor: pointer;
}
.invite-new select:focus { outline: none; border-color: var(--ink); }
.invites { margin-top: 10px; }
.invite-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.invite-row:last-child { border-bottom: 0; }
.invite-row.inactive { opacity: 0.55; }
.inv-main { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inv-url { flex: 1; min-width: 220px; height: 38px; margin: 0; padding: 0 12px; background: var(--paper); font-size: 12.5px; }
.inv-copy, .inv-revoke { flex: 0 0 auto; white-space: nowrap; }
.inv-revoke { color: var(--neg); border-color: var(--line); }
.inv-revoke:hover { background: var(--neg); color: var(--surface); border-color: var(--neg); }
.inv-dead { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.inv-meta { font-size: 11.5px; margin-top: 8px; }
/* audit / activity */
.audit { margin-top: 10px; max-height: 360px; overflow-y: auto; }
.audit-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.audit-row:last-child { border-bottom: 0; }
.audit-row.warn .a-act { color: var(--neg); }
.a-act { font-size: 13px; }
.a-meta { font-size: 11px; }
.login a, .login .legal-line a { color: var(--muted); }
.login a:hover, .login .legal-line a:hover { color: var(--ink); }
/* "Create one" — a sheen sweeps across it ~every 5s to draw the eye to signup */
.shimmer-link {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent) 42%, #9cc0f0 50%, var(--accent) 58%, var(--accent) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px;
  animation: shimmerSweep 5s ease-in-out infinite;
}
.shimmer-link:hover { -webkit-text-fill-color: var(--ink); color: var(--ink); text-decoration-color: var(--ink); animation: none; }
@keyframes shimmerSweep {
  0% { background-position: 120% 0; }
  16% { background-position: -120% 0; }
  100% { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) { .shimmer-link { animation: none; -webkit-text-fill-color: var(--accent); } }
.err { color: var(--neg); font-size: 13px; }
/* settings + legal */
.setblock { margin-bottom: 16px; }
.setblock h2 { margin-bottom: 10px; }
.setblock input[readonly] { background: var(--paper); }
.legal { max-width: 680px; margin: 0 auto; padding: 24px 20px 80px; }
.legal h1 { margin-bottom: 6px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.legal p { margin: 0 0 12px; line-height: 1.7; font-size: 14.5px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 7px; line-height: 1.6; font-size: 14.5px; }
.legal a, .legal-line a { color: var(--accent); }
.legal-line { font-size: 13px; margin-top: 14px; text-align: center; }
/* pricing page */
.pricing { max-width: 680px; margin: 0 auto; padding: 24px 20px 80px; }
.pr-hero { text-align: center; margin: 16px 0 28px; }
.pr-hero h1 { font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.pr-sub { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 540px; margin: 0 auto; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.plan-top { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.plan-name { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pp-amt { font-size: 44px; font-weight: 700; }
.pp-per { font-size: 16px; color: var(--muted); }
.plan-note { font-size: 13px; margin-top: 6px; }
.plan-cta { display: block; text-align: center; margin: 22px 0 8px; background: var(--ink); color: var(--surface); padding: 14px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
.plan-cta:hover { opacity: 0.9; }
.plan-subcta { text-align: center; font-size: 12.5px; margin-bottom: 22px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 20px; }
.plan-feats li { padding: 8px 0 8px 26px; position: relative; line-height: 1.55; font-size: 14px; border-bottom: 1px solid var(--line); }
.plan-feats li:last-child { border-bottom: 0; }
.plan-feats li::before { content: "✓"; position: absolute; left: 4px; color: var(--pos); font-weight: 700; }
.plan-feats.two li { border-bottom: 0; padding-bottom: 4px; padding-top: 4px; }
.plan-feat-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin: 18px 0 8px; }
.plan-safe { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
.plan-safe p { line-height: 1.7; font-size: 13.5px; }
.pr-enterprise { text-align: center; margin: 28px 0 8px; }
.pr-enterprise p { font-size: 14px; }
.pr-enterprise a, .plan-safe a { color: var(--accent); }
@media (max-width: 560px) { .pr-hero h1 { font-size: 24px; } .plan-card { padding: 20px; } }
/* LP report */
.lp-bar { align-items: center; }
.lp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Styled like .btn.ghost, with the native chrome stripped and our own chevron —
   the OS default stepper arrows clash with the letterpress look. */
.lp-select {
  height: 38px; margin: 0; padding: 0 30px 0 14px; border: 1px solid var(--line); border-radius: 6px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M0.5 0.5l4 4.5 4-4.5' fill='none' stroke='%23807c70' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--ink); font-family: var(--mono); font-size: 12px; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.lp-select:hover { background-color: var(--paper); }
.lp-select:focus { outline: none; border-color: var(--ink); }
.lp-doc { max-width: 720px; margin: 0 auto; padding: 40px 44px; }
.lp-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 24px; }
.lp-fund { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 12px; }
.lp-title { font-size: 24px; font-weight: 700; line-height: 1.25; }
.lp-sub { font-size: 12px; margin-top: 8px; }
.lp-overview p { font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.lp-block { margin-top: 28px; }
.lp-block h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.lp-block > ul { margin: 0; padding-left: 18px; }
.lp-block > ul li { margin-bottom: 8px; line-height: 1.6; font-size: 14px; }
.lp-co { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lp-co:last-child { border-bottom: 0; }
.lp-co-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-co-head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.lp-co-head h3 .ilogo { width: 18px; height: 18px; border-radius: 4px; }
.lp-co-headline { font-size: 13px; color: var(--muted); font-style: italic; margin: 3px 0 7px; }
.lp-co-narr { font-size: 14px; line-height: 1.7; }
.lp-metrics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.lp-metric { font-size: 12.5px; color: var(--muted); }
.lp-metric b { color: var(--ink); font-weight: 700; }
.lp-mom { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lp-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.6; }
.lp-subttl { font-weight: 400; font-size: 16px; }
.lp-lanenote { font-size: 12px; margin: -4px 0 16px; max-width: 720px; }
/* quiet on-document tools (copy / download / print) + autosave status */
.lp-doc { position: relative; }
.lp-tools { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; gap: 4px; }
.lp-status { font-size: 11px; color: var(--muted); margin-right: 4px; }
.lp-tool { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; line-height: 0; }
.lp-tool:hover { color: var(--ink); background: var(--paper); }
.lp-tool .ico { width: 16px; height: 16px; }
/* always-editable, but quiet: just a text cursor + a faint cue on hover/focus */
.lp-doc [data-edit] { cursor: text; border-radius: 5px; margin-left: -6px; margin-right: -6px; padding: 2px 6px; transition: background 0.12s ease, box-shadow 0.12s ease; }
.lp-doc [data-edit]:hover { background: var(--paper); }
.lp-doc [data-edit]:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 1.5px var(--accent); }
@media (max-width: 560px) { .lp-tools { position: static; justify-content: flex-end; margin-bottom: 6px; } }
/* Ask-the-letter assistant (inline, above the document) */
.askbar.lp-ask input { border-color: var(--accent); background: var(--surface); }
.lp-assist { max-width: 720px; margin: 0 auto; }
.lp-assist:empty { display: none; }
.lp-assist-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.lp-assist-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; line-height: 0; border-radius: 6px; }
.lp-assist-x:hover { color: var(--ink); background: var(--paper); }
.lp-assist-x .ico { width: 16px; height: 16px; }
.lp-assist-answer { font-size: 14px; line-height: 1.65; margin: 0 24px 0 0; }
.lp-adds { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 2px; }
.lp-add { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.lp-add-sec { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); flex: 0 0 62px; padding-top: 2px; }
.lp-add-text { flex: 1; font-size: 13.5px; line-height: 1.5; }
.lp-add-btn { flex: 0 0 auto; height: 30px; padding: 0 12px; font-size: 11px; }
.lp-add-btn.added { color: var(--pos); }
.lp-add-none { font-size: 13px; margin: 10px 0 0; }
.lp-doc .lp-just-added { background: rgba(44, 106, 79, 0.12); box-shadow: inset 2px 0 0 var(--pos); border-radius: 5px; animation: lpAddIn 0.55s ease; }
@keyframes lpAddIn { from { background: rgba(44, 106, 79, 0.32); } to { background: rgba(44, 106, 79, 0.12); } }
/* portfolio-company loader (slow waits) — features ONE portfolio company (logo, name,
   latest update if we have one), not a famous-investor quote or generic filler. */
.loadwrap { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.qload { text-align: center; padding: 22px 16px; max-width: 420px; margin: 0 auto; animation: qfade 0.5s ease; }
@keyframes qfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.qload-co-feature { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* An accent-colored stroke TRACING the featured logo tile's own rounded-square
   outline (not a generic circle) -- the loader follows the shape of the design.
   Dash math: the 56x56 rx15 rect's perimeter is ~198 SVG units. */
.qload-trace { position: relative; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.qload-trace-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qload-trace-svg rect { fill: none; stroke-width: 1.5; }
.qload-trace-track { stroke: var(--line); }
.qload-trace-run { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 34 164; animation: qtrace 1.6s linear infinite; }
@keyframes qtrace { to { stroke-dashoffset: -198; } }
@media (prefers-reduced-motion: reduce) { .qload-trace-run { animation: none; opacity: 0.7; } }
.qload-co-big { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); padding: 6px; }
.qload-co-big.ph { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: var(--muted); }
.qload-co-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.qload-co-update { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 380px; }
.qload-lead { margin-top: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
/* lightweight "working…" shimmer for fast waits (Ask, the LP inline ask) */
.shimmer-text {
  display: inline-block; margin: 10px 0; font-size: 14px;
  background: linear-gradient(90deg, var(--muted), var(--muted) 35%, var(--ink) 50%, var(--muted) 65%, var(--muted));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--muted);
  animation: textShimmer 1.5s linear infinite;
}
@keyframes textShimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .shimmer-text { animation: none; -webkit-text-fill-color: var(--muted); } }
@media (max-width: 560px) { .lp-doc { padding: 24px 18px; } .lp-title { font-size: 20px; } }
/* Print: isolate the letter so "Save as PDF" yields a clean LP document */
@media print {
  .topbar, .lp-bar, .site-footer, .gear, .ai-glyph { display: none !important; }
  body { background: #fff; }
  #app { padding: 0; }
  .lp-doc { max-width: 100%; margin: 0; padding: 0; border: 0; background: #fff; box-shadow: none; }
  .lp-co, .lp-block { break-inside: avoid; }
  .lp-doc a { color: inherit; text-decoration: none; }
}
input, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px;
  font-family: var(--mono); background: var(--surface); margin-bottom: 10px; color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; }

/* ---- portfolio ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.co { margin: 0; }
.cohead { display: flex; align-items: center; gap: 11px; }
.logo { width: 38px; height: 38px; border-radius: 6px; object-fit: contain; background: var(--paper); border: 0; flex: 0 0 auto; }
.logo.ph { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--muted); }
.cohead h2 { font-size: 15px; }
.cohead .muted { font-size: 11.5px; }
.mom { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.cohead .mom { margin-left: 8px; }
.del { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; padding: 4px 6px; }
.del:hover { color: var(--neg); }
.co .summary { margin: 11px 0 9px; font-size: 13.5px; }
.pill { background: var(--paper); border: 0; border-radius: 5px; padding: 2px 8px; font-size: 11px; font-weight: 700; margin-right: 8px; }

/* ---- newsletter ---- */
.brief { padding: 28px 30px; }
.brief .briefhead { font-family: var(--mono); font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -0.2px; }
.brief .src-note { margin: 10px 0 20px; font-size: 11px; color: var(--muted); }
.brief h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 24px 0 9px; }
.brief h3.attn { color: var(--neg); }
.brief ul { margin: 0; padding-left: 18px; line-height: 1.65; font-size: 14.5px; }
.brief li { margin-bottom: 8px; }
.bycos { display: flex; flex-direction: column; gap: 12px; }
.byco { padding-top: 0; font-size: 14px; }
.byco b { font-family: var(--mono); }
.byco div { color: var(--muted); margin-top: 2px; line-height: 1.6; }
.srcmark { font-size: 12px; }

/* gmail inbox bar */
.inbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 13px; }
.ibtns { display: flex; align-items: center; gap: 12px; }
.ok-note { color: var(--pos); font-size: 13px; margin-bottom: 12px; }

/* ask bar (global, under nav) */
.askbar { display: flex; align-items: center; gap: 8px; margin: 0; }
.askbar input { margin-bottom: 0; flex: 1; }
.askq-echo { margin-bottom: 14px; font-style: italic; }
.ans p { margin: 0 0 12px; line-height: 1.7; font-size: 15px; }
.ans h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 18px 0 8px; }
.ans ul { margin: 0 0 12px; padding-left: 18px; }
.ans li { margin-bottom: 6px; line-height: 1.6; font-size: 15px; }
.ans > :first-child { margin-top: 0; }
.ans > :last-child { margin-bottom: 0; }
.ans strong { font-weight: 700; }
/* Ask answer: each line that leads with a company is a clickable block -> its page */
.ans-block.clickable { cursor: pointer; border-radius: 6px; transition: background 0.12s ease; }
.ans-block.clickable:hover { background: rgba(0,0,0,0.045); }
.ans p.ans-block.clickable { padding: 8px 10px; margin: -2px -10px 10px; }
.ans li.ans-block.clickable { padding: 4px 8px; margin: 0 -8px 6px -8px; }

/* icons (inline SVG, inherit ink) */
.ico { width: 1em; height: 1em; vertical-align: -0.15em; display: inline-block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* sentiment dot */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.dot.positive { background: var(--pos); }
.dot.concerning { background: var(--neg); }
.dot.mixed { background: #b8860b; }
.dot.neutral { background: var(--muted); }

/* portfolio: compact scannable list */
.chipbar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-family: var(--mono); font-size: 12px; cursor: pointer; color: var(--muted); }
.fchip:hover { color: var(--ink); border-color: var(--muted); }
.fchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter { margin-bottom: 12px; }
.colist { display: flex; flex-direction: column; gap: 1px; }
.corow { border-radius: 8px; }
.corow.open { background: var(--surface); }
.corowhead { display: flex; align-items: center; gap: 12px; padding: 9px 12px; cursor: pointer; border-radius: 8px; }
.corow.clickable:hover .corowhead { background: var(--surface); }
.corowhead .chev { color: var(--muted); flex: 0 0 auto; transform: rotate(-90deg); opacity: 0.7; }
.corowhead .chev .ico { width: 16px; height: 16px; }
.co-foot { font-size: 12px; margin-top: 16px; }
.co-remove { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); }
.co-remove:hover { color: var(--neg); text-decoration: underline; }
.rlogo { width: 30px; height: 30px; border-radius: 6px; object-fit: contain; background: var(--paper); flex: 0 0 auto; }
.rlogo.ph { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.rmain { flex: 1; min-width: 0; }
.rname { font-weight: 700; font-size: 14px; }
.colast { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 9px; }
.co-timeline { display: inline-flex; align-items: center; gap: 5px; }
.co-timeline .ico { width: 13px; height: 13px; }
.rone { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.corowhead .mom { margin-left: auto; flex: 0 0 auto; }
.codetail { padding: 2px 14px 16px 54px; }
.codetail .summary { font-size: 14px; margin: 6px 0 10px; }
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }
.chip.link { color: var(--ink); }
.del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; }
.del:hover { color: var(--neg); }

/* prose investor letter (the lead) */
.standfirst { font-size: 16px; font-style: italic; color: var(--ink); margin: 8px 0 2px; line-height: 1.6; }
.letter p { margin: 0 0 14px; line-height: 1.8; font-size: 15px; }
.letter p:last-child { margin-bottom: 0; }
.entry { margin: 0 0 13px; line-height: 1.7; }
.elead { font-weight: 700; }
.elead .clink { font-weight: 700; }
.ilogo { width: 15px; height: 15px; border-radius: 3px; object-fit: contain; vertical-align: -2px; margin-right: 3px; background: var(--paper); }
.clink { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); white-space: nowrap; }
.clink:hover { border-bottom-width: 2px; }

/* featured highlights */
.feats { display: flex; flex-direction: column; gap: 16px; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.flogo { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; background: var(--paper); flex: 0 0 auto; }
.flogo.ph { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--muted); }
.featbody { flex: 1; min-width: 0; }
.feathead { display: flex; align-items: center; gap: 8px; }
.fname { font-weight: 700; color: var(--ink); text-decoration: none; }
.fname:hover { text-decoration: underline; }
.fmom { font-size: 13px; }
.featnote { font-size: 14px; line-height: 1.6; margin-top: 2px; }
.featlinks { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 5px; }
.fsrc { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--accent); text-decoration: none; }
.fsrc:hover { text-decoration: underline; }
.fmom { color: var(--muted); }
.fmom.accelerating { color: var(--pos); }
.fmom.quiet { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .masthead { padding: 22px 16px 4px; }
  .wordmark { height: 38px; }
  .firmlogo { max-height: 40px; max-width: 78vw; }
  .firmname { font-size: 21px; }
  .dateline { gap: 8px; font-size: 10.5px; }
  main { padding: 18px 16px 78px; }

  /* sticky header: let the nav wrap, keep tap targets comfy */
  .topbar { padding: 14px 0 14px; }
  .tabs { gap: 16px; margin-bottom: 14px; flex-wrap: wrap; row-gap: 8px; }
  .tab { font-size: 14px; padding: 2px 0; }
  .tab.signout { margin-left: auto; }
  .askbar input { font-size: 16px; } /* >=16px avoids iOS zoom-on-focus */

  /* action bars stack instead of cramming */
  .bar { flex-wrap: wrap; row-gap: 12px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }

  .row { flex-direction: column; gap: 6px; }
  .lbl { flex: none; }
  .grid { grid-template-columns: 1fr; }
  .brief { padding: 20px 16px; }
  .month-divider { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .codetail { padding: 2px 6px 14px 50px; }
  .inbox { flex-direction: column; align-items: flex-start; }
  .chip, .fchip { font-size: 13px; }

  /* settings: invite link stacks above the copy button */
  .setblock .row { flex-direction: column; }
  .setblock .row .btn { width: 100%; }

  /* newer components: keep them tidy on phones */
  .timeline-card, .update-detail, .news, .brief { padding: 18px 16px; }
  .radar-item { padding: 11px 13px; }
  .ri-top { flex-wrap: wrap; }
  .ri-date { margin-left: 0; }
  .news-l li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .news-date { margin-left: 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .rg-event { flex-wrap: wrap; }
  .rg-date { margin-left: 0; }
  .modal-wrap { padding: 12px; }
  .members .member { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* tablets (iPad): keep the comfy centered column; nothing fixed-width breaks */
@media (min-width: 601px) and (max-width: 1024px) {
  .askbar input { font-size: 16px; }
}

/* Bulk import (Gmail .mbox / .eml) */
.barbtns { display: inline-flex; gap: 8px; flex: 0 0 auto; }
.import-card input[type="file"] { display: block; margin: 4px 0 14px; font: inherit; color: var(--ink); }
.import-help { background: var(--paper); border-radius: 8px; padding: 12px 16px; margin: 4px 0 18px; }
.import-help summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.import-help[open] summary { margin-bottom: 8px; }
.import-steps { margin: 6px 0 4px; padding-left: 20px; }
.import-steps li { margin: 7px 0; line-height: 1.5; }
.import-help code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.import-help a { color: var(--accent); }
.import-status { margin-top: 10px; min-height: 18px; }

/* Monthly public-news digest (the newsletter) */
.brief-masthead { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.brief-period { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; }
.brief .standfirst { font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.digest-feed { display: flex; flex-direction: column; }
.ditem { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ditem:first-child { border-top: 0; }
.ditem:hover { background: var(--paper); }
.ditem-date { flex: 0 0 44px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 3px; }
.ditem-body { flex: 1; min-width: 0; }
.ditem-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ditem-head .dlogo { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; flex: 0 0 auto; }
.ditem-head .dlogo.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--paper); font-size: 10px; color: var(--muted); }
.ditem-text { margin: 0 0 6px; line-height: 1.55; }
.ditem-src { font-size: 12px; color: var(--muted); text-decoration: none; }
.ditem-src:hover { color: var(--accent); }
.ditem-meta { display: flex; align-items: center; gap: 8px; }
/* Two-or-more developments for the same company in one period: one card, one logo,
   one flowing synopsis paragraph, and every source that fed it as a chip below --
   instead of the company repeating on separate lines scattered through the feed. */
.ditem-count { font-size: 11px; }
.ditem-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.ditem-source { display: inline-flex; align-items: center; gap: 8px; }
.ditem-evdate { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Infinite-scroll archive: sticky month dividers (parked just under the sticky
   topbar via --topbar-h, measured in JS), the load sentinel, and the end cap. */
.month-divider { position: sticky; top: var(--topbar-h, 96px); z-index: 5; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px -30px 2px; padding: 9px 30px 8px; background: var(--surface); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.month-divider .mcount { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.feed-sentinel { min-height: 26px; padding: 16px 0 2px; font-size: 12px; text-align: center; }
.feed-sentinel button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.feed-end { padding: 20px 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }
.imp { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.imp.high { background: var(--accent); color: var(--surface); }
.imp.medium { color: var(--ink); border: 1px solid var(--line); }
.refreshing { color: var(--accent); font-style: italic; }

/* Merged Portfolio + From the web: sub-tabs */
.subtabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.subtab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 14px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.subtab:hover { color: var(--ink); }
.subtab.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }

/* Settings danger zone */
.setblock.danger { border: 1px solid var(--neg); }
.setblock.danger h2 { color: var(--neg); }
.import-card textarea { width: 100%; box-sizing: border-box; }

/* Phase 2 — news feedback (hover) + identity editor */
.ri-fb { opacity: 0; transition: opacity 0.12s ease; display: inline-flex; gap: 8px; margin-left: auto; }
.radar-item:hover .ri-fb, .rg-event:hover .ri-fb, .ri-top:hover .ri-fb, .ditem:hover .ri-fb { opacity: 1; }
.rg-event { display: flex; align-items: baseline; gap: 8px; }
.fb-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; padding: 0; text-decoration: underline dotted; }
.fb-btn:hover { color: var(--neg); }
.idedit { margin-top: 12px; padding: 14px 16px; background: var(--paper); border-radius: 8px; }
.idedit input { width: 100%; box-sizing: border-box; }
.co-identity { cursor: pointer; }

/* Live streaming / gathering states */
.stream-note { background: var(--paper); border-radius: 8px; padding: 10px 14px; margin: 4px 0 14px; }
.stream-note b { color: var(--ink); }
