:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f2f4f7;
  --text: #0a2540;
  --muted: #5b6b7f;
  --line: #d9e1ea;
  --brand: #008060;
  --brand-strong: #00684a;
  --accent: #635bff;
  --accent-soft: #eef2ff;
  --amber: #a15c00;
  --ink-soft: #0a2540;
  --warn: #a15c00;
  --blue: #635bff;
  --rose: #b42318;
  --shadow: 0 14px 34px rgba(10, 37, 64, 0.08);
}

body.dark {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111827;
  --panel-soft: #172033;
  --text: #f6f8fb;
  --muted: #a8b3c2;
  --line: #263247;
  --brand: #00a878;
  --brand-strong: #34d399;
  --accent: #9b8cff;
  --accent-soft: #1b2140;
  --amber: #f2b84b;
  --ink-soft: #f6f8fb;
  --warn: #f2b84b;
  --blue: #9b8cff;
  --rose: #fb7185;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(99, 91, 255, 0.045), transparent 30%),
    linear-gradient(180deg, rgba(0, 128, 96, 0.055), transparent 300px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, var(--panel-soft));
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  background: transparent;
  border: 0;
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.workspace-switcher {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.workspace-switcher span,
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

.workspace-switcher strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

.nav-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.nav-item.is-active,
.nav-item:hover {
  background: var(--panel);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--brand);
}

.icon {
  width: 22px;
  text-align: center;
  color: var(--brand);
  font-weight: 700;
}

.source-panel,
.mini-card,
.rail-section,
.stat-block {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.source-panel {
  padding: 16px;
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow: auto;
}

.source-filter-list {
  display: grid;
  gap: 10px;
}

.panel-title {
  color: var(--muted);
  font-size: 13px;
}

.source-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-panel input {
  accent-color: var(--brand);
}

.mini-card {
  margin-top: auto;
  padding: 16px;
}

.metric-label,
.stat-block span,
.section-head p,
.article-meta,
.article-tags,
.article-signal span,
.health-row span,
.section-head.compact span {
  color: var(--muted);
}

.mini-card strong {
  display: block;
  font-size: 32px;
  margin: 6px 0;
}

.mini-card small {
  color: var(--muted);
  line-height: 1.5;
}

.disclaimer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.main {
  min-width: 0;
  padding: 18px 20px 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
  margin-top: 4px;
  color: var(--ink-soft);
}

.topbar p {
  color: var(--muted);
  margin-top: 6px;
  max-width: 760px;
  line-height: 1.45;
}

.desk-brief {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 10px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 48%),
    var(--panel);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: none;
}

.brief-copy {
  min-width: 0;
}

.brief-copy span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brief-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.brief-copy p {
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brief-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.brief-status-grid div {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 72%, var(--panel-soft));
  border-radius: 8px;
  padding: 9px;
}

.brief-status-grid span,
.brief-status-grid strong {
  display: block;
}

.brief-status-grid span {
  color: var(--muted);
  font-size: 12px;
}

.brief-status-grid strong {
  margin-top: 5px;
  font-size: 16px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: min(100%, 520px);
}

.refresh-status {
  display: grid;
  gap: 2px;
  min-width: 118px;
  color: var(--text);
  font-size: 13px;
}

.refresh-status small {
  color: var(--muted);
}

.search-box {
  width: min(420px, 100%);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0 12px;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon-button,
.text-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
  border-radius: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
}

.text-button {
  min-height: 30px;
  padding: 0 10px;
}

.text-button:hover,
.icon-button:hover,
.focus-strip button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.trust-strip {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 14px;
}

.trust-strip div {
  background: var(--panel);
  padding: 12px 14px;
}

.trust-strip span,
.trust-strip strong {
  display: block;
}

.trust-strip span {
  color: var(--muted);
  font-size: 12px;
}

.trust-strip strong {
  color: var(--text);
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.stat-block {
  padding: 12px;
  min-height: 82px;
}

.stat-block strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  margin: 6px 0 4px;
}

.stat-block small {
  color: var(--muted);
}

.stat-block.accent {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--panel));
}

.focus-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.focus-strip button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-grid;
  gap: 2px;
  text-align: left;
}

.focus-strip button:hover {
  background: var(--accent-soft);
}

.focus-strip button.is-selected {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent);
  color: white;
}

.focus-strip button.is-empty {
  color: var(--muted);
  opacity: 0.68;
}

.focus-count {
  min-width: 22px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
}

.focus-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.focus-basis {
  max-width: 190px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-strip button.is-selected .focus-count {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.focus-strip button.is-selected .focus-basis {
  color: rgba(255, 255, 255, 0.76);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.feed-section {
  min-width: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.section-head h2 {
  font-size: 18px;
  letter-spacing: 0;
}

.section-head p {
  font-size: 14px;
  margin-top: 2px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 32px;
  padding: 0 12px;
}

.segmented button.is-selected {
  background: var(--accent);
  color: white;
}

.feed-list {
  display: grid;
  gap: 8px;
}

.source-board-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cluster-list {
  display: grid;
  gap: 14px;
}

.market-brief {
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  background: var(--panel);
  border-radius: 8px;
  padding: 12px;
  box-shadow: none;
}

.market-brief-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.market-brief-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.market-brief-head h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.brief-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
}

.brief-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.brief-main {
  min-width: 0;
}

.brief-meta,
.brief-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brief-meta span,
.brief-impact span {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 12px;
}

.brief-meta span:first-child {
  color: var(--accent);
}

.brief-card h4 {
  margin: 7px 0 6px;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.brief-card h4 a {
  color: var(--text);
  text-decoration: none;
}

.brief-card h4 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.brief-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-divider {
  display: none;
}

.cluster-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.cluster-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.cluster-head h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.cluster-head h3 a {
  color: var(--text);
  text-decoration: none;
}

.cluster-head h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.cluster-summary {
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
}

.cluster-metrics {
  display: grid;
  grid-template-columns: repeat(2, 72px);
  gap: 8px;
}

.cluster-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.cluster-metric strong,
.cluster-metric span {
  display: block;
}

.cluster-metric strong {
  font-size: 20px;
}

.cluster-metric span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.cluster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cluster-meta span {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}

.cluster-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cluster-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.cluster-item b {
  color: var(--accent);
  font-size: 12px;
}

.cluster-item a {
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.cluster-item span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.source-board {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.source-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.source-board-head h3 {
  margin: 0;
  font-size: 16px;
}

.source-board-head span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.source-board-items {
  display: grid;
}

.source-board-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.source-board-item:first-child {
  border-top: 0;
}

.source-board-rank {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.source-board-title {
  min-width: 0;
}

.source-board-title a {
  color: var(--text);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-board-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.source-board-title small,
.source-board-score {
  color: var(--muted);
  font-size: 12px;
}

.source-board-score {
  white-space: nowrap;
}

.article-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 11px;
  box-shadow: none;
}

.article-card.is-priority {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 36%),
    var(--panel);
}

.article-card:hover,
.cluster-card:hover,
.source-board:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: var(--shadow);
}

.article-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--accent);
  font-weight: 800;
}

.article-body {
  min-width: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

.source-pill {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.topic-pill {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.brief-preview-pill {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--muted) 22%, var(--line));
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.brief-preview-pill.summary_allowed,
.brief-preview-pill.full_text_allowed,
.brief-preview-pill.licensed_only {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, var(--panel));
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
}

.brief-preview-pill.metadata_only {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 10%, var(--panel));
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
}

.brief-preview-pill.published_ai {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
}

.brief-preview-pill.published_guide {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 8%, var(--panel));
  border-color: color-mix(in srgb, var(--success) 24%, var(--line));
}

.tier-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  color: var(--muted);
  background: var(--panel-soft);
}

.tier-pill.authority {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand) 10%, var(--panel));
  border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
}

.tier-pill.industry {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}

.tier-pill.community {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 10%, var(--panel));
  border-color: color-mix(in srgb, var(--amber) 24%, var(--line));
}

.tier-pill.social {
  color: var(--muted);
  background: var(--panel-soft);
}

h3 {
  margin: 7px 0 6px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article-card.is-priority h3 {
  font-size: 17px;
}

h3 a {
  color: inherit;
  text-decoration: none;
}

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

.article-body p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-brief-evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--panel-soft) 72%, var(--panel));
  border-radius: 8px;
  padding: 5px 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
}

.article-brief-evidence span {
  color: var(--accent);
  font-weight: 850;
  white-space: nowrap;
}

.article-brief-evidence strong {
  color: var(--text);
  font-weight: 750;
  min-width: 0;
  overflow-wrap: anywhere;
}

.article-brief-evidence small {
  color: var(--muted);
  font-size: inherit;
}

.article-brief-evidence em {
  margin-left: auto;
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.article-brief-evidence.summary_allowed,
.article-brief-evidence.full_text_allowed,
.article-brief-evidence.licensed_only,
.article-brief-evidence.published_guide {
  background: color-mix(in srgb, var(--success) 7%, var(--panel));
  border-color: color-mix(in srgb, var(--success) 22%, var(--line));
}

.article-brief-evidence.summary_allowed span,
.article-brief-evidence.full_text_allowed span,
.article-brief-evidence.licensed_only span,
.article-brief-evidence.published_guide span {
  color: var(--success);
}

.article-brief-evidence.metadata_only {
  background: color-mix(in srgb, var(--amber) 8%, var(--panel));
  border-color: color-mix(in srgb, var(--amber) 24%, var(--line));
}

.article-brief-evidence.metadata_only span {
  color: var(--amber);
}

.article-brief-evidence.published_ai {
  background: color-mix(in srgb, var(--brand) 8%, var(--panel));
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}

.article-brief-evidence.published_ai span {
  color: var(--brand);
}

.article-insight {
  margin-top: 6px;
}

.insight-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 46%),
    color-mix(in srgb, var(--accent-soft) 28%, var(--panel));
  border-radius: 8px;
  padding: 7px 8px;
  display: block;
  min-width: 0;
}

.insight-primary {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.insight-grid {
  display: none;
}

.insight-item {
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--panel) 78%, var(--panel-soft));
  border-radius: 8px;
  padding: 5px 7px;
  min-width: 0;
}

.insight-primary span,
.insight-item span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.insight-primary span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.insight-primary strong,
.insight-item strong {
  display: -webkit-box;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-primary strong {
  font-size: 13px;
  line-height: 1.4;
  -webkit-line-clamp: 1;
}

.insight-item strong {
  -webkit-line-clamp: 1;
}

.article-original-title {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: -1px 0 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-tags {
  display: none;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.article-tags span {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 12px;
}

.article-tags span:nth-child(n+4) {
  display: none;
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.article-actions span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-feedback {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--panel);
}

.article-feedback button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  min-height: 22px;
  padding: 0 8px;
  font-size: 12px;
}

.article-feedback button:hover,
.article-feedback button.is-selected {
  background: var(--accent-soft);
  color: var(--accent);
}

.article-actions a {
  flex: 0 0 auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.article-actions a:hover {
  text-decoration: underline;
}

.article-detail-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.article-detail-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.article-detail-button.has-brief {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}

.article-detail-button.has-brief:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
}

.article-signal {
  border-left: 1px solid var(--line);
  padding-left: 10px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.article-signal strong {
  font-size: 20px;
  color: var(--text);
}

.sparkline {
  height: 20px;
  display: flex;
  align-items: end;
  gap: 4px;
}

.sparkline i {
  display: block;
  width: 9px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: 0.8;
}

.sparkline i:nth-child(1) { height: 30%; }
.sparkline i:nth-child(2) { height: 58%; }
.sparkline i:nth-child(3) { height: 48%; }
.sparkline i:nth-child(4) { height: 76%; }
.sparkline i:nth-child(5) { height: 100%; }

.right-rail {
  display: grid;
  gap: 14px;
}

.rail-section {
  padding: 16px;
}

.release-status {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent 48%),
    var(--panel);
}

#releaseBadge,
#sourceQualityBadge {
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--panel));
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

#releaseBadge.is-warning,
#sourceQualityBadge.is-warning {
  border-color: color-mix(in srgb, var(--amber) 26%, var(--line));
  background: color-mix(in srgb, var(--amber) 12%, var(--panel));
  color: var(--amber);
}

.release-version,
.release-metrics {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 5px;
}

.release-version div,
.release-metrics div {
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--panel) 82%, var(--panel-soft));
  border-radius: 6px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.release-version span,
.release-metrics span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.release-version strong,
.release-metrics strong {
  margin-top: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: visible;
}

.source-quality {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 7%, transparent), transparent 52%),
    var(--panel);
}

.source-quality-score {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 12px;
}

.source-quality-score strong {
  color: var(--text);
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1;
}

.source-quality-score span {
  color: var(--muted);
  font-size: 13px;
}

.source-quality-tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.source-quality-sla {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-soft) 72%, var(--panel));
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.source-quality-tier-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 90%, var(--line));
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.source-quality-tier-list .tier-authority {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
  background: color-mix(in srgb, var(--success) 9%, var(--panel));
  color: var(--success);
}

.source-quality-tier-list .tier-industry {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--panel));
  color: var(--brand-strong);
}

.source-quality-tier-list .tier-community,
.source-quality-tier-list .tier-social {
  border-color: color-mix(in srgb, var(--amber) 26%, var(--line));
  background: color-mix(in srgb, var(--amber) 8%, var(--panel));
  color: var(--amber);
}

.source-quality-tier-list .is-watch,
.source-quality-tier-list .is-warn,
.source-quality-tier-list .is-warning {
  border-color: color-mix(in srgb, var(--amber) 36%, var(--line));
}

.source-quality-watch-list {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.source-quality-watch-item {
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: color-mix(in srgb, var(--amber) 7%, var(--panel));
  padding: 8px 10px;
}

.source-quality-watch-item.is-ok {
  border-left-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--panel));
}

.source-quality-watch-item strong,
.source-quality-watch-item span {
  display: block;
}

.source-quality-watch-item strong {
  color: var(--text);
  font-size: 12px;
}

.source-quality-watch-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}

.release-notes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.release-notes div {
  position: relative;
  padding-left: 12px;
}

.release-notes div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-head.compact h2 {
  font-size: 16px;
}

.signal-list {
  display: grid;
  gap: 8px;
}

.topic-list {
  display: grid;
  gap: 8px;
}

.topic-list button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.topic-list button:hover {
  border-color: var(--accent);
}

.topic-list span {
  overflow-wrap: anywhere;
}

.topic-list strong {
  color: var(--accent);
  font-size: 14px;
}

.signal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px;
}

.signal-card button {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: left;
  width: 100%;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.signal-card button:hover {
  color: var(--accent);
}

.signal-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
  font-size: 12px;
}

.signal-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.signal-meta span {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 12px;
}

.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.watch-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.watch-form input {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 9px;
  font: inherit;
  font-size: 13px;
}

.watch-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--violet) 28%, transparent);
  outline-offset: 1px;
  border-color: var(--violet);
}

.watch-subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.watch-subscribe-form input {
  grid-column: 1 / -1;
}

.watch-subscribe-form input,
.watch-subscribe-form select {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 9px;
  font: inherit;
  font-size: 13px;
}

.watch-subscribe-form select {
  appearance: none;
  padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.watch-subscribe-form input:focus,
.watch-subscribe-form select:focus {
  outline: 2px solid color-mix(in srgb, var(--violet) 28%, transparent);
  outline-offset: 1px;
  border-color: var(--violet);
}

.watch-subscribe-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.watch-subscribe-note.is-good {
  color: var(--accent);
}

.watch-subscribe-note.is-warn {
  color: var(--warn);
}

#watchStatus {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#watchStatus.is-good {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}

#watchStatus.is-warn {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, var(--panel));
}

.watch-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  overflow: hidden;
  min-height: 32px;
}

.watch-tag button {
  border: 0;
  background: transparent;
  color: var(--text);
  min-height: 30px;
}

.watch-tag button[data-word] {
  padding: 0 9px 0 11px;
}

.watch-tag button[data-remove-word] {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  min-width: 30px;
  padding: 0;
}

.watch-tag button:hover {
  color: var(--accent);
}

.watch-empty {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.45;
  width: 100%;
}

.health-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.health-row:first-of-type {
  border-top: 0;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 52%),
    var(--panel);
}

.empty-state span,
.empty-state strong,
.empty-state p {
  display: block;
}

.empty-state span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.empty-state strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  margin-top: 7px;
}

.empty-state p {
  line-height: 1.58;
  margin-top: 8px;
  max-width: 560px;
}

.empty-state .text-button {
  margin-top: 14px;
  min-height: 36px;
}

.empty-state.is-compact {
  padding: 16px;
}

.empty-state.is-compact strong {
  font-size: 15px;
}

.empty-state.is-compact p {
  font-size: 13px;
}

.loading-skeleton {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.skeleton-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.skeleton-head span {
  display: block;
  width: 92px;
  height: 11px;
  border-radius: 999px;
  background: var(--panel-soft);
}

.skeleton-head strong,
.skeleton-head p {
  display: block;
}

.skeleton-head strong {
  margin-top: 10px;
  color: var(--text);
  font-size: 18px;
}

.skeleton-head p {
  color: var(--muted);
  margin-top: 6px;
}

.skeleton-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: color-mix(in srgb, var(--panel) 82%, var(--panel-soft));
}

.skeleton-card i,
.skeleton-card b,
.skeleton-card em,
.skeleton-card small {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--panel-soft), color-mix(in srgb, var(--panel-soft) 62%, var(--panel)), var(--panel-soft));
  background-size: 220% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-card i {
  width: 120px;
  height: 16px;
}

.skeleton-card b {
  width: min(78%, 520px);
  height: 22px;
}

.skeleton-card em {
  width: min(92%, 700px);
  height: 14px;
}

.skeleton-card small {
  width: min(46%, 280px);
  height: 14px;
}

@keyframes skeleton-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.has-article-drawer {
  overflow: hidden;
}

.article-drawer[hidden] {
  display: none;
}

.article-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(720px, calc(100vw - 28px));
}

.article-drawer-backdrop {
  background: rgb(7 17 32 / 0.36);
  backdrop-filter: blur(5px);
}

.article-drawer-panel {
  position: relative;
  overflow: auto;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 64px rgb(10 37 64 / 0.18);
  padding: 26px;
}

.drawer-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--muted);
  font-size: 22px;
  z-index: 2;
}

.drawer-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.drawer-content {
  display: grid;
  gap: 14px;
  margin-top: -16px;
}

.drawer-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.detail-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.drawer-content h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.detail-original-title {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.detail-state {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-state.is-loading {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.detail-state.is-error {
  border: 1px solid color-mix(in srgb, var(--warn) 28%, var(--line));
  background: color-mix(in srgb, var(--warn) 10%, var(--panel));
  color: var(--warn);
}

.detail-summary-block {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 56%),
    var(--panel-soft);
  border-radius: 8px;
  padding: 14px;
}

.detail-summary-block.secondary {
  background: var(--panel);
}

.detail-summary-block span,
.detail-insight-card span,
.detail-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-summary-block p {
  color: var(--text);
  line-height: 1.65;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.detail-ai-brief {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%),
    var(--panel);
  border-radius: 8px;
  padding: 14px;
}

.detail-ai-brief.is-empty {
  border-style: dashed;
  color: var(--muted);
}

.detail-ai-brief.is-public-guide {
  border-color: color-mix(in srgb, var(--line) 86%, var(--text));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-soft) 88%, transparent), transparent 58%),
    var(--panel);
}

.detail-ai-brief.is-public-guide .detail-section-head span {
  color: var(--muted);
}

.detail-ai-brief.is-public-guide .ai-brief-lede span,
.detail-ai-brief.is-public-guide .ai-brief-grid span,
.detail-ai-brief.is-public-guide .ai-brief-source-facts > span,
.detail-ai-brief.is-public-guide .ai-brief-watch span {
  color: var(--brand);
}

.detail-ai-brief.is-public-guide .ai-brief-provenance div {
  border-color: var(--line);
  background: var(--panel-soft);
}

.ai-brief-mode-notice {
  display: grid;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--line));
  background: color-mix(in srgb, var(--warning) 7%, var(--panel));
  border-radius: 8px;
  padding: 11px 12px;
}

.ai-brief-mode-notice.is-generated {
  border-color: color-mix(in srgb, var(--success) 32%, var(--line));
  background: color-mix(in srgb, var(--success) 7%, var(--panel));
}

.ai-brief-mode-notice span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-brief-mode-notice strong {
  color: var(--text);
  font-size: 15px;
}

.ai-brief-mode-notice p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ai-brief-lede {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 12px;
}

.ai-brief-reading-value {
  display: grid;
  grid-template-columns: 0.85fr repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-brief-reading-value div {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  background: color-mix(in srgb, var(--panel-soft) 76%, var(--panel));
  border-radius: 8px;
  padding: 10px;
}

.ai-brief-reading-value div:first-child {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%),
    var(--panel);
}

.ai-brief-reading-value span {
  display: block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-brief-reading-value strong,
.ai-brief-reading-value p {
  display: block;
  margin-top: 5px;
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ai-brief-reading-value strong {
  font-size: 15px;
}

.ai-brief-reading-value p {
  font-size: 13px;
}

.ai-brief-provenance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-brief-provenance div {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
  border-radius: 8px;
  padding: 10px;
}

.ai-brief-provenance span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-brief-provenance strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-top: 5px;
}

.ai-brief-provenance small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.ai-brief-lede span,
.ai-brief-grid span,
.ai-brief-source-facts > span,
.ai-brief-watch span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.ai-brief-lede strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.ai-brief-reader {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--success) 24%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 7%, transparent), transparent 58%),
    color-mix(in srgb, var(--panel-soft) 78%, var(--panel));
  border-radius: 8px;
  padding: 12px;
}

.ai-brief-answer-panel {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 58%),
    color-mix(in srgb, var(--panel-soft) 82%, var(--panel));
}

.ai-brief-answer-hero {
  min-width: 0;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}

.ai-brief-answer-hero span,
.ai-brief-answer-grid span,
.ai-brief-takeaways span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.ai-brief-answer-hero strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.ai-brief-answer-hero p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.ai-brief-takeaways {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  background: color-mix(in srgb, var(--panel) 86%, var(--brand));
  border-radius: 8px;
  padding: 10px;
}

.ai-brief-takeaways ul {
  display: grid;
  gap: 7px;
  margin-top: 7px;
  padding-left: 18px;
}

.ai-brief-takeaways li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ai-brief-reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-brief-reader-head span,
.ai-brief-reader-grid span,
.ai-brief-reader-facts span {
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.ai-brief-reader-head strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.ai-brief-reader > p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ai-brief-reader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ai-brief-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-brief-answer-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px;
}

.ai-brief-reader-grid div,
.ai-brief-reader-facts {
  min-width: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 9px;
}

.ai-brief-answer-grid li,
.ai-brief-reader-grid p,
.ai-brief-reader-grid li,
.ai-brief-reader-facts li {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ai-brief-answer-grid ul,
.ai-brief-reader-grid p,
.ai-brief-reader-grid ul,
.ai-brief-reader-facts ul {
  margin-top: 6px;
}

.ai-brief-answer-grid ul,
.ai-brief-reader-grid ul,
.ai-brief-reader-facts ul {
  padding-left: 18px;
}

.ai-brief-reader small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ai-brief-keyfacts {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-soft) 74%, var(--panel));
  border-radius: 8px;
  padding: 12px;
}

.ai-brief-keyfacts span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.ai-brief-keyfacts ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ai-brief-keyfacts li {
  color: var(--text);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.ai-brief-keyfacts li + li {
  margin-top: 5px;
}

.ai-brief-source-facts {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%),
    color-mix(in srgb, var(--panel-soft) 70%, var(--panel));
  border-radius: 8px;
  padding: 12px;
}

.ai-brief-source-facts.is-model-generated {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 8%, transparent), transparent 62%),
    color-mix(in srgb, var(--panel-soft) 70%, var(--panel));
}

.ai-brief-source-facts ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: source-fact;
}

.ai-brief-source-facts li {
  position: relative;
  min-height: 24px;
  padding-left: 34px;
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ai-brief-source-facts li::before {
  counter-increment: source-fact;
  content: counter(source-fact);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 999px;
  color: var(--accent);
  background: var(--panel);
  font-size: 11px;
  font-weight: 900;
}

.ai-brief-analysis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-brief-analysis section {
  min-width: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-soft) 72%, var(--panel));
  border-radius: 8px;
  padding: 12px;
}

.ai-brief-analysis span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.ai-brief-analysis ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ai-brief-analysis li {
  color: var(--text);
  line-height: 1.56;
  overflow-wrap: anywhere;
}

.ai-brief-analysis li + li {
  margin-top: 5px;
}

.ai-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-brief-reliability {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, minmax(0, 1fr)) .72fr;
  gap: 8px;
}

.ai-brief-basis-card,
.ai-brief-boundary-card,
.ai-brief-confidence-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-soft) 72%, var(--panel));
  border-radius: 8px;
  padding: 10px;
}

.ai-brief-boundary-card.is-limit {
  background: color-mix(in srgb, var(--warning) 7%, var(--panel));
}

.ai-brief-basis-card span,
.ai-brief-boundary-card span,
.ai-brief-confidence-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-brief-basis-card strong,
.ai-brief-confidence-card strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-top: 5px;
}

.ai-brief-basis-card small,
.ai-brief-confidence-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 4px;
}

.ai-brief-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 9px;
}

.ai-brief-bars span {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 20%, transparent);
}

.ai-brief-bars span.is-active {
  background: var(--accent);
}

.ai-brief-boundary-card ul {
  margin: 7px 0 0;
  padding-left: 16px;
}

.ai-brief-boundary-card li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ai-brief-boundary-card li + li {
  margin-top: 4px;
}

.ai-brief-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 12px;
}

.ai-brief-grid p,
.ai-brief-watch li,
.ai-brief-footnote {
  color: var(--muted);
  line-height: 1.58;
}

.ai-brief-grid p {
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.ai-brief-evidence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-brief-evidence div {
  min-width: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-soft) 70%, var(--panel));
  border-radius: 8px;
  padding: 10px;
}

.ai-brief-evidence span,
.ai-brief-source-excerpt span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-brief-evidence strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ai-brief-source-excerpt {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--panel);
}

.ai-brief-source-excerpt p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ai-brief-citations {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-soft) 68%, var(--panel));
  border-radius: 8px;
  padding: 12px;
}

.ai-brief-citations > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-brief-citation-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.ai-brief-citation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px;
}

.ai-brief-citation-card div {
  min-width: 0;
}

.ai-brief-citation-card strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.ai-brief-citation-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.ai-brief-citation-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 5px;
}

.ai-brief-citation-card a,
.ai-brief-citation-card em {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.ai-brief-citation-card em {
  color: var(--muted);
}

.ai-brief-watch {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 12px;
}

.ai-brief-watch ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ai-brief-watch li + li {
  margin-top: 5px;
}

.ai-brief-footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.ai-brief-footnote small {
  color: var(--muted);
  font-weight: 800;
}

.detail-insight-grid,
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-insight-card,
.detail-metrics div {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

.detail-insight-card.wide {
  grid-column: 1 / -1;
}

.detail-insight-card strong {
  display: block;
  color: var(--text);
  line-height: 1.5;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.detail-metrics strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-tags span {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-actions .text-button {
  width: auto;
  color: var(--accent);
  text-decoration: none;
}

.detail-copy-button {
  background: var(--panel);
}

.detail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.detail-section-head h3 {
  margin: 0;
  font-size: 16px;
}

.detail-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-related {
  display: grid;
  gap: 10px;
}

.detail-related-list {
  display: grid;
  gap: 8px;
}

.detail-related-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}

.detail-related-item button {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.detail-related-item button:hover strong {
  color: var(--accent);
  text-decoration: underline;
}

.detail-related-item span,
.detail-related-item small {
  color: var(--muted);
  font-size: 12px;
}

.detail-related-item strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-related-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-related-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.detail-related-reasons {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-related-reasons span {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-soft) 72%, var(--panel));
  font-size: 12px;
  font-weight: 800;
}

.detail-related-track {
  grid-column: 1 / -1;
  justify-self: start;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--panel);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.detail-related-track:hover {
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
}

.detail-related-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
  line-height: 1.5;
}

@media (max-width: 1380px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-template-columns: minmax(0, 1fr);
    position: static;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desk-brief {
    grid-template-columns: 1fr;
  }

  .brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .sidebar > * {
    grid-column: 1;
  }

  .brand {
    grid-row: 1;
  }

  .workspace-switcher {
    grid-row: 2;
  }

  .mini-card {
    grid-row: 3;
  }

  .disclaimer {
    grid-row: 4;
  }

  .nav-group,
  .source-panel {
    grid-column: 2;
  }

  .nav-group {
    grid-row: 1;
  }

  .source-panel {
    grid-row: 2 / span 3;
  }

  .nav-group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .source-panel {
    max-height: 230px;
  }

  .source-filter-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-title {
    grid-column: 1 / -1;
  }

  .mini-card {
    margin-top: 0;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-template-columns: minmax(0, 1fr);
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .source-filter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 12px;
    display: grid;
    grid-template-columns: 1fr;
    background: color-mix(in srgb, var(--panel) 94%, var(--bg));
    backdrop-filter: blur(14px);
  }

  .sidebar > * {
    grid-column: 1;
    grid-row: auto;
  }

  .workspace-switcher,
  .mini-card,
  .disclaimer {
    display: none;
  }

  .source-panel {
    display: none;
  }

  .topbar {
    display: grid;
    gap: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .toolbar,
  .search-box {
    width: 100%;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    min-width: 0;
  }

  .refresh-status {
    grid-column: 1 / -1;
  }

  .search-box {
    grid-column: 1 / span 2;
  }

  #autoRefreshButton {
    grid-column: 2 / span 2;
  }

  .text-button,
  .icon-button {
    width: 100%;
  }

  .icon-button {
    width: 42px;
  }

  .summary-grid,
  .right-rail,
  .source-board-list,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .brief-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nav-item {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .source-filter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
    display: grid;
  }

  .market-brief-head,
  .feed-divider {
    align-items: flex-start;
    display: grid;
  }

  .article-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .article-card.is-priority h3 {
    font-size: 17px;
  }

  .cluster-head,
  .cluster-item {
    grid-template-columns: 1fr;
  }

  .cluster-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-signal {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .ai-brief-grid {
    grid-template-columns: 1fr;
  }

  .ai-brief-analysis {
    grid-template-columns: 1fr;
  }

  .ai-brief-reading-value {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-brief-answer-grid,
  .ai-brief-reader-grid {
    grid-template-columns: 1fr;
  }

  .ai-brief-answer-grid,
  .ai-brief-provenance {
    grid-template-columns: 1fr;
  }

  .ai-brief-reliability {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-brief-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-brief-citation-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .article-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .article-feedback {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .article-feedback button {
    flex: 1;
  }

  .article-drawer {
    display: block;
  }

  .article-drawer-backdrop {
    position: absolute;
    inset: 0;
  }

  .article-drawer-panel {
    position: absolute;
    inset: 0;
    border-left: 0;
    padding: 18px;
  }

  .drawer-content h2 {
    font-size: 24px;
  }

  .right-rail {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .main,
  .sidebar {
    padding: 14px;
  }

  h1 {
    font-size: 24px;
  }

  .topbar p {
    line-height: 1.5;
  }

  .nav-item {
    min-height: 38px;
  }

  .nav-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid,
  .brief-grid,
  .brief-status-grid {
    grid-template-columns: 1fr;
  }

  .desk-brief {
    padding: 14px;
  }

  .brief-copy strong {
    font-size: 20px;
  }

  .trust-strip div {
    padding: 10px 12px;
  }

  .source-panel {
    max-height: 170px;
  }

  .focus-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-strip button {
    border-radius: 8px;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding: 0 8px;
  }

  .source-board-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .source-board-score {
    grid-column: 2;
  }

  .cluster-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .detail-insight-grid,
  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .ai-brief-evidence {
    grid-template-columns: 1fr;
  }

  .ai-brief-reading-value {
    grid-template-columns: 1fr;
  }

  .ai-brief-provenance {
    grid-template-columns: 1fr;
  }

  .ai-brief-reliability {
    grid-template-columns: 1fr;
  }

  .detail-related-item {
    grid-template-columns: 1fr;
  }

  .detail-related-meta {
    justify-content: flex-start;
  }

  .detail-actions {
    display: grid;
  }

  .detail-action-group {
    display: grid;
    width: 100%;
  }

  .detail-actions .article-feedback,
  .detail-actions .text-button {
    width: 100%;
  }

	  .empty-state,
	  .loading-skeleton {
	    padding: 14px;
	  }
	}

@media (max-width: 760px) {
  .sidebar {
    padding: 10px 12px;
    gap: 8px;
    box-shadow: 0 1px 0 var(--line);
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand small {
    display: none;
  }

  .nav-group {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-group::-webkit-scrollbar,
  .focus-strip::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
    box-shadow: none;
  }

  .nav-item.is-active,
  .nav-item:hover {
    box-shadow: inset 0 -2px 0 var(--brand);
  }

  .main {
    padding: 12px;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .eyebrow,
  .topbar p,
  .refresh-status,
  #refreshNowButton,
  #autoRefreshButton,
  .summary-grid,
  .trust-strip,
  .right-rail {
    display: none;
  }

  h1 {
    margin-top: 0;
    font-size: 22px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .search-box {
    grid-column: 1;
    height: 40px;
  }

  #themeButton {
    grid-column: 2;
  }

  .focus-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .focus-strip button {
    flex: 0 0 auto;
    min-width: 126px;
    min-height: 38px;
    border-radius: 8px;
    padding: 5px 9px;
  }

  .focus-basis {
    display: none;
  }

  .section-head {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 6px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .section-head p {
    display: none;
  }

  .segmented {
    width: auto;
    flex: 0 0 auto;
  }

  .segmented button {
    min-height: 30px;
    padding: 0 10px;
  }

  .feed-list {
    gap: 7px;
  }

  .article-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .article-rank {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .article-meta {
    gap: 4px;
    font-size: 12px;
  }

  .source-pill,
  .topic-pill,
  .brief-preview-pill,
  .tier-pill {
    max-width: 100%;
    padding: 1px 6px;
  }

  h3,
  .article-card.is-priority h3 {
    margin: 5px 0;
    font-size: 15px;
  }

  .article-card .article-original-title {
    font-size: 12px;
  }

  .article-body p {
    -webkit-line-clamp: 2;
  }

  .article-brief-evidence {
    align-items: flex-start;
    gap: 4px 7px;
    margin-top: 5px;
    padding: 5px 6px;
  }

  .article-brief-evidence em {
    margin-left: 0;
    width: 100%;
  }

  .article-insight {
    margin-top: 5px;
  }

  .insight-panel {
    padding: 6px;
  }

  .insight-primary {
    display: grid;
    gap: 2px;
  }

  .article-actions {
    margin-top: 6px;
    padding-top: 6px;
  }

  .article-signal {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 7px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sparkline {
    display: none;
  }
}

@media (max-width: 520px) {
  .main,
  .sidebar {
    padding: 10px 12px;
  }

  .nav-group {
    grid-template-columns: none;
  }

  .focus-strip button {
    min-width: 120px;
  }
}

/* Public intelligence reading hierarchy */
body {
  background: var(--bg);
}

.app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.sidebar {
  padding: 20px 16px;
  gap: 14px;
  background: color-mix(in srgb, var(--panel) 94%, var(--panel-soft));
}

.main {
  padding: 20px 28px 36px;
}

.intelligence-hero {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hero-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 10px;
}

.hero-intro {
  min-width: 0;
}

.hero-intro h1 {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1.15;
}

.hero-intro p {
  max-width: 720px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 400px);
}

.hero-utility .search-box {
  flex: 1;
  width: auto;
  min-height: 38px;
  height: 38px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
}

.hero-judgement {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(200px, 240px);
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.hero-judgement-label {
  border-left: 3px solid var(--brand);
  padding-left: 10px;
}

.hero-judgement-label span,
.hero-judgement-label small,
.hero-judgement-copy strong,
.hero-judgement-copy p {
  display: block;
}

.hero-judgement-label span {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero-judgement-label small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.hero-judgement-copy {
  min-width: 0;
}

.hero-judgement-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hero-judgement-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.hero-telemetry div {
  min-width: 0;
  padding-left: 14px;
}

.hero-telemetry div + div {
  border-left: 1px solid var(--line);
  margin-left: 12px;
}

.hero-telemetry span,
.hero-telemetry strong {
  display: block;
}

.hero-telemetry span {
  color: var(--muted);
  font-size: 11px;
}

.hero-telemetry strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) minmax(160px, 0.9fr);
  padding: 4px 0 6px;
}

.hero-metric,
.hero-refresh {
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.hero-metric:first-child {
  padding-left: 0;
}

.hero-refresh {
  border-right: 0;
  padding-right: 0;
}

.hero-metric > span,
.hero-metric > strong,
.hero-refresh > span {
  display: block;
}

.hero-metric > span,
.hero-refresh > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hero-metric > strong {
  margin: 1px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-metric-status > strong {
  color: var(--brand-strong);
  font-size: 15px;
  line-height: 1.35;
}

.hero-metric > small,
.hero-refresh > small {
  display: none;
}

.hero-refresh > div {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.hero-refresh .text-button {
  min-height: 22px;
  padding: 0 7px;
  font-size: 11px;
  border-radius: 4px;
}

.feed-toolbar {
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.feed-toolbar .focus-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-toolbar .focus-strip button {
  min-height: 30px;
  height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.feed-toolbar .focus-strip button .focus-basis {
  display: none;
}

.feed-toolbar .focus-strip button .focus-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feed-toolbar .focus-strip button .focus-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
}

.feed-toolbar .focus-strip button:not(.is-selected) {
  border-color: color-mix(in srgb, var(--line) 85%, transparent);
}

.feed-toolbar .focus-strip button:not(.is-selected):hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.feed-toolbar .focus-strip button.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.feed-toolbar .focus-strip button.is-selected .focus-count {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

.feed-sort-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 6px;
}

.feed-sort-bar h2 {
  font-size: 20px;
}

.feed-sort-bar p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.content-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.feed-list {
  gap: 9px;
}

.article-card {
  grid-template-columns: 32px minmax(0, 1fr) 72px;
  gap: 12px;
  padding: 15px 16px;
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.025);
}

.article-card.is-priority {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: var(--panel);
}

.article-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.07);
}

.article-rank {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
}

.article-card.is-priority .article-rank {
  color: var(--accent);
  background: var(--accent-soft);
}

.article-meta {
  gap: 5px;
  font-size: 12px;
}

.source-pill,
.topic-pill,
.brief-preview-pill,
.tier-pill {
  border-color: transparent;
  background: transparent;
  padding: 1px 3px;
}

.source-pill {
  padding-left: 0;
}

.article-card h3,
.article-card.is-priority h3 {
  margin: 6px 0 5px;
  font-size: 18px;
  line-height: 1.38;
}

.title-context {
  display: inline;
  font-size: 0.9em;
}

.title-topic {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.title-sep,
.title-colon {
  color: var(--muted);
  opacity: 0.55;
  margin: 0 1px;
}

.title-entity {
  display: inline-block;
  color: var(--brand-strong);
  font-weight: 700;
}

.title-core {
  font-weight: 600;
}

.article-body > p {
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
}

.article-original-title {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.85;
}

.article-brief-evidence {
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  padding: 3px 0 3px 8px;
  background: transparent;
}

.article-brief-evidence.summary_allowed,
.article-brief-evidence.full_text_allowed,
.article-brief-evidence.licensed_only,
.article-brief-evidence.published_guide,
.article-brief-evidence.metadata_only,
.article-brief-evidence.published_ai {
  background: transparent;
}

.insight-panel {
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 0;
  padding: 4px 0 4px 8px;
  background: transparent;
}

.insight-primary strong {
  font-size: 13px;
  font-weight: 600;
}

.article-actions {
  margin-top: 9px;
  padding-top: 8px;
  font-size: 12px;
}

.article-signal {
  padding-left: 10px;
  gap: 4px;
}

.article-signal strong {
  font-size: 17px;
}

.article-signal span {
  font-size: 11px;
}

.sparkline {
  height: 14px;
  gap: 3px;
}

.sparkline i {
  width: 6px;
  opacity: 0.55;
}

.right-rail {
  gap: 10px;
}

.rail-group {
  border-color: color-mix(in srgb, var(--line) 92%, transparent);
}

.rail-section {
  padding: 14px;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.025);
}

.rail-section .section-head {
  margin-bottom: 9px;
  padding-bottom: 7px;
}

.rail-section .section-head h2 {
  font-size: 15px;
}

.release-status,
.source-quality {
  background: var(--panel);
}

.release-notes {
  display: none;
}

.rail-status-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.02);
}

.rail-status-pill span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rail-status-pill strong {
  color: var(--text);
  font-weight: 600;
}

body.dark .intelligence-hero {
  border-color: var(--line);
}

body.dark .article-card,
body.dark .rail-section,
body.dark .rail-status-pill,
body.dark .hero-utility .search-box {
  box-shadow: none;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .main {
    padding: 18px 20px 32px;
  }

  .hero-judgement {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .hero-telemetry {
    grid-column: 1 / -1;
    border-left: 0;
  }

  .hero-telemetry div:first-child {
    padding-left: 0;
  }

  .hero-metrics {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .hero-refresh {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
  }

  .hero-refresh > div {
    margin: 0 0 0 auto;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .right-rail {
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar > .workspace-switcher,
  .sidebar > .source-panel,
  .sidebar > .mini-card,
  .sidebar > .disclaimer {
    display: none;
  }

  .sidebar > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .sidebar > .nav-group {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .sidebar .nav-item {
    min-height: 40px;
    padding: 0 8px;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 10px 12px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sidebar > .brand {
    grid-column: 1;
    grid-row: auto;
  }

  .sidebar > .nav-group {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .sidebar > .nav-group::-webkit-scrollbar {
    display: none;
  }

  .sidebar .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 108px;
    border: 1px solid var(--line);
  }

  .main {
    padding: 12px;
  }

  .intelligence-hero {
    margin-bottom: 10px;
  }

  .hero-main {
    display: grid;
    gap: 12px;
    padding-bottom: 12px;
  }

  .hero-intro .eyebrow {
    display: block;
  }

  .hero-intro h1 {
    font-size: 24px;
  }

  .hero-intro p {
    font-size: 13px;
  }

  .hero-utility {
    width: 100%;
  }

  .hero-utility .search-box {
    display: flex;
    grid-column: auto;
  }

  .hero-utility #themeButton {
    display: block;
    grid-column: auto;
    flex: 0 0 42px;
  }

  .hero-judgement {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
  }

  .hero-judgement-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .hero-judgement-label small {
    margin-top: 0;
  }

  .hero-judgement-copy strong {
    font-size: 17px;
  }

  .hero-telemetry {
    grid-column: auto;
  }

  .hero-telemetry div {
    padding-left: 0;
  }

  .hero-telemetry div + div {
    margin-left: 8px;
    padding-left: 8px;
  }

  .hero-metrics {
    display: none;
  }

  .feed-toolbar {
    margin-bottom: 8px;
  }

  .feed-toolbar .focus-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 8px;
    padding-bottom: 2px;
  }

  .feed-toolbar .focus-strip button {
    flex: 0 0 auto;
    min-width: 116px;
  }

  .feed-sort-bar {
    align-items: center;
    padding-bottom: 8px;
  }

  .feed-sort-bar h2 {
    font-size: 18px;
  }

  .feed-sort-bar p {
    display: none;
  }

  .feed-sort-bar .segmented {
    width: auto;
  }

  .right-rail {
    display: none;
  }

  .article-card,
  .article-card.is-priority {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 11px;
  }

  .article-card h3,
  .article-card.is-priority h3 {
    font-size: 16px;
    line-height: 1.42;
  }

  .article-meta .tier-pill,
  .article-meta .brief-preview-pill {
    display: none;
  }

  .article-body > p {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .article-signal {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 7px 0 0;
  }

  .article-signal .sparkline {
    display: none;
  }

  .article-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hero-judgement-label small,
  .article-brief-evidence em {
    display: none;
  }

  .hero-telemetry strong {
    font-size: 13px;
  }

  .feed-sort-bar .segmented button {
    min-height: 34px;
    padding: 0 9px;
  }

  .article-feedback {
    width: auto;
  }

  .article-feedback button {
    min-height: 28px;
  }
}

/* Homepage v2 — open editorial layout; shared detail components remain above. */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f5f7f6;
  --text: #192922;
  --muted: #69746f;
  --line: #e5eae6;
  --brand: #176847;
  --brand-strong: #135b3e;
  --accent: #176847;
  --accent-soft: #eef5ef;
  --violet: #176847;
  --blue: #176847;
  --ink-soft: #192922;
  --shadow: 0 12px 36px rgb(25 41 34 / 8%);
}
body.dark {
  --bg: #111a16;
  --panel: #111a16;
  --panel-soft: #1b2720;
  --text: #edf3ef;
  --muted: #a4b4aa;
  --line: #2c3b32;
  --brand: #82c9a1;
  --brand-strong: #a3dfbc;
  --accent: #82c9a1;
  --accent-soft: #1d3025;
  --violet: #82c9a1;
  --blue: #82c9a1;
  --ink-soft: #edf3ef;
}
body { background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .6; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 200; background: var(--brand); color: var(--bg); padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.header-inner { max-width: 1400px; width: calc(100% - 104px); margin: auto; min-height: 72px; display: flex; align-items: center; gap: 44px; }
.site-header .brand { gap: 10px; flex-shrink: 0; }
.site-header .brand-mark { width: 38px; height: 38px; }
.site-header .brand > span:last-child { display: flex; align-items: center; gap: 18px; }
.site-header .brand strong { font-size: 28px; font-weight: 750; letter-spacing: -1px; }
.site-header .brand small { margin: 0; font-size: 14px; font-weight: 400; }
.site-header .nav-group { display: flex; gap: 34px; align-self: stretch; }
.site-header .nav-item { width: auto; min-height: 72px; position: relative; padding: 0 2px; border-radius: 0; font-size: 16px; font-weight: 600; white-space: nowrap; background: transparent; box-shadow: none; color: var(--muted); }
.site-header .nav-item:hover, .site-header .nav-item.is-active { color: var(--brand); background: transparent; box-shadow: none; }
.site-header .nav-item.is-active::after { content: ""; position: absolute; bottom: 7px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--brand); }
.site-header .icon-button { margin-left: auto; border: 0; border-radius: 6px; width: 38px; height: 38px; min-width: 38px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.site-header .icon-button:hover { background: var(--panel-soft); color: var(--brand); }
.app-shell { display: block; min-height: calc(100vh - 72px); }
.main { width: calc(100% - 104px); max-width: 1400px; margin: auto; padding: 24px 0 0; }
.intelligence-hero, body.dark .intelligence-hero { background: transparent; border: 0; padding: 0; margin: 0; box-shadow: none; }
.hero-main { align-items: center; padding: 0; gap: 32px; margin-bottom: 24px; }
.hero-intro h1 { margin: 0 0 4px; font-size: 40px; letter-spacing: -1.4px; line-height: 1.35; font-weight: 750; }
.hero-intro p { margin: 0; max-width: 740px; font-size: 15px; line-height: 1.65; }
.hero-utility { width: 390px; flex: 0 0 390px; }
.hero-utility .search-box { width: 100%; height: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--panel-soft); box-shadow: none; border-radius: 6px; gap: 12px; color: var(--muted); }
.search-box svg { flex-shrink: 0; }
.search-box input { font-size: 14px; color: var(--text); }
.hero-judgement { grid-template-columns: minmax(0, 1fr) 380px; min-height: 140px; padding: 22px 28px; gap: 40px; border: 0; border-radius: 7px; background: var(--accent-soft); }
.hero-judgement-label { padding: 0; border: 0; margin-bottom: 10px; }
.hero-judgement-label span { font-size: 15px; font-weight: 650; }
.hero-judgement-copy strong { font-size: 25px; line-height: 1.45; font-weight: 650; letter-spacing: -.4px; }
.hero-judgement-copy p { font-size: 14px; margin: 6px 0 0; line-height: 1.65; -webkit-line-clamp: 2; }
.hero-telemetry { align-self: center; border-left: 1px solid var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-telemetry div { padding: 10px 12px; text-align: center; }
.hero-telemetry div + div { margin: 0; border-left: 1px solid var(--line); }
.hero-telemetry span { font-size: 13px; }
.hero-telemetry strong { font-size: 22px; color: var(--brand); font-weight: 650; margin-top: 8px; }
.hero-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-metric { display: flex; align-items: center; gap: 10px; padding: 0 18px; min-width: 0; border-right: 1px solid var(--line); }
.hero-metric > span { font-size: 14px; font-weight: 400; }
.hero-metric > strong { margin: 0; font-size: 20px; line-height: 1; color: var(--brand); font-weight: 650; }
.hero-metric-status { border-right: 0; }
.hero-metric-status > strong { font-size: 15px; }
.hero-metric > small, .hero-refresh > small { display: none; }
.hero-refresh { display: flex; align-items: center; gap: 20px; padding: 0; margin-left: auto; border: 0; }
.hero-refresh > span { color: var(--brand); font-size: 13px; font-weight: 500; }
.hero-refresh > span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: currentColor; }
.hero-refresh > div { display: flex; gap: 10px; margin: 0; }
.hero-refresh .text-button { min-height: 36px; padding: 0 18px; border-radius: 6px; font-size: 13px; font-weight: 400; color: var(--brand); border: 1px solid var(--brand); background: var(--panel); }
.hero-refresh #autoRefreshButton { background: var(--panel-soft); border-color: var(--line); color: var(--muted); }
.trust-strip { display: none; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; margin: 0; align-items: start; }
.feed-section { min-width: 0; padding-right: 24px; }
.feed-toolbar { margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.feed-toolbar .focus-strip { gap: 26px; margin: 0; padding: 12px 0 18px; display: flex; flex-wrap: nowrap; overflow-x: auto; }
.feed-toolbar .focus-strip button { position: relative; height: 46px; min-height: 46px; padding: 0 9px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 550; flex-shrink: 0; }
.feed-toolbar .focus-strip button:not(.is-selected), .feed-toolbar .focus-strip button:not(.is-selected):hover { border: 0; background: transparent; }
.feed-toolbar .focus-strip button.is-selected { background: transparent; color: var(--brand); border: 0; }
.feed-toolbar .focus-strip button.is-selected::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--brand); }
.feed-toolbar .focus-strip button .focus-count { display: inline; min-width: 0; min-height: 0; padding: 0; margin-left: 5px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 400; }
.feed-toolbar .focus-strip button .focus-basis { display: none; }
.topic-window-control { display: flex; align-items: center; gap: 8px; padding: 12px 0; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.topic-window-control[hidden] { display: none; }
.topic-window-control button { padding: 5px 10px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 5px; }
.topic-window-control button[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--accent-soft); }
.feed-sort-bar { align-items: center; padding: 6px 0 16px; gap: 20px; }
.feed-sort-bar > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; min-width: 0; }
.feed-sort-bar h2 { font-size: 27px; line-height: 1.35; margin: 0; font-weight: 700; white-space: nowrap; }
.feed-sort-bar p { margin: 0; font-size: 13px; line-height: 1.6; flex: 1 1 240px; max-width: 480px; }
.segmented { border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); flex-shrink: 0; overflow: hidden; padding: 0; }
.segmented button { padding: 7px 20px; min-height: 32px; font-size: 13px; font-weight: 500; border-radius: 0; color: var(--muted); }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button.is-selected { background: var(--brand); color: var(--bg); box-shadow: none; }
.feed-list { display: grid; gap: 0; }
.article-card, .article-card.is-priority, .article-card:hover, body.dark .article-card { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) 46px; gap: 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0 18px; background: transparent; box-shadow: none; }
.article-card:hover { background: color-mix(in srgb, var(--panel-soft) 55%, transparent); }
.article-rank, .article-card.is-priority .article-rank { width: auto; height: auto; display: block; padding: 0; background: transparent; border: 0; border-radius: 0; color: var(--brand); font-size: 29px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.article-meta { color: var(--muted); font-size: 12px; gap: 0; align-items: center; line-height: 1.5; margin-bottom: 5px; }
.article-meta > span { border: 0; border-radius: 0; background: transparent; color: var(--muted); font-weight: 400; font-size: inherit; padding: 0; }
.article-meta > span + span::before { content: "·"; display: inline-block; padding: 0 7px; color: var(--muted); }
.article-meta .brief-preview-pill { display: none; }
.article-card h3, .article-card.is-priority h3 { margin: 0 0 5px; color: var(--text); font-size: 20px; line-height: 1.45; font-weight: 650; letter-spacing: -.2px; }
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--brand); }
.title-context, .title-core { font-size: 1em; font-weight: inherit; }
.title-topic, .title-entity, .title-sep, .title-colon { color: inherit; font-weight: inherit; letter-spacing: 0; }
.article-tags, .article-brief-evidence { display: none; }
.article-card .article-original-title { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.45; opacity: 1; overflow-wrap: anywhere; }
.article-body > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.article-insight { margin-top: 8px; }
.insight-panel { border: 0; border-radius: 4px; padding: 5px 8px; background: var(--accent-soft); }
.insight-primary { display: flex; align-items: baseline; gap: 10px; }
.insight-primary > span { color: var(--brand); white-space: nowrap; font-size: 12px; font-weight: 600; }
.insight-primary strong { color: var(--muted); font-weight: 400; font-size: 12px; line-height: 1.6; min-width: 0; }
.insight-grid { display: none; }
.article-actions { border: 0; margin: 10px 0 0; padding: 0; gap: 14px; display: flex; align-items: center; flex-wrap: wrap; justify-content: start; font-size: 12px; }
.article-actions > span { display: none; }
.article-actions .article-detail-button, .article-actions > a { display: inline-flex; align-items: center; justify-content: center; line-height: 1.4; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--brand); box-shadow: none; font-size: 12px; font-weight: 500; min-height: 24px; }
.article-actions .article-detail-button::after { content: "⌄"; margin-left: 7px; }
.article-actions > a::after { content: "↗"; margin-left: 7px; }
.article-feedback { order: 2; margin-left: auto; border: 0; background: transparent; gap: 14px; }
.article-feedback button { border: 0; background: transparent; color: var(--muted); padding: 2px 0; border-radius: 0; font-size: 12px; }
.article-feedback button:hover, .article-feedback button.is-selected { color: var(--brand); background: transparent; }
.article-signal { border: 0; padding: 0; align-self: start; display: flex; flex-direction: column; align-items: end; gap: 4px; }
.article-signal strong { font-size: 20px; color: var(--brand); line-height: 1.4; }
.article-signal span { font-size: 11px; color: var(--muted); }
.sparkline { display: none; }
.right-rail { display: block; padding: 24px 0 0 24px; border-left: 1px solid var(--line); min-width: 0; }
.rail-section, body.dark .rail-section { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 24px; margin: 0 0 24px; background: transparent; box-shadow: none; }
.rail-section .section-head { border: 0; margin: 0 0 8px; padding: 0; align-items: center; }
.rail-section .section-head h2 { font-size: 22px; line-height: 1.4; font-weight: 700; }
.rail-section .section-head > span, .watch-actions > span { font-size: 12px; color: var(--muted); }
.watch-intro { color: var(--muted); font-size: 14px; margin: 0 0 18px; line-height: 1.6; }
.watch-tags { gap: 8px; margin: 0 0 18px; }
.watch-tag { display: inline-flex; align-items: center; border: 0; background: var(--accent-soft); border-radius: 5px; overflow: hidden; }
.watch-tag button { border: 0; background: transparent; color: var(--brand); font-size: 13px; padding: 7px 9px; line-height: 1.2; }
.watch-tag button + button { padding: 7px 9px 7px 2px; }
.watch-form { margin: 0; gap: 10px; }
.watch-form input, .watch-subscribe-form input, .watch-subscribe-form select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background-color: var(--panel); color: var(--text); font-size: 13px; min-height: 43px; }
.primary-button { padding: 10px 18px; background: var(--brand); border: 1px solid var(--brand); color: var(--bg); border-radius: 6px; font-size: 13px; font-weight: 500; }
.primary-button:hover { background: var(--brand-strong); }
.subscribe-heading { padding-top: 24px; margin: 24px 0 14px; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.4; }
.watch-subscribe-form { margin: 0; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; }
.watch-subscribe-form input { grid-column: auto; }
.watch-subscribe-form > button { grid-column: 1 / -1; min-height: 43px; }
.watch-subscribe-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.topic-list { gap: 0; }
.topic-scope-note { margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.topic-list button { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 14px 0; font-size: 15px; }
.topic-list button.is-selected { color: var(--brand); border-bottom-color: var(--brand); }
.topic-list button:last-child { border-bottom: 0; }
.topic-list button strong { color: var(--brand); font-size: 16px; }
.topic-list button strong::after { content: "›"; color: var(--muted); margin-left: 24px; font-size: 20px; font-weight: 400; }
.signal-list { gap: 0; }
.signal-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 0; }
.signal-card:last-child { border: 0; }
.signal-card button { font-size: 14px; line-height: 1.55; }
.signal-meta { font-size: 11px; }
.utility-details { border-bottom: 1px solid var(--line); margin-bottom: 12px; padding-bottom: 12px; }
.utility-details summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 14px; font-weight: 600; list-style: none; }
.utility-details summary::-webkit-details-marker { display: none; }
.utility-details summary > span { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--muted); }
.utility-details summary::after { content: "+"; color: var(--brand); font-size: 18px; }
.utility-details[open] summary::after { content: "−"; }
.utility-details .rail-section { margin: 12px 0 0; border: 0; }
.utility-details .section-head { display: none; }
.source-panel { margin-top: 10px; padding: 12px; max-height: 300px; box-shadow: none; border: 1px solid var(--line); border-radius: 6px; }
.source-panel .panel-title { display: none; }
.source-panel label { font-size: 12px; }
.mini-card { border: 0; border-radius: 0; padding: 16px 0; background: transparent; }
.mini-card strong { font-size: 24px; }
.rail-status-pill { flex-wrap: wrap; gap: 8px; border: 0; border-radius: 0; padding: 10px 0; box-shadow: none; }
.release-notes { display: block; font-size: 12px; }
/* Footer (after Appndo): brand and one line on the left, link groups on the right, legal line below. */
/* Full-bleed band: border-image with an outset paints the background and the top
   rule across the whole window without widening the page (no scroll overflow). */
.site-footer { --footer-bg: color-mix(in srgb, var(--accent-soft) 35%, var(--bg, #fff)); margin-top: 48px; color: var(--muted); font-size: 13px;
  border-image: linear-gradient(to bottom, var(--line) 0 1px, var(--footer-bg) 1px) fill 0 / / 0 100vmax; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding: 40px 0 32px; }
.footer-brand { max-width: 360px; }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.footer-logo strong { font-size: 18px; }
.footer-brand p { margin: 12px 0 0; line-height: 1.75; }
.footer-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.footer-groups h2 { margin: 0 0 14px; color: var(--text); font-size: 13px; font-weight: 600; }
.footer-groups ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-groups a, .footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-groups a:hover, .footer-logo:hover strong { color: var(--brand); }
.footer-groups a:focus-visible, .footer-logo:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 24px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .site-footer { margin-top: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 20px; }
  .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { display: grid; gap: 6px; padding-bottom: 72px; }
}
.market-brief { margin: 24px 0; padding: 24px; background: var(--accent-soft); border: 0; border-radius: 7px; }
.market-brief-head h3 { font-size: 20px; }
.market-brief-head { list-style: none; cursor: pointer; }
.market-brief-head::-webkit-details-marker { display: none; }
.market-brief-head h3::after { content: "⌄"; margin-left: 10px; font-size: 16px; color: var(--muted); }
.market-brief[open] .market-brief-head h3::after { content: "⌃"; }
.brief-grid { grid-template-columns: 1fr; gap: 0; }
.brief-card { border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; border-radius: 0; background: transparent; }
.brief-card:last-child { border: 0; }
.brief-card h4 { margin: 8px 0 6px; font-size: 17px; line-height: 1.45; font-weight: 650; }
.brief-card p { font-size: 13px; line-height: 1.5; }
.source-board-list, .cluster-list { gap: 16px; padding-top: 20px; }
.article-drawer-panel { background: var(--panel); }
@media (max-width: 1250px) {
  .header-inner, .main { width: calc(100% - 64px); }
  .header-inner { gap: 28px; }
  .site-header .brand small { display: none; }
  .site-header .nav-group { gap: 28px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .hero-judgement { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .hero-judgement-copy strong { font-size: 23px; }
  .hero-metric { padding: 0 12px; }
  .hero-metric > span { font-size: 12px; }
  .hero-refresh { gap: 12px; }
  .hero-refresh .text-button { padding: 0 10px; }
  .hero-utility { flex-basis: 310px; width: 310px; }
  .feed-toolbar .focus-strip { gap: 10px; }
  .feed-toolbar .focus-strip button { padding: 0 6px; font-size: 13px; }
  .feed-sort-bar > div:first-child { display: block; }
  .feed-sort-bar h2 { font-size: 24px; }
  .feed-sort-bar p { margin-top: 4px; }
  .segmented button { padding: 7px 12px; }
  .article-card { grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 12px; }
  .article-card h3, .article-card.is-priority h3 { font-size: 18px; }
  .watch-subscribe-form { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 14px; }
  .site-header .brand strong { font-size: 25px; }
  .site-header .brand small { display: block; font-size: 12px; }
  .site-header .nav-group { order: 2; width: 100%; justify-content: space-between; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .site-header .nav-item { min-height: 54px; font-size: 14px; }
  .site-header .nav-item.is-active::after { bottom: 0; }
  .main { padding-top: 24px; }
  .hero-intro h1 { font-size: 34px; }
  .hero-intro p { font-size: 13px; }
  .hero-main { align-items: start; }
  .hero-utility { flex-basis: 250px; width: 250px; margin-top: 8px; }
  .hero-judgement { grid-template-columns: minmax(0, 1fr) 240px; padding: 22px; gap: 24px; }
  .hero-judgement-copy strong { font-size: 21px; }
  .hero-telemetry strong { font-size: 18px; }
  .hero-telemetry div { padding: 8px; }
  .hero-metrics { gap: 16px 0; }
  .hero-refresh { width: 100%; margin-left: 0; justify-content: space-between; }
  .hero-metric { flex: 1; justify-content: center; }
  .hero-metric:first-child { justify-content: start; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .right-rail { padding-left: 20px; }
  .feed-section { padding-right: 20px; }
  .feed-toolbar .focus-strip { gap: 12px; padding-bottom: 12px; }
  .feed-toolbar .focus-strip button { padding: 0 4px; }
  .feed-sort-bar { align-items: start; gap: 8px; }
  .feed-sort-bar p { font-size: 12px; }
  .segmented button { padding: 7px 9px; }
  .article-card, .article-card.is-priority { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .article-signal { position: absolute; top: 22px; right: 0; }
  .article-meta { padding-right: 36px; font-size: 11px; }
  .article-rank, .article-card.is-priority .article-rank { font-size: 23px; }
  .article-card h3, .article-card.is-priority h3 { font-size: 17px; }
  .article-body > p { font-size: 13px; }
  .article-signal strong { font-size: 16px; }
  .article-signal span { display: none; }
  .article-actions { gap: 12px; }
  .article-feedback { width: 100%; margin-left: 0; gap: 16px; }
  .rail-section .section-head h2, .subscribe-heading { font-size: 19px; }
}
@media (max-width: 700px) {
  .header-inner, .main { width: calc(100% - 36px); }
  .site-header .brand-mark { width: 30px; height: 30px; }
  .site-header .brand strong { font-size: 23px; }
  .site-header .brand > span:last-child { gap: 12px; }
  .site-header .brand small { font-size: 11px; }
  .site-header .nav-group { gap: 24px; justify-content: start; }
  .site-header .nav-item { font-size: 13px; min-height: 50px; }
  .main { padding-top: 24px; }
  .hero-main { flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .hero-intro h1 { font-size: 31px; letter-spacing: -.8px; margin: 0 0 7px; }
  .hero-intro p { font-size: 13px; line-height: 1.7; }
  .hero-utility { width: 100%; flex: auto; margin: 0; }
  .hero-utility .search-box { height: 44px; }
  .hero-judgement { display: block; padding: 20px; }
  .hero-judgement-label { margin-bottom: 8px; }
  .hero-judgement-label span { font-size: 13px; }
  .hero-judgement-copy strong { font-size: 20px; line-height: 1.45; }
  .hero-judgement-copy p { font-size: 12px; line-height: 1.7; margin-top: 8px; -webkit-line-clamp: 3; }
  .hero-telemetry { margin-top: 16px; padding-top: 12px; border-left: 0; border-top: 1px solid var(--line); }
  .hero-telemetry div { padding: 3px 8px; text-align: left; }
  .hero-telemetry div:first-child { padding-left: 0; }
  .hero-telemetry span { font-size: 11px; }
  .hero-telemetry strong { font-size: 17px; margin-top: 5px; }
  .hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px 0; }
  .hero-metric, .hero-metric:first-child { justify-content: start; padding: 0; border: 0; gap: 9px; }
  .hero-metric > span { font-size: 12px; }
  .hero-metric > strong { font-size: 16px; }
  .hero-metric-status > strong { font-size: 13px; }
  .hero-refresh { grid-column: 1 / -1; padding-top: 4px; gap: 10px; }
  .hero-refresh > span { font-size: 11px; }
  .hero-refresh > span::before { width: 6px; height: 6px; margin-right: 6px; }
  .hero-refresh > div { gap: 6px; }
  .hero-refresh .text-button { font-size: 11px; min-height: 32px; padding: 0 8px; }
  .content-layout { display: block; }
  .feed-section { padding: 0; }
  .feed-toolbar .focus-strip { gap: 18px; padding: 8px 0 16px; }
  .feed-toolbar .focus-strip button { height: 40px; min-height: 40px; font-size: 13px; padding: 0 2px; }
  .feed-sort-bar { align-items: start; padding: 4px 0 16px; }
  .feed-sort-bar h2 { font-size: 22px; white-space: normal; }
  .feed-sort-bar p { font-size: 11px; line-height: 1.6; }
  .segmented { margin-top: 0; }
  .segmented button { font-size: 11px; padding: 5px 9px; min-height: 30px; }
  .article-card, .article-card.is-priority, .article-card:hover { grid-template-columns: 25px minmax(0, 1fr); gap: 10px; padding: 20px 0; }
  .article-rank, .article-card.is-priority .article-rank { font-size: 21px; }
  .article-meta { font-size: 10px; padding-right: 28px; }
  .article-meta > span + span::before { padding: 0 4px; }
  .article-card h3, .article-card.is-priority h3 { font-size: 17px; line-height: 1.5; }
  .article-body > p { font-size: 12px; line-height: 1.7; }
  .article-signal strong { font-size: 14px; }
  .insight-primary { gap: 7px; }
  .insight-primary > span, .insight-primary strong { font-size: 11px; }
  .article-actions { gap: 16px; }
  .article-actions .article-detail-button, .article-actions > a, .article-feedback button { font-size: 11px; }
  .article-feedback { width: auto; margin-left: auto; gap: 12px; }
  .right-rail { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .watch-subscribe-form { grid-template-columns: minmax(0, 1fr) 126px; }
  .market-brief { padding: 18px; }
  .market-brief-head { flex-wrap: wrap; gap: 10px; }
  .article-drawer-panel { width: 100%; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Final alignment and compact mobile reading. */
.site-header .nav-item { border: 0; }
@media (min-width: 1251px) {
  .header-inner { gap: 100px; }
  .site-header .nav-group { gap: 40px; }
}
.article-meta .tier-pill { background: transparent; color: var(--muted); border: 0; }
.watch-actions #watchStatus { border: 0; background: transparent; padding: 0; border-radius: 0; }
.article-body { grid-column: 2 / -1; }
.article-body h3 { padding-right: 56px; }
.article-meta { padding-right: 56px; }
.article-signal { position: absolute; top: 20px; right: 0; }
.hero-refresh .text-button { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 700px) {
  .main { padding-top: 18px; }
  .hero-main { gap: 8px; margin-bottom: 12px; }
  .hero-judgement { padding: 12px; }
  .hero-judgement-copy strong { font-size: 18px; }
  .hero-judgement-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .hero-judgement-copy p { -webkit-line-clamp: 1; }
  .hero-telemetry { margin-top: 12px; padding-top: 10px; }
  .hero-telemetry div { display: flex; align-items: center; gap: 6px; padding: 2px 8px; }
  .hero-telemetry strong { font-size: 13px; margin: 0; }
  .hero-metrics { padding: 14px 0; gap: 10px 16px; }
  .hero-metrics { padding: 8px 0; gap: 8px 16px; }
  .hero-refresh { padding-top: 0; }
  .market-brief { margin: 8px 0; padding: 8px; }
  .market-brief-head { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; border: 0; }
  .market-brief-head span { display: none; }
  .market-brief-head h3 { margin: 0; font-size: 14px; }
  .market-brief-head .text-button { width: auto; flex: 0 0 auto; min-height: 28px; padding: 4px 7px; font-size: 11px; white-space: nowrap; }
  .market-brief[open] .brief-grid { margin-top: 12px; }
  .brief-card h4 { font-size: 16px; }
  .feed-toolbar .focus-strip { padding: 4px 0; gap: 10px; scroll-padding-left: 64px; }
  .feed-toolbar .focus-strip button { min-width: 44px; min-height: 44px; height: 44px; padding: 0 10px; white-space: nowrap; }
  .feed-toolbar .focus-strip button[data-focus=""] { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 8px 0 10px -8px var(--muted); }
  .feed-toolbar .focus-strip button .focus-main { white-space: nowrap; }
  .feed-sort-bar { padding-bottom: 8px; }
  .article-body h3 { padding-right: 0; }
  .article-meta { padding-right: 26px; }
  body[data-current-view="watchlist"] .content-layout { display: flex; flex-direction: column; }
  body[data-current-view="watchlist"] .right-rail { order: -1; width: 100%; margin-top: 0; border-top: 0; }
  body[data-current-view="watchlist"] .right-rail > :not([data-rail-group="watch"]) { display: none; }
  body[data-current-view="watchlist"] .feed-section { width: 100%; }
}
#refreshNowButton, #autoRefreshButton { display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1251px) {
  .main { padding-top: 16px; }
  .hero-main { margin-bottom: 20px; }
  .feed-sort-bar > div:first-child { flex: 1; }
}
body.dark .brand-mark img { filter: brightness(0) invert(1); }
.article-actions .article-detail-button.has-brief { color: var(--brand); background: transparent; border: 0; }
:root .footer-topics { display: flex; flex-wrap: wrap; gap: 8px 24px; width: 100%; }
:root .footer-topics a { min-height: 44px; display: inline-flex; align-items: center; }

/* Detail drawer: same article view as /article/:id (public/article-view.js). */
.drawer-content .article-view { display: grid; gap: 0; }
.drawer-content .article-view h2#drawerTitle { margin: 0 0 8px; }
.drawer-content .reader-original { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.drawer-content .reader-meta { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.drawer-content .reader-summary { margin: 0 0 16px; color: var(--text); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.drawer-content .article-view-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 8px; font-size: 14px; }
.drawer-content .article-view-actions a, .drawer-content .article-view-related a { color: var(--brand); }
.drawer-content .article-view-actions .detail-copy-button { padding: 0; border: 0; background: none; color: var(--brand); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.drawer-content .article-view-related { margin-top: 20px; border-top: 1px solid var(--line); }
.drawer-content .article-view-related > h2 { margin: 20px 0 4px; font-size: 18px; }
.drawer-content .article-view .reader-card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-content .article-view .reader-card h3 { margin: 6px 0; font-size: 16px; line-height: 1.5; }
.drawer-content .article-view .reader-card h3 a { color: var(--text); text-decoration: none; }
.drawer-content .article-view .reader-card p { margin: 6px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.drawer-content .article-view .article-meta { color: var(--muted); font-size: 12px; }
.drawer-content .article-view .article-actions { display: flex; gap: 16px; font-size: 13px; }
.drawer-content .article-view > .reader-meta:last-child { margin-top: 16px; }
.drawer-content .detail-feedback-row { margin-top: 12px; }
.drawer-content .article-view .article-meta { display: block; }
.drawer-content .article-view .article-actions a::after, .drawer-content .article-view-actions a::after { content: none; }
.hero-original { display: block; margin: 4px 0 6px; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.hero-original[hidden] { display: none; }
.brief-card .brief-original { margin: -2px 0 6px; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }

/* AI 解读 block, shared by the detail drawer and /article/:id */
.article-view-guide{--g-brand:var(--brand,#176847);--g-text:var(--text,#1b2c25);--g-muted:var(--muted,#63746b);--g-line:var(--line,#dbe6e0);--g-soft:var(--accent-soft,#edf5f0);margin:20px 0 24px;padding:20px 22px 16px;background:var(--g-soft);border-radius:12px}
.article-view-guide .guide-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;margin-bottom:4px;border-bottom:1px solid var(--g-line)}
.article-view-guide .guide-head h2{margin:0;font-size:18px;line-height:1.3;color:var(--g-text)}
.article-view-guide .guide-badge{display:inline-flex;align-items:center;justify-content:center;height:22px;padding:0 8px;border-radius:6px;background:var(--g-brand);color:#fff;font-size:12px;font-weight:700;letter-spacing:.5px}
.article-view-guide .guide-block{padding:20px 0 2px}
.article-view-guide .guide-block h3{margin:0 0 6px;padding-left:10px;border-left:3px solid var(--g-brand);font-size:15px;line-height:1.4;color:var(--g-text)}
.article-view-guide .guide-block p{margin:0;font-size:15px;line-height:1.85;color:var(--g-text)}
.article-view-guide .guide-impact{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:8px}
.article-view-guide .guide-impact li{margin:0;padding:10px 12px;background:rgba(255,255,255,.65);border:1px solid var(--g-line);border-radius:8px;font-size:14px;line-height:1.7;color:var(--g-text)}
.article-view-guide .guide-impact strong{display:block;margin-bottom:2px;color:var(--g-brand);font-size:14px}
.article-view-guide .guide-china p{padding:10px 12px;background:rgba(255,255,255,.65);border-left:3px solid #c98a1b;border-radius:0 8px 8px 0}
.article-view-guide .guide-watch{margin:4px 0 0;padding:0;list-style:none;counter-reset:watch;display:grid;gap:6px}
.article-view-guide .guide-watch li{counter-increment:watch;position:relative;margin:0;padding-left:28px;font-size:14px;line-height:1.7;color:var(--g-text)}
.article-view-guide .guide-watch li::before{content:counter(watch);position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;background:var(--g-brand);color:#fff;font-size:12px;line-height:20px;text-align:center;font-weight:700}
.article-view-guide .guide-note{margin:16px 0 0;padding-top:10px;border-top:1px solid var(--g-line);color:var(--g-muted);font-size:12px}
.reader-summary.is-ai{font-size:16px;line-height:1.85}
@media (max-width: 760px) {
  .hero-original { margin: 2px 0 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Latest-news list sits below the headline blocks: no score column, small
   muted numbers, one card size, so it reads as secondary to the picks above. */
.article-signal { display: none; }
.article-rank, .article-card.is-priority .article-rank { color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.6; }
.article-card h3, .article-card.is-priority h3 { font-size: 18px; }
@media (max-width: 760px) {
  .article-rank, .article-card.is-priority .article-rank { font-size: 13px; }
  .article-card h3, .article-card.is-priority h3 { font-size: 16px; }
}
.feed-sort-bar #viewTitle { font-size: 18px; line-height: 1.4; }
@media (max-width: 760px) { .feed-sort-bar #viewTitle { font-size: 16px; } }
#briefHeadline a { color: inherit; text-decoration: none; }
#briefHeadline a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.feed-more { min-height: 48px; padding: 16px 0 24px; color: var(--muted); font-size: 13px; text-align: center; }
.feed-more.is-pending { min-height: 100vh; }
.feed-more-button { min-width: 160px; }

/* Back to top (after Appndo): fades and rises in on long pages. */
.back-to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.12);
  cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, color 150ms ease, border-color 150ms ease;
}
.back-to-top.is-shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { color: var(--brand); border-color: var(--brand); }
.back-to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (min-width: 761px) { .back-to-top { right: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* Header: sticky (only the nav row where it wraps), theme-coloured logo, nav scroll hints. */
.site-header { position: sticky; top: var(--header-stick-top, 0px); z-index: 50; transition: box-shadow 150ms ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(10, 37, 64, 0.06); }
html { scroll-padding-top: 80px; }
.site-header .brand-mark, .footer-logo-mark {
  display: block; flex: 0 0 auto; background: var(--brand);
  -webkit-mask: url("/logo-mark.svg") center / contain no-repeat; mask: url("/logo-mark.svg") center / contain no-repeat;
}
.footer-logo-mark { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .site-header .nav-group.fade-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .site-header .nav-group.fade-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
  .site-header .nav-group.fade-start.fade-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* 今日头条 / 今日值得先看的事件: no colour fill, a hairline frame instead. */
.hero-judgement, .market-brief { background: transparent; border: 1px solid var(--line); }

/* List hover: the tint reaches 12px past the text on each side, so text stays
   aligned with the dividers but never touches the tint's edge. */
.article-card { isolation: isolate; }
.article-card:hover { background: transparent; }
.article-card::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: 6px; background: color-mix(in srgb, var(--panel-soft) 55%, transparent); opacity: 0; transition: opacity 120ms ease; pointer-events: none; }
.article-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .article-card::before { transition: none; } }

/* Desktop sticky header eases from 72px to 56px once the page has scrolled.
   The 16px it gives up becomes margin below it, so the page never jumps. */
@media (min-width: 961px) {
  .site-header { margin-bottom: 0; transition: box-shadow 150ms ease, margin-bottom 200ms ease; }
  .site-header .header-inner, .site-header .nav-item { transition: min-height 200ms ease; }
  .site-header .brand-mark { transition: width 200ms ease, height 200ms ease; }
  .site-header .brand strong { transition: font-size 200ms ease; }
  .site-header .nav-item.is-active::after { transition: bottom 200ms ease; }
  .site-header.is-compact { margin-bottom: 16px; }
  .site-header.is-compact .header-inner, .site-header.is-compact .nav-item { min-height: 56px; }
  .site-header.is-compact .brand-mark { width: 32px; height: 32px; }
  .site-header.is-compact .brand strong { font-size: 24px; }
  .site-header.is-compact .nav-item.is-active::after { bottom: 4px; }
}
@media (min-width: 961px) and (prefers-reduced-motion: reduce) {
  .site-header, .site-header .header-inner, .site-header .nav-item, .site-header .brand-mark, .site-header .brand strong, .site-header .nav-item.is-active::after { transition: none; }
}

/* Two telemetry tiles (更新 / 事件) after 覆盖 was removed. */
.hero-telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 961px) { .hero-judgement { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (min-width: 961px) and (max-width: 1250px) { .hero-judgement { grid-template-columns: minmax(0, 1fr) 220px; } }

/* No visible page title: the h1 stays for screen readers and search engines. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-main { justify-content: flex-end; }
.hero-intro:has(> .visually-hidden:only-child) { position: absolute; }
/* 今日头条 label: larger than the headline under it at every width. */
.hero-judgement-label span { font-size: 30px; font-weight: 750; letter-spacing: -.5px; line-height: 1.2; }
@media (max-width: 1250px) { .hero-judgement-label span { font-size: 28px; } }
@media (max-width: 960px) { .hero-judgement-label span { font-size: 25px; } }
@media (max-width: 700px) { .hero-judgement-label span { font-size: 23px; } }
@media (max-width: 960px) { .hero-main .hero-utility { width: 100%; max-width: none; flex: 1 1 auto; align-self: stretch; margin-left: 0; } }

/* Search: header button + dialog (after Appndo). */
.site-header .search-trigger { display: inline-flex; align-items: center; gap: 8px; height: 38px; min-width: 220px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color 150ms ease, color 150ms ease; }
.site-header .search-trigger:hover { border-color: var(--brand); color: var(--text); }
.site-header .search-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.search-trigger-label { flex: 1; text-align: left; }
.search-trigger-kbd { font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-header .header-actions .search-trigger, .site-header .header-actions .icon-button { margin-left: 0; }
@media (max-width: 1250px) { .site-header .search-trigger { min-width: 0; } .search-trigger-kbd { display: none; } }
@media (max-width: 960px) {
  .site-header .search-trigger { width: 38px; height: 38px; min-width: 38px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .search-trigger-label { display: none; }
}

/* Scroll lock while the dialog is open; the scrollbar space stays reserved so nothing shifts. */
html { scrollbar-gutter: stable; }
html.has-search-dialog { overflow: hidden; }
.search-dialog { width: min(920px, calc(100vw - 24px)); height: min(680px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 24px 64px rgba(10, 37, 64, 0.18); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; animation: search-dialog-in 180ms ease-out; }
.search-dialog::backdrop { background: rgba(10, 20, 15, 0.45); animation: search-backdrop-in 180ms ease-out; }
@keyframes search-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes search-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.search-dialog-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-dialog-field { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.search-dialog-field input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 18px; }
.search-dialog-field input::-webkit-search-cancel-button { display: none; }
.search-dialog-clear, .search-dialog-close { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.search-dialog-clear:hover, .search-dialog-close:hover { background: var(--panel-soft); color: var(--text); }
.search-dialog-body { flex: 1; min-height: 0; display: flex; }
.search-dialog-topics { flex: 0 0 180px; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); overflow-y: auto; }
.search-dialog-topics button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; }
.search-dialog-topics button:hover { color: var(--text); background: var(--panel-soft); }
.search-dialog-topics button[aria-pressed="true"] { background: var(--accent-soft); color: var(--brand); font-weight: 650; }
.search-dialog-results { flex: 1; min-width: 0; overflow-y: auto; padding: 18px 24px 24px; }
.search-dialog-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.search-dialog-results-head h3 { margin: 0; font-size: 16px; }
.search-dialog-results-head span { color: var(--muted); font-size: 12px; }
.search-dialog-label { margin: 6px 0 10px; color: var(--muted); font-size: 12px; }
.search-dialog-suggest { margin-bottom: 18px; }
.search-dialog-suggest[hidden] { display: none; }
.search-dialog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-dialog-chips button { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 13px; cursor: pointer; }
.search-dialog-chips button:hover { border-color: var(--brand); color: var(--brand); }
.search-dialog-list { list-style: none; margin: 0; padding: 0; }
.search-dialog-list li { margin: 0; border-bottom: 1px solid var(--line); }
.search-result { display: grid; gap: 4px; width: 100%; padding: 12px 10px; margin: 0 -10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; box-sizing: content-box; }
.search-result:hover, .search-result:focus-visible { background: var(--panel-soft); outline: 0; }
.search-result-title { font-size: 15px; font-weight: 650; line-height: 1.5; }
.search-result-original { color: var(--muted); font-size: 13px; line-height: 1.45; }
.search-result-meta { color: var(--muted); font-size: 12px; }
.search-dialog-empty { padding: 40px 0; color: var(--muted); text-align: center; font-size: 14px; }
.search-dialog-apply { margin-top: 16px; min-height: 40px; padding: 0 18px; border: 1px solid var(--brand); border-radius: 999px; background: transparent; color: var(--brand); font-size: 14px; cursor: pointer; }
.search-dialog-apply:hover { background: var(--brand); color: var(--bg); }
.search-dialog-apply[hidden], .search-dialog-empty[hidden] { display: none; }
.search-dialog-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .search-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .search-dialog-head { padding: 10px 12px; }
  .search-dialog-body { flex-direction: column; }
  .search-dialog-topics { flex: 0 0 auto; flex-direction: row; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .search-dialog-topics button { flex: 0 0 auto; min-height: 36px; }
  .search-dialog-results { padding: 14px 16px 20px; }
  .search-dialog-keys { display: none; }
}
@media (prefers-reduced-motion: reduce) { .search-dialog[open], .search-dialog::backdrop { animation: none; } }

/* Active list filter chip (清除搜索). */
.feed-sort-bar > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.search-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1px solid var(--brand); border-radius: 999px; background: var(--accent-soft); color: var(--brand); font-size: 13px; cursor: pointer; }
.search-chip[hidden] { display: none; }
.search-dialog-clear[hidden] { display: none; }

/* AI 摘要 label (list cards, drawer, article page). */
.ai-badge{display:inline-block;margin-right:8px;padding:1px 7px;border-radius:4px;background:var(--accent-soft,#eef5ef);color:var(--brand,#176847);font-size:12px;font-weight:650;line-height:1.6;vertical-align:1px;white-space:nowrap}
.reader-summary.is-empty{color:var(--muted,#63746b);font-size:14px}
.ai-badge.is-source{background:var(--panel-soft,#f1f3f2);color:var(--muted,#63746b)}
.reader-summary.is-source{color:var(--muted,#63746b)}

/* Honeypot for bots: off-screen, not display:none (some bots skip hidden fields). */
.form-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.watch-turnstile:empty { display: none; }
.watch-turnstile { grid-column: 1 / -1; }

/* Hold the space the hero and brief fill once the first load returns, so the
   server-rendered list does not jump. Without scripts nothing ever fills it. */
@media (scripting: enabled) {
  .is-first-load .hero-judgement { min-height: 205px; }
  .is-first-load #marketBriefSlot { min-height: 606px; margin: 24px 0; border-radius: 7px; background: var(--accent-soft); }
  @media (max-width: 1180px) {
    .is-first-load .hero-judgement { min-height: 339px; }
    .is-first-load #marketBriefSlot { min-height: 650px; }
  }
  @media (max-width: 760px) {
    .is-first-load .hero-judgement { min-height: 207px; }
    .is-first-load #marketBriefSlot { min-height: 46px; margin: 8px 0; }
  }
}

/* Timeline (list sorted by time): clock time beside a dot on a thin vertical
   line, with a day label wherever the date changes. */
.feed-list.is-timeline .article-card,
.feed-list.is-timeline .article-card.is-priority,
.feed-list.is-timeline .article-card:hover { grid-template-columns: 66px minmax(0, 1fr) 46px; }
.feed-list.is-timeline .article-card::after,
.feed-list.is-timeline .feed-day::after { content: ""; position: absolute; top: 0; bottom: -1px; left: 4px; width: 1px; background: var(--line); }
.feed-list.is-timeline .article-card::after { z-index: -1; }
.feed-list.is-timeline .article-rank { position: relative; padding-left: 18px; white-space: nowrap; }
.feed-list.is-timeline .article-rank::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--panel, #fff); border: 2px solid var(--brand); box-sizing: border-box; }
.feed-list.is-timeline .article-card.is-priority .article-rank::before { background: var(--brand); }
.feed-day { position: relative; padding: 18px 0 6px 18px; color: var(--text); font-size: 14px; font-weight: 650; }
.feed-day::before { content: ""; position: absolute; left: 1px; top: 23px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); z-index: 1; }
@media (max-width: 760px) {
  .feed-list.is-timeline .article-card,
  .feed-list.is-timeline .article-card.is-priority,
  .feed-list.is-timeline .article-card:hover { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .feed-list.is-timeline .article-rank { padding-left: 16px; }
  .feed-day { padding-left: 16px; font-size: 13px; }
}

/* Type scale (2026-11): one headline per block, small text no smaller than
   12px. Section labels step down so the news headlines lead; phone sizes for
   source lines and summaries go up from 10px / 12px. Sizes only, no layout. */
body .hero-judgement-label span { font-size: 13px; font-weight: 650; letter-spacing: .08em; }
body .hero-judgement #briefHeadline, body .hero-judgement #briefHeadline a { font-size: 28px; font-weight: 700; line-height: 1.3; }
body .hero-judgement #briefSummary { font-size: 15px; line-height: 1.7; }
body .hero-telemetry strong { font-size: 17px; }
body .market-brief-head h3 { font-size: 17px; font-weight: 650; }
body .right-rail .section-head h2, body .right-rail .subscribe-heading { font-size: 16px; font-weight: 650; line-height: 1.4; }
body .feed-list .article-actions, body .feed-list .article-actions a, body .feed-list .article-feedback button { font-size: 13px; }
body .article-feedback button { white-space: nowrap; }
@media (max-width: 760px) {
  body .hero-judgement #briefHeadline, body .hero-judgement #briefHeadline a { font-size: 21px; }
  body .hero-judgement #briefSummary, body .hero-judgement .hero-original { font-size: 13px; line-height: 1.6; }
  body .feed-list .article-card .article-meta, body .feed-list .article-card .article-meta span { font-size: 12px; line-height: 1.5; }
  body .feed-list .article-card h3, body .feed-list .article-card h3 a { font-size: 17px; line-height: 1.45; }
  body .feed-list .article-card .article-body > p { font-size: 14px; line-height: 1.65; }
  body #viewHint { font-size: 12px; }
  body .feed-list .article-actions, body .feed-list .article-actions a, body .feed-list .article-feedback button { font-size: 12px; }
}
/* The space held for the hero on first load follows its new height. */
@media (scripting: enabled) {
  .is-first-load .hero-judgement { min-height: 165px; }
  @media (max-width: 1180px) { .is-first-load .hero-judgement { min-height: 262px; } }
  @media (max-width: 760px) { .is-first-load .hero-judgement { min-height: 207px; } }
}

/* Polish and motion (2026-11). Small, quick, and off under reduced motion
   (the global rule above turns transitions and animations off). */
body { text-autospace: normal; }
.article-rank time, .hero-telemetry strong, .command-metrics strong, .article-signal strong { font-variant-numeric: tabular-nums; }
#briefHeadline { text-wrap: balance; }
.article-card h3, .market-brief h3, .signal-card h3, .article-card .article-body > p, #briefSummary { text-wrap: pretty; }

/* Read articles step back; the title returns to full colour on hover. */
.article-card h3 a { transition: color 140ms ease; }
.article-card.is-read h3 a { color: var(--muted); }
.article-card.is-read h3 a:hover { color: var(--brand); }
.feed-list.is-timeline .article-card.is-read .article-rank::before { border-color: var(--line); background: var(--panel, #fff); }

/* Timeline dot answers the pointer. */
.feed-list.is-timeline .article-rank::before { transition: transform 160ms ease, border-color 160ms ease; }
.feed-list.is-timeline .article-card:hover .article-rank::before { transform: scale(1.3); }

/* Older pages fade up into place. */
.article-card.is-entering, .feed-day.is-entering { animation: card-enter 260ms ease-out both; }
@keyframes card-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Detail drawer slides in over a fading backdrop. */
.article-drawer:not([hidden]) .article-drawer-panel { animation: drawer-in 240ms cubic-bezier(.2, .8, .2, 1) both; }
.article-drawer:not([hidden]) .article-drawer-backdrop { animation: backdrop-in 200ms ease-out both; }
@keyframes drawer-in { from { opacity: .6; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) { @keyframes drawer-in { from { opacity: .6; transform: translateY(24px); } to { opacity: 1; transform: none; } } }

/* Buttons and links: quick colour changes, a slight press. */
.primary-button, .text-button, .segmented button, .watch-tag, .topic-list button, .article-actions a, .article-feedback button, .nav-item {
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 90ms ease;
}
.primary-button:active, .text-button:active, .segmented button:active { transform: scale(.97); }
.article-feedback button.is-selected { animation: feedback-pop 220ms ease-out; }
@keyframes feedback-pop { 40% { transform: scale(1.18); } }
.article-card h3 a:focus-visible, .article-actions a:focus-visible, .article-feedback button:focus-visible, .text-button:focus-visible, .primary-button:focus-visible, .segmented button:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px;
}

/* Loading text breathes instead of sitting still. */
.feed-more.is-pending { animation: loading-pulse 1.4s ease-in-out infinite; }
@keyframes loading-pulse { 50% { opacity: .45; } }

/* Switching light / dark is a short fade, not a flash. */
body { transition: background-color 200ms ease, color 200ms ease; }
