:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #64706b;
  --line: #d9ded7;
  --paper: #fbfbf6;
  --panel: #ffffff;
  --accent: #28624f;
  --accent-soft: #e2eee9;
  --warn: #7b4d24;
  font-family: Satoshi, Geist, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(24,32,29,0.035) 1px, transparent 1px),
    linear-gradient(rgba(24,32,29,0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
}
a { color: inherit; }
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251,251,246,0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
}
.brand { color: var(--accent); font-weight: 800; letter-spacing: 0; text-decoration: none; }
.topbar p { margin: 0; color: var(--muted); font-size: 13px; }
.shell { max-width: 1320px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px) 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 28px; align-items: end; margin-bottom: 34px; }
.hero-copy { min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; border-top: 1px solid var(--ink); padding-top: 28px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 820px; font-size: clamp(38px, 7vw, 84px); line-height: .92; letter-spacing: 0; }
.hero-copy > p:last-child, .stock-head p { max-width: 62ch; color: var(--muted); line-height: 1.65; font-size: 16px; }
.metric-rack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: rgba(255,255,255,.74); }
.metric-rack.compact { align-self: end; min-width: 360px; }
.metric { min-height: 118px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.metric:nth-child(2n) { border-right: 0; }
.metric span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace; font-size: 34px; letter-spacing: 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .45fr); gap: 22px; margin-bottom: 22px; }
.review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.panel-wide { min-width: 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.stock-table { display: grid; }
.stock-row { display: grid; grid-template-columns: 86px minmax(220px, 1fr) minmax(160px, .7fr) 56px; gap: 16px; align-items: center; min-height: 58px; padding: 12px 18px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.stock-row:hover { background: var(--accent-soft); }
.stock-row:active { transform: translateY(1px); }
.ticker { font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace; font-weight: 800; color: var(--accent); }
.issuer, .sources { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issuer { display: block; min-width: 0; }
.issuer strong { display: block; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.folder-summary { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 1.35; white-space: normal; }
.folder-summary b { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-right: 5px; }
.count { justify-self: end; font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace; font-weight: 800; }
.source-list, .review-list { display: grid; }
.source-row, .review-row { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
.source-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-row strong { font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace; }
.source-row em { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-style: normal; }
.review-row strong { display: inline-block; margin-right: 8px; font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace; color: var(--warn); }
.review-row span { color: var(--muted); font-size: 12px; }
.review-row p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.review-row.is-reviewed { background: rgba(226,238,233,.45); }
.review-row[hidden] { display: none; }
.review-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(226,238,233,.35); }
.review-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.review-toolbar select, .review-toolbar button, .review-actions input, .review-actions button { min-height: 32px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); font: inherit; }
.review-toolbar select, .review-actions input { padding: 5px 8px; }
.review-toolbar button, .review-actions button { padding: 5px 9px; cursor: pointer; font-size: 12px; font-weight: 700; }
.review-toolbar button:hover, .review-actions button:hover { border-color: var(--accent); background: var(--accent-soft); }
.review-toolbar button:focus-visible, .review-actions button:focus-visible, .review-actions input:focus-visible, .review-toolbar select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#review-count { margin-left: auto; color: var(--accent); font: 700 12px ui-monospace, monospace; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; }
.review-actions input { width: 92px; }
.review-actions button[data-review-action="not-ticker"] { color: var(--warn); }
.review-status { color: var(--accent); font-size: 12px; font-weight: 700; }
.advisor-panel { margin-bottom: 22px; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brief-card { display: block; min-width: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .18s ease; }
.brief-card:nth-child(odd) { border-right: 1px solid var(--line); }
.brief-card:hover { background: var(--accent-soft); }
.brief-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.brief-card-head strong { color: var(--accent); font: 800 22px ui-monospace, monospace; }
.brief-card-head span { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.brief-company { margin-top: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brief-card p { margin: 13px 0; max-width: 68ch; line-height: 1.55; }
.brief-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; color: var(--muted); font-size: 11px; }
.brief-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-meta time { flex: 0 0 auto; font-family: ui-monospace, monospace; }
.mention { padding: 17px 20px; border-bottom: 1px solid var(--line); }
.mention p { max-width: 86ch; margin: 10px 0; line-height: 1.62; white-space: pre-wrap; }
.mention a { color: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; }
.context { margin: 14px 0; border-left: 3px solid var(--accent-soft); padding-left: 14px; }
.context summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 800; }
.context summary span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.context-line { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.context-line > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.context-line p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.meta span, .surface { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; background: rgba(255,255,255,.64); }
.surface { display: inline-block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.stock-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.empty { padding: 18px 20px; color: var(--muted); }
@media (max-width: 900px) {
  .topbar, .hero-grid, .section-grid, .review-grid, .stock-head { grid-template-columns: 1fr; }
  .metric-rack.compact { min-width: 0; }
  .stock-row { grid-template-columns: 72px minmax(0, 1fr) 44px; }
  .stock-row .sources { grid-column: 2 / 3; }
  .section-head { display: block; }
  .section-head p { margin-top: 6px; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-card:nth-child(odd) { border-right: 0; }
}

/* Editorial desk treatment: hierarchy and reading rhythm carry the interface. */
:root {
  --ink: #202321;
  --muted: #73746d;
  --line: #d8d4cc;
  --paper: #f5f3ee;
  --panel: #fbfaf7;
  --accent: #9f3f2f;
  --accent-soft: #eee1db;
  --warn: #735626;
}
body { background: var(--paper); }
.topbar { position: relative; padding-top: 16px; padding-bottom: 16px; background: var(--paper); backdrop-filter: none; }
.brand { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.shell { max-width: 1240px; padding-top: 42px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .75fr); gap: 48px; margin-bottom: 48px; }
.hero-copy { min-height: 180px; border-top: 2px solid var(--ink); padding-top: 22px; }
h1 { max-width: 680px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 70px); font-weight: 500; line-height: .98; }
.hero-copy > p:last-child, .stock-head p { font-size: 15px; }
.metric-rack { border: 0; border-top: 1px solid var(--ink); background: transparent; }
.metric { min-height: 88px; padding: 14px 16px 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
.metric strong { color: var(--accent); font-size: 28px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.section-head { padding: 17px 20px 14px; background: transparent; }
.section-head h2 { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.section-head p { color: var(--muted); }
.advisor-panel { border-top: 2px solid var(--ink); }
.brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brief-card { padding: 22px 24px; background: var(--panel); }
.brief-card:hover { background: #f0ebe5; }
.brief-card-head strong { color: var(--ink); font-size: 25px; }
.brief-card-head span { color: var(--accent); }
.brief-card p { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.45; }
.brief-meta { border-top: 1px solid var(--line); padding-top: 10px; }
.stock-row { min-height: 70px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.stock-row:hover { background: #f0ebe5; }
.ticker { color: var(--accent); }
.issuer strong { font-weight: 650; }
.folder-summary b { color: var(--accent); }
.sources { font-size: 12px; }
.count { color: var(--accent); }
.review-toolbar { background: #f0ebe5; border-bottom: 1px solid var(--line); }
.review-row { padding: 16px 18px; }
.review-row strong { color: var(--ink); }
.meta span, .surface { border-radius: 2px; background: transparent; }
.mention { padding: 22px 24px; }
.mention p { font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.context { border-left-color: var(--accent); }
.context summary { color: var(--accent); }
.stock-head { border-bottom: 2px solid var(--ink); }
.stock-head h1 { font-size: clamp(48px, 7vw, 82px); }
.read-now { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; margin-bottom: 44px; border-top: 2px solid var(--ink); padding-top: 18px; }
.read-now-heading h2 { margin: 0 0 8px; font: 500 28px Georgia, "Times New Roman", serif; }
.read-now-heading p:last-child { color: var(--muted); line-height: 1.55; font-size: 13px; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); border: 1px solid var(--line); background: var(--panel); }
.lead-memo { min-height: 270px; padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.lead-ticker { color: var(--ink); font: 500 48px Georgia, "Times New Roman", serif; text-decoration: none; }
.lead-ticker span { color: var(--accent); font: 700 11px ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.lead-company { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.lead-copy { max-width: 56ch; margin: 26px 0; font: 19px/1.5 Georgia, "Times New Roman", serif; }
.lead-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.lead-foot span:first-child { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.next-up { padding: 24px 22px; }
.next-row { display: grid; grid-template-columns: 62px 1fr; gap: 3px 10px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.next-row strong { color: var(--accent); font: 800 15px ui-monospace, monospace; }
.next-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.next-row small { grid-column: 1 / -1; color: var(--muted); line-height: 1.35; }
.stock-memo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 34px; margin-bottom: 24px; padding: 26px 28px; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); background: #f0ebe5; }
.stock-memo h2 { margin: 0 0 12px; font: 500 27px Georgia, "Times New Roman", serif; }
.memo-summary { max-width: 62ch; margin: 0; font: 19px/1.5 Georgia, "Times New Roman", serif; }
.memo-side { border-left: 1px solid var(--line); padding-left: 22px; }
.memo-side p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.memo-side p strong { display: block; color: var(--accent); font-size: 16px; text-transform: uppercase; }
.memo-side p span { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.stock-memo-pending { display: block; }
.stock-memo-pending p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.scope-bar { display: flex; align-items: center; gap: 18px; margin: -20px 0 30px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.scope-bar a { color: var(--muted); text-decoration: none; }
.scope-bar a:hover, .scope-bar strong { color: var(--accent); }
.scope-spacer { flex: 1; }
.scope-bar time { font-family: ui-monospace, monospace; }
.dashboard-ledger { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 18px; margin-bottom: 18px; }
.workbench-panel { min-width: 0; border-top: 2px solid var(--ink); background: var(--panel); }
.workbench-panel .section-head { border-bottom: 1px solid var(--line); }
.table-labels, .active-row { display: grid; grid-template-columns: minmax(160px, 1.3fr) 48px 80px 82px 48px; gap: 12px; align-items: center; }
.table-labels { padding: 9px 16px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.table-labels span:first-child { grid-column: 1 / 3; }
.active-row { padding: 11px 16px; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; }
.active-row:hover, .change-row:hover { background: #f0ebe5; }
.active-row strong { color: var(--accent); font: 800 14px ui-monospace, monospace; }
.active-row span { grid-column: 1 / 3; grid-row: 2; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-row b { grid-column: 2; grid-row: 1 / 3; font: 800 16px ui-monospace, monospace; }
.active-row small { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: 11px; }
.active-row em { grid-column: 4; grid-row: 1 / 3; font-style: normal; font-size: 11px; font-weight: 800; }
.status-updated { color: #486d6d; }.status-pending { color: var(--warn); }
.row-arrow { grid-column: 5 !important; grid-row: 1 / 3 !important; color: var(--accent) !important; text-align: right; font-size: 11px !important; }
.advisor-changes .section-head { padding-bottom: 12px; }
.change-row { display: grid; grid-template-columns: 54px 1fr; gap: 3px 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.change-row strong { color: var(--accent); font: 800 14px ui-monospace, monospace; }.change-row span { color: var(--muted); font-size: 11px; text-transform: uppercase; }.change-row p { grid-column: 1 / -1; margin: 7px 0 2px; font: 15px/1.4 Georgia, "Times New Roman", serif; }.change-row small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.ops-band { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; margin-bottom: 44px; }
.ops-panel { min-width: 0; padding: 20px; border-top: 2px solid var(--ink); background: var(--panel); }
.ops-title h3 { margin: 0 0 18px; font: 500 22px Georgia, "Times New Roman", serif; }.ops-title .eyebrow { margin-bottom: 7px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 5px 10px; margin-top: 12px; font-size: 11px; }.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.bar-row b { text-align: right; font-family: ui-monospace, monospace; }.bar-row div { grid-column: 1 / -1; height: 5px; background: var(--accent-soft); }.bar-row i { display: block; height: 100%; background: var(--accent); }.bar-row small { grid-column: 1 / -1; color: var(--muted); }.ops-big { color: var(--accent); font: 800 30px ui-monospace, monospace; }.ops-big span { color: var(--muted); font: 12px ui-sans-serif, system-ui, sans-serif; }.ops-note { color: var(--muted); font-size: 12px; line-height: 1.45; }.text-link { color: var(--accent); font-size: 12px; font-weight: 800; text-decoration: none; }
@media (max-width: 900px) {
  .shell { padding-top: 28px; }
  .hero-grid { gap: 28px; margin-bottom: 30px; }
  h1 { font-size: 48px; }
  .brief-card { padding: 20px; }
  .brief-card p, .mention p { font-size: 16px; }
  .read-now, .reading-layout, .stock-memo { grid-template-columns: 1fr; }
  .lead-memo { border-right: 0; border-bottom: 1px solid var(--line); }
  .memo-side { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .dashboard-ledger, .ops-band { grid-template-columns: 1fr; }
  .scope-bar { margin-top: 0; gap: 12px; overflow-x: auto; white-space: nowrap; }
  .table-labels { display: none; }
  .active-row { grid-template-columns: 1fr 44px 72px; gap: 4px 10px; }
  .active-row strong { grid-column: 1; grid-row: 1; }
  .active-row span { grid-column: 1; grid-row: 2; }
  .active-row b { grid-column: 2; grid-row: 1 / 3; }.active-row small { grid-column: 3; grid-row: 1; text-align: right; }.active-row em { grid-column: 3; grid-row: 2; text-align: right; }.row-arrow { display: none; }
}