:root {
  color-scheme: light;
  --bg: #faf9f4;
  --bg-deep: #efede6;
  --panel: #fffdf8;
  --panel-raised: #fffefa;
  --panel-soft: #f1efe8;
  --text: #28344a;
  --text-soft: #657084;
  --text-faint: #9a9da3;
  --line: #d5d1c8;
  --line-strong: #7e8592;
  --accent: #a4894f;
  --accent-soft: rgba(164, 137, 79, 0.12);
  --accent-border: rgba(164, 137, 79, 0.52);
  --shadow: 0 24px 70px rgba(40, 52, 74, 0.14);
  --mono: Arial, "Helvetica Neue", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: Georgia, "Noto Serif SC", "Songti SC", "STSong", serif;
  --hero: #28344a;
  --hero-text: #f6f3ec;
  --hero-soft: #c6cad0;
  --sidebar-width: 242px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f4;
  --bg-deep: #efede6;
  --panel: #fffdf8;
  --panel-raised: #fffefa;
  --panel-soft: #f1efe8;
  --text: #28344a;
  --text-soft: #657084;
  --text-faint: #9a9da3;
  --line: #d5d1c8;
  --line-strong: #7e8592;
  --accent: #a4894f;
  --accent-soft: rgba(164, 137, 79, 0.12);
  --accent-border: rgba(164, 137, 79, 0.52);
  --shadow: 0 24px 70px rgba(40, 52, 74, 0.14);
  --hero: #28344a;
  --hero-text: #f6f3ec;
  --hero-soft: #c6cad0;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #28344a;
  --bg-deep: #202b3f;
  --panel: #303c53;
  --panel-raised: #354258;
  --panel-soft: #3a465c;
  --text: #f6f3ec;
  --text-soft: #c6cad0;
  --text-faint: #9da5b3;
  --line: rgba(246, 243, 236, 0.16);
  --line-strong: rgba(246, 243, 236, 0.38);
  --accent: #c0a66c;
  --accent-soft: rgba(192, 166, 108, 0.14);
  --accent-border: rgba(192, 166, 108, 0.56);
  --shadow: 0 24px 70px rgba(13, 18, 29, 0.34);
  --hero: #202b3f;
  --hero-text: #f6f3ec;
  --hero-soft: #c6cad0;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.65;
  transition: background-color 180ms ease, color 180ms ease;
}

body:has(dialog[open]) { overflow: hidden; }

button, input, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg-deep); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
  background: var(--bg-deep);
  overflow-y: auto;
}

.sidebar-brand { padding: 0 10px 20px; }

.wordmark {
  color: var(--text);
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.wordmark-dot { color: var(--accent); }

.wordmark-sub {
  margin-top: 8px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.workspace-switch {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.workspace-switch span:first-child { display: grid; gap: 1px; }
.workspace-switch small { color: var(--text-faint); font-family: var(--mono); font-size: 9px; }
.switch-chevron { color: var(--text-faint); font-size: 17px; }

.side-nav { display: grid; gap: 26px; padding: 28px 0; }
.nav-group { display: grid; gap: 3px; }

.nav-label,
.panel-kicker,
.section-kicker,
.metric-label,
.source-tier-code,
.table-label,
.story-source,
.story-time,
.story-tier,
.status-line,
.workspace-meta,
.app-footer,
.sidebar-footer {
  font-family: var(--mono);
}

.nav-label {
  padding: 0 12px 8px;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-item,
.side-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.nav-item:hover,
.nav-item.is-active,
.side-link:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-icon {
  display: inline-grid;
  width: 17px;
  place-items: center;
  color: var(--text-faint);
  font-size: 15px;
}

.nav-item.is-active .nav-icon { color: var(--accent); }
.nav-count { margin-left: auto; color: var(--text-faint); font-size: 9px; }

.sidebar-rule-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.sidebar-card-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sidebar-rule-card strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
}

.sidebar-rule-card p {
  margin: 7px 0 13px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.6;
}

.side-link { padding: 0; border: 0; color: var(--accent); font-size: 10px; }

.sidebar-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 9px 0;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.app-main { min-width: 0; background: var(--bg); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-actions,
.crumb,
.top-action,
.status-line,
.workspace-meta,
.outline-button,
.filter-bar,
.filter-tabs,
.filter-tools,
.story-meta,
.story-actions,
.dialog-topline,
.dialog-foot {
  display: flex;
  align-items: center;
}

.crumb { gap: 9px; color: var(--text-soft); font-family: var(--mono); font-size: 11px; }
.crumb span { color: var(--accent); }
.crumb b { color: var(--text-faint); font-weight: 400; }
.crumb strong { color: var(--text); font-weight: 500; }
.topbar-actions { justify-content: end; gap: 10px; }

.global-search { position: relative; }

.global-search input {
  width: 210px;
  min-height: 34px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  background: var(--panel);
  color: var(--text);
  font-size: 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.global-search input::placeholder { color: var(--text-faint); }
.global-search input:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft); }

.global-search > span {
  position: absolute;
  top: 4px;
  right: 10px;
  color: var(--text-faint);
  font-size: 18px;
}

.top-action,
.outline-button,
.dialog-close {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.top-action:hover,
.outline-button:hover,
.dialog-close:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.top-action:active,
.outline-button:active,
.dialog-close:active,
.nav-item:active,
.filter-tab:active,
.cluster-button:active {
  transform: translateY(1px) scale(0.98);
}

.theme-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 18px;
}

.workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 34px 30px;
  border-bottom: 1px solid var(--line);
}

.status-line {
  gap: 10px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-muted { color: var(--text-faint); }

.workspace-head h1 {
  margin: 16px 0 4px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.workspace-head p { margin: 0; color: var(--text-soft); font-size: 13px; }

.workspace-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--text-faint);
  font-size: 9px;
  text-align: right;
}

.workspace-meta strong { color: var(--text-soft); font-weight: 400; }
.workspace-meta .outline-button { margin-top: 10px; }

.app-view { padding: 26px 34px 50px; }

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

.metric-card {
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.metric-label span:last-child { color: var(--accent); }

.metric-value {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 25px;
  letter-spacing: -0.06em;
}

.metric-note { display: block; margin-top: 1px; color: var(--text-faint); font-size: 9px; }

.filter-bar {
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.filter-tabs { flex-wrap: wrap; gap: 5px; }

.filter-tab,
.source-filter {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.filter-tab:hover,
.filter-tab.is-active,
.source-filter:hover,
.source-filter.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.filter-tools { flex-shrink: 0; gap: 7px; }

.filter-tools select,
.filter-tools input,
.source-search {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: 0;
  background: var(--panel);
  color: var(--text-soft);
  font-size: 10px;
}

.filter-tools input { width: 170px; }
.filter-tools select:focus,
.filter-tools input:focus,
.source-search:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft); }

.feed-layout,
.brief-layout,
.weekly-layout,
.source-layout,
.cluster-layout,
.region-layout-view,
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: 16px;
  margin-top: 16px;
}

.feed-panel,
.side-panel,
.view-panel,
.brief-panel,
.weekly-hero,
.region-panel,
.player-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

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

.panel-head h2,
.feed-panel-head h2,
.view-panel-head h2,
.brief-panel h2,
.region-panel h2,
.player-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-kicker,
.section-kicker { color: var(--text-faint); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-head .panel-kicker,
.feed-panel-head .panel-kicker { color: var(--accent); }
.feed-panel-head > span,
.panel-head > span { color: var(--text-faint); font-family: var(--mono); font-size: 9px; }

.story-list { display: grid; }

.story-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) minmax(70px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  transition: background-color 160ms ease;
}

.story-card:last-child { border-bottom: 0; }
.story-card:hover { background: var(--panel-raised); }

.story-thumb {
  width: 94px;
  height: 72px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--panel-soft);
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
  transition: transform 380ms ease;
}

.story-card:hover .story-thumb img { transform: scale(1.045); }

.story-meta {
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 6px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
}

.story-topic { color: var(--accent); }
.story-tier { color: var(--text-faint); font-size: 8px; }

.story-title {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.story-title-button {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-title-button:hover { color: var(--accent); }
.story-title-button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.story-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.story-source { margin-top: 6px; color: var(--text-faint); font-size: 8px; }
.story-actions { align-items: end; flex-direction: column; gap: 8px; }

.story-priority {
  padding: 3px 6px;
  border: 1px solid var(--accent-border);
  border-radius: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.story-time { color: var(--text-faint); font-size: 8px; }

.story-button,
.cluster-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent);
  font-size: 9px;
}

.story-button:hover,
.cluster-button:hover { color: var(--text); }

.empty-state { padding: 42px 18px; color: var(--text-soft); text-align: center; }

.side-panel { overflow: hidden; }
.side-panel .panel-block { padding: 16px; border-bottom: 1px solid var(--line); }
.side-panel .panel-block:last-child { border-bottom: 0; }

.rule-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rule-row:last-child { padding-bottom: 0; border-bottom: 0; }
.rule-row:first-child { padding-top: 14px; }
.rule-code { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.rule-row strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 11px; font-weight: 600; }
.rule-row p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.6; }

.cluster-stack { display: grid; gap: 5px; margin-top: 12px; }

.cluster-button {
  display: flex;
  width: 100%;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom-color: var(--line);
  color: var(--text-soft);
  text-align: left;
}

.cluster-button:hover,
.cluster-button.is-active { color: var(--accent); }
.cluster-button span:last-child { flex-shrink: 0; color: var(--text-faint); font-family: var(--mono); font-size: 8px; }

.method-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.method-strip-card {
  min-height: 102px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.method-strip-card:first-child { background: var(--accent-soft); }
.method-strip-card strong { display: block; margin: 12px 0 5px; color: var(--text); font-size: 12px; }
.method-strip-card p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.55; }

.brief-panel,
.source-layout .view-panel,
.cluster-layout .view-panel,
.region-layout-view .view-panel,
.player-layout .view-panel,
.weekly-feed,
.weekly-themes,
.weekly-method { overflow: hidden; }

.brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  min-height: 280px;
}

.brief-hero-copy { padding: 26px; }
.brief-hero-copy h2 { max-width: 13ch; margin: 14px 0; color: var(--text); font-size: clamp(1.8rem, 3.7vw, 3.2rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1.12; }
.brief-hero-copy p { max-width: 35em; margin: 0; color: var(--text-soft); font-size: 12px; }
.brief-hero-image { min-height: 280px; overflow: hidden; border-left: 1px solid var(--line); }
.brief-hero-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.68) contrast(1.08); }

.brief-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.brief-sequence article { min-height: 120px; padding: 15px; border: 1px solid var(--line); background: var(--panel-raised); }
.brief-sequence h3 { margin: 12px 0 6px; color: var(--text); font-size: 12px; }
.brief-sequence p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.55; }

.weekly-layout { align-items: start; }
.weekly-main { display: grid; min-width: 0; gap: 16px; }
.weekly-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr); min-height: 248px; }
.weekly-hero-copy { padding: 26px; }
.weekly-hero-copy h2 { max-width: 15ch; margin: 14px 0; color: var(--text); font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1.12; }
.weekly-hero-copy p { max-width: 53em; margin: 0 0 16px; color: var(--text-soft); font-size: 11px; line-height: 1.7; }
.weekly-hero-metrics { display: grid; align-content: center; gap: 0; padding: 20px; border-left: 1px solid var(--line); background: var(--panel-raised); }
.weekly-hero-metrics div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.weekly-hero-metrics div:last-child { border-bottom: 0; }
.weekly-hero-metrics strong { display: block; color: var(--accent); font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.06em; }
.weekly-hero-metrics span { color: var(--text-faint); font-size: 9px; }
.weekly-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr); gap: 16px; }
.weekly-theme-list,
.weekly-tier-list { display: grid; padding: 8px 16px 14px; }
.weekly-theme-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(80px, 1.2fr) 24px; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.weekly-theme-row:last-child { border-bottom: 0; }
.weekly-theme-label strong { display: block; color: var(--text); font-size: 11px; }
.weekly-theme-label span { display: block; margin-top: 4px; color: var(--text-faint); font-size: 9px; line-height: 1.45; }
.weekly-theme-row > b { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 500; text-align: right; }
.weekly-bar { height: 4px; overflow: hidden; border-radius: 99px; background: var(--panel-soft); }
.weekly-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.weekly-tier-row { display: grid; grid-template-columns: 48px 1fr 40px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.weekly-tier-row:last-child { border-bottom: 0; }
.weekly-tier-row span { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.weekly-tier-row strong { color: var(--text); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.weekly-tier-row small { color: var(--text-faint); font-family: var(--mono); font-size: 9px; text-align: right; }
.weekly-method-note { padding: 12px 16px 16px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 9px; line-height: 1.6; }
.weekly-feed .story-list { max-height: none; overflow: visible; }
.weekly-side { position: sticky; top: 82px; }

.source-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.source-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.source-search { width: 180px; }
.source-tier-list { display: grid; }

.source-tier-row {
  display: grid;
  grid-template-columns: 58px minmax(150px, 0.72fr) minmax(0, 1.2fr) 72px;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.source-tier-row:last-child { border-bottom: 0; }
.source-tier-row:hover { background: var(--panel-raised); }
.source-tier-code { color: var(--accent); font-size: 11px; }
.source-tier-row strong { color: var(--text); font-size: 11px; font-weight: 600; }
.source-tier-row p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.55; }
.source-policy { color: var(--text-faint); font-size: 9px; }
.source-link { color: var(--accent); font-family: var(--mono); font-size: 9px; }
.source-status { color: var(--accent); font-family: var(--mono); font-size: 9px; text-align: right; }
.source-status b { color: var(--text); font-weight: 600; }

.side-copy { padding: 16px; color: var(--text-soft); font-size: 11px; }
.side-copy p { margin: 0 0 12px; }
.side-copy ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.side-copy li { position: relative; padding-left: 14px; }
.side-copy li::before { position: absolute; left: 0; color: var(--accent); content: \"•\"; }

.cluster-grid,
.region-grid-view,
.player-grid-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.cluster-card,
.region-card,
.player-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.cluster-card:hover,
.region-card:hover,
.player-card:hover { border-color: var(--accent-border); background: var(--panel-raised); transform: translateY(-1px); }
.cluster-card h3,
.region-card h3,
.player-card h3 { margin: 12px 0 7px; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.35; }
.cluster-card p,
.region-card p,
.player-card p { margin: 0 0 14px; color: var(--text-soft); font-size: 10px; line-height: 1.65; }
.cluster-footer,
.region-card-footer,
.player-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-faint); font-family: var(--mono); font-size: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag { padding: 3px 5px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--text-faint); font-family: var(--mono); font-size: 8px; }
.region-card { min-height: 170px; }
.region-card:nth-child(1) { grid-column: span 2; }
.region-card strong,
.player-card strong { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.player-card { min-height: 170px; }
.player-card h3 { max-width: 21ch; }
.player-card p { min-height: 50px; }

.burgundy-watch-block { margin: 16px; border: 1px solid var(--line-strong); background: var(--panel-soft); }
.burgundy-watch-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 20px; border-bottom: 1px solid var(--line-strong); }
.burgundy-watch-head h2 { margin: 10px 0 8px; color: var(--text); font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1.12; }
.burgundy-watch-head p { max-width: 62ch; margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.65; }
.burgundy-watch-count { flex: 0 0 auto; padding: 6px 8px; border: 1px solid var(--accent-border); color: var(--accent); font-family: var(--mono); font-size: 9px; }
.burgundy-watch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); }
.burgundy-change-list { min-width: 0; margin: 0; padding: 0; }
.burgundy-change-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.burgundy-change-row:last-child { border-bottom: 0; }
.burgundy-change-meta { display: grid; align-content: start; gap: 8px; }
.burgundy-change-meta time,
.burgundy-change-vintage { color: var(--text-faint); font-family: var(--mono); font-size: 9px; }
.burgundy-status { width: fit-content; padding: 3px 5px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 8px; }
.burgundy-status.is-confirmed { color: var(--accent); border-color: var(--accent-border); }
.burgundy-status.is-pending { color: var(--text-faint); }
.burgundy-change-row h3 { margin: 0 0 7px; color: var(--text); font-family: var(--display); font-size: 18px; font-weight: 400; line-height: 1.3; }
.burgundy-change-row p { margin: 0 0 12px; color: var(--text-soft); font-size: 10px; line-height: 1.7; }
.burgundy-change-note { color: var(--text-faint); font-size: 9px; line-height: 1.5; }
.burgundy-watch-side { padding: 20px; border-left: 1px solid var(--line-strong); }
.burgundy-watch-side > p { margin: 10px 0 15px; color: var(--text-soft); font-size: 10px; line-height: 1.65; }
.burgundy-producer-list { display: flex; flex-wrap: wrap; gap: 6px; }
.burgundy-producer-list span { padding: 5px 6px; border: 1px solid var(--line); color: var(--text-soft); font-size: 9px; line-height: 1.35; }
.burgundy-roster-details { margin-top: 16px; border-top: 1px solid var(--line); }
.burgundy-roster-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--text); font-size: 10px; cursor: pointer; list-style: none; }
.burgundy-roster-details summary::-webkit-details-marker { display: none; }
.burgundy-roster-details summary::after { content: '+'; color: var(--accent); font-family: var(--mono); font-size: 12px; }
.burgundy-roster-details[open] summary::after { content: '−'; }
.burgundy-roster-details summary b { color: var(--text-faint); font-family: var(--mono); font-size: 8px; font-weight: 400; }
.burgundy-roster-meta { margin: 0 0 10px; color: var(--text-faint); font-size: 9px; line-height: 1.6; }
.burgundy-full-producer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.burgundy-watch-note { display: grid; gap: 6px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
.burgundy-watch-note strong { color: var(--text); font-family: var(--display); font-size: 14px; font-weight: 400; }
.burgundy-watch-note span { color: var(--text-faint); font-size: 9px; line-height: 1.7; }

.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px 26px; color: var(--text-faint); font-size: 9px; }
.app-footer a { color: var(--accent); }

.story-dialog {
  width: min(820px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.story-dialog::backdrop { background: rgba(3, 7, 12, 0.7); backdrop-filter: blur(4px); }
.dialog-inner { max-height: calc(100dvh - 28px); padding: clamp(24px, 4vw, 46px); overflow: auto; }
.dialog-topline,
.dialog-foot { justify-content: space-between; gap: 16px; }
.dialog-topline { color: var(--accent); font-family: var(--mono); font-size: 9px; }
.dialog-close { padding: 4px 7px; border-color: var(--line); }
.story-dialog h2 { max-width: 26ch; margin: 34px 0 16px; color: var(--text); font-family: var(--display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1.15; }
.dialog-summary { max-width: 68ch; padding-bottom: 22px; margin: 0; color: var(--text); font-size: 16px; line-height: 1.8; border-bottom: 1px solid var(--line-strong); }
.dialog-copy { color: var(--text-soft); font-size: 13px; line-height: 1.8; }
.dialog-copy p { margin: 0 0 16px; }
.dialog-foot { padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }
.dialog-foot > span { color: var(--text-faint); font-family: var(--mono); font-size: 9px; }
.dialog-foot a { color: var(--accent); font-family: var(--mono); font-size: 9px; }

.noscript-note { position: fixed; inset: 20px; z-index: 80; padding: 20px; border: 1px solid var(--accent-border); background: var(--panel); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1180px) {
  :root { --sidebar-width: 220px; }
  .topbar, .workspace-head, .app-view { padding-left: 24px; padding-right: 24px; }
  .global-search input { width: 160px; }
  .feed-layout, .brief-layout, .weekly-layout, .source-layout, .cluster-layout, .region-layout-view, .player-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(280px, calc(100% - 60px));
    transform: translateX(-100%);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-menu { display: inline-block; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-layout, .brief-layout, .weekly-layout, .source-layout, .cluster-layout, .region-layout-view, .player-layout { grid-template-columns: 1fr; }
  .method-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .burgundy-watch-grid { grid-template-columns: 1fr; }
  .burgundy-watch-side { border-top: 1px solid var(--line-strong); border-left: 0; }
}

@media (max-width: 640px) {
  .topbar, .workspace-head, .app-view { padding-left: 16px; padding-right: 16px; }
  .topbar { min-height: 58px; }
  .topbar-actions { gap: 5px; }
  .global-search { display: none; }
  .top-action { padding-inline: 7px; }
  .workspace-head { display: block; padding-top: 32px; padding-bottom: 24px; }
  .workspace-meta { display: flex; align-items: center; justify-content: start; flex-wrap: wrap; margin-top: 22px; text-align: left; }
  .workspace-meta .outline-button { margin-top: 0; }
  .metric-grid { gap: 7px; }
  .metric-card { min-height: 100px; padding: 12px; }
  .metric-value { font-size: 21px; }
  .filter-bar { display: block; }
  .filter-tools { display: grid; grid-template-columns: minmax(0, 1fr) 120px; margin-top: 10px; }
  .filter-tools input { width: 100%; }
  .story-card { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; align-items: start; }
  .story-thumb { width: 68px; height: 64px; }
  .story-actions { grid-column: 2; align-items: start; flex-direction: row; justify-content: space-between; margin-top: -4px; }
  .story-summary { -webkit-line-clamp: 2; }
  .method-strip, .brief-sequence, .cluster-grid, .region-grid-view, .player-grid-view { grid-template-columns: 1fr; }
  .region-card:nth-child(1) { grid-column: auto; }
  .brief-hero { grid-template-columns: 1fr; }
  .brief-hero-image { min-height: 210px; border-top: 1px solid var(--line); border-left: 0; }
  .weekly-hero { grid-template-columns: 1fr; }
  .weekly-hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 0; }
  .weekly-hero-metrics div { padding: 12px 8px; border-right: 1px solid var(--line); border-bottom: 0; }
  .weekly-hero-metrics div:last-child { border-right: 0; }
  .weekly-grid { grid-template-columns: 1fr; }
  .weekly-side { position: static; }
  .source-toolbar { display: block; }
  .source-search { width: 100%; margin-top: 9px; }
  .source-tier-row { grid-template-columns: 48px minmax(0, 1fr); gap: 7px 12px; }
  .source-tier-row p { grid-column: 2; }
  .source-status { grid-column: 2; text-align: left; }
  .burgundy-watch-block { margin: 10px 16px; }
  .burgundy-watch-head { display: block; padding: 18px 16px; }
  .burgundy-watch-count { display: inline-block; margin-top: 14px; }
  .burgundy-change-row { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .burgundy-full-producer-list { grid-template-columns: 1fr; }
  .app-footer { display: block; padding-left: 16px; padding-right: 16px; }
  .app-footer a { display: block; margin-top: 8px; }
  .dialog-foot { align-items: start; flex-direction: column; }
}

.view-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
}

.view-intro p,
.topic-map-head p,
.hot-heading p,
.agent-heading p,
.changelog-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.65;
}

.hot-layout,
.agent-view,
.about-view,
.changelog-view,
.topic-map { padding-bottom: 26px; }

.hot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.hot-panel { min-width: 0; }
.hot-heading,
.topic-map-head,
.agent-heading,
.about-hero,
.changelog-heading { padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.hot-heading h2,
.topic-map-head h2,
.agent-heading h2,
.about-hero h2,
.changelog-heading h2 { max-width: 18ch; margin: 9px 0 10px; color: var(--text); font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 3.4rem); font-weight: 500; letter-spacing: -0.065em; line-height: .98; }
.hot-list { display: grid; }
.hot-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 84px; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--panel); transition: background-color 160ms ease; }
.hot-card:hover { background: var(--panel-raised); }
.hot-rank { padding-top: 3px; color: var(--accent); font-family: var(--mono); font-size: 12px; }
.hot-card-copy h3 { margin: 0 0 8px; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.35; }
.hot-card-copy p { max-width: 62ch; margin: 0 0 13px; color: var(--text-soft); font-size: 11px; line-height: 1.6; }
.hot-state { border-color: var(--accent-border); color: var(--accent); }
.hot-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-faint); font-family: var(--mono); font-size: 9px; }
.hot-score { display: flex; align-items: end; flex-direction: column; justify-content: center; color: var(--accent); }
.hot-score strong { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.06em; }
.hot-score span { color: var(--text-faint); font-family: var(--mono); font-size: 8px; }

.topic-map { border: 1px solid var(--line); background: var(--panel); }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.topic-card { display: flex; min-height: 220px; padding: 20px; border: 0; background: var(--panel); color: inherit; text-align: left; flex-direction: column; transition: background-color 160ms ease; }
.topic-card:hover { background: var(--panel-raised); }
.topic-card h3 { margin: 12px 0 8px; color: var(--text); font-size: 18px; font-weight: 600; }
.topic-card p { max-width: 38ch; margin: 0 auto 16px 0; color: var(--text-soft); font-size: 11px; line-height: 1.65; }
.topic-card .tag-row { margin-top: auto; }
.topic-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-faint); font-family: var(--mono); font-size: 9px; }

.agent-heading { border: 1px solid var(--line); background: var(--panel); }
.agent-heading h2 { max-width: 20ch; }
.agent-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.agent-badges span { padding: 5px 8px; border: 1px solid var(--accent-border); border-radius: 2px; color: var(--accent); font-family: var(--mono); font-size: 9px; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 14px; background: var(--line); }
.integration-card { display: flex; min-height: 200px; padding: 20px; background: var(--panel); flex-direction: column; }
.integration-card:hover { background: var(--panel-raised); }
.integration-card h3 { margin: 10px 0 8px; color: var(--text); font-size: 16px; }
.integration-card p { min-height: 48px; margin: 0 0 14px; color: var(--text-soft); font-size: 11px; line-height: 1.6; }
.integration-card code { display: block; min-height: 34px; padding: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--accent); font-family: var(--mono); font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.integration-card .story-button { align-self: start; margin-top: auto; }

.about-hero { border: 1px solid var(--line); background: var(--panel); }
.about-hero p { max-width: 68ch; margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.75; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; background: var(--line); }
.about-card { min-height: 174px; padding: 20px; background: var(--panel); }
.about-card:hover { background: var(--panel-raised); }
.about-card h3 { margin: 20px 0 8px; color: var(--text); font-size: 16px; }
.about-card p { margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.65; }
.about-method { margin-top: 14px; }
.about-source-note { display: flex; align-items: center; gap: 14px; padding: 15px 17px; margin-top: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text-soft); font-size: 10px; line-height: 1.5; }
.about-source-note strong { color: var(--text); white-space: nowrap; }
.about-source-note .story-button { margin-left: auto; white-space: nowrap; }

.changelog-heading { border: 1px solid var(--line); background: var(--panel); }
.changelog-list { display: grid; margin-top: 14px; border: 1px solid var(--line); background: var(--panel); }
.changelog-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 20px; border-bottom: 1px solid var(--line); }
.changelog-item:last-child { border-bottom: 0; }
.changelog-date { display: flex; gap: 8px; color: var(--text-faint); font-family: var(--mono); font-size: 9px; flex-direction: column; }
.changelog-date strong { color: var(--accent); font-weight: 500; }
.changelog-date span { color: var(--text-soft); }
.changelog-item h3 { margin: 0 0 7px; color: var(--text); font-size: 15px; }
.changelog-item p { max-width: 70ch; margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.65; }

/* P0 / P1 industry-reading improvements */
.filter-tools select { min-width: 118px; }

.freshness-empty {
  padding: clamp(28px, 6vw, 64px) 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.freshness-empty h3 { margin: 12px 0 8px; color: var(--text); font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 500; }
.freshness-empty p { max-width: 62ch; margin: 0 auto 18px; color: var(--text-soft); font-size: 11px; line-height: 1.7; }

.cluster-evidence {
  padding: 22px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.cluster-evidence-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.cluster-evidence-head h3 { max-width: 36ch; margin: 8px 0 0; color: var(--text); font-family: var(--display); font-size: clamp(1.45rem, 2.7vw, 2.35rem); font-weight: 500; line-height: 1.12; }
.cluster-evidence-summary { max-width: 76ch; margin: 12px 0 18px; color: var(--text-soft); font-size: 11px; line-height: 1.7; }
.evidence-count { display: flex; min-width: 88px; align-items: end; flex-direction: column; }
.evidence-count strong { color: var(--accent); font-family: var(--display); font-size: 32px; font-weight: 500; }
.evidence-count span { color: var(--text-faint); font-family: var(--mono); font-size: 8px; }
.evidence-list { padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); list-style: none; }
.evidence-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.evidence-row strong { display: block; margin: 4px 0; color: var(--text); font-size: 12px; }
.evidence-row p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.55; }
.evidence-role { color: var(--accent); font-family: var(--mono); font-size: 8px; }
.evidence-meta { display: flex; align-items: end; gap: 8px; color: var(--text-faint); font-family: var(--mono); font-size: 8px; text-align: right; flex-direction: column; }
.evidence-meta a { color: var(--accent); }
.evidence-pending { display: flex; align-items: baseline; gap: 12px; padding: 12px; margin: 0 0 16px; border-left: 2px solid var(--accent); background: var(--bg); }
.evidence-pending strong { color: var(--text); font-size: 10px; }
.evidence-pending span { color: var(--text-faint); font-size: 9px; }
.cluster-evidence.is-compact { padding: 0; margin: 12px 0 0; border: 0; background: transparent; }
.cluster-evidence.is-compact .cluster-evidence-head,
.cluster-evidence.is-compact .cluster-evidence-summary { display: none; }

.detail-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-faint); font-family: var(--mono); font-size: 9px; }
.detail-status strong { color: var(--accent); font-weight: 500; }
.detail-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.detail-section > h3 { margin: 0 0 10px; color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.detail-section > p { margin: 0 0 10px; color: var(--text-soft); font-size: 13px; line-height: 1.8; }
.detail-section > p:last-child { margin-bottom: 0; }
.detail-article { padding-top: 24px; }
.detail-article p { margin: 0 0 18px; color: var(--text); font-size: 14px; line-height: 1.95; }
.detail-article p:last-child { margin-bottom: 0; }
.detail-observation { padding-top: 22px; }
.detail-basis { color: var(--text-faint); font-family: var(--mono); font-size: 9px; line-height: 1.7; }
.news-content-summary { padding-bottom: 8px; }
.news-summary-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.news-summary-row > span { padding-top: 3px; color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }
.news-summary-row > p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.8; }

.weekly-decision { margin-top: 14px; }
.weekly-decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.weekly-decision-grid article { min-height: 160px; padding: 18px; background: var(--panel); }
.weekly-decision-grid h3 { margin: 16px 0 7px; color: var(--text); font-size: 14px; }
.weekly-decision-grid p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.65; }
.weekly-watch { display: flex; flex-wrap: wrap; gap: 7px; padding: 15px 18px; border-top: 1px solid var(--line); color: var(--text-faint); font-family: var(--mono); font-size: 8px; }
.weekly-watch strong { margin-right: 6px; color: var(--text); }
.weekly-watch span { padding: 4px 6px; border: 1px solid var(--line-strong); }

.player-card-footer .story-button { font-size: 8px; }
.player-timeline { margin: 16px; border: 1px solid var(--line-strong); background: var(--bg); }
.player-timeline-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 18px; border-bottom: 1px solid var(--line); }
.player-timeline-head h2 { margin: 8px 0 5px; color: var(--text); font-family: var(--display); font-size: 24px; font-weight: 500; }
.player-timeline-head p { max-width: 62ch; margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.6; }
.player-timeline ol { padding: 0 18px; margin: 0; list-style: none; }
.player-timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.player-timeline li:last-child { border-bottom: 0; }
.player-timeline time,
.player-timeline small { color: var(--text-faint); font-family: var(--mono); font-size: 8px; }
.player-timeline li div { display: grid; gap: 6px; }
.player-timeline li div > span { color: var(--accent); font-family: var(--mono); font-size: 8px; }
.timeline-empty { padding: 22px 18px; color: var(--text-soft); font-size: 10px; line-height: 1.65; }

.availability-badge { align-self: start; padding: 4px 6px; margin-top: 12px; border: 1px solid var(--accent-border); color: var(--accent); font-family: var(--mono); font-size: 8px; }
.integration-card.is-coming { background: color-mix(in srgb, var(--panel) 88%, var(--bg)); }
.story-button:disabled { color: var(--text-faint); cursor: not-allowed; opacity: .7; }
.story-button:disabled:hover { color: var(--text-faint); }

@media (max-width: 760px) {
  .evidence-row { grid-template-columns: 1fr; gap: 8px; }
  .evidence-meta { align-items: start; text-align: left; }
  .evidence-pending { align-items: start; flex-direction: column; }
  .weekly-decision-grid { grid-template-columns: 1fr; }
  .player-timeline-head { flex-direction: column; }
  .player-timeline li { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 640px) {
  .filter-tools { grid-template-columns: 1fr; }
  .filter-tools select { width: 100%; }
  .cluster-evidence { padding: 16px; }
}

@media (max-width: 1180px) {
  .hot-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 900px) {
  .hot-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .view-intro { display: block; }
  .view-intro p { margin-top: 8px; }
  .hot-heading, .topic-map-head, .agent-heading, .about-hero, .changelog-heading { padding: 18px 16px; }
  .hot-card { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 16px; }
  .hot-score { grid-column: 2; align-items: start; justify-content: start; flex-direction: row; gap: 7px; }
  .hot-score strong { font-size: 23px; }
  .hot-footer { align-items: start; flex-direction: column; }
  .topic-grid, .integration-grid { grid-template-columns: 1fr; }
  .topic-card, .integration-card { min-height: 0; padding: 17px; }
  .about-source-note { align-items: start; flex-direction: column; }
  .about-source-note .story-button { margin-left: 0; }
  .changelog-item { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
}

/* Resonant Fine Wine editorial skin: warm paper, slate indigo and restrained brass. */
body {
  background: var(--bg);
  letter-spacing: 0.005em;
}

.sidebar {
  padding: 28px 18px 20px;
  background: var(--bg);
}

.sidebar-brand {
  padding: 0 10px 25px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.wordmark-dot { color: var(--accent); }

.wordmark-sub {
  margin-top: 9px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.workspace-switch {
  margin-top: 20px;
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.workspace-switch small { color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.switch-chevron { color: var(--accent); }

.side-nav { gap: 23px; padding: 29px 0; }
.nav-group { gap: 2px; }
.nav-label { padding: 0 12px 8px; color: var(--accent); letter-spacing: 0.19em; }

.nav-item,
.side-link,
.top-action,
.outline-button,
.dialog-close {
  border-radius: 0;
}

.nav-item {
  padding: 9px 12px;
  border-left: 2px solid transparent;
  color: var(--text-soft);
}

.nav-item:hover,
.nav-item.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.nav-item.is-active .nav-icon,
.nav-item:hover .nav-icon { color: var(--accent); }
.nav-count { color: var(--text-faint); }

.sidebar-rule-card {
  padding: 17px 10px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.sidebar-card-kicker { color: var(--accent); letter-spacing: 0.16em; }
.status-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sidebar-rule-card strong { margin-top: 14px; font-family: var(--display); font-size: 18px; font-weight: 400; }
.sidebar-rule-card p { color: var(--text-soft); }
.side-link { color: var(--accent); }
.sidebar-footer { padding: 22px 9px 0; color: var(--text-faint); }

.topbar {
  min-height: 70px;
  padding: 0 48px;
  background: var(--bg);
  backdrop-filter: none;
}

.crumb { font-family: var(--mono); letter-spacing: 0.14em; }
.crumb span { color: var(--accent); }
.global-search input {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}
.global-search input:focus { box-shadow: none; border-color: var(--accent); }
.top-action:hover,
.outline-button:hover,
.dialog-close:hover { border-color: var(--accent); background: transparent; color: var(--accent); }

.workspace-head {
  position: relative;
  isolation: isolate;
  padding: 57px 48px 42px;
}

.workspace-head h1,
.brief-hero-copy h2,
.weekly-hero-copy h2,
.hot-heading h2,
.topic-map-head h2,
.agent-heading h2,
.about-hero h2,
.changelog-heading h2,
.story-dialog h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.workspace-head h1 { margin-top: 18px; font-size: clamp(2.45rem, 5vw, 4.6rem); line-height: 1.02; }
.workspace-head p { max-width: 42em; color: var(--text-soft); }
.workspace-meta { color: var(--text-faint); }
.workspace-meta strong { color: var(--text); }

.app-view { padding: 35px 48px 64px; }

.metric-grid { gap: 0; margin-bottom: 31px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.metric-card {
  min-height: 118px;
  padding: 18px 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.metric-card + .metric-card { border-left: 1px solid var(--line); }
.metric-label { color: var(--text-faint); letter-spacing: 0.12em; }
.metric-label span:last-child { color: var(--accent); }
.metric-value { color: var(--text); font-family: var(--display); font-size: 32px; font-weight: 400; letter-spacing: -0.02em; }
.metric-note { color: var(--text-soft); }

.filter-bar { padding: 13px 0; border-top: 0; border-bottom: 1px solid var(--line-strong); }
.filter-tab,
.source-filter { border-radius: 0; }
.filter-tab:hover,
.filter-tab.is-active,
.source-filter:hover,
.source-filter.is-active { border-color: var(--accent); background: transparent; color: var(--accent); }
.filter-tools select,
.filter-tools input,
.source-search { border-radius: 0; background: transparent; }

.feed-panel,
.side-panel,
.view-panel,
.brief-panel,
.weekly-hero,
.region-panel,
.player-panel {
  border-radius: 0;
  box-shadow: none;
}

.feed-panel,
.view-panel,
.brief-panel { background: transparent; }
.feed-panel { border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.feed-panel-head,
.panel-head,
.view-panel-head { padding: 17px 20px; border-bottom: 1px solid var(--line-strong); }
.panel-head h2,
.feed-panel-head h2,
.view-panel-head h2,
.brief-panel h2,
.region-panel h2,
.player-panel h2 { font-family: var(--display); font-size: 18px; font-weight: 400; letter-spacing: 0; }
.panel-kicker,
.section-kicker { color: var(--accent); letter-spacing: 0.16em; }
.feed-panel-head > span,
.panel-head > span { color: var(--text-faint); }

.story-card { padding: 17px 20px; background: transparent; }
.story-card:hover { background: var(--accent-soft); }
.story-thumb { border-radius: 0; background: var(--panel-soft); }
.story-title { font-family: var(--display); font-size: 16px; font-weight: 400; line-height: 1.4; }
.story-summary { color: var(--text-soft); }
.story-source { color: var(--text-faint); }
.story-priority { border: 0; border-bottom: 1px solid var(--accent-border); border-radius: 0; color: var(--accent); }
.story-button,
.cluster-button { color: var(--accent); }

.side-panel { border: 0; border-top: 1px solid var(--line-strong); background: transparent; }
.side-panel .panel-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rule-row { grid-template-columns: 68px minmax(0, 1fr); padding: 14px 0; }
.rule-code { color: var(--accent); }
.rule-row strong { font-family: var(--display); font-size: 14px; font-weight: 400; }
.rule-row p { color: var(--text-soft); }
.cluster-button { padding: 10px 0; }

.method-strip { gap: 0; margin-top: 24px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.method-strip-card { min-height: 126px; padding: 18px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.method-strip-card:last-child { border-right: 0; }
.method-strip-card:first-child { background: var(--accent-soft); }
.method-strip-card strong { font-family: var(--display); font-size: 16px; font-weight: 400; }
.method-strip-card p { color: var(--text-soft); }

.brief-hero-copy { padding: 37px; }
.brief-hero-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
.brief-hero-copy p { color: var(--text-soft); }
.brief-hero-image { border-left: 1px solid var(--line-strong); }
.brief-sequence { gap: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.brief-sequence article { min-height: 132px; padding: 19px; border: 0; border-right: 1px solid var(--line); background: transparent; }
.brief-sequence article:last-child { border-right: 0; }
.brief-sequence h3 { font-family: var(--display); font-size: 16px; font-weight: 400; }

.weekly-hero { border: 0; background: var(--hero); }
.weekly-hero-copy h2 { color: var(--hero-text); font-size: clamp(2rem, 3.7vw, 3.6rem); }
.weekly-hero-copy p { color: var(--hero-soft); }
.weekly-hero .section-kicker,
.weekly-hero .tag { color: var(--accent); }
.weekly-hero .tag { border-color: var(--accent-border); }
.weekly-hero-metrics { border-left: 1px solid rgba(246, 243, 236, 0.2); background: transparent; }
.weekly-hero-metrics div { border-bottom-color: rgba(246, 243, 236, 0.2); }
.weekly-hero-metrics strong { color: var(--accent); font-family: var(--display); font-size: 34px; font-weight: 400; }
.weekly-hero-metrics span { color: var(--hero-soft); }
.weekly-bar { border-radius: 0; background: var(--panel-soft); }
.weekly-bar i { border-radius: 0; background: var(--accent); }
.weekly-theme-row > b,
.weekly-tier-row span { color: var(--accent); }
.weekly-method-note { color: var(--text-soft); }

.source-toolbar { padding: 15px 20px; border-bottom: 1px solid var(--line-strong); }
.source-tier-row { padding: 17px 20px; }
.source-tier-row strong { font-family: var(--display); font-size: 15px; font-weight: 400; }
.source-status { color: var(--accent); }

.cluster-card,
.region-card,
.player-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.cluster-card:hover,
.region-card:hover,
.player-card:hover { border-color: var(--accent); background: var(--accent-soft); transform: none; }
.cluster-card h3,
.region-card h3,
.player-card h3 { font-family: var(--display); font-size: 19px; font-weight: 400; }
.tag { border-radius: 0; border-color: var(--accent-border); color: var(--accent); }

.view-intro { border-bottom-color: var(--line-strong); }
.hot-heading,
.topic-map-head,
.agent-heading,
.about-hero,
.changelog-heading { border-bottom-color: var(--line-strong); }
.hot-heading h2,
.topic-map-head h2,
.agent-heading h2,
.about-hero h2,
.changelog-heading h2 { font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.06; }
.hot-card:hover,
.topic-card:hover,
.integration-card:hover,
.about-card:hover { background: var(--accent-soft); }
.hot-card,
.topic-card,
.integration-card,
.about-card { background: transparent; }
.topic-map,
.agent-heading,
.about-hero,
.changelog-heading,
.changelog-list { border-radius: 0; background: transparent; }
.topic-grid,
.integration-grid { gap: 0; background: var(--line); }
.topic-card,
.integration-card,
.about-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.integration-card code { border-radius: 0; background: var(--panel-soft); color: var(--accent); }
.about-card h3,
.changelog-item h3,
.integration-card h3 { font-family: var(--display); font-weight: 400; }
.about-source-note { border-radius: 0; background: transparent; }
.changelog-list { background: transparent; }
.changelog-item { border-bottom-color: var(--line-strong); }

.app-footer { padding-top: 20px; border-top: 1px solid var(--line); }
.app-footer a { color: var(--accent); }
.story-dialog { border-radius: 0; background: var(--panel); }
.story-dialog::backdrop { background: rgba(40, 52, 74, 0.56); }
.story-dialog h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.dialog-summary { color: var(--text); }

@media (max-width: 1180px) {
  .topbar, .workspace-head, .app-view { padding-left: 30px; padding-right: 30px; }
}

@media (max-width: 640px) {
  .topbar, .workspace-head, .app-view { padding-left: 16px; padding-right: 16px; }
  .workspace-head { padding-top: 36px; }
  .workspace-head h1 { font-size: clamp(2.3rem, 13vw, 3.5rem); }
  .metric-card { min-height: 104px; padding: 13px 12px; }
  .metric-card + .metric-card { border-left: 0; }
  .metric-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .story-card { padding: 15px 16px; }
  .brief-hero-copy { padding: 25px 20px; }
  .brief-sequence article { border-right: 0; border-bottom: 1px solid var(--line); }
  .method-strip-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .weekly-hero-copy { padding: 24px 20px; }
  .weekly-hero-metrics { border-top-color: rgba(246, 243, 236, 0.2); }
  .weekly-theme-row { grid-template-columns: 1fr 34px; gap: 8px; }
  .weekly-theme-row .weekly-bar { grid-column: 1 / -1; grid-row: 2; }
  .source-tier-row { padding: 15px 16px; }
  .news-summary-row { grid-template-columns: 1fr; gap: 5px; }
}

/* Reader-facing weekly interpretation */
.ai-side-panel { overflow: visible; }
.ai-brief-head { padding: 20px 0 22px; border-bottom: 1px solid var(--line-strong); }
.ai-brief-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--accent); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.ai-brief-meta b { color: var(--text-faint); font-weight: 400; letter-spacing: 0; }
.ai-brief-head h2 { margin: 18px 0 10px; color: var(--text); font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.3; }
.ai-brief-head p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.75; }

.ai-insight-list { border-bottom: 1px solid var(--line-strong); }
.ai-insight { display: block; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.ai-insight:last-child { border-bottom: 0; }
.ai-insight > span { display: block; color: var(--accent); font-family: var(--mono); font-size: 8px; }
.ai-insight strong { display: block; margin: 8px 0 7px; color: var(--text); font-family: var(--display); font-size: 15px; font-weight: 400; line-height: 1.45; }
.ai-insight p { margin: 0; color: var(--text-soft); font-size: 9px; line-height: 1.7; }
.ai-insight i { display: inline-block; margin-top: 9px; color: var(--text-faint); font-family: var(--mono); font-size: 8px; font-style: normal; }
.ai-insight:hover strong,
.ai-insight:hover i { color: var(--accent); }
.ai-insight:active { transform: translateY(1px); }

.ai-watch { padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.ai-watch .panel-kicker { margin-bottom: 10px; }
.ai-watch button { display: grid; width: 100%; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text-soft); font-size: 9px; line-height: 1.55; text-align: left; cursor: pointer; }
.ai-watch button:last-child { border-bottom: 0; }
.ai-watch button span { color: var(--accent); font-family: var(--mono); font-size: 8px; }
.ai-watch button:hover { color: var(--accent); }
.ai-watch button:active { transform: translateY(1px); }

.ai-evidence-note { padding: 20px 0 4px; }
.ai-evidence-note strong { color: var(--text); font-family: var(--display); font-size: 14px; font-weight: 400; }
.ai-evidence-note p { margin: 8px 0 0; color: var(--text-faint); font-size: 9px; line-height: 1.7; }

@media (max-width: 900px) {
  .ai-side-panel { padding-top: 8px; }
  .ai-brief-head { padding-top: 18px; }
}

@media (max-width: 640px) {
  .app-main,
  .topbar-left,
  .topbar-actions,
  .crumb,
  .workspace-head > div,
  .workspace-meta,
  .app-view,
  .story-card,
  .story-content,
  .story-actions,
  .story-meta {
    min-width: 0;
  }

  .topbar-left { flex: 1 1 auto; }
  .topbar-actions { flex: 0 0 auto; }
  .crumb strong {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .story-title-button,
  .story-summary,
  .story-source,
  .story-tier,
  .dialog-topline > span,
  .dialog-foot > span,
  .dialog-foot a {
    overflow-wrap: anywhere;
  }
  .dialog-topline { align-items: flex-start; }
  .story-dialog h2 { max-width: none; font-size: clamp(1.7rem, 10vw, 2.5rem); }
}

@media (max-width: 400px) {
  .filter-tools { grid-template-columns: 1fr; }
  .weekly-hero-metrics strong { font-size: 22px; }
}

/* Reader-facing news timeline */
.timeline-layout { display: block; }
.timeline-panel { width: 100%; max-width: 920px; margin: 0 auto; }
.timeline-panel .feed-panel-head { padding-left: 0; padding-right: 0; }
.story-list { display: block; }
.story-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  background: transparent;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.story-card:first-child { border-top: 1px solid var(--line-strong); }
.story-card:hover { background: transparent; }
.story-thumb { display: none !important; }
.story-content { min-width: 0; }
.story-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 12px; font-size: 9px; }
.story-source-name { color: var(--text-soft); }
.story-type { color: var(--accent); }
.story-title { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.22; }
.story-title-button { display: block; max-width: 30ch; overflow: visible; -webkit-line-clamp: unset; }
.story-summary { display: block; max-width: 72ch; margin-top: 12px; font-size: 13px; line-height: 1.75; }
.story-observation { max-width: 72ch; margin: 14px 0 0; color: var(--text); font-size: 11px; line-height: 1.65; }
.story-observation span { display: inline-block; margin-right: 8px; color: var(--accent); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.story-actions { align-items: flex-start; padding-top: 4px; }
.story-actions .story-button { white-space: nowrap; }
.secondary-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 920px;
  margin: 28px auto 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
}
.secondary-index button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--text-soft); font: inherit; cursor: pointer; }
.secondary-index button:hover { color: var(--accent); }
.dialog-section-label { display: block; margin: 22px 0 8px; color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.detail-observation { padding-top: 8px; }
.detail-observation .detail-basis { color: var(--text-faint); font-family: var(--mono); font-size: 9px; }
.related-story-list { list-style: none; padding: 0; margin: 0; }
.related-story-list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.related-story-list li strong { display: block; color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 400; }
.related-story-list li p { margin: 6px 0 0; color: var(--text); font-size: 12px; line-height: 1.6; }
.related-story-list li a { flex: 0 0 auto; color: var(--accent); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.brief-hero-image { display: none; }

@media (max-width: 640px) {
  .story-card { grid-template-columns: 1fr; gap: 16px; padding: 23px 0; }
  .story-actions { padding-top: 0; }
  .secondary-index { gap: 11px; }
  .related-story-list li { display: block; }
  .related-story-list li a { display: inline-block; margin-top: 8px; }
}
