:root {
  color-scheme: light;
  --page: #f8faf8;
  --surface: #fff;
  --ink: #1c2725;
  --muted: #697571;
  --soft: #8e9a95;
  --line: #dce4df;
  --line-dark: #cbd7d0;
  --accent: #c95735;
  --accent-pale: #fff2ec;
  --green: #276f59;
  --green-pale: #eaf4ee;
  --blue: #3d638b;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--page); font: 14px/1.62 var(--sans); letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; mask: var(--glyph) center / contain no-repeat; -webkit-mask: var(--glyph) center / contain no-repeat; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 21px; height: 21px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.topbar { position: sticky; top: 0; z-index: 20; height: 61px; border-bottom: 1px solid var(--line); background: rgba(248,250,248,.96); backdrop-filter: blur(12px); }
.topbar-inner { max-width: 1440px; padding: 0 34px; margin: auto; height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font: 700 17px/1 var(--sans); color: var(--ink); }
.brand-mark { color: var(--accent); font: 700 21px/1 var(--mono); }
.brand small { display: block; color: var(--soft); font: 500 9px/1 var(--mono); margin-top: 4px; }
.topnav { display: flex; align-self: stretch; align-items: center; gap: 6px; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 13px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; white-space: nowrap; }
.topnav a.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 650; }
.topnav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.text-button, .quiet-button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.text-button { background: none; color: var(--muted); padding: 8px 9px; }
.text-button:hover { background: #eef2ef; color: var(--ink); }
.quiet-button { color: var(--ink); background: var(--surface); border-color: var(--line-dark); padding: 9px 13px; border-radius: 4px; font-size: 13px; }
.quiet-button:hover { border-color: var(--green); color: var(--green); }
.quiet-button:disabled { opacity: .5; cursor: not-allowed; }
.page-shell { max-width: 1240px; margin: auto; padding: 34px 34px 80px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 42px; align-items: start; }
.left-rail, .right-rail { position: sticky; top: 98px; min-width: 0; }
.rail-label, .eyebrow, .mini-label { color: var(--soft); font: 600 10px/1.4 var(--mono); text-transform: uppercase; }
.rail-label { margin-bottom: 12px; }
.rail-section { border-top: 1px solid var(--line); padding: 22px 0; }
.rail-section:first-child { border-top: 0; padding-top: 0; }
.rail-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 13px; }
.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0; color: var(--muted); font-size: 12px; }
.stat-row strong { color: var(--ink); font: 600 14px/1 var(--mono); }
.author-link { display: flex; gap: 8px; align-items: center; width: 100%; border: 0; background: transparent; color: var(--muted); text-align: left; padding: 7px 2px; border-radius: 3px; }
.author-link:hover, .author-link.active { background: #eef3ef; color: var(--ink); }
.author-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; background: #e9ece5; color: var(--green); font-size: 10px; font-weight: 700; flex: none; }
.author-link span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.author-link small { margin-left: auto; color: var(--soft); font: 11px var(--mono); }
.mini-chart { height: 52px; display: flex; align-items: end; gap: 5px; margin: 12px 0 7px; }
.mini-bar { flex: 1; min-height: 2px; background: #bfd8c9; border-radius: 2px 2px 0 0; }
.mini-bar.today { background: var(--accent); }
.chart-caption { color: var(--soft); display: flex; justify-content: space-between; font: 10px var(--mono); }
.rail-note { color: var(--muted); font-size: 12px; line-height: 1.65; }
.right-rail a { color: var(--blue); }
.right-rail .rail-note { margin-top: 8px; }
.work-area { min-width: 0; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 26px; }
.page-heading h1 { margin: 5px 0 0; font-size: 29px; line-height: 1.25; font-weight: 720; }
.page-heading .eyebrow { color: var(--accent); }
.heading-actions { display: flex; gap: 8px; flex: none; }
.filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 17px; border-bottom: 1px solid var(--line-dark); }
.search-field { min-width: 170px; flex: 1 1 200px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--soft); }
.search-field:focus-within { border-color: var(--green); }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-field input::placeholder { color: var(--soft); }
.select-field { height: 36px; min-width: 120px; max-width: 190px; border: 1px solid var(--line); border-radius: 4px; padding: 0 25px 0 10px; background: var(--surface); color: var(--ink); font-size: 12px; }
.segments { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 2px; height: 36px; }
.segments button { padding: 6px 9px; height: 30px; background: none; border: 0; color: var(--muted); font-size: 11px; white-space: nowrap; border-radius: 2px; }
.segments button.active { background: var(--ink); color: #fff; }
.list-meta { display: flex; justify-content: space-between; color: var(--soft); font: 11px var(--mono); padding: 13px 0 1px; }
.article-row { padding: 22px 0 21px; border-bottom: 1px solid var(--line); }
.article-row:hover .article-title { color: var(--green); }
.row-top { display: flex; align-items: center; gap: 8px; color: var(--soft); font: 11px/1.4 var(--mono); }
.row-top .source-name { color: var(--green); font-weight: 700; text-transform: uppercase; }
.row-top .source-name:hover { color: var(--accent); }
.row-top .dot-separator { opacity: .55; }
.row-top .row-action { margin-left: auto; }
.article-title { display: inline-block; margin: 10px 0 5px; font-size: 19px; line-height: 1.35; font-weight: 680; overflow-wrap: anywhere; }
.article-summary { color: #40504a; font-size: 13px; line-height: 1.72; margin: 0 0 11px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.article-row.unanalyzed .article-summary { color: var(--soft); }
.sortbar { display: flex; align-items: center; gap: 13px; padding: 12px 0 2px; color: var(--soft); font-size: 11px; }
.sortbar button { border: 0; padding: 3px 0; background: transparent; color: var(--muted); font: inherit; }
.sortbar button.active { color: var(--ink); font-weight: 700; }
.sortbar button:hover { color: var(--accent); }
.pitch-row { display: grid; grid-template-columns: 25px 42px minmax(0, 1fr); gap: 10px; padding: 19px 0 21px; border-bottom: 1px solid var(--line); }
.pitch-rank { color: var(--soft); font-size: 11px; padding-top: 5px; text-align: right; }
.pitch-score { display: inline-grid; place-items: center; width: 36px; height: 27px; border-radius: 2px; font-size: 12px; font-weight: 700; }
.pitch-score.scored { background: var(--green); color: #fff; }
.pitch-score.unscored { background: #e7ebe7; color: var(--muted); }
.pitch-content { min-width: 0; }
.pitch-headline { display: flex; align-items: baseline; gap: 8px; }
.pitch-headline h2 { margin: 0; font-size: 16px; line-height: 1.42; font-weight: 680; overflow-wrap: anywhere; }
.pitch-headline a:hover { color: var(--green); }
.pitch-symbol { padding: 1px 4px; background: var(--green-pale); color: var(--green); font-size: 10px; white-space: nowrap; }
.pitch-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 5px 0 9px; color: var(--soft); font-size: 10px; line-height: 1.4; }
.pitch-meta a { display: inline-flex; align-items: center; gap: 1px; color: var(--blue); }
.pitch-meta .icon { width: 11px; height: 11px; }
.pitch-meta .pitch-asset { color: var(--green); }
.meta-author { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; }
.meta-author:hover { color: var(--accent); }
.pitch-bullets { margin: 0; padding-left: 17px; color: #40504a; font-size: 12px; line-height: 1.67; }
.pitch-bullets li { padding-left: 1px; margin: 2px 0; }
.pitch-content .article-summary { display: block; margin: 0; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { color: var(--green); background: var(--green-pale); border-radius: 3px; padding: 2px 6px; font: 10px/1.45 var(--mono); }
.tag.neutral { color: var(--muted); background: #edf0ed; }
.tag.orange { color: var(--accent); background: var(--accent-pale); }
.pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 23px; }
.pagination span { color: var(--soft); font: 11px var(--mono); }
.pagination .quiet-button { padding: 6px 9px; }
.empty { border-top: 1px solid var(--line); padding: 66px 0; max-width: 540px; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--green-pale); color: var(--green); border-radius: 5px; margin-bottom: 17px; }
.empty h2 { margin: 0 0 9px; font-size: 20px; }
.empty p { color: var(--muted); margin: 0 0 21px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 0 0 22px; }
.detail-header h1 { margin: 9px 0 11px; font-size: 30px; line-height: 1.3; font-weight: 720; overflow-wrap: anywhere; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font: 11px var(--mono); }
.detail-meta a { color: var(--blue); }
.tabbar { display: flex; gap: 23px; border-bottom: 1px solid var(--line-dark); margin: 30px 0 25px; }
.tabbar button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 0 2px 11px; font-weight: 620; font-size: 13px; }
.tabbar button.active { border-bottom-color: var(--accent); color: var(--ink); }
.tldr { border-left: 3px solid var(--accent); background: #f1f5f1; padding: 20px 23px; margin: 0 0 28px; }
.tldr .mini-label { color: var(--accent); }
.tldr p { margin: 8px 0 0; font-size: 16px; line-height: 1.7; font-weight: 560; }
.detail-section { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.detail-section h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 12px; }
.detail-section h2 .icon { color: var(--green); }
.detail-section p { margin: 0; color: #33413b; white-space: pre-wrap; }
.bullet-list { margin: 0; padding: 0 0 0 19px; color: #3c4944; }
.bullet-list li { margin: 0 0 7px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.original-text { white-space: pre-wrap; line-height: 1.9; color: #35413d; font-size: 14px; overflow-wrap: anywhere; }
.source-footer { border-top: 1px solid var(--line); padding-top: 16px; color: var(--soft); font: 11px/1.6 var(--mono); }
.report-row, .author-row { border-bottom: 1px solid var(--line); padding: 18px 0; }
.report-row h2 { margin: 7px 0 7px; font-size: 17px; line-height: 1.42; }
.report-row p { color: var(--muted); margin: 0; font-size: 13px; }
.report-section { border-top: 1px solid var(--line); padding: 24px 0; }
.report-section h2 { margin: 0 0 13px; font-size: 17px; }
.report-entry { margin-bottom: 21px; }
.report-entry h3 { font-size: 14px; margin: 0 0 7px; }
.report-entry .small-source { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; font: 11px var(--mono); color: var(--blue); }
.author-row { display: flex; align-items: center; gap: 13px; }
.author-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 4px; background: #e9f0eb; color: var(--green); font-size: 15px; font-weight: 700; flex: none; }
.author-info { min-width: 0; flex: 1; }
.author-info strong { display: block; font-size: 14px; }
.author-info span { color: var(--soft); font: 11px var(--mono); }
.author-count { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font: 11px var(--mono); white-space: nowrap; }
.mobile-stats { display: none; }
@media (max-width: 1170px) {
  .page-shell { grid-template-columns: 200px minmax(0, 1fr); max-width: 1050px; gap: 30px; }
  .right-rail { display: none; }
}
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 60px; }
  .topbar-inner { padding: 0 16px; flex-wrap: wrap; gap: 0; }
  .brand { height: 55px; font-size: 16px; }
  .top-actions { margin-left: auto; }
  .topnav { order: 3; width: 100%; overflow-x: auto; gap: 0; height: 44px; }
  .topnav a { padding: 0 13px; font-size: 12px; }
  .topnav a:first-child { padding-left: 0; }
  .page-shell { display: block; padding: 21px 16px 60px; }
  .left-rail { display: none; }
  .mobile-stats { display: flex; gap: 8px; flex-wrap: wrap; color: var(--soft); font: 10px var(--mono); margin-bottom: 18px; }
  .mobile-stats span { background: #edf2ee; padding: 4px 7px; border-radius: 2px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading h1 { font-size: 24px; }
  .heading-actions { gap: 5px; }
  .heading-actions .button-label { display: none; }
  .filterbar { gap: 7px; }
  .search-field { flex-basis: 100%; }
  .select-field { flex: 1; min-width: 110px; }
  .segments { flex: none; }
  .article-title { font-size: 18px; }
  .pitch-row { grid-template-columns: 19px 34px minmax(0, 1fr); gap: 7px; padding: 17px 0; }
  .pitch-score { width: 31px; height: 25px; font-size: 11px; }
  .pitch-headline { flex-wrap: wrap; gap: 4px 7px; }
  .pitch-headline h2 { font-size: 15px; }
  .pitch-bullets { font-size: 12px; }
  .detail-header h1 { font-size: 24px; }
  .detail-columns { display: block; }
}
@media (max-width: 390px) {
  .brand small { display: none; }
  .top-actions { gap: 1px; }
  .topnav a { padding: 0 8px; gap: 5px; font-size: 11px; }
  .topnav a .icon { width: 13px; height: 13px; }
  .page-heading h1 { font-size: 22px; }
  .select-field { max-width: 135px; }
  .segments button { padding: 6px 7px; }
}
