:root {
  color-scheme: dark;
  --bg: #0c0e12;
  --bg-elevated: #161a22;
  --surface: rgba(226, 231, 238, 0.05);
  --surface-solid: #1a1f29;
  --surface-muted: rgba(226, 231, 238, 0.028);
  --ink: #e4e7ec;
  --ink-2: #c3c9d4;
  --muted: #97a0ab;
  --faint: #6b727e;
  --line: rgba(226, 231, 238, 0.1);
  --line-strong: rgba(226, 231, 238, 0.2);
  --accent: #6f9bce;
  --accent-soft: rgba(111, 155, 206, 0.1);
  --accent-bright: #97bdea;
  --event: #4e9a93;
  --event-soft: rgba(78, 154, 147, 0.1);
  --chart: #161a22;
  --chart-soft: rgba(78, 154, 147, 0.1);
  --good: #6fb06a;
  --good-soft: rgba(111, 176, 106, 0.09);
  --danger: #cf6a5d;
  --danger-soft: rgba(207, 106, 93, 0.09);
  --warning: #d6a23f;
  --warning-soft: rgba(214, 162, 63, 0.1);
  --control: #161a22;
  --shadow: 0 1px 1px rgba(8, 7, 5, 0.04), 0 12px 30px rgba(8, 7, 5, 0.05);
  --shadow-light: 0 1px 1px rgba(8, 7, 5, 0.04);
  --radius: 6px;
  --radius-lg: 8px;
  --display: "HarmonyOS Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-family: "HarmonyOS Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #14171f 0%, var(--bg) 280px, #0a0c10 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

body:not(.admin-mode) [data-admin-only="true"] {
  display: none !important;
}

body:not(.source-detail-mode) [data-source-detail] {
  display: none !important;
}

body.source-detail-mode [data-home-panel="true"] {
  display: none !important;
}

body.source-detail-mode.source-trump [data-source-detail="source"] {
  display: none !important;
}

body.source-detail-mode:not(.source-trump) [data-source-detail="trump"] {
  display: none !important;
}

body.source-detail-mode:not(.source-ops-mode) [data-source-detail="ops"] {
  display: none !important;
}

body.source-detail-mode.source-serenity:not(.source-raw-mode) [data-source-drilldown="raw"] {
  display: none !important;
}

body.source-detail-mode.source-serenity.source-section-snapshot [data-source-section]:not([data-source-section="snapshot"]),
body.source-detail-mode.source-serenity.source-section-signals [data-source-section]:not([data-source-section="signals"]),
body.source-detail-mode.source-serenity.source-section-market [data-source-section]:not([data-source-section="market"]),
body.source-detail-mode.source-serenity.source-section-raw [data-source-section]:not([data-source-section="raw"]),
body.source-detail-mode.source-serenity.source-section-ops [data-source-section]:not([data-source-section="ops"]) {
  display: none !important;
}

body.portfolio-section-overview [data-view-panel="portfolio"] [data-portfolio-section]:not([data-portfolio-section="overview"]),
body.portfolio-section-holdings [data-view-panel="portfolio"] [data-portfolio-section]:not([data-portfolio-section="holdings"]),
body.portfolio-section-research [data-view-panel="portfolio"] [data-portfolio-section]:not([data-portfolio-section="research"]),
body.portfolio-section-share [data-view-panel="portfolio"] [data-portfolio-section]:not([data-portfolio-section="share"]),
body.portfolio-section-broker [data-view-panel="portfolio"] [data-portfolio-section]:not([data-portfolio-section="broker"]) {
  display: none !important;
}

body.source-detail-mode.source-trump [data-trump-section].hidden {
  display: none !important;
}

body.source-detail-mode.source-trump.trump-section-snapshot [data-trump-section]:not([data-trump-section="snapshot"]),
body.source-detail-mode.source-trump.trump-section-resonance [data-trump-section]:not([data-trump-section="resonance"]),
body.source-detail-mode.source-trump.trump-section-impact [data-trump-section]:not([data-trump-section="impact"]),
body.source-detail-mode.source-trump.trump-section-review [data-trump-section]:not([data-trump-section="review"]) {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 7, 5, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 520px);
  opacity: 1;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong,
.metric-value,
.ticker-chip .symbol,
.price,
.research-card strong {
  font-variant-numeric: tabular-nums;
}

.ledger-app {
  min-height: 100vh;
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 254, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--control);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.app-brand strong,
.app-brand em {
  display: block;
}

.app-brand strong {
  font-size: 14px;
  font-weight: 600;
}

.app-brand em {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.nav-tabs,
.category-strip,
.chart-pills,
.collector-actions,
.symbol-filters,
.related-strip,
.plans,
.watchlist-actions,
.chips,
.mention-meta,
.activity-meta,
.signal-top,
.heat-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tabs {
  justify-self: start;
  max-width: min(860px, 48vw);
  min-width: 0;
  overflow-x: auto;
  contain: paint;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-item,
.category-strip button,
.symbol-filters button,
.icon-button,
.primary-button,
.secondary-button,
.config-button,
.round-close,
.related-chip {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-tabs .nav-item {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-tabs .nav-item.active {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-light);
}

.nav-tabs .nav-item.nav-item-flagship:not(.active) {
  color: var(--accent);
  font-weight: 700;
}

.unlock-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.unlock-cta:hover {
  filter: brightness(1.08);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(460px, 38vw);
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.language-toggle {
  flex: 0 0 auto;
  height: 36px;
  min-width: 58px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.language-toggle:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.top-search input,
.symbol-search input,
.channel-card input[type="email"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.page {
  display: flex;
  flex-direction: column;
  width: min(1720px, calc(100% - 56px));
  margin: 0 auto;
  padding: 14px 0 34px;
}

#overview,
#collector,
#intake,
#signalQueue,
#timeline,
#archive,
#mentions,
#activity,
#trumpWorkbenchBand,
#trumpResonancePanel,
#trumpImpactMapPanel,
#trumpReviewSurfacesPanel,
#trumpPublicImportPanel,
#trumpMarketPostList,
#trumpSignalDigestList,
#trumpDisclosureList,
#trumpAlertReviewList {
  scroll-margin-top: 78px;
}

.category-strip {
  order: 10;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  contain: paint;
  margin-bottom: 10px;
  padding: 1px 0 5px;
}

.platform-command,
.module-page {
  overflow: hidden;
}

.platform-command,
.platform-command.panel {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #161a22 0, #161a22 156px, #0e1014 156px, #0e1014 100%);
}

.command-head,
.module-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.module-page-head {
  border-bottom-color: var(--line);
}

.command-head h1,
.module-page-head h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.platform-command .command-head h1 {
  color: #f8fafc;
}

.platform-command .command-head .eyebrow {
  color: rgba(151, 189, 234, 0.84);
}

.command-head p,
.module-page-head p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.platform-command .command-head p {
  color: rgba(228, 231, 236, 0.72);
}

.platform-command .command-head .primary-button {
  border: 1px solid rgba(228, 231, 236, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.platform-command .command-head .primary-button:hover {
  border-color: rgba(151, 189, 234, 0.44);
  background: rgba(255, 255, 255, 0.13);
}

/* Mobile-only hero CTA — gives a clear next step before the research map. Hidden on desktop (the map/scoreboard already follow). */
.home-hero-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: 700 13.5px/1 var(--display);
  text-decoration: none;
  cursor: pointer;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px 18px 14px;
  background: #161a22;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.command-metrics article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: baseline;
  min-width: 0;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.command-metrics article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.command-metrics span,
.command-metrics em,
.platform-module span,
.module-list-grid span,
.research-flow span,
.heatmap-shell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.command-metrics span,
.command-metrics em {
  color: rgba(228, 231, 236, 0.62);
}

.command-metrics strong {
  grid-row: 1 / 3;
  display: block;
  margin: 0;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  font-weight: 600;
}

.command-metrics strong {
  color: #f8fafc;
}

.home-focus-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.1fr) repeat(2, minmax(210px, 0.64fr));
  gap: 1px;
  padding: 1px;
  background: #161a22;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-action-head {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 118px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.035);
}

.home-focus-board article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 118px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.055);
}

.home-focus-board article.primary {
  justify-content: start;
  min-height: 118px;
  background:
    linear-gradient(135deg, rgba(111, 155, 206, 0.24), rgba(8, 7, 5, 0) 56%),
    rgba(255, 255, 255, 0.075);
}

.home-focus-board article:not(.primary) {
  min-height: 118px;
  background: rgba(255, 255, 255, 0.045);
}

.home-focus-board article:not(.primary) + article:not(.primary) {
  border-top: 0;
}

.home-focus-board span,
.home-focus-board p,
.home-action-head span,
.home-action-head p {
  display: block;
  color: rgba(228, 231, 236, 0.68);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.home-action-head span,
.home-focus-board span {
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-focus-board strong,
.home-action-head strong {
  display: block;
  margin: 4px 0;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

.home-focus-board article.primary strong {
  max-width: 720px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.22;
}

.home-focus-board p {
  max-width: 560px;
  margin: 0;
}

.home-action-head p {
  margin: 0;
}

.home-focus-board button {
  justify-self: start;
  margin-top: 6px;
}

.home-drilldown {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.home-drilldown > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 52px 12px 18px;
  cursor: pointer;
  list-style: none;
}

.home-drilldown > summary::-webkit-details-marker {
  display: none;
}

.home-drilldown > summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 26px;
  height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  content: "+";
  font-size: 16px;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}

.home-drilldown[open] > summary::after {
  content: "-";
}

.home-drilldown > summary span,
.home-drilldown > summary em {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.home-drilldown > summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.home-drilldown-body {
  border-top: 1px solid var(--line);
}

.source-registry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.home-source-registry {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(8, 7, 5, 0.34);
  background: #161a22;
  text-transform: none;
  white-space: normal;
}

.home-source-registry span,
.home-source-registry p {
  color: rgba(228, 231, 236, 0.72);
}

.home-source-registry strong {
  color: #f8fafc;
}

.home-source-registry .source-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  justify-content: stretch;
  gap: 8px;
}

.home-source-registry .source-selector button {
  min-height: 72px;
  border-color: rgba(228, 231, 236, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.home-source-registry .source-selector button strong {
  color: #f8fafc;
}

.home-source-registry .source-selector button span,
.home-source-registry .source-selector button small {
  color: rgba(228, 231, 236, 0.7);
}

.home-source-registry .source-selector button em {
  color: #5edec6;
}

.home-source-registry .source-selector button.active {
  border-color: rgba(151, 189, 234, 0.62);
  background: rgba(111, 155, 206, 0.2);
  color: #f8fafc;
}

.kol-tracker-digest {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px 28px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #161a22;
}

.kol-tracker-digest::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-bright), rgba(151, 189, 234, 0.05) 60%, transparent);
}

.kol-tracker-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(260px, 1fr) minmax(240px, auto);
  align-items: end;
  gap: 18px;
  min-width: 0;
  padding-bottom: 2px;
}

.kol-tracker-head > div > span,
.kol-tracker-head p,
.kol-section-head span,
.kol-section-head p,
.kol-consensus-head span,
.kol-consensus-head p {
  min-width: 0;
  margin: 0;
  color: rgba(228, 231, 236, 0.72);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.kol-tracker-head > div > span,
.kol-section-head span,
.kol-consensus-head span {
  color: var(--accent-bright);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kol-tracker-head strong,
.kol-section-head strong,
.kol-consensus-head strong,
.kol-consensus-card strong {
  min-width: 0;
  color: #f8fafc;
  font-weight: 760;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.kol-tracker-head strong {
  display: block;
  margin-top: 6px;
  font: 680 24px/1.1 var(--display);
  letter-spacing: -0.01em;
}

.kol-tracker-head strong span {
  color: var(--accent-bright);
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.kol-tracker-head p {
  max-width: 560px;
  color: rgba(248, 250, 252, 0.78);
  font-size: 13px;
}

.kol-tracker-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.kol-tracker-stats span {
  display: grid;
  gap: 3px;
  min-width: 82px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.kol-tracker-stats b {
  min-width: 0;
  color: #f8fafc;
  font: 780 20px/1 var(--mono);
  overflow-wrap: anywhere;
}

.kol-tracker-stats em {
  min-width: 0;
  color: rgba(228, 231, 236, 0.62);
  font: 10px/1.2 var(--mono);
  font-style: normal;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.kol-tracker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-width: 0;
}

.kol-leaderboard-list,
.kol-consensus-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.kol-section-head,
.kol-consensus-head {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.kol-section-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.kol-section-head strong,
.kol-consensus-head strong {
  display: block;
  color: #f8fafc;
  font-size: 19px;
}

.kol-leaderboard-cards,
.kol-consensus-cards {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.kol-leaderboard-cards {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.kol-consensus-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.kol-leader-card,
.kol-consensus-card {
  display: grid;
  position: relative;
  min-width: 0;
  color: #e4e7ec;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #151922;
  box-shadow: none;
}

.kol-leader-card {
  align-content: start;
  gap: 12px;
  min-height: 196px;
  padding: 20px 22px 18px;
}

.kol-leader-card:hover,
.kol-consensus-card:hover {
  transform: translateY(-1px);
  border-color: rgba(151, 189, 234, 0.4);
  background: #161a22;
}

.kol-leader-card.ready {
  box-shadow: inset 2px 0 0 var(--accent-bright);
}

.kol-leader-card.partial,
.kol-leader-card.planned {
  box-shadow: inset 2px 0 0 rgba(251, 191, 36, 0.6);
}

.kol-leader-card.loading {
  cursor: default;
  box-shadow: inset 2px 0 0 rgba(125, 211, 252, 0.5);
}

.kol-leader-card-pending {
  min-height: 0;
  gap: 8px;
  padding: 15px 18px 13px;
  border-style: dashed;
  background: rgba(24, 27, 33, 0.5);
  box-shadow: none;
  opacity: 0.85;
}

.kol-leader-card-pending .kol-leader-title strong {
  font-size: 15px;
}

.kol-leader-card-pending small {
  margin: 0;
}

.kol-leader-rank {
  position: absolute;
  top: 16px;
  right: 16px;
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-bright);
  font: 700 11px/1 var(--mono);
}

.kol-leader-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding-right: 46px;
}

.kol-leader-title strong {
  color: #f4f6f8;
  font: 680 19px/1.15 var(--display);
  letter-spacing: -0.01em;
}

.kol-leader-title em {
  max-width: 150px;
  color: #8a909c;
  font: 11px/1.3 var(--mono);
  font-style: normal;
  text-align: right;
}

.kol-leader-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kol-leader-metrics div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.kol-leader-metrics b {
  min-width: 0;
  color: #f4f6f8;
  font: 700 27px/1 var(--mono);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.kol-leader-metrics b.gain {
  color: #6fb06a;
}

.kol-leader-metrics b.loss {
  color: #dd8f86;
}

.kol-leader-metrics b.warn {
  color: #8fb0d8;
}

.kol-leader-metrics em {
  min-width: 0;
  color: #8a909c;
  font: 10px/1.2 var(--mono);
  font-style: normal;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.kol-metric-bar {
  display: block;
  overflow: hidden;
  height: 3px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.kol-metric-bar b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent-bright);
}

.kol-leader-card p,
.kol-leader-card i {
  min-width: 0;
  margin: 0;
  color: #aeb4c0;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kol-leader-best {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.kol-leader-best span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #97a0ab;
  font: 700 10px/1 var(--mono);
  text-transform: uppercase;
}

.kol-leader-best strong {
  min-width: 0;
  color: #f4f6f8;
  font: 700 13px/1.2 var(--mono);
  overflow-wrap: anywhere;
}

.kol-leader-card small {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  color: #8a909c;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kol-leader-card.planned small,
.kol-leader-card.partial small {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.1);
  color: #d9b465;
  -webkit-line-clamp: unset;
}

.kol-leader-card i {
  margin-top: auto;
  color: var(--accent-bright);
  font-family: var(--mono);
}

.kol-consensus-head {
  padding-top: 2px;
}

.kol-consensus-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  align-items: start;
  align-content: start;
  min-height: 156px;
  padding: 18px;
  box-shadow: inset 2px 0 0 rgba(111, 176, 106, 0.7);
}

.kol-consensus-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.kol-consensus-title strong {
  color: #f4f6f8;
  font: 700 18px/1 var(--mono);
  letter-spacing: -0.01em;
}

.kol-consensus-title span,
.kol-consensus-card p,
.kol-consensus-card em,
.kol-consensus-sources span,
.kol-consensus-empty {
  min-width: 0;
  margin: 0;
  color: #8a909c;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kol-consensus-card em {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(111, 176, 106, 0.12);
  color: #6fb06a;
  font-family: var(--mono);
}

.kol-consensus-card p {
  grid-column: 1 / -1;
}

.kol-consensus-reasons {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  min-width: 0;
}

.kol-consensus-reasons div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.kol-consensus-reasons span {
  max-width: 136px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #cdd2db;
  font: 700 11px/1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kol-consensus-reasons p {
  min-width: 0;
  color: #aeb4c0;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kol-consensus-sources {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
}

.kol-consensus-sources span {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #aeb4c0;
  font-family: var(--mono);
}

.kol-consensus-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(228, 231, 236, 0.72);
}

.kol-bottom-picks {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bottom-pick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  min-width: 0;
}

.bottom-pick-card {
  display: grid;
  position: relative;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 16px 18px 14px;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #151922;
  color: #e4e7ec;
  box-shadow: inset 2px 0 0 var(--accent-bright);
}

.bottom-pick-card:hover {
  transform: translateY(-1px);
  border-color: rgba(151, 189, 234, 0.4);
  background: #161a22;
}

.bottom-pick-rank {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #8a909c;
  font: 700 11px/1 var(--mono);
}

.bottom-pick-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 34px;
}

.bottom-pick-top strong {
  min-width: 0;
  color: #f4f6f8;
  font: 700 20px/1 var(--mono);
  letter-spacing: -0.01em;
}

.bottom-pick-score {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-style: normal;
}

.bottom-pick-score b {
  color: var(--accent-bright);
  font: 700 20px/1 var(--mono);
}

.bottom-pick-score em {
  color: #8a909c;
  font: 10px/1 var(--mono);
  font-style: normal;
  text-transform: uppercase;
}

.bottom-pick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.bottom-pick-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #aeb4c0;
  font: 600 10.5px/1.2 var(--mono);
  white-space: nowrap;
}

.bottom-pick-meta span.gain {
  color: #6fb06a;
}

.bottom-pick-meta span.loss {
  color: #dd8f86;
}

.bottom-pick-quote {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  color: #8a909c;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.source-registry > div:first-child {
  min-width: 0;
}

.source-registry span,
.source-registry p,
.source-selector span {
  color: var(--muted);
  font-size: 12px;
}

.source-registry strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.source-registry p {
  margin: 4px 0 0;
}

.foundation-readiness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.66);
  border-bottom: 1px solid var(--line);
}

.foundation-readiness > div:first-child,
.foundation-gate-grid article {
  min-width: 0;
  background: rgba(255, 255, 255, 0.72);
}

.foundation-readiness > div:first-child {
  padding: 0;
  background: transparent;
}

.foundation-readiness > .secondary-button {
  flex: 0 0 auto;
}

.foundation-readiness span,
.foundation-readiness p,
.foundation-gate-grid small,
.foundation-gate-grid em,
.foundation-gate-grid p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.foundation-readiness strong {
  display: block;
  margin: 5px 0 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.foundation-readiness p {
  margin: 0;
}

.foundation-gate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.foundation-gate-grid article {
  min-height: 140px;
  padding: 13px 14px;
}

.foundation-gate-grid article.ready {
  background: var(--good-soft);
}

.foundation-gate-grid article.partial,
.foundation-gate-grid article.planned {
  background: var(--warning-soft);
}

.foundation-gate-grid article.blocked {
  background: var(--danger-soft);
}

.foundation-gate-grid article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.foundation-gate-grid strong {
  margin: 0;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  text-align: right;
}

.foundation-gate-grid em {
  margin-top: 8px;
}

.foundation-gate-grid p {
  margin-top: 8px;
  color: var(--ink-2);
}

.public-readiness-panel {
  order: 70;
  overflow: hidden;
  margin-bottom: 10px;
}

.public-readiness-panel .panel-head.compact {
  padding: 10px 12px;
}

.public-readiness-panel .panel-head h2 {
  font-size: 14px;
}

.public-readiness-panel #publicReadinessDetail {
  display: block;
  max-width: 980px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-readiness-panel .foundation-gate-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.public-readiness-panel .foundation-gate-grid article {
  min-height: 54px;
  padding: 8px 10px;
}

.public-readiness-panel .foundation-gate-grid span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-readiness-panel .foundation-gate-grid strong {
  font-size: 12px;
}

.public-readiness-panel .foundation-gate-grid em {
  margin-top: 3px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-snapshot-board {
  order: 31;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 8px;
  padding: 0;
  background: var(--line);
}

.source-snapshot-chart,
.source-snapshot-rail {
  min-width: 0;
  background: var(--surface-solid);
}

.source-snapshot-chart .mini-section-head,
.source-snapshot-rail .mini-section-head {
  min-height: 48px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

#sourceSnapshotChart {
  display: block;
  width: 100%;
  height: 238px;
  padding: 0 10px 6px;
  background: linear-gradient(180deg, rgba(111, 155, 206, 0.06), transparent 58%);
  stroke: none;
}

#sourceSnapshotChart text {
  stroke: none;
  paint-order: fill;
  font-family: "HarmonyOS Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
  text-shadow: none;
}

#sourceSnapshotChart .line {
  stroke-width: 2.4;
}

#sourceSnapshotChart .snapshot-chart-dot {
  fill: var(--event);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2;
}

.source-snapshot-rail {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 286px;
}

.source-snapshot-tickers {
  display: grid;
  gap: 1px;
  align-content: start;
  background: var(--line);
}

.source-snapshot-tickers button {
  display: grid;
  grid-template-columns: minmax(74px, 0.46fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 8px 11px;
  border: 0;
  background: var(--surface-solid);
  color: var(--ink);
  text-align: left;
}

.source-snapshot-tickers button:hover,
.source-snapshot-tickers button.active {
  background: var(--accent-soft);
}

.source-snapshot-tickers strong,
.source-snapshot-tickers span,
.source-snapshot-tickers em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-snapshot-tickers strong {
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.source-snapshot-tickers span,
.source-snapshot-tickers em,
.source-snapshot-empty-note {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.source-snapshot-rail > .secondary-button {
  justify-self: start;
  margin: 11px;
}

.source-workbench-summary {
  order: 32;
  overflow: hidden;
  margin-bottom: 8px;
}

.source-workbench-summary .panel-head.compact {
  padding: 10px 12px;
}

.source-workbench-summary .panel-head h2 {
  font-size: 14px;
}

.source-workbench-summary #sourceWorkbenchSummaryDetail {
  display: block;
  max-width: 980px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-workbench-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.source-workbench-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.source-workbench-grid article.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.46);
}

.source-workbench-grid article.partial {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.54);
}

.source-workbench-grid article.planned {
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.42);
}

.source-workbench-grid span,
.source-workbench-grid strong,
.source-workbench-grid em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-workbench-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.source-workbench-grid strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.source-workbench-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.source-review-route {
  min-width: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.source-review-route-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 249, 253, 0.76);
}

.source-review-route-shell.compact {
  grid-template-columns: minmax(0, 0.92fr) minmax(220px, 0.44fr);
  gap: 1px;
  padding: 0;
  border-radius: 0;
  background: var(--line);
}

.source-review-route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.source-review-route-shell.compact .source-review-route-head,
.source-review-route-shell.compact .source-review-route-primary,
.source-review-route-shell.compact .source-review-route-links,
.source-review-route-shell.compact .source-review-route-details {
  background: rgba(255, 255, 255, 0.78);
}

.source-review-route-shell.compact .source-review-route-head {
  padding: 11px 12px;
}

.source-review-route-head span,
.source-review-route-primary span,
.source-review-route-grid span,
.source-review-route-links button span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.source-review-route-head strong,
.source-review-route-primary strong,
.source-review-route-links button strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-review-route-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-review-route-head em {
  max-width: 154px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: center;
  text-transform: capitalize;
}

.source-review-route-primary {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.source-review-route-shell.compact .source-review-route-primary {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 11px 12px;
  border: 0;
  border-radius: 0;
}

.source-review-route-primary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.signal-trust-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(111, 155, 206, 0.16);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.68);
}

.signal-trust-preview.compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 8px;
}

.signal-trust-preview span,
.signal-trust-preview em,
.signal-trust-preview dt {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.signal-trust-preview strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.signal-trust-preview.compact strong {
  font-size: 14px;
}

.signal-trust-preview dl {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 7px 10px;
  margin: 0;
}

.signal-trust-preview.compact dl {
  grid-template-columns: repeat(3, max-content);
}

.signal-trust-preview dd {
  margin: 0;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.signal-trust-preview p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}

.signal-trust-preview-factors {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 6px;
}

.signal-trust-preview-factors span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
}

.signal-trust-preview-factors .why-positive {
  border-color: rgba(90, 140, 100, 0.22);
  background: var(--good-soft);
}

.signal-trust-preview-factors .why-caution,
.signal-trust-preview-factors .why-missing {
  border-color: rgba(172, 107, 0, 0.22);
  background: var(--warning-soft);
}

.source-review-route-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.source-review-route-shell.compact .source-review-route-links {
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.source-review-route-links button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
}

.source-review-route-shell.compact .source-review-route-links button {
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
}

.source-review-route-links button:hover,
.source-review-route-links button.active {
  border-color: rgba(111, 155, 206, 0.3);
  background: rgba(237, 244, 255, 0.86);
}

.source-review-route-links button em {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-review-route-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.source-review-route-shell.compact .source-review-route-details {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 0;
}

.source-review-route-details > summary {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
}

.source-review-route-details > summary::-webkit-details-marker {
  display: none;
}

.source-review-route-details > summary span,
.source-review-route-details > summary em {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-review-route-details > summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-review-route-details > .source-review-route-grid {
  padding: 10px;
  border-top: 1px solid var(--line);
}

.source-review-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.source-review-route-grid section {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.source-review-route-grid .allowed {
  background: var(--good-soft);
}

.source-review-route-grid .blocked {
  background: var(--danger-soft);
}

.source-review-route-grid .checks {
  background: rgba(232, 238, 246, 0.78);
}

.source-review-route-grid ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.source-review-route-grid li {
  overflow-wrap: anywhere;
}

.source-workbench-summary.source-workbench-summary-slim {
  overflow: hidden;
  border-color: rgba(8, 7, 5, 0.14);
  background: #161a22;
}

.source-workbench-summary.source-workbench-summary-slim > .panel-head,
.source-workbench-summary.source-workbench-summary-slim .source-workbench-grid {
  display: none;
}

.source-workbench-summary.source-workbench-summary-slim .source-review-route {
  padding: 0;
  border-top: 0;
}

.source-review-route-shell.snapshot-compact {
  grid-template-columns: minmax(0, 0.9fr) minmax(210px, 0.34fr) minmax(360px, 0.76fr);
  align-items: stretch;
  border: 0;
  background: #161a22;
}

.source-review-route-shell.snapshot-compact .source-review-route-head,
.source-review-route-shell.snapshot-compact .source-review-route-primary,
.source-review-route-shell.snapshot-compact .source-review-route-links {
  background: transparent;
}

.source-review-route-shell.snapshot-compact .source-review-route-head,
.source-review-route-shell.snapshot-compact .source-review-route-primary {
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.source-review-route-shell.snapshot-compact .source-review-route-head span,
.source-review-route-shell.snapshot-compact .source-review-route-head p,
.source-review-route-shell.snapshot-compact .source-review-route-head em,
.source-review-route-shell.snapshot-compact .source-review-route-primary span,
.source-review-route-shell.snapshot-compact .source-review-route-primary em {
  color: rgba(228, 231, 236, 0.68);
}

.source-review-route-shell.snapshot-compact .source-review-route-head strong,
.source-review-route-shell.snapshot-compact .source-review-route-primary strong {
  color: #f8fafc;
}

.source-review-route-shell.snapshot-compact .source-review-route-head p,
.source-review-route-shell.snapshot-compact .source-review-route-primary em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.source-review-route-shell.snapshot-compact .source-review-route-links {
  grid-column: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.source-review-route-shell.snapshot-compact .source-review-route-links button {
  min-height: 76px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.source-review-route-shell.snapshot-compact .source-review-route-links button:hover,
.source-review-route-shell.snapshot-compact .source-review-route-links button.active {
  background: rgba(111, 155, 206, 0.22);
}

.source-review-route-shell.snapshot-compact .source-review-route-links button span,
.source-review-route-shell.snapshot-compact .source-review-route-links button em {
  color: rgba(228, 231, 236, 0.68);
}

.source-review-route-shell.snapshot-compact .source-review-route-links button strong {
  color: #ffffff;
}

.source-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.source-selector button {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 118px;
  min-height: 44px;
  padding: 8px 10px 8px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  text-align: left;
}

.source-selector button small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.source-selector button em {
  margin-top: 3px;
  color: var(--accent);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 650;
}

.source-status-dot {
  position: absolute;
  left: 10px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.source-status-ready .source-status-dot {
  background: var(--good);
}

.source-status-partial .source-status-dot {
  background: var(--warning);
}

.source-status-planned .source-status-dot,
.source-status-empty .source-status-dot {
  background: var(--accent);
}

.source-selector button.active {
  border-color: rgba(111, 155, 206, 0.32);
  background: var(--accent-soft);
  color: var(--accent);
}

.source-selector button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.module-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.platform-module,
.module-list-grid article,
.research-flow article,
.heatmap-shell article {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.platform-module.active {
  background: linear-gradient(180deg, rgba(111, 155, 206, 0.08), rgba(255, 255, 255, 0.78));
}

.platform-module h2,
.module-list-grid strong,
.research-flow strong,
.heatmap-shell strong {
  display: block;
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.platform-module p,
.module-list-grid p {
  min-height: 4.8em;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.module-card-top,
.module-kpi-row,
.module-chip-row,
.module-workflow-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.module-card-top {
  justify-content: space-between;
}

.module-card-top em,
.monitor-module small,
.signal-center-workbench em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.module-kpi-row span,
.module-chip-row span,
.module-chip-row button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.module-chip-row button:hover {
  border-color: rgba(111, 155, 206, 0.28);
  color: var(--accent);
}

.module-workflow-list {
  gap: 4px;
}

.module-workflow-list div {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.module-workflow-list div.ready {
  border-color: rgba(111, 176, 106, 0.24);
}

.module-workflow-list div.partial {
  border-color: rgba(111, 155, 206, 0.24);
}

.module-workflow-list span,
.module-workflow-list strong {
  font-size: 10px;
  line-height: 1;
}

.module-workflow-list span {
  color: var(--muted);
}

.module-workflow-list strong {
  color: var(--ink);
  text-transform: uppercase;
}

.monitor-module {
  display: grid;
  gap: 9px;
}

.monitor-module.mapped {
  background: linear-gradient(180deg, rgba(111, 176, 106, 0.09), rgba(255, 255, 255, 0.78));
}

.monitor-module.watching {
  background: linear-gradient(180deg, rgba(111, 155, 206, 0.08), rgba(255, 255, 255, 0.78));
}

.heatmap-shell {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  min-height: 360px;
  background: var(--line);
}

.heatmap-shell article {
  display: grid;
  align-content: space-between;
  min-height: 190px;
}

.heatmap-cell {
  position: relative;
  overflow: hidden;
}

.heatmap-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: calc((var(--heat, 20) / 100) * 0.72);
}

.heatmap-cell.hot::before {
  background: rgba(207, 106, 93, 0.22);
}

.heatmap-cell.warm::before {
  background: rgba(214, 162, 63, 0.18);
}

.heatmap-cell.cool::before {
  background: rgba(111, 155, 206, 0.14);
}

.heatmap-cell > * {
  position: relative;
}

.heatmap-score {
  justify-self: end;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  font-weight: 650;
}

.signal-center-workbench {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.signal-center-workbench section {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.research-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.research-flow article {
  min-height: 156px;
}

.research-model-summary,
.research-live-graph {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.research-model-summary article,
.research-live-graph section {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.research-model-summary span,
.mini-section-head span,
.research-list span,
.research-list em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.research-model-summary strong {
  display: block;
  margin: 7px 0;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 600;
}

.research-model-summary p,
.research-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mini-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.research-list {
  display: grid;
  gap: 8px;
}

.research-list article {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.signal-list article {
  cursor: pointer;
}

.research-list strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.research-list article.active,
.research-list article:hover {
  border-color: rgba(111, 155, 206, 0.24);
  background: rgba(111, 155, 206, 0.06);
}

.research-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.research-detail-card {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.research-detail-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.research-detail-title strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}

.research-detail-title span,
.research-detail-section em,
.research-detail-section a,
.research-asset-buttons span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.research-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.research-detail-metrics article {
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.research-detail-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.research-detail-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.research-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.research-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(111, 155, 206, 0.16);
  border-radius: 999px;
  background: rgba(111, 155, 206, 0.07);
  color: var(--accent);
  font-size: 11px;
}

.research-detail-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.research-detail-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  text-transform: uppercase;
}

.research-detail-section article {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.research-detail-section strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 620;
}

.research-detail-section p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.research-detail-section a {
  display: inline-flex;
  margin-top: 7px;
  color: var(--accent);
  text-decoration: none;
}

.research-asset-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.research-asset-buttons button {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  text-align: left;
}

.research-asset-buttons button.active {
  border-color: rgba(111, 155, 206, 0.32);
  background: var(--accent-soft);
}

.research-asset-buttons strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 620px;
  border-top: 1px solid var(--line);
}

.portfolio-thesis-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: rgba(249, 250, 252, 0.76);
}

.portfolio-thesis-nav span,
.portfolio-thesis-nav p {
  color: var(--muted);
  font-size: 12px;
}

.portfolio-thesis-nav strong {
  display: block;
  margin: 4px 0 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.portfolio-thesis-nav p {
  margin: 0;
  line-height: 1.45;
}

.portfolio-thesis-list {
  display: grid;
  gap: 8px;
}

.portfolio-thesis-list button,
.portfolio-thesis-list article {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-align: left;
}

.portfolio-thesis-list button.active {
  border-color: rgba(111, 155, 206, 0.34);
  background: var(--accent-soft);
}

.portfolio-thesis-list button span,
.portfolio-thesis-list button em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-thesis-list button strong {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-thesis-main {
  min-width: 0;
}

.portfolio-workbench-nav {
  position: sticky;
  z-index: 5;
  top: 69px;
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(14px);
}

.portfolio-overview-section,
.portfolio-research-section,
.portfolio-broker-prep-panel {
  min-width: 0;
}

.portfolio-thesis-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.portfolio-thesis-head span,
.portfolio-thesis-layout span,
.portfolio-comparables span,
.thesis-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.portfolio-thesis-head strong {
  display: block;
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.portfolio-thesis-head p {
  max-width: 1120px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.thesis-theme-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.thesis-theme-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(111, 155, 206, 0.18);
  border-radius: 999px;
  background: rgba(111, 155, 206, 0.08);
  color: var(--accent);
  font-size: 12px;
}

.portfolio-alert-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.portfolio-alert-toolbar span {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
}

.portfolio-summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.portfolio-visual-dashboard {
  border-bottom: 1px solid var(--line);
}

.portfolio-visual-shell {
  min-width: 0;
  background: rgba(255, 255, 255, 0.78);
}

.portfolio-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.portfolio-visual-head span,
.portfolio-visual-head em,
.portfolio-visual-metrics span,
.portfolio-visual-metrics em,
.portfolio-map em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.portfolio-visual-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.portfolio-visual-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 249, 252, 0.86);
  color: var(--ink-2);
  font-weight: 650;
}

.portfolio-visual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.55fr);
  gap: 1px;
  background: var(--line);
}

.portfolio-exposure-strip {
  display: flex;
  gap: 1px;
  min-width: 0;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.portfolio-exposure-strip article {
  flex: var(--strip-width, 20) 1 92px;
  min-width: 0;
  padding: 11px 12px 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 2px 0 rgba(111, 155, 206, 0.55);
}

.portfolio-exposure-strip article:nth-child(2n) {
  box-shadow: inset 0 2px 0 rgba(111, 155, 206, 0.32);
}

.portfolio-exposure-strip article:nth-child(3n) {
  box-shadow: inset 0 2px 0 rgba(111, 155, 206, 0.18);
}

.portfolio-exposure-strip article.negative {
  box-shadow: inset 0 2px 0 rgba(207, 106, 93, 0.6);
}

.portfolio-exposure-strip article.cash {
  box-shadow: inset 0 2px 0 rgba(138, 144, 156, 0.35);
}

.portfolio-exposure-strip strong,
.portfolio-exposure-strip span,
.portfolio-exposure-strip em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-exposure-strip strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-exposure-strip span {
  margin-top: 4px;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 700;
}

.portfolio-exposure-strip em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.portfolio-map {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(92px, auto);
  gap: 1px;
  min-width: 0;
  min-height: 272px;
  background: var(--line);
}

.portfolio-map article {
  grid-column: span var(--map-span, 3);
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 92px;
  padding: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 2px 0 0 rgba(111, 155, 206, 0.4);
}

.portfolio-map article.negative {
  box-shadow: inset 2px 0 0 rgba(207, 106, 93, 0.65);
}

.portfolio-map article.positive {
  box-shadow: inset 2px 0 0 rgba(111, 176, 106, 0.65);
}

.portfolio-map strong,
.portfolio-map span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-map strong {
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 750;
}

.portfolio-map span {
  margin: 5px 0;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-map article.negative span {
  color: var(--danger);
}

.portfolio-map article.positive span {
  color: var(--good);
}

.portfolio-visual-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

.portfolio-visual-metrics article {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.86);
}

.portfolio-visual-metrics article > span {
  display: block;
  color: var(--muted);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-visual-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.portfolio-visual-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.portfolio-visual-groups article {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.portfolio-visual-groups article > div {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.portfolio-visual-groups span,
.portfolio-visual-groups em,
.portfolio-broker-lane span,
.portfolio-broker-lane em,
.portfolio-broker-lane p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.portfolio-visual-groups strong,
.portfolio-broker-lane strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.portfolio-visual-groups ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-visual-groups li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(14, 21, 32, 0.08);
}

.portfolio-visual-groups li.short {
  color: #a33b3b;
}

.portfolio-visual-groups li em {
  justify-self: end;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-weight: 700;
}

.portfolio-broker-lane {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.portfolio-broker-lane article {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 2px 0 0 rgba(138, 144, 156, 0.35);
}

.portfolio-broker-lane article.ready,
.portfolio-broker-lane article.snapshot-ready {
  box-shadow: inset 2px 0 0 rgba(111, 176, 106, 0.7);
}

.portfolio-broker-lane article.missing-config,
.portfolio-broker-lane article.configured-disabled,
.portfolio-broker-lane article.planned {
  box-shadow: inset 2px 0 0 rgba(217, 165, 20, 0.75);
}

.portfolio-broker-lane p {
  margin: 4px 0 0;
}

.portfolio-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
}

.portfolio-summary-grid article,
.portfolio-theme-summary > div {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
}

.portfolio-summary-grid span,
.portfolio-theme-summary > div > span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-summary-grid strong,
.portfolio-theme-summary strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0;
}

.portfolio-summary-grid em,
.portfolio-theme-summary p {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.portfolio-theme-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1px;
  background: var(--line);
}

.portfolio-theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.portfolio-theme-pills span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(14, 26, 43, 0.08);
  border-radius: 999px;
  background: rgba(14, 26, 43, 0.04);
  color: var(--ink-2);
  font-size: 12px;
}

.portfolio-theme-pills em {
  color: var(--muted);
  font-style: normal;
}

.portfolio-share-panel {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.portfolio-share-shell {
  min-width: 0;
}

.portfolio-share-shell > .mini-section-head {
  padding: 14px 16px 0;
}

.portfolio-share-route {
  display: grid;
  gap: 11px;
  min-width: 0;
  margin: 14px 16px 0;
  padding: 12px;
  border: 1px solid rgba(111, 155, 206, 0.16);
  border-radius: 8px;
  background: rgba(246, 249, 253, 0.9);
}

.portfolio-share-route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.portfolio-share-route-head span,
.portfolio-share-route-primary span,
.portfolio-share-route-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.portfolio-share-route-head strong,
.portfolio-share-route-primary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.portfolio-share-route-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.portfolio-share-route-head em {
  max-width: 180px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: center;
  text-transform: capitalize;
}

.portfolio-share-route-primary,
.portfolio-share-route-grid section {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.portfolio-share-route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.portfolio-share-route-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.portfolio-share-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.portfolio-share-route-grid .allowed {
  background: var(--good-soft);
}

.portfolio-share-route-grid .blocked {
  background: var(--danger-soft);
}

.portfolio-share-route-grid .preflight {
  background: rgba(232, 238, 246, 0.8);
}

.portfolio-share-route-grid ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.portfolio-share-route-grid li {
  overflow-wrap: anywhere;
}

.portfolio-share-route-grid code {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.portfolio-share-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
}

.portfolio-share-summary article {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.portfolio-share-summary span,
.portfolio-share-summary em,
.portfolio-share-assets span,
.portfolio-share-assets em,
.portfolio-share-omitted span,
.portfolio-share-omitted p,
.portfolio-share-list {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.portfolio-share-summary span,
.portfolio-share-summary strong,
.portfolio-share-summary em {
  display: block;
  overflow-wrap: anywhere;
}

.portfolio-share-summary strong {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}

.portfolio-share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.portfolio-share-layout > section {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.portfolio-share-layout .mini-section-head {
  padding: 0;
}

.portfolio-share-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.portfolio-share-assets article {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(14, 26, 43, 0.08);
  border-radius: var(--radius);
  background: rgba(14, 26, 43, 0.03);
}

.portfolio-share-assets strong,
.portfolio-share-assets span,
.portfolio-share-assets em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-share-assets strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-share-list {
  display: grid;
  gap: 8px;
  padding: 0 0 0 16px;
  margin: 12px 0 0;
  line-height: 1.45;
}

.portfolio-share-omitted {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(14, 26, 43, 0.08);
}

.portfolio-share-omitted span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 650;
}

.portfolio-share-omitted p {
  margin: 0;
  line-height: 1.45;
}

.portfolio-holdings-panel {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.portfolio-holdings-shell {
  min-width: 0;
}

.portfolio-holdings-shell > .mini-section-head {
  padding: 14px 16px 0;
}

.portfolio-holdings-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.portfolio-broker-panel {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.portfolio-broker-panel > .mini-section-head {
  padding: 14px 16px 0;
}

.portfolio-broker-workbench {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 1px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.portfolio-broker-workbench > div {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.portfolio-broker-workbench span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.portfolio-broker-workbench strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
}

.portfolio-broker-workbench p,
.portfolio-broker-grid p,
.portfolio-broker-grid li {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.portfolio-broker-commands {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.portfolio-broker-commands code {
  display: block;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(111, 155, 206, 0.16);
  border-radius: 7px;
  background: rgba(239, 246, 255, 0.82);
  color: #1e3a8a;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.portfolio-broker-sync-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(240px, 1.4fr) minmax(100px, 0.4fr);
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.74);
}

.portfolio-broker-sync-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.portfolio-broker-sync-form label.wide {
  min-width: 0;
}

.portfolio-broker-sync-form label.confirm {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-broker-sync-form span,
.portfolio-broker-sync-form p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.portfolio-broker-sync-form p {
  grid-column: 1 / -1;
  margin: 0;
}

.portfolio-broker-sync-form input[type="text"],
.portfolio-broker-sync-form select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
}

.portfolio-broker-sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-broker-sync-actions .danger {
  border-color: rgba(207, 106, 93, 0.24);
  color: var(--danger);
  background: var(--danger-soft);
}

.portfolio-broker-sync-result {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.portfolio-broker-sync-result > div,
.portfolio-broker-sync-result dl {
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.84);
}

.portfolio-broker-sync-result.error > div,
.portfolio-broker-sync-result.error dl {
  background: var(--danger-soft);
}

.portfolio-broker-sync-result.written > div,
.portfolio-broker-sync-result.written dl {
  background: rgba(230, 248, 239, 0.9);
}

.portfolio-broker-sync-result strong,
.portfolio-broker-sync-result dt,
.portfolio-broker-sync-result dd,
.portfolio-broker-sync-result p {
  margin: 0;
  overflow-wrap: anywhere;
}

.portfolio-broker-sync-result strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.portfolio-broker-sync-result p,
.portfolio-broker-sync-result dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.portfolio-broker-sync-result p {
  margin-top: 4px;
}

.portfolio-broker-sync-result dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.portfolio-broker-sync-result dd {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.portfolio-broker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
}

.portfolio-broker-grid article {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
  border-top: 3px solid rgba(138, 144, 156, 0.28);
}

.portfolio-broker-grid article.snapshot_ready {
  border-top-color: rgba(90, 140, 100, 0.56);
}

.portfolio-broker-grid article.snapshot_stale,
.portfolio-broker-grid article.missing_config {
  border-top-color: rgba(220, 38, 38, 0.52);
}

.portfolio-broker-grid article.configured,
.portfolio-broker-grid article.configured_disabled {
  border-top-color: rgba(111, 155, 206, 0.52);
}

.portfolio-broker-grid span,
.portfolio-broker-grid em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-broker-grid strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: capitalize;
}

.portfolio-broker-grid ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 16px;
}

.portfolio-holdings-summary article,
.portfolio-holdings-empty {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.portfolio-holdings-summary span,
.portfolio-holdings-empty p {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.portfolio-holdings-summary strong,
.portfolio-holdings-empty strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.portfolio-holdings-summary em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.portfolio-holdings-empty p {
  max-width: 680px;
  margin: 0;
  line-height: 1.5;
}

.portfolio-allocation-panel {
  border-top: 1px solid var(--line);
}

.portfolio-allocation-panel > .mini-section-head {
  padding: 14px 16px 0;
}

.portfolio-attention-panel {
  border-top: 1px solid var(--line);
}

.portfolio-attention-panel > .mini-section-head {
  padding: 14px 16px 0;
}

.portfolio-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
}

.portfolio-attention-row {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  border-top: 3px solid rgba(138, 144, 156, 0.45);
}

.portfolio-attention-row.high {
  border-top-color: rgba(220, 38, 38, 0.72);
}

.portfolio-attention-row.medium {
  border-top-color: rgba(217, 119, 6, 0.72);
}

.portfolio-attention-row.watch {
  border-top-color: rgba(14, 165, 233, 0.72);
}

.portfolio-attention-row strong,
.portfolio-attention-row span {
  display: block;
  overflow-wrap: anywhere;
}

.portfolio-attention-row > div > strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-attention-row > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.portfolio-attention-row ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.portfolio-attention-row li {
  padding-top: 8px;
  border-top: 1px solid rgba(14, 26, 43, 0.08);
}

.portfolio-attention-row li strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.portfolio-attention-row li span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.portfolio-allocation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
}

.portfolio-allocation-grid section {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.portfolio-allocation-grid h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.portfolio-allocation-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 48px;
  padding: 8px 0 11px;
  overflow: hidden;
  border-top: 1px solid rgba(14, 26, 43, 0.07);
}

.portfolio-allocation-row:first-of-type {
  border-top: 0;
}

.portfolio-allocation-row strong,
.portfolio-allocation-row span,
.portfolio-allocation-row em {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-allocation-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.portfolio-allocation-row span,
.portfolio-allocation-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.portfolio-allocation-row i {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(14, 26, 43, 0.08);
}

.portfolio-allocation-row i::after {
  display: block;
  width: var(--allocation-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(111, 176, 106, 0.72), rgba(14, 165, 233, 0.72));
  content: "";
}

.portfolio-holdings-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.portfolio-holdings-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.portfolio-holdings-table th,
.portfolio-holdings-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  text-align: right;
  vertical-align: top;
}

.portfolio-holdings-table th:first-child,
.portfolio-holdings-table td:first-child {
  text-align: left;
}

.portfolio-holdings-table th {
  color: var(--muted);
  font-weight: 600;
}

.portfolio-holdings-table td strong,
.portfolio-holdings-table td span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-holdings-table td strong {
  color: var(--ink);
  font-weight: 650;
}

.portfolio-holdings-table td span {
  color: var(--muted);
  font-size: 11px;
}

.portfolio-holdings-table .portfolio-side {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 26, 43, 0.04);
  color: var(--ink-2);
}

.portfolio-holdings-table .portfolio-side.long,
.portfolio-holdings-table .portfolio-side.cash {
  border-color: rgba(111, 176, 106, 0.18);
  background: var(--good-soft);
  color: var(--good);
}

.portfolio-holdings-table .portfolio-side.short {
  border-color: rgba(207, 106, 93, 0.18);
  background: var(--danger-soft);
  color: var(--danger);
}

.portfolio-thesis-grid,
.portfolio-thesis-layout,
.portfolio-comparable-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.portfolio-thesis-grid {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

body.admin-mode .portfolio-thesis-grid {
  grid-template-columns: 1.05fr 0.72fr 1fr 0.78fr;
}

.portfolio-thesis-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.portfolio-thesis-layout section,
.portfolio-comparables,
.portfolio-comparable-grid article,
.thesis-card {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.thesis-card strong,
.thesis-card em {
  overflow-wrap: anywhere;
}

.portfolio-thesis-layout section:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.thesis-card.primary {
  background: linear-gradient(180deg, rgba(111, 155, 206, 0.09), rgba(255, 255, 255, 0.78));
}

.thesis-card strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
}

.thesis-card strong small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.thesis-card em,
.portfolio-comparable-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.thesis-score-bar,
.mini-bar {
  overflow: hidden;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(14, 26, 43, 0.08);
}

.thesis-score-bar i,
.mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--good));
}

.portfolio-direction-list,
.portfolio-scorecard {
  display: grid;
  gap: 8px;
}

.portfolio-direction-list article {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.portfolio-direction-list strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.portfolio-direction-list p {
  margin: 0 0 5px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}

.portfolio-direction-list em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.portfolio-scorecard article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.portfolio-scorecard strong {
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.portfolio-scorecard .mini-bar {
  grid-column: 1 / -1;
  margin-top: 0;
}

.thesis-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thesis-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.thesis-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.portfolio-comparables {
  border-top: 1px solid var(--line);
}

.portfolio-comparable-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px -16px -16px;
}

.portfolio-comparable-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.portfolio-comparable-grid p {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.asset-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
}

.portfolio-technical-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.portfolio-technical-panel > section,
.portfolio-technical-panel > aside {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.portfolio-technical-chart {
  min-height: 260px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 252, 0.62)),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 72px);
}

.portfolio-technical-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  text-rendering: geometricPrecision;
}

.portfolio-technical-chart text {
  stroke: none;
  paint-order: fill;
  text-shadow: none;
  font-synthesis-weight: none;
}

.portfolio-chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 16px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.portfolio-chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.portfolio-chart-key i {
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.portfolio-chart-key i.close {
  background: var(--accent);
}

.portfolio-chart-key i.sma20 {
  background: #6f9bce;
}

.portfolio-chart-key i.sma50 {
  background: #cf6a5d;
}

.portfolio-chart-key i.volume {
  width: 10px;
  height: 10px;
  background: rgba(100, 107, 118, 0.22);
}

.portfolio-chart-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.portfolio-grid-line,
.portfolio-volume-axis {
  stroke: rgba(15, 23, 42, 0.1);
  stroke-width: 1;
}

.portfolio-axis {
  fill: rgba(138, 144, 156, 0.76);
  font-family: "HarmonyOS Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.portfolio-price-line,
.portfolio-sma-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-price-line {
  stroke: var(--accent);
  stroke-width: 2.4;
}

.portfolio-sma-line {
  opacity: 0.86;
  stroke-width: 1.25;
}

.portfolio-sma-line.sma20 {
  stroke: #6f9bce;
}

.portfolio-sma-line.sma50 {
  stroke: #cf6a5d;
}

.portfolio-start-point {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 2;
}

.portfolio-end-point {
  fill: var(--accent);
  stroke: #ffffff;
  stroke-width: 2;
}

.portfolio-volume-bar {
  fill: rgba(100, 107, 118, 0.18);
}

.thesis-list.compact {
  margin-top: 10px;
}

.category-strip button,
.symbol-filters button,
.archive-controls button,
.chart-pills span,
.related-strip article,
.related-chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}

.category-strip button.active,
.symbol-filters button.active,
.archive-controls button.active {
  color: var(--accent);
  border-color: rgba(111, 155, 206, 0.24);
  background: var(--accent-soft);
}

.hero-ledger {
  order: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.eyebrow,
.control-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-ledger h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 3px;
  font-size: clamp(16px, 0.9vw, 18px);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 600;
}

.hero-outline {
  color: var(--muted);
  font-size: 0.8em;
  font-weight: 500;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.research-card {
  min-width: 126px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(249, 250, 252, 0.84);
}

.research-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.research-card strong {
  display: block;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 600;
}

.config-button,
.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
}

.config-button,
.primary-button {
  color: #fff;
  background: var(--control);
}

.secondary-button,
.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.secondary-button:disabled,
.primary-button:disabled,
.icon-button:disabled {
  opacity: 0.48;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.metrics-grid {
  order: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.metric,
.panel,
.symbol-panel,
.timeline-panel,
.collector-panel,
.coverage-panel,
.control-card,
.channel-card,
.import-panel,
.watchlist-panel,
.deployment-readiness,
.subscription-panel,
.subscriber-ops,
.control-plane {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}

.metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
}

.metric-label,
.metric-note,
.collector-status,
.symbol-head span,
.mention p,
.control-card p,
.channel-card span,
.channel-card small,
.plan p {
  color: var(--muted);
}

.metric-value {
  margin: 0;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: right;
}

.metric-note {
  grid-column: 1 / -1;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collector-panel {
  order: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.collector-title {
  font-size: 13px;
  font-weight: 600;
}

.collector-status {
  margin-top: 4px;
  font-size: 13px;
}

.realtime-smoke-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.realtime-smoke-controls .collector-status {
  margin-top: 0;
}

.collector-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.coverage-panel {
  order: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 11px 12px;
}

.coverage-panel > * {
  min-width: 0;
}

.monitor-health-panel {
  order: 110;
  margin-bottom: 12px;
  overflow: hidden;
}

.x-api-budget-panel {
  order: 100;
}

.panel-head.compact {
  align-items: center;
  padding: 14px 16px;
}

.monitor-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.monitor-health-grid article {
  min-width: 0;
  min-height: 112px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.78);
}

.monitor-health-grid article.ready,
.monitor-health-grid article.running {
  background: var(--good-soft);
}

.monitor-health-grid article.local {
  background: rgba(232, 238, 246, 0.8);
}

.monitor-health-grid article.partial {
  background: var(--warning-soft);
}

.monitor-health-grid article.guarded {
  background: rgba(232, 238, 246, 0.9);
}

.monitor-health-grid article.blocked,
.monitor-health-grid article.error {
  background: var(--danger-soft);
}

.monitor-health-grid span,
.monitor-health-grid em,
.monitor-health-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.monitor-health-grid strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.monitor-health-grid small {
  margin-top: 8px;
}

.delivery-ops {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.operator-snapshot-ops {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.operator-snapshot-ops .monitor-health-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.operator-action-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.operator-action-list article {
  min-width: 0;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.78);
}

.operator-action-list strong,
.operator-action-list span {
  display: block;
  min-width: 0;
}

.operator-action-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.operator-action-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.delivery-ops .monitor-health-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.watchdog-ops {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.watchdog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.watchdog-grid article {
  min-width: 0;
  min-height: 112px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.watchdog-grid article.ready,
.watchdog-grid article.running {
  background: var(--good-soft);
}

.watchdog-grid article.partial {
  background: var(--warning-soft);
}

.watchdog-grid article.blocked,
.watchdog-grid article.error {
  background: var(--danger-soft);
}

.watchdog-grid span,
.watchdog-grid em,
.watchdog-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.watchdog-grid strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.watchdog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.watchdog-actions > span {
  min-width: 220px;
  flex: 1 1 260px;
}

.realtime-usage {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.realtime-usage .monitor-health-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.delivery-flow-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.delivery-flow-list article {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.delivery-flow-list article.muted {
  grid-template-columns: 1fr;
}

.delivery-flow-list strong,
.delivery-flow-list span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-flow-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.delivery-flow-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.realtime-flow-audit {
  display: grid;
  gap: 10px;
}

.delivery-flow-audit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.delivery-flow-audit article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.delivery-flow-audit span,
.delivery-flow-audit strong,
.delivery-flow-audit em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-flow-audit span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.delivery-flow-audit strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.delivery-flow-audit em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.delivery-flow-audit article.ready strong {
  color: var(--success);
}

.delivery-flow-audit article.partial strong,
.delivery-flow-audit article.blocked strong {
  color: var(--warning);
}

.trump-tracker-panel {
  order: 34;
  overflow: hidden;
}

.trump-tracker-panel > .panel-head {
  border-bottom: 1px solid rgba(228, 231, 236, 0.14);
  background: #161a22;
}

.trump-tracker-panel > .panel-head h2 {
  color: #f8fafc;
}

.trump-tracker-panel > .panel-head p:not(.eyebrow) {
  color: rgba(228, 231, 236, 0.76);
}

.trump-tracker-panel > .panel-head .eyebrow {
  color: rgba(151, 189, 234, 0.82);
}

.trump-tracker-panel > .panel-head .secondary-button {
  border-color: rgba(228, 231, 236, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.trump-tracker-panel > .panel-head .secondary-button:hover {
  border-color: rgba(151, 189, 234, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.trump-workbench-nav {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  contain: paint;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.72);
  scrollbar-width: none;
}

.trump-workbench-nav::-webkit-scrollbar {
  display: none;
}

.trump-workbench-nav button {
  flex: 0 0 auto;
  min-width: 0;
}

.trump-source-boundary {
  display: block;
  padding: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.trump-source-boundary-details {
  min-width: 0;
}

.trump-source-boundary-details > summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
}

.trump-source-boundary-details > summary::-webkit-details-marker {
  display: none;
}

.trump-source-boundary-details > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.82);
}

.trump-source-boundary-details:not([open]) > div {
  display: none;
}

.trump-source-boundary-details div,
.trump-source-boundary-details p,
.trump-source-boundary-details strong,
.trump-source-boundary-details span,
.trump-source-boundary-details small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-source-boundary-details span,
.trump-source-boundary-details em {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-source-boundary-details strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.trump-source-boundary-details p,
.trump-source-boundary-details small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.trump-source-boundary-details small {
  justify-self: end;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink-2);
  font-weight: 650;
}

.trump-source-boundary-hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
}

.trump-source-boundary-hosts em {
  flex: 1 0 100%;
}

.trump-source-boundary-hosts b {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-2);
  font: 10px/1.2 var(--mono);
}

.trump-source-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 0;
  min-width: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: #161a22;
  color: #ffffff;
}

.trump-source-brief-head,
.trump-source-brief-next,
.trump-source-brief-cards button {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.trump-source-brief-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.trump-source-brief.seed_only .trump-source-brief-head,
.trump-source-brief.building_evidence .trump-source-brief-head {
  box-shadow: inset 3px 0 0 rgba(174, 180, 192, 0.75);
}

.trump-source-brief.seed-readable .trump-source-brief-head {
  background:
    linear-gradient(135deg, rgba(111, 155, 206, 0.18), rgba(8, 7, 5, 0) 58%),
    transparent;
}

.trump-source-brief.three_line_review .trump-source-brief-head,
.trump-source-brief.review_ready .trump-source-brief-head {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.62);
}

.trump-source-brief-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.12);
}

.trump-source-brief-cards button {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 74px;
  padding: 10px 11px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
}

.trump-source-brief-cards button:hover {
  background: rgba(255, 255, 255, 0.105);
}

.trump-source-brief-cards button.ready {
  box-shadow: inset 0 3px 0 rgba(111, 176, 106, 0.82);
}

.trump-source-brief-cards button.partial {
  box-shadow: inset 0 3px 0 rgba(245, 158, 11, 0.82);
}

.trump-source-brief-cards button.planned {
  box-shadow: inset 0 3px 0 rgba(174, 180, 192, 0.72);
}

.trump-source-brief.seed-readable .trump-source-brief-cards button {
  min-height: 72px;
}

.trump-source-brief.seed-readable .trump-source-brief-cards button.focus {
  background: rgba(59, 130, 246, 0.12);
}

.trump-source-brief.seed-readable .trump-source-brief-cards button.evidence {
  background: rgba(111, 155, 206, 0.1);
}

.trump-source-brief.seed-readable .trump-source-brief-cards em {
  display: none;
}

.trump-source-brief-next {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 10px;
  align-items: start;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.trump-source-brief-hidden {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  min-width: 0;
}

.trump-source-brief-head div,
.trump-source-brief-head span,
.trump-source-brief-head strong,
.trump-source-brief-head p,
.trump-source-brief-head em,
.trump-source-brief-cards span,
.trump-source-brief-cards strong,
.trump-source-brief-cards p,
.trump-source-brief-cards em,
.trump-source-brief-next div,
.trump-source-brief-next span,
.trump-source-brief-next strong,
.trump-source-brief-hidden b {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-source-brief-head span,
.trump-source-brief-cards span,
.trump-source-brief-next span {
  color: rgba(228, 231, 236, 0.72);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-source-brief-head strong,
.trump-source-brief-cards strong,
.trump-source-brief-next strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.24;
}

.trump-source-brief-head strong {
  font-size: 18px;
}

.trump-source-brief-head p,
.trump-source-brief-head em,
.trump-source-brief-cards p,
.trump-source-brief-cards em,
.trump-source-brief-next strong {
  color: rgba(228, 231, 236, 0.86);
  font-size: 11px;
  font-style: normal;
  line-height: 1.36;
}

.trump-source-brief-head p,
.trump-source-brief-cards p,
.trump-source-brief-next strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.trump-source-brief-head em,
.trump-source-brief-cards em {
  color: rgba(228, 231, 236, 0.64);
}

.trump-source-brief-hidden {
  color: rgba(228, 231, 236, 0.82);
}

.trump-source-brief-hidden summary {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.trump-source-brief-hidden summary::-webkit-details-marker {
  display: none;
}

.trump-source-brief-hidden summary span,
.trump-source-brief-hidden summary strong {
  color: rgba(228, 231, 236, 0.78);
  font-size: 10px;
}

.trump-source-brief-hidden > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 6px;
}

.trump-source-brief-hidden b {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(228, 231, 236, 0.82);
  font: 10px/1.2 var(--mono);
}

.trump-market-overview {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(220px, 0.42fr);
  gap: 0;
  min-width: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: rgba(228, 231, 236, 0.86);
}

.trump-market-overview-head,
.trump-market-overview-focus,
.trump-market-overview-lanes button,
.trump-market-overview-modules button {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.trump-market-overview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: start;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.trump-market-overview.three_way_review .trump-market-overview-head {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.62);
}

.trump-market-overview.two_way_watch .trump-market-overview-head,
.trump-market-overview.building_evidence .trump-market-overview-head,
.trump-market-overview.partial .trump-market-overview-head {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.62);
}

.trump-market-overview.seed_only .trump-market-overview-head {
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.42);
}

.trump-market-overview.seed-empty .trump-market-overview-head {
  padding: 12px 16px;
}

.trump-market-overview.seed-empty .trump-market-overview-head em {
  display: none;
}

.trump-market-overview.seed-empty .trump-market-overview-sources {
  display: none;
}

.trump-market-overview.no-focus .trump-market-overview-head {
  grid-column: 1 / -1;
  border-right: 0;
}

.trump-market-overview-focus {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  box-shadow: none;
}

.trump-market-overview-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(111, 155, 206, 0.09), transparent 46%),
    #eef3f8;
}

.trump-market-overview-empty span,
.trump-market-overview-empty strong,
.trump-market-overview-empty p,
.trump-market-overview-empty em {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-market-overview-empty span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-market-overview-empty strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
}

.trump-market-overview-empty p,
.trump-market-overview-empty em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.38;
}

.trump-market-overview-empty p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.trump-market-overview-empty em {
  display: none;
}

.trump-market-overview.seed-empty .trump-market-overview-lanes {
  border-top: 0;
}

.trump-market-overview-lanes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.8);
}

.trump-market-overview-lanes button {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 70px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.trump-market-overview-lanes button + button {
  border-left: 1px solid var(--line);
}

.trump-market-overview-lanes button:hover {
  border-color: rgba(111, 155, 206, 0.3);
  background: #f8fafc;
}

.trump-market-overview-lanes button.partial,
.trump-market-overview-lanes button.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.54);
}

.trump-market-overview-lanes button.planned {
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.4);
}

.trump-market-overview-modules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  border-top: 1px solid var(--line);
  background: rgba(8, 7, 5, 0.12);
}

.trump-market-overview-modules button {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 86px;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: rgba(248, 250, 252, 0.92);
  border-right: 0;
  border-bottom: 0;
}

.trump-market-overview-modules button:hover {
  background: #ffffff;
}

.trump-market-overview-modules button.partial,
.trump-market-overview-modules button.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.54);
}

.trump-market-overview-modules button.planned {
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.4);
}

.trump-market-overview-modules button.seed_hidden {
  background: rgba(241, 245, 249, 0.94);
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.5);
}

.trump-market-overview.seed-empty .trump-market-overview-modules button {
  min-height: 70px;
  padding: 9px 11px;
}

.trump-market-overview-modules button.seed_hidden p {
  color: var(--ink-2);
  font-weight: 700;
  -webkit-line-clamp: 2;
}

.trump-market-overview.seed-empty .trump-market-overview-modules button p {
  -webkit-line-clamp: 1;
}

.trump-market-overview.seed-empty .trump-market-overview-lanes button {
  min-height: 58px;
  padding: 9px 12px;
}

.trump-market-overview-head div,
.trump-market-overview-head span,
.trump-market-overview-head strong,
.trump-market-overview-head p,
.trump-market-overview-head em,
.trump-market-overview-head small,
.trump-market-overview-head b,
.trump-market-overview-focus span,
.trump-market-overview-focus strong,
.trump-market-overview-focus p,
.trump-market-overview-focus em,
.trump-market-overview-lanes span,
.trump-market-overview-lanes strong,
.trump-market-overview-lanes p,
.trump-market-overview-lanes em,
.trump-market-overview-lanes small,
.trump-market-overview-lanes div,
.trump-market-overview-lanes i,
.trump-market-overview-lanes b,
.trump-market-overview-modules span,
.trump-market-overview-modules strong,
.trump-market-overview-modules p,
.trump-market-overview-modules em,
.trump-market-overview-modules div,
.trump-market-overview-modules b {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-market-overview-head span,
.trump-market-overview-focus span,
.trump-market-overview-lanes span,
.trump-market-overview-modules span,
.trump-market-overview-sources small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-market-overview-head strong,
.trump-market-overview-focus strong,
.trump-market-overview-lanes strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.22;
}

.trump-market-overview-modules strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.24;
}

.trump-market-overview-head p,
.trump-market-overview-head em,
.trump-market-overview-focus p,
.trump-market-overview-focus em,
.trump-market-overview-lanes p,
.trump-market-overview-lanes em,
.trump-market-overview-lanes small,
.trump-market-overview-modules p,
.trump-market-overview-modules em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.36;
}

.trump-market-overview-head p,
.trump-market-overview-focus p,
.trump-market-overview-lanes p {
  color: var(--ink-2);
  font-weight: 650;
}

.trump-market-overview-head p,
.trump-market-overview-head em,
.trump-market-overview-focus p,
.trump-market-overview-focus em,
.trump-market-overview-lanes p,
.trump-market-overview-lanes em,
.trump-market-overview-lanes small,
.trump-market-overview-modules p,
.trump-market-overview-modules em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.trump-market-overview-head p,
.trump-market-overview-focus p,
.trump-market-overview-lanes p {
  -webkit-line-clamp: 2;
}

.trump-market-overview-modules p {
  -webkit-line-clamp: 1;
}

.trump-market-overview-head em,
.trump-market-overview-focus em,
.trump-market-overview-lanes em,
.trump-market-overview-modules em {
  -webkit-line-clamp: 2;
}

.trump-market-overview-lanes small {
  -webkit-line-clamp: 1;
}

.trump-market-overview-modules em,
.trump-market-overview-lanes em,
.trump-market-overview-lanes small,
.trump-market-overview-lanes div {
  display: none;
}

.trump-market-overview-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.trump-market-overview-sources small {
  flex: 1 0 100%;
  text-align: right;
}

.trump-market-overview-sources b,
.trump-market-overview-lanes b,
.trump-market-overview-modules b {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink-2);
  font: 10px/1.2 var(--mono);
}

.trump-market-overview-modules div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trump-market-overview-lanes div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.trump-market-overview-lanes i {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.trump-market-overview-lanes em,
.trump-market-overview-lanes small,
.trump-market-overview-lanes div,
.trump-market-overview-lanes div * {
  display: none;
}

.trump-radar-digest {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82));
}

.trump-radar-digest-head,
.trump-radar-digest-focus {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trump-radar-digest-head {
  box-shadow: inset 3px 0 0 rgba(15, 23, 42, 0.32);
}

.trump-radar-digest-stats,
.trump-radar-digest-lanes {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.trump-radar-digest-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.trump-radar-digest-lanes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
}

.trump-radar-digest-focus {
  background: #f8fafc;
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.62);
}

.trump-radar-digest button {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.trump-radar-digest button:hover {
  border-color: rgba(111, 155, 206, 0.32);
  background: #f8fafc;
}

.trump-radar-digest button.three_line {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.62);
}

.trump-radar-digest button.two_line,
.trump-radar-digest button.review_ready {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.62);
}

.trump-radar-digest button.single_line {
  box-shadow: inset 3px 0 0 rgba(111, 155, 206, 0.42);
}

.trump-radar-digest button.watch_pool,
.trump-radar-digest button.planned {
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.42);
}

.trump-radar-digest button.partial,
.trump-radar-digest button.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.52);
}

.trump-radar-digest-head span,
.trump-radar-digest-head strong,
.trump-radar-digest-head p,
.trump-radar-digest-head em,
.trump-radar-digest-focus span,
.trump-radar-digest-focus strong,
.trump-radar-digest-focus p,
.trump-radar-digest-focus em,
.trump-radar-digest button span,
.trump-radar-digest button strong,
.trump-radar-digest button em {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-radar-digest-head span,
.trump-radar-digest-focus span,
.trump-radar-digest button span,
.trump-radar-digest-sources small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-radar-digest-head strong,
.trump-radar-digest-focus strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.24;
}

.trump-radar-digest-head p,
.trump-radar-digest-head em,
.trump-radar-digest-focus p,
.trump-radar-digest-focus em,
.trump-radar-digest button em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.36;
}

.trump-radar-digest-head em,
.trump-radar-digest-focus p {
  color: var(--ink-2);
  font-weight: 700;
}

.trump-radar-digest button strong {
  color: var(--ink);
  font: 750 18px/1.05 var(--mono);
}

.trump-radar-digest-lanes button strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.trump-radar-digest-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.trump-radar-digest-sources small {
  flex: 0 0 100%;
}

.trump-radar-digest-sources b {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink-2);
  font: 10px/1.2 var(--mono);
}

.trump-evidence-intake-route {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(246, 249, 253, 0.78);
}

.trump-evidence-intake-head,
.trump-evidence-intake-primary,
.trump-evidence-intake-guardrail {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.trump-evidence-intake-head {
  display: grid;
  gap: 8px;
}

.trump-evidence-intake-head span,
.trump-evidence-intake-primary span,
.trump-evidence-intake-lanes button span,
.trump-evidence-intake-guardrail span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.trump-evidence-intake-head strong,
.trump-evidence-intake-primary strong,
.trump-evidence-intake-lanes button strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.trump-evidence-intake-head p,
.trump-evidence-intake-lanes button p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trump-evidence-intake-head em,
.trump-evidence-intake-lanes button em,
.trump-evidence-intake-guardrail em {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.trump-evidence-intake-lanes {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trump-evidence-intake-lanes button {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 150px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
}

.trump-evidence-intake-lanes button.ready {
  background: var(--good-soft);
}

.trump-evidence-intake-lanes button.planned {
  background: rgba(232, 238, 246, 0.78);
}

.trump-evidence-intake-lanes button:hover {
  border-color: rgba(111, 155, 206, 0.28);
  background: rgba(237, 244, 255, 0.86);
}

.trump-evidence-intake-lanes small {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.trump-evidence-intake-lanes b {
  display: inline-flex;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(228, 231, 236, 0.72);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.trump-evidence-intake-guardrail {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.trump-resonance-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.trump-resonance-brief-head,
.trump-resonance-brief-focus,
.trump-resonance-brief-lanes article,
.trump-resonance-brief-tiers article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trump-resonance-brief-head {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
  box-shadow: inset 3px 0 0 rgba(15, 23, 42, 0.18);
}

.trump-resonance-brief.three_way_review .trump-resonance-brief-head {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.62);
}

.trump-resonance-brief.two_way_watch .trump-resonance-brief-head,
.trump-resonance-brief.building_evidence .trump-resonance-brief-head {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.62);
}

.trump-resonance-brief.seed_only .trump-resonance-brief-head {
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.42);
}

.trump-resonance-brief-head span,
.trump-resonance-brief-head strong,
.trump-resonance-brief-head p,
.trump-resonance-brief-head em,
.trump-resonance-brief-head small,
.trump-resonance-brief-head b,
.trump-resonance-brief-focus span,
.trump-resonance-brief-focus strong,
.trump-resonance-brief-focus p,
.trump-resonance-brief-focus em,
.trump-resonance-brief-lanes span,
.trump-resonance-brief-lanes strong,
.trump-resonance-brief-lanes p,
.trump-resonance-brief-lanes em,
.trump-resonance-brief-tiers span,
.trump-resonance-brief-tiers strong,
.trump-resonance-brief-tiers em {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-resonance-brief-head span,
.trump-resonance-brief-focus span,
.trump-resonance-brief-lanes span,
.trump-resonance-brief-tiers span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-resonance-brief-head strong,
.trump-resonance-brief-focus strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.24;
}

.trump-resonance-brief-head p,
.trump-resonance-brief-head em,
.trump-resonance-brief-focus p,
.trump-resonance-brief-focus em,
.trump-resonance-brief-lanes p,
.trump-resonance-brief-lanes em,
.trump-resonance-brief-tiers em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.36;
}

.trump-resonance-brief-head p {
  color: var(--ink-2);
  font-weight: 750;
}

.trump-resonance-brief-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  padding-top: 2px;
}

.trump-resonance-brief-sources small {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-resonance-brief-sources b {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink-2);
  font: 10px/1.2 var(--mono);
}

.trump-resonance-brief-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.trump-resonance-brief-lanes article {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 11px;
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.35);
}

.trump-resonance-brief-lanes article.partial,
.trump-resonance-brief-lanes article.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.58);
}

.trump-resonance-brief-lanes strong {
  color: var(--ink);
  font: 750 19px/1 var(--mono);
}

.trump-resonance-brief-focus {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  background: #f8fafc;
}

.trump-resonance-brief-tiers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.trump-resonance-brief-tiers article {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.trump-resonance-brief-tiers strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.trump-workbench-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.trump-workbench-band article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.trump-workbench-band article.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.5);
}

.trump-workbench-band article.partial {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.58);
}

.trump-workbench-band article.planned {
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.45);
}

.trump-workbench-band article.blocked {
  box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.55);
}

.trump-workbench-band span,
.trump-workbench-band p,
.trump-workbench-band em,
.trump-workbench-band strong {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-workbench-band span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trump-workbench-band strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.trump-workbench-band p,
.trump-workbench-band em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trump-workbench-band em {
  font-style: normal;
}

.trump-resonance-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.74);
}

.trump-resonance-module-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.trump-resonance-module-deck article {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trump-resonance-module-deck article.partial {
  border-color: rgba(245, 158, 11, 0.36);
}

.trump-resonance-module-deck article.ready {
  border-color: rgba(111, 176, 106, 0.36);
}

.trump-resonance-module-deck button {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.trump-resonance-module-deck button:hover strong {
  color: var(--accent);
}

.trump-resonance-module-deck span,
.trump-resonance-module-deck strong,
.trump-resonance-module-deck p,
.trump-resonance-module-deck em {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-resonance-module-deck span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-resonance-module-deck strong {
  color: var(--ink);
  font-size: 13px;
}

.trump-resonance-module-deck p,
.trump-resonance-module-deck em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.trump-resonance-module-deck div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trump-resonance-module-deck a {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.trump-resonance-module-deck a:hover {
  color: var(--accent);
}

.trump-resonance-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trump-resonance-lines article,
.trump-resonance-group,
.trump-resonance-card {
  min-width: 0;
  background: #ffffff;
}

.trump-resonance-lines article {
  display: grid;
  gap: 5px;
  padding: 12px;
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.42);
}

.trump-resonance-lines article.partial {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.62);
}

.trump-resonance-lines article.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.58);
}

.trump-resonance-lines strong,
.trump-resonance-lines span,
.trump-resonance-lines em,
.trump-resonance-group strong,
.trump-resonance-group span,
.trump-resonance-group p,
.trump-resonance-card strong,
.trump-resonance-card span,
.trump-resonance-card p,
.trump-resonance-card em {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-resonance-lines strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.trump-resonance-lines span,
.trump-resonance-lines em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.trump-resonance-line-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trump-resonance-line-links a {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.trump-resonance-line-links a:hover {
  color: var(--accent);
}

.trump-resonance-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trump-resonance-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trump-resonance-group > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trump-resonance-group strong {
  color: var(--ink);
  font-size: 14px;
}

.trump-resonance-group span,
.trump-resonance-group p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.trump-resonance-group > div:first-child em {
  flex: 0 0 auto;
  color: var(--ink-2);
  font: 700 12px/1.2 var(--mono);
  font-style: normal;
}

.trump-resonance-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.trump-resonance-card.three_line {
  border-color: rgba(111, 176, 106, 0.36);
}

.trump-resonance-card.two_line {
  border-color: rgba(111, 155, 206, 0.32);
}

.trump-resonance-card.watch_pool {
  opacity: 0.78;
}

.trump-resonance-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.trump-resonance-card span,
.trump-resonance-card p,
.trump-resonance-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.trump-resonance-card em {
  color: var(--ink-2);
  font-weight: 650;
}

.trump-resonance-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.trump-resonance-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.trump-resonance-segments span {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.trump-resonance-segments span.on {
  border-color: rgba(15, 23, 42, 0.18);
  background: var(--ink);
  color: #ffffff;
}

.trump-resonance-card.three_line .trump-resonance-segments span.on {
  background: #166534;
}

.trump-resonance-card.two_line .trump-resonance-segments span.on {
  background: #0f766e;
}

.trump-resonance-segments span.missing {
  border-style: dashed;
}

.trump-resonance-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.trump-resonance-trail > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.trump-resonance-trail a,
.trump-resonance-trail > span:not(:first-child) {
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.trump-resonance-trail a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.trump-impact-map {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.trump-impact-formula {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.trump-evidence-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.42);
}

.trump-evidence-gate.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.62);
}

.trump-evidence-gate.partial {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.62);
}

.trump-evidence-gate.seed_only {
  box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.5);
}

.trump-evidence-gate strong,
.trump-evidence-gate span,
.trump-evidence-gate p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-evidence-gate strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.trump-evidence-gate span,
.trump-evidence-gate p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.trump-evidence-matrix {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 10px;
  min-width: 0;
}

.trump-evidence-matrix-summary,
.trump-evidence-lanes article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trump-evidence-matrix-summary {
  display: grid;
  align-content: start;
  gap: 7px;
  box-shadow: inset 3px 0 0 rgba(15, 23, 42, 0.18);
}

.trump-evidence-matrix-summary span,
.trump-evidence-matrix-summary strong,
.trump-evidence-matrix-summary p,
.trump-evidence-matrix-summary em,
.trump-evidence-matrix-summary small,
.trump-evidence-lanes strong,
.trump-evidence-lanes span,
.trump-evidence-lanes p,
.trump-evidence-lanes em,
.trump-evidence-lanes a {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-evidence-matrix-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trump-evidence-matrix-summary strong,
.trump-evidence-lanes strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.trump-evidence-matrix-summary p,
.trump-evidence-matrix-summary small,
.trump-evidence-lanes span,
.trump-evidence-lanes p,
.trump-evidence-lanes em,
.trump-evidence-lanes a {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.trump-evidence-matrix-summary div {
  display: grid;
  gap: 4px;
}

.trump-evidence-matrix-summary em,
.trump-evidence-lanes em {
  color: var(--ink-2);
  font-style: normal;
  font-weight: 750;
}

.trump-evidence-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trump-evidence-lanes article {
  display: grid;
  gap: 7px;
  box-shadow: inset 3px 0 0 rgba(138, 144, 156, 0.35);
}

.trump-evidence-lanes article.ready {
  box-shadow: inset 3px 0 0 rgba(111, 176, 106, 0.58);
}

.trump-evidence-lanes article.partial {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.62);
}

.trump-evidence-lanes article div {
  display: grid;
  gap: 4px;
}

.trump-evidence-lanes article > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.trump-evidence-lanes a,
.trump-evidence-lanes article > div:last-child span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}

.trump-evidence-lanes a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.trump-impact-formula article {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trump-impact-formula strong,
.trump-impact-formula span {
  overflow-wrap: anywhere;
}

.trump-impact-formula strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.trump-impact-formula article span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.trump-impact-op {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.trump-theme-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trump-theme-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trump-theme-card.review {
  border-color: rgba(111, 155, 206, 0.25);
}

.trump-theme-card.watch {
  border-color: rgba(245, 158, 11, 0.3);
}

.trump-theme-card.empty {
  grid-column: 1 / -1;
}

.trump-theme-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.trump-theme-card-head > div {
  min-width: 0;
}

.trump-theme-card strong,
.trump-theme-card span,
.trump-theme-card em,
.trump-theme-card p,
.trump-theme-card small {
  overflow-wrap: anywhere;
}

.trump-theme-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.trump-theme-card-head span,
.trump-theme-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.trump-theme-card em {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.trump-theme-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.trump-theme-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f9bce, #14b8a6);
}

.trump-theme-card.watch .trump-theme-meter span {
  background: linear-gradient(90deg, #f59e0b, #22c55e);
}

.trump-theme-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.trump-theme-card p b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink-2);
  font: 11px/1.2 var(--mono);
}

.trump-review-surfaces {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.84);
}

.trump-review-surfaces > .mini-section-head {
  align-items: start;
}

.trump-review-surface-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.trump-review-surface-rail button {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 92px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(174, 180, 192, 0.82);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.trump-review-surface-rail button.partial {
  border-left-color: rgba(111, 155, 206, 0.82);
}

.trump-review-surface-rail button.ready {
  border-left-color: rgba(90, 140, 100, 0.82);
}

.trump-review-surface-rail button span,
.trump-review-surface-rail button strong,
.trump-review-surface-rail button em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.trump-review-surface-rail button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.trump-review-surface-rail button strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.trump-review-surface-rail button em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.trump-review-surface-rail button:hover {
  border-color: rgba(111, 155, 206, 0.32);
  background: #f8fafc;
}

.trump-review-surfaces .trump-tracker-layout {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trump-tracker-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trump-tracker-layout > section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.trump-tracker-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.trump-tracker-list article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.trump-tracker-list article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trump-tracker-list strong,
.trump-tracker-list span,
.trump-tracker-list p,
.trump-tracker-list em {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.trump-tracker-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.trump-tracker-list span,
.trump-tracker-list p,
.trump-tracker-list em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trump-tracker-list em {
  font-style: normal;
}

.trump-tracker-list a.trump-evidence-link {
  justify-self: start;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.trump-tracker-list a.trump-evidence-link:hover {
  text-decoration: underline;
}

.trump-tracker-list .trump-review-note {
  color: var(--ink-2);
}

.trump-daily-brief-card {
  border-left: 3px solid rgba(111, 155, 206, 0.85);
}

.trump-digest-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 !important;
  background: var(--line) !important;
}

.trump-digest-board > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  background: rgba(255, 255, 255, 0.82);
}

.trump-digest-board strong {
  font-size: 20px;
  line-height: 1;
}

.trump-signal-card {
  border-left: 3px solid rgba(174, 180, 192, 0.8);
}

.trump-signal-card.high,
.trump-signal-card.medium {
  border-left-color: rgba(111, 155, 206, 0.85);
}

.trump-signal-card.low {
  border-left-color: rgba(245, 158, 11, 0.85);
}

.trump-signal-card.waiting {
  border-left-color: rgba(174, 180, 192, 0.75);
}

.trump-signal-card em {
  color: var(--ink-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
}

.trump-signal-why-now {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.82);
}

.trump-signal-why-now span,
.trump-signal-why-now em {
  color: var(--ink-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.35;
}

.trump-signal-why-now p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.trump-signal-why-now b {
  display: inline-flex;
  min-width: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(111, 155, 206, 0.1);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.trump-signal-why-now.pair_before_alert b,
.trump-signal-why-now.wait_for_public_evidence b {
  background: rgba(174, 180, 192, 0.14);
  color: var(--ink-2);
}

.trump-alert-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.78);
}

.trump-alert-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.trump-alert-actions input {
  flex: 0 0 auto;
}

.trump-alert-actions em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.trump-public-import {
  display: grid;
  gap: 12px;
}

.trump-comment-builder {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.trump-contract-builder {
  background: rgba(248, 250, 252, 0.9);
}

.trump-disclosure-builder {
  background: rgba(255, 255, 255, 0.86);
}

.trump-comment-builder-head {
  display: grid;
  gap: 4px;
}

.trump-comment-builder-head strong,
.trump-comment-builder-head p,
.trump-comment-builder label span,
.trump-comment-builder-actions em {
  overflow-wrap: anywhere;
}

.trump-comment-builder-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.trump-comment-builder-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trump-comment-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trump-comment-builder label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.trump-comment-builder label span {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0;
}

.trump-comment-builder input,
.trump-comment-builder select,
.trump-comment-builder textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: 12px/1.45 var(--font);
}

.trump-comment-builder textarea {
  resize: vertical;
  min-height: 82px;
}

.trump-comment-builder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trump-comment-builder-actions em {
  flex: 1 1 260px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.trump-monitor-source-field {
  grid-column: span 2;
}

.trump-contract-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}

.trump-disclosure-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}

.trump-monitor-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.trump-monitor-confirm input {
  width: auto;
  min-width: auto;
}

.trump-public-import textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 12px/1.5 var(--mono);
}

.trump-import-guide {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.78);
}

.trump-import-guide strong,
.trump-import-guide p,
.trump-import-guide li,
.trump-import-guide pre {
  overflow-wrap: anywhere;
}

.trump-import-guide strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.trump-import-guide p,
.trump-import-guide li {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.trump-import-guide ul {
  margin: 0;
  padding-left: 18px;
}

.trump-import-guide pre {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 11px/1.45 var(--mono);
  white-space: pre-wrap;
}

.trump-import-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.78);
}

.trump-import-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.trump-import-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.trump-import-controls em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.trump-import-preview {
  display: grid;
  gap: 8px;
}

.trump-import-preview article {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.trump-import-preview article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trump-import-preview strong {
  color: var(--ink);
  font-size: 12px;
}

.trump-import-preview span,
.trump-import-preview p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.x-api-run-control {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.x-api-run-control .spend-confirm,
.x-api-run-plan {
  min-height: 54px;
  margin: 0;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.78);
}

.x-api-run-control .spend-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.x-api-run-plan {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.x-api-run-plan strong {
  color: var(--ink);
  font-weight: 600;
}

.x-api-run-plan.blocked {
  background: var(--danger-soft);
  color: var(--danger);
}

.x-api-run-plan.ready {
  background: var(--good-soft);
  color: var(--good);
}

.x-api-backfill-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.x-api-backfill-plan > div,
.x-api-backfill-plan > button {
  background: rgba(255, 255, 255, 0.78);
}

.x-api-backfill-plan > div:first-child {
  padding: 13px 14px;
}

.x-api-backfill-plan span,
.x-api-backfill-plan em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.x-api-backfill-plan strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.x-api-backfill-plan > button {
  min-width: 190px;
  margin: 12px;
}

.x-api-backfill-batches {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
}

.x-api-backfill-batches article {
  flex: 1 1 180px;
  min-width: 0;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.78);
}

.x-api-backfill-batches article:first-child {
  background: var(--accent-soft);
}

.x-api-backfill-batches span,
.x-api-backfill-batches em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.x-api-backfill-batches strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 13px;
}

.realtime-readiness {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.realtime-readiness-copy,
.realtime-gate-grid article {
  min-width: 0;
  background: rgba(255, 255, 255, 0.82);
}

.realtime-readiness-copy {
  padding: 16px;
}

.realtime-readiness h3 {
  margin: 5px 0 7px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.realtime-readiness p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.realtime-gate-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}

.realtime-gate-grid article {
  min-height: 118px;
  padding: 13px 14px;
}

.realtime-gate-grid article.ready,
.realtime-gate-grid article.running {
  background: var(--good-soft);
}

.realtime-gate-grid article.partial {
  background: var(--warning-soft);
}

.realtime-gate-grid article.guarded {
  background: rgba(232, 238, 246, 0.9);
}

.realtime-gate-grid article.blocked,
.realtime-gate-grid article.error {
  background: var(--danger-soft);
}

.realtime-gate-grid span,
.realtime-gate-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.realtime-gate-grid strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.coverage-panel h2,
.watchlist-panel h2 {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.coverage-panel p,
.watchlist-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.coverage-panel p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-coverage-panel {
  order: 120;
  margin-bottom: 12px;
  overflow: hidden;
}

.price-coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.price-coverage-grid article,
.price-coverage-list article {
  min-width: 0;
  background: rgba(255, 255, 255, 0.78);
}

.price-coverage-grid article {
  min-height: 94px;
  padding: 13px 14px;
}

.price-coverage-grid article.ready,
.price-coverage-list article.priced {
  background: var(--good-soft);
}

.price-coverage-grid article.partial,
.price-coverage-list article.needs_backfill {
  background: var(--warning-soft);
}

.price-coverage-grid article.blocked,
.price-coverage-list article.provider_blocked,
.price-coverage-list article.mapping_blocked {
  background: var(--danger-soft);
}

.price-coverage-grid span,
.price-coverage-grid em,
.price-coverage-list span,
.price-coverage-list em,
.price-coverage-list p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.price-coverage-grid strong,
.price-coverage-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.price-coverage-grid strong {
  margin: 7px 0 5px;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
}

.price-coverage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.price-coverage-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  min-height: 118px;
  padding: 13px 14px;
}

.price-coverage-list article > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-2);
}

.price-coverage-list button {
  align-self: start;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.coverage-meter {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.coverage-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.08);
}

.coverage-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--event));
}

.coverage-meter strong {
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 600;
}

.coverage-audit-grid,
.coverage-daily-audit {
  grid-column: 1 / -1;
}

.coverage-audit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.coverage-audit-grid article {
  min-width: 0;
  min-height: 50px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
}

.coverage-audit-grid article.ready {
  background: var(--good-soft);
}

.coverage-audit-grid article.partial {
  background: var(--warning-soft);
}

.coverage-audit-grid article.blocked {
  background: var(--danger-soft);
}

.coverage-audit-grid span,
.coverage-audit-grid em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.42;
}

.coverage-audit-grid strong {
  display: block;
  margin: 3px 0 0;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 600;
}

.coverage-audit-grid em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-daily-audit {
  min-width: 0;
  overflow: hidden;
  max-height: 68px;
  padding-top: 0;
}

.coverage-daily-bars {
  display: flex;
  gap: 4px;
  align-items: end;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  contain: paint;
  padding-bottom: 2px;
}

.coverage-daily-bars article {
  display: grid;
  flex: 0 0 30px;
  min-width: 0;
  gap: 4px;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
}

.coverage-day-bar {
  display: flex;
  align-items: end;
  width: 100%;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 24, 40, 0.05);
}

.coverage-day-bar span {
  display: block;
  width: 100%;
  min-height: 5px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--event));
}

.coverage-daily-bars strong {
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.coverage-daily-bars em {
  font-style: normal;
}

.import-panel,
.watchlist-panel,
.deployment-readiness,
.subscription-panel,
.subscriber-ops {
  margin-bottom: 12px;
  padding: 16px;
}

.import-panel {
  order: 130;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 11px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.timeline-panel h2 {
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.import-panel .panel-head,
.watchlist-panel .panel-head,
.subscription-panel .panel-head,
.subscriber-ops .panel-head {
  padding: 0 0 14px;
}

.import-form,
.subscriber-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 160px auto;
  gap: 10px;
  align-items: end;
}

.data-intake-path-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.data-intake-path-board article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  min-width: 0;
  min-height: 108px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.data-intake-path-board article.ready {
  border-color: rgba(70, 110, 150, 0.24);
  background: var(--good-soft);
}

.data-intake-path-board article.partial {
  border-color: rgba(183, 121, 31, 0.26);
  background: var(--warning-soft);
}

.data-intake-path-board article.blocked {
  border-color: rgba(199, 58, 82, 0.22);
  background: var(--danger-soft);
}

.data-intake-path-board span,
.data-intake-path-board small,
.data-intake-path-board em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.data-intake-path-board strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  font-weight: 600;
}

.data-intake-path-board em {
  grid-column: 1 / -1;
}

.data-intake-path-board button {
  align-self: start;
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.import-form label,
.subscriber-form label,
.curl-paste-box label,
.alert-tuning label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.import-form input[type="text"],
.import-form input[type="number"],
.subscriber-form input,
.subscriber-form select,
.alert-tuning input,
.curl-paste-box select,
.curl-paste-box textarea,
.channel-card input[type="email"] {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.subscriber-form {
  margin-top: 12px;
}

.subscriber-portal {
  display: grid;
  gap: 14px;
}

.subscriber-portal-auth {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.subscriber-portal-auth label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.subscriber-portal-auth input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.subscriber-portal-settings {
  display: grid;
  gap: 14px;
}

.subscriber-portal-summary {
  margin-top: 0;
}

.deployment-readiness {
  display: grid;
  gap: 14px;
}

.alpha-next-actions {
  margin-top: -4px;
}

.alpha-next-actions strong {
  overflow-wrap: anywhere;
}

.alpha-demo-route {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.alpha-demo-route-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.alpha-demo-route-shell.local_guided_demo,
.alpha-demo-route-shell.private_self_serve_alpha {
  border-color: rgba(111, 155, 206, 0.18);
  background: rgba(246, 249, 253, 0.88);
}

.alpha-demo-route-shell.not_ready {
  background: var(--danger-soft);
}

.alpha-demo-route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.alpha-demo-route-head strong,
.alpha-demo-route-primary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.alpha-demo-route-head p,
.alpha-demo-route-section p,
.alpha-demo-route-blockers p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.alpha-demo-route-head em {
  max-width: 150px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: center;
  text-transform: capitalize;
}

.alpha-demo-route-status,
.alpha-demo-route-primary span,
.alpha-demo-route-section span,
.alpha-demo-route-blockers span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.alpha-demo-route-primary {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.alpha-demo-route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.alpha-demo-route-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.alpha-demo-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.alpha-demo-route-section,
.alpha-demo-route-blockers {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.alpha-demo-route-section.ready {
  background: var(--good-soft);
}

.alpha-demo-route-section.blocked {
  background: var(--danger-soft);
}

.alpha-demo-route-section.local {
  background: rgba(232, 238, 246, 0.8);
}

.alpha-demo-route-section ul,
.alpha-demo-route-blockers ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.alpha-demo-route-section li,
.alpha-demo-route-blockers li {
  overflow-wrap: anywhere;
}

.alpha-demo-route-section code {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.deployment-readiness-summary {
  margin-top: 0;
}

.deployment-gate-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.deployment-gate-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.78);
}

.deployment-gate-list article.ready,
.deployment-gate-list article.running {
  background: var(--good-soft);
}

.deployment-gate-list article.local {
  background: rgba(232, 238, 246, 0.8);
}

.deployment-gate-list article.partial {
  background: var(--warning-soft);
}

.deployment-gate-list article.blocked,
.deployment-gate-list article.error {
  background: var(--danger-soft);
}

.deployment-gate-list span,
.deployment-gate-list em,
.deployment-gate-list p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.deployment-gate-list strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.deployment-gate-list em {
  justify-self: end;
  max-width: 120px;
  text-align: right;
}

.subscriber-list {
  display: grid;
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.subscriber-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(170px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.subscriber-row.muted {
  grid-template-columns: 1fr;
}

.subscriber-row strong,
.subscriber-row span {
  display: block;
  min-width: 0;
}

.subscriber-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-row span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.curl-paste-box textarea {
  min-height: 92px;
  max-height: 190px;
  padding: 12px;
  resize: vertical;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.import-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.import-summary-grid article,
.import-preview-list article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.import-summary-grid article {
  padding: 10px;
}

.import-summary-grid span,
.import-summary-grid em,
.import-preview-list time,
.import-preview-list p,
.import-safe-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.import-summary-grid strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 600;
}

.import-symbol-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.import-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.import-file-preview span,
.import-symbol-preview span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-2);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.import-file-preview span.ready {
  border-color: rgba(70, 110, 150, 0.24);
  background: var(--good-soft);
}

.import-file-preview span.blocked {
  border-color: rgba(199, 58, 82, 0.22);
  background: var(--danger-soft);
}

.import-preview-list {
  display: grid;
  gap: 8px;
}

.import-preview-list article {
  padding: 10px;
}

.import-preview-list strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.import-preview-list p,
.import-safe-note {
  margin: 0;
}

.import-safe-note {
  margin-top: 10px;
}

.curl-backfill {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.no-credit-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.no-credit-guide article,
.curl-file-matrix article,
.plan,
.scope-grid label,
.bound-channel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 249, 252, 0.76);
}

.no-credit-guide article {
  min-height: 82px;
  padding: 11px;
}

.no-credit-guide strong,
.curl-file-matrix strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.no-credit-guide span,
.curl-file-matrix em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.curl-file-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.curl-capture-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.curl-capture-slots article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  min-width: 0;
  min-height: 146px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.curl-capture-slots article.ready {
  border-color: rgba(70, 110, 150, 0.28);
  background: var(--good-soft);
}

.curl-capture-slots article.invalid {
  border-color: rgba(183, 121, 31, 0.3);
  background: var(--warning-soft);
}

.curl-capture-slots article.missing {
  border-color: rgba(199, 58, 82, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.curl-capture-slots article:hover {
  border-color: rgba(111, 155, 206, 0.28);
}

.curl-capture-slots span,
.curl-capture-slots em,
.curl-capture-slots p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.curl-capture-slots strong {
  display: block;
  margin: 5px 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 600;
}

.curl-capture-slots small {
  align-self: start;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.curl-capture-slots p {
  grid-column: 1 / -1;
  margin: 0;
}

.curl-slot-markers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.curl-slot-markers b {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 600;
}

.curl-file-matrix article {
  min-height: 74px;
  padding: 11px;
}

.curl-file-matrix article.ready {
  border-color: rgba(70, 110, 150, 0.28);
  background: var(--good-soft);
}

.curl-file-matrix article.invalid {
  border-color: rgba(183, 121, 31, 0.3);
  background: var(--warning-soft);
}

.curl-file-matrix article.missing {
  border-color: rgba(199, 58, 82, 0.24);
  background: var(--danger-soft);
}

.curl-file-matrix span {
  display: block;
  margin: 5px 0;
  color: var(--ink-2);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.no-credit-statusbar {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 249, 252, 0.72);
}

.no-credit-readiness {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.no-credit-readiness.ready {
  border: 1px solid rgba(70, 110, 150, 0.24);
  background: var(--good-soft);
  color: var(--good);
}

.no-credit-readiness.partial {
  border: 1px solid rgba(183, 121, 31, 0.26);
  background: var(--warning-soft);
  color: var(--warning);
}

.no-credit-readiness.blocked {
  border: 1px solid rgba(199, 58, 82, 0.22);
  background: var(--danger-soft);
  color: var(--danger);
}

.no-credit-readiness span {
  color: inherit;
  opacity: 0.72;
}

.no-credit-statusbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.collector-readiness-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.collector-readiness-board article {
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.collector-readiness-board article.ready {
  border-color: rgba(90, 140, 100, 0.2);
}

.collector-readiness-board article.partial {
  border-color: rgba(214, 162, 63, 0.24);
  background: var(--warning-soft);
}

.collector-readiness-board article.blocked {
  border-color: rgba(180, 35, 66, 0.2);
  background: var(--danger-soft);
}

.collector-readiness-board span,
.collector-readiness-board em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.collector-readiness-board strong {
  display: block;
  margin: 8px 0 6px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curl-action-panel {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.curl-action-plan {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.curl-action-plan article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 142px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.curl-action-plan article.ready {
  border-color: rgba(70, 110, 150, 0.22);
  background: var(--good-soft);
}

.curl-action-plan article.partial {
  border-color: rgba(183, 121, 31, 0.25);
  background: var(--warning-soft);
}

.curl-action-plan article.blocked {
  border-color: rgba(199, 58, 82, 0.22);
  background: var(--danger-soft);
}

.curl-action-plan span,
.curl-action-plan em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.curl-action-plan strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.curl-action-plan button {
  margin-top: auto;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.curl-capture-help {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-2);
  font-size: 13px;
}

.curl-capture-help summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.curl-capture-help ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.curl-backfill .import-form {
  grid-template-columns: minmax(210px, 1fr) 130px 130px 130px auto auto auto;
}

.curl-paste-box {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.curl-paste-preview,
.import-result,
.alert-preview,
.alert-result {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 249, 252, 0.78);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.curl-paste-preview {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.curl-paste-preview.ready,
.alert-result {
  border-color: rgba(70, 110, 150, 0.22);
  background: var(--good-soft);
}

.delivery-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.delivery-status-grid article,
.delivery-confirm {
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.delivery-status-grid strong,
.delivery-status-grid span {
  display: block;
}

.delivery-status-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.curl-paste-preview.invalid {
  border-color: rgba(199, 58, 82, 0.24);
  background: var(--danger-soft);
}

.curl-paste-preview strong,
.import-result strong {
  color: var(--ink);
}

.curl-paste-preview span,
.curl-paste-preview small {
  color: var(--muted);
}

.curl-paste-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.curl-paste-preview .curl-preview-items {
  display: grid;
  gap: 8px;
}

.curl-preview-items article {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.curl-preview-items article div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.curl-paste-preview em {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.curl-save-confirm {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(70, 110, 150, 0.18);
  border-radius: var(--radius);
  background: var(--good-soft);
  color: var(--good);
  font-size: 12px;
  font-weight: 600;
}

.curl-save-confirm.muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.watchlist-panel {
  order: 35;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(130px, auto);
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 8px;
  padding: 10px 12px;
}

.watchlist-panel p {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-actions .inline-check,
.import-form .inline-check,
.channel-card label,
.alert-tuning .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.watchlist-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.watchlist-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px 0 12px;
  border: 1px solid rgba(70, 110, 150, 0.22);
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.watchlist-chip.empty {
  border-color: var(--line);
  background: rgba(247, 249, 252, 0.74);
  color: var(--muted);
  font-weight: 600;
}

.watchlist-chip button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 999px;
  background: rgba(70, 110, 150, 0.12);
}

.signal-queue {
  order: 60;
  overflow: hidden;
  margin-bottom: 12px;
}

.signal-queue-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.signal-queue-controls button,
.signal-queue-controls > span,
.signal-queue-sort {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.signal-queue-sort {
  gap: 6px;
  padding-right: 4px;
}

.signal-queue-sort span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.signal-queue-sort select {
  min-height: 24px;
  max-width: 116px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  outline: none;
}

.signal-queue-controls button.active {
  border-color: rgba(111, 155, 206, 0.25);
  background: var(--accent-soft);
  color: var(--accent);
}

.signal-queue-controls > span {
  color: var(--muted);
  font-weight: 500;
}

.signal-queue-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.signal-queue-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 152px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.signal-queue-card.watchlist {
  background: var(--good-soft);
}

.signal-queue-card.priced {
  background: rgba(255, 255, 255, 0.82);
}

.signal-queue-card.muted {
  background: var(--danger-soft);
}

.signal-queue-card.needs-price {
  background: var(--warning-soft);
}

.signal-queue-card.active {
  box-shadow: inset 0 0 0 2px rgba(111, 155, 206, 0.28);
}

.signal-queue-top,
.signal-queue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.signal-queue-top span,
.signal-queue-meta span,
.signal-queue-meta small {
  color: var(--muted);
  font-size: 12px;
}

.signal-queue-top strong {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.signal-queue-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-queue-tickers button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.signal-queue-meta {
  align-self: end;
  flex-wrap: wrap;
}

.signal-queue-meta em {
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.signal-queue-source-preview {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.signal-queue-source-preview span,
.signal-queue-source-preview em {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.signal-queue-source-preview em {
  font-weight: 520;
  text-transform: none;
}

.signal-queue-source-preview p {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.signal-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.signal-queue-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.signal-queue-actions button:hover:not(:disabled) {
  background: var(--accent-soft);
}

.signal-queue-actions.public button {
  background: transparent;
}

.signal-queue-result {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.signal-queue-result.preview {
  border-color: rgba(111, 155, 206, 0.18);
  background: var(--accent-soft);
}

.signal-queue-result.ready {
  border-color: rgba(70, 110, 150, 0.22);
  background: var(--good-soft);
}

.signal-queue-result.blocked {
  border-color: rgba(199, 58, 82, 0.22);
  background: var(--danger-soft);
}

.signal-queue-empty {
  grid-column: 1 / -1;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.ledger-grid {
  order: 40;
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.symbol-panel,
.timeline-panel,
.opinion-tape,
.activity-tape {
  overflow: hidden;
}

.symbol-panel {
  min-height: 590px;
}

.symbol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 10px;
}

.symbol-head strong {
  display: block;
  margin-top: 4px;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.symbol-search {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.symbol-filters {
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--line);
}

.ticker-strip {
  max-height: 516px;
  overflow: auto;
  padding: 5px 7px 10px;
}

.ticker-chip {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
}

.ticker-chip:hover,
.ticker-chip.active {
  background: var(--accent-soft);
}

.ticker-chip.active {
  box-shadow: inset 2px 0 0 var(--accent);
  border-bottom-color: transparent;
}

.ticker-chip .symbol {
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.ticker-chip .meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
}

.ticker-chip .price-pill {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.ticker-empty {
  padding: 20px;
  color: var(--muted);
}

.chart-pills {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chart-wrap {
  position: relative;
  min-height: 420px;
  padding: 0 12px;
}

#priceChart {
  width: 100%;
  height: 420px;
  stroke: none;
}

#priceChart text {
  stroke: none;
  paint-order: fill;
  font-family: "HarmonyOS Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
  font-weight: 500;
  text-shadow: none;
}

.chart-empty {
  display: grid;
  place-content: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  color: var(--muted);
  text-align: center;
}

.chart-empty strong {
  color: var(--ink);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
}

.chart-empty span {
  max-width: 520px;
  line-height: 1.5;
}

.axis {
  stroke: rgba(8, 7, 5, 0.065);
  stroke-width: 1;
}

.line {
  stroke: var(--chart);
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}

.area {
  fill: var(--chart-soft);
  stroke: none;
}

.mention-dot {
  fill: var(--event);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.25;
}

.mention-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.price-label {
  fill: var(--event);
  font-size: 11px;
  font-weight: 600;
}

.axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.chart-inset-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.chart-inset-price {
  fill: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.chart-inset-change {
  font-size: 11px;
  font-weight: 600;
}

.chart-point {
  cursor: pointer;
  outline: none;
}

.chart-point:focus .mention-dot {
  stroke: var(--accent);
}

.chart-tooltip {
  position: absolute;
  z-index: 8;
  width: min(380px, calc(100vw - 80px));
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  backdrop-filter: blur(14px);
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.chart-tooltip .tooltip-price {
  margin-bottom: 11px;
  color: #9df0d2;
  font-weight: 700;
}

.chart-tooltip .tooltip-link {
  display: inline-flex;
  margin-bottom: 8px;
  color: #9bd1ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.chart-tooltip p {
  margin: 10px 0 0;
  color: rgba(248, 250, 252, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.ticker-dossier {
  border-top: 1px solid var(--line);
}

.dossier-summary {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr 1.4fr 1.05fr 0.8fr;
  gap: 1px;
  background: var(--line);
}

.dossier-summary > div {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.74);
}

.dossier-summary span,
.dossier-post time {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.dossier-summary strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.dossier-post {
  min-width: 0;
  min-height: 116px;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
}

.dossier-post:last-child {
  border-right: 0;
}

.dossier-post.active {
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.dossier-post strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.dossier-post p {
  max-height: 3.3em;
  margin: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.dossier-post a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.dossier-empty {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.related-strip {
  flex-wrap: wrap;
  padding: 12px 16px 16px;
}

.related-chip {
  color: var(--ink);
}

.signal-detail {
  order: 50;
  margin-top: 12px;
  overflow: hidden;
}

.signal-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.signal-detail-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}

.signal-detail-head h2 span {
  margin-left: 8px;
  color: var(--muted);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 500;
}

.signal-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.signal-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 1px;
  background: var(--line);
}

.signal-text-card,
.signal-side {
  background: rgba(255, 255, 255, 0.78);
}

.signal-text-card {
  min-width: 0;
  padding: 16px;
}

.signal-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.signal-meta-line span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.signal-text-card p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.signal-side {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.signal-side section {
  min-width: 0;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.78);
}

.signal-side h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.signal-price-grid {
  display: grid;
  gap: 8px;
}

.signal-price-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 249, 252, 0.78);
}

.signal-price-grid span,
.signal-price-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.signal-price-grid strong {
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.signal-trust-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.signal-trust-summary article,
.signal-why-summary,
.signal-why-list article,
.signal-trust-grid article,
.signal-trust-empty {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 249, 252, 0.78);
}

.signal-trust-summary span,
.signal-trust-summary em,
.signal-why-summary span,
.signal-why-summary em,
.signal-why-list span,
.signal-why-list em,
.signal-trust-grid span,
.signal-trust-grid em,
.signal-trust-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.signal-trust-summary strong,
.signal-why-summary strong,
.signal-why-list strong,
.signal-trust-grid strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.signal-why-summary {
  margin-bottom: 8px;
  border-color: rgba(111, 155, 206, 0.22);
  background: var(--accent-soft);
}

.signal-why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.signal-why-list article {
  box-shadow: inset 2px 0 0 var(--line);
}

.signal-why-list article.why-positive {
  box-shadow: inset 2px 0 0 var(--good);
}

.signal-why-list article.why-caution,
.signal-why-list article.why-missing {
  box-shadow: inset 2px 0 0 var(--warning);
}

.signal-trust-grid {
  display: grid;
  gap: 8px;
}

.signal-alert {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 249, 252, 0.78);
}

.signal-alert.will-push {
  border-color: rgba(90, 140, 100, 0.22);
  background: var(--good-soft);
}

.signal-alert.muted {
  border-color: rgba(214, 162, 63, 0.2);
  background: var(--warning-soft);
}

.signal-alert strong {
  font-size: 13px;
  font-weight: 600;
}

.signal-message {
  margin-top: 10px;
}

.signal-telegram-actions {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.signal-telegram-actions .delivery-confirm {
  min-height: 38px;
  margin: 0;
  padding: 0 10px;
  font-size: 12px;
}

.signal-telegram-result {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 249, 252, 0.78);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.signal-telegram-result.preview,
.signal-telegram-result.ready {
  border-color: rgba(90, 140, 100, 0.22);
  background: var(--good-soft);
  color: var(--good);
}

.signal-telegram-result.blocked {
  border-color: rgba(180, 35, 66, 0.2);
  background: var(--danger-soft);
  color: var(--danger);
}

.signal-public-note {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.signal-message summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.signal-empty {
  padding: 16px;
}

.signal-empty h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.signal-empty p {
  margin: 0;
  color: var(--muted);
}

.opinion-tape,
.activity-tape,
.post-archive {
  margin-top: 12px;
}

.post-archive {
  order: 140;
}

.opinion-tape {
  order: 150;
}

.activity-tape {
  order: 160;
}

.post-archive {
  overflow: hidden;
}

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.archive-controls button,
.archive-controls span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.archive-controls span {
  color: var(--muted);
}

.archive-table {
  display: grid;
}

.archive-row {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 150px;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.archive-row.active {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.archive-time strong,
.archive-time span,
.archive-meta span,
.archive-meta a {
  display: block;
}

.archive-time strong {
  font-size: 13px;
  font-weight: 700;
}

.archive-time span,
.archive-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.archive-body {
  min-width: 0;
}

.archive-body p {
  max-height: 4.8em;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.55;
}

.archive-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.archive-ticker,
.archive-empty-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.archive-empty-tag {
  color: var(--muted);
}

.archive-meta {
  text-align: right;
}

.archive-meta a {
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.archive-empty,
.archive-more {
  padding: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.mention-list,
.activity-list {
  display: grid;
  grid-template-columns: 1fr;
}

.mention {
  display: grid;
  gap: 7px;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.mention.active {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.mention-more {
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(247, 249, 252, 0.64);
}

.mention-more strong {
  color: var(--ink);
}

.activity {
  min-height: 108px;
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.activity.error {
  background: var(--danger-soft);
}

.activity-meta {
  justify-content: space-between;
}

.activity-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.activity p {
  margin: 11px 0 0;
  color: var(--ink-2);
  line-height: 1.46;
}

.mention-meta {
  justify-content: space-between;
}

.mention-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  max-height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mention p {
  margin: 0;
  max-height: 3.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.mention-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 7px 9px;
  border: 1px solid rgba(70, 110, 150, 0.18);
  border-radius: var(--radius);
  background: var(--good-soft);
}

.translation-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.86);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.mention-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mention-price strong {
  font-size: 14px;
}

.mention-price em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.chips {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tag {
  min-height: 25px;
  padding: 0 8px;
  color: var(--accent);
}

.mention a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.gain {
  color: var(--good);
}

.loss {
  color: var(--danger);
}

.warn {
  color: var(--warning);
}

.hidden {
  display: none !important;
}

.control-plane {
  min-height: calc(100vh - 96px);
  overflow: hidden;
}

.control-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.control-head h1 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.round-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 24px;
  background: rgba(247, 249, 252, 0.84);
}

.control-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.control-menu {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.control-menu button {
  display: block;
  width: 100%;
  min-height: 96px;
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
}

.control-menu button.active {
  border-color: rgba(111, 155, 206, 0.24);
  background: var(--accent-soft);
}

.control-menu span,
.channel-card .control-label {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.control-menu strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 18px;
}

.control-content {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.control-card,
.channel-card {
  padding: 16px;
}

.control-card .panel-head {
  padding: 0 0 12px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scope-grid label {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 3px 12px;
  min-height: 80px;
  padding: 13px;
}

.scope-grid input {
  grid-row: span 2;
}

.scope-grid span {
  color: var(--muted);
  font-size: 13px;
}

.alert-tuning {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.alert-preview-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 14px;
}

.alert-preview {
  margin-top: 0;
}

.trigger-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.trigger-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.message-preview {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  white-space: pre-wrap;
}

.message-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.alert-candidate-list {
  display: grid;
  gap: 10px;
}

.alert-candidate {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 249, 252, 0.76);
}

.alert-candidate.will-push {
  border-color: rgba(70, 110, 150, 0.24);
  background: var(--good-soft);
}

.alert-candidate.muted {
  border-color: rgba(16, 24, 40, 0.1);
}

.alert-candidate-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.alert-candidate-head span,
.alert-candidate small {
  color: var(--muted);
  font-size: 12px;
}

.alert-candidate p {
  max-height: 4.8em;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.5;
}

.alert-candidate details {
  margin-top: 2px;
}

.alert-candidate summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.channel-card {
  position: relative;
}

.badge-on,
.badge-off {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-on {
  color: var(--good);
  background: var(--good-soft);
}

.badge-off {
  color: var(--danger);
  background: var(--danger-soft);
}

.channel-card h2 {
  margin: 8px 0 16px;
  font-size: 18px;
}

.bound-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  margin-bottom: 12px;
  padding: 14px;
}

.bound-channel strong {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--control);
  font-size: 18px;
}

.channel-card input[type="email"] {
  height: 46px;
  margin-top: 8px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan {
  padding: 20px;
}

.plan.highlighted {
  border-color: rgba(111, 155, 206, 0.24);
  background: var(--accent-soft);
}

.price {
  margin: 12px 0;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  font-weight: 600;
}

.price span {
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
}

button:hover:not(:disabled) {
  border-color: rgba(111, 155, 206, 0.26);
}

.secondary-button:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.category-strip button:hover,
.symbol-filters button:hover,
.related-chip:hover {
  background: var(--accent-soft);
}

.primary-button:hover:not(:disabled),
.config-button:hover:not(:disabled) {
  background: #242936;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(111, 155, 206, 0.34);
  outline-offset: 2px;
}

@media (max-width: 1200px) {
  .nav-bar {
    grid-template-columns: 1fr auto;
  }

  .nav-tabs {
    justify-self: end;
    max-width: 62vw;
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .top-search {
    width: 100%;
    margin-bottom: 10px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-ledger,
  .ledger-grid,
  .control-layout,
  .channel-grid,
  .plans,
  .platform-grid,
  .home-source-registry,
  .kol-tracker-digest,
  .kol-tracker-grid,
  .home-focus-board,
  .source-snapshot-board,
  .module-list-grid,
  .heatmap-shell,
  .portfolio-workbench,
  .portfolio-visual-layout,
  .research-flow,
  .signal-center-workbench,
  .research-model-summary,
  .research-live-graph,
  .alpha-demo-route-grid,
  .portfolio-share-route-grid,
  .source-review-route-grid,
  .source-review-route-shell.compact,
  .source-review-route-links {
    grid-template-columns: 1fr;
  }

  .home-source-registry .source-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kol-tracker-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .portfolio-thesis-nav {
    order: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-thesis-main {
    order: 1;
  }

  .portfolio-thesis-grid,
  .portfolio-thesis-layout,
  .portfolio-technical-panel,
  .portfolio-summary-band,
  .portfolio-summary-grid,
  .portfolio-share-route-grid,
  .portfolio-share-summary,
  .portfolio-share-layout,
  .portfolio-attention-grid,
  .portfolio-allocation-grid,
  .portfolio-map,
  .portfolio-visual-groups,
  .portfolio-broker-lane,
  .portfolio-broker-workbench,
  .portfolio-broker-sync-form,
  .portfolio-broker-sync-result,
  .portfolio-broker-sync-result dl,
  .portfolio-broker-grid,
  .portfolio-holdings-summary,
  .portfolio-theme-summary,
  .portfolio-comparable-grid {
    grid-template-columns: 1fr;
  }

  .realtime-readiness {
    grid-template-columns: 1fr;
  }

  .foundation-readiness {
    align-items: stretch;
    flex-direction: column;
  }

  .source-workbench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-snapshot-rail {
    min-height: 0;
  }

  .portfolio-map article {
    grid-column: span 1;
  }

  .portfolio-exposure-strip {
    flex-wrap: wrap;
  }

  .portfolio-exposure-strip article {
    flex-basis: min(180px, 100%);
  }

  .source-review-route-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trump-source-boundary-details > summary,
  .trump-source-boundary-details > div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .trump-source-boundary-details small {
    justify-self: start;
  }

  .trump-tracker-layout {
    grid-template-columns: 1fr;
  }

  .trump-review-surface-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trump-workbench-band {
    grid-template-columns: 1fr;
  }

  .trump-radar-digest,
  .trump-source-brief,
  .trump-source-brief-head,
  .trump-source-brief-cards,
  .trump-source-brief-next,
  .trump-market-overview,
  .trump-market-overview-head,
  .trump-market-overview-empty,
  .trump-market-overview-lanes,
  .trump-market-overview-modules,
  .trump-evidence-intake-route,
  .trump-evidence-intake-lanes,
  .trump-resonance-module-deck,
  .trump-resonance-brief,
  .trump-resonance-lines,
  .trump-evidence-matrix,
  .trump-resonance-groups {
    grid-template-columns: 1fr;
  }

  .trump-radar-digest-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trump-radar-digest-lanes {
    grid-template-columns: 1fr;
  }

  .trump-source-brief-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trump-market-overview-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trump-market-overview-lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trump-market-overview-lanes button {
    min-height: 78px;
  }

  .trump-source-brief-head {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trump-market-overview-lanes em,
  .trump-market-overview-lanes small,
  .trump-market-overview-lanes div {
    display: none;
  }

  .trump-evidence-lanes {
    grid-template-columns: 1fr;
  }

  .trump-evidence-gate {
    grid-template-columns: 1fr;
  }

  .trump-comment-builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trump-theme-map {
    grid-template-columns: 1fr;
  }

  .data-intake-path-board {
    grid-template-columns: 1fr;
  }

  .realtime-gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foundation-gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-coverage-grid,
  .price-coverage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curl-action-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .symbol-panel {
    min-height: 0;
  }

  .source-registry {
    align-items: stretch;
    flex-direction: column;
  }

  .source-selector {
    justify-content: flex-start;
  }

  .source-selector button {
    min-width: min(150px, 100%);
  }

  .ticker-strip {
    max-height: 420px;
  }

  .trump-monitor-source-field {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 1780px);
    padding: 14px 0 24px;
  }

  .nav-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 14px;
  }

  .app-brand,
  .nav-tabs,
  .top-actions,
  .top-search {
    justify-self: stretch;
  }

  .top-actions {
    width: 100%;
  }

  .nav-tabs {
    width: 100%;
    max-width: 100%;
  }

  .nav-tabs .nav-item {
    flex: 0 0 auto;
  }

  .home-drilldown > summary {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 0;
    padding: 12px 52px 12px 14px;
  }

  .home-drilldown > summary strong {
    font-size: 13px;
  }

  .home-source-registry {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .home-source-registry .source-selector,
  .kol-leaderboard-list,
  .source-review-route-details > summary {
    grid-template-columns: 1fr;
  }

  .kol-tracker-digest {
    padding: 16px;
  }

  .kol-tracker-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .kol-tracker-head strong {
    font-size: 22px;
  }

  .kol-tracker-stats {
    justify-content: flex-start;
  }

  .kol-section-head {
    grid-template-columns: 1fr;
  }

  .kol-leader-title {
    grid-template-columns: 1fr;
  }

  .kol-leader-title em {
    max-width: none;
    text-align: left;
  }

  .kol-consensus-card {
    grid-template-columns: 1fr;
  }

  .kol-consensus-card em {
    justify-self: start;
  }

  .kol-consensus-reasons div {
    grid-template-columns: 1fr;
  }

  .collector-panel,
  .panel-head,
  .control-head,
  .alert-preview-box,
  .command-head,
  .module-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .command-head {
    gap: 10px;
    padding: 14px;
  }

  .command-head h1 {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.2;
  }

  .command-head p {
    display: none;
  }

  #commandCenter .command-head .eyebrow,
  #homeIntro {
    display: block;
  }

  #homeIntro {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .home-hero-cta {
    display: inline-flex;
  }

  .hero-ledger {
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .hero-ledger h1 {
    font-size: 17px;
  }

  .research-card {
    width: 100%;
  }

  .metrics-grid,
  .monitor-health-grid,
  .foundation-gate-grid,
  .source-snapshot-board,
  .source-workbench-grid,
  .source-review-route-head,
  .source-review-route-shell.compact,
  .source-review-route-links,
  .source-review-route-grid,
  .trump-alert-actions,
  .trump-comment-builder-grid,
  .trump-digest-board,
  .trump-impact-formula,
  .trump-source-brief,
  .trump-source-brief-head,
  .trump-source-brief-cards,
  .trump-source-brief-next,
  .trump-market-overview,
  .trump-market-overview-head,
  .trump-market-overview-empty,
  .trump-market-overview-lanes,
  .trump-market-overview-modules,
  .trump-radar-digest,
  .trump-evidence-intake-route,
  .trump-evidence-intake-lanes,
  .trump-radar-digest-stats,
  .trump-radar-digest-lanes,
  .trump-resonance-brief,
  .trump-evidence-matrix,
  .trump-evidence-lanes,
	  .trump-review-surface-rail,
	  .trump-resonance-module-deck,
	  .trump-resonance-lines,
	  .trump-resonance-groups,
	  .trump-import-controls,
	  .signal-trust-preview,
	  .realtime-gate-grid,
  .price-coverage-grid,
  .price-coverage-list,
  .data-intake-path-board,
  .import-summary-grid,
  .coverage-audit-grid,
  .coverage-panel,
  .signal-queue-list,
  .watchlist-panel,
  .no-credit-guide,
  .curl-capture-slots,
  .curl-action-plan,
  .curl-file-matrix,
  .no-credit-statusbar,
  .import-form,
  .subscriber-form,
  .subscriber-portal-auth,
  .subscriber-row,
  .delivery-flow-list article,
  .curl-backfill .import-form,
  .curl-paste-box,
  .delivery-status-grid,
  .collector-readiness-board,
  .alpha-demo-route-head,
  .alpha-demo-route-grid,
  .portfolio-share-route-head,
  .portfolio-share-route-grid,
  .mention-list,
  .activity-list,
  .scope-grid,
  .alert-tuning,
  .alert-preview-box {
    grid-template-columns: 1fr;
  }

  #sourceSnapshotChart {
    height: 210px;
  }

  .source-snapshot-tickers button {
    grid-template-columns: minmax(68px, 0.44fr) minmax(0, 1fr);
  }

  .source-snapshot-tickers button em {
    grid-column: 1 / -1;
  }

  .trump-radar-digest-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trump-market-overview-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trump-market-overview-lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trump-market-overview-lanes button {
    min-height: 78px;
  }

  .trump-market-overview-lanes em,
  .trump-market-overview-lanes small,
  .trump-market-overview-lanes div {
    display: none;
  }

  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-focus-board {
    grid-template-columns: 1fr;
  }

  .home-focus-board article {
    min-height: 0;
    padding: 12px 14px;
  }

  .home-action-head {
    min-height: 0;
    padding: 12px 14px;
  }

  .home-focus-board article.primary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 126px;
  }

  .home-focus-board article:not(.primary) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
  }

  .home-focus-board article:not(.primary) span,
  .home-focus-board article:not(.primary) p {
    display: none;
  }

  .home-focus-board article:not(.primary) button {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  .home-focus-board strong {
    font-size: 15px;
    line-height: 1.25;
  }

  .command-metrics article {
    min-height: 66px;
    padding: 10px;
  }

  .command-metrics strong {
    margin: 4px 0 0;
    font-size: 16px;
  }

  .command-metrics em {
    display: none;
  }

  .portfolio-thesis-grid,
  body.admin-mode .portfolio-thesis-grid,
  .portfolio-thesis-layout,
  .portfolio-summary-grid,
  .portfolio-share-route-grid,
  .portfolio-share-summary,
  .portfolio-share-layout,
  .portfolio-attention-grid,
  .portfolio-visual-layout,
  .portfolio-map,
  .portfolio-visual-metrics,
  .portfolio-visual-groups,
  .portfolio-broker-lane,
  .portfolio-broker-sync-form,
  .portfolio-broker-sync-result,
  .portfolio-broker-sync-result dl,
  .portfolio-broker-grid,
  .portfolio-holdings-summary,
  .portfolio-theme-summary,
  .portfolio-comparable-grid {
    grid-template-columns: 1fr;
  }

  .dossier-summary,
  .dossier-feed,
  .signal-detail-grid {
    grid-template-columns: 1fr;
  }

  .signal-detail-head {
    flex-direction: column;
  }

  .signal-actions {
    justify-content: flex-start;
  }

  .signal-price-grid article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .signal-trust-summary {
    grid-template-columns: 1fr;
  }

  .signal-trust-preview dl,
  .signal-trust-preview.compact dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-telegram-actions {
    grid-template-columns: 1fr;
  }

  .dossier-post {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .coverage-meter {
    justify-items: stretch;
  }

  .watchlist-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .watchlist-chips {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .alpha-demo-route-head em {
    justify-self: start;
    max-width: 100%;
  }

  .ticker-chip {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .ticker-chip .price-pill {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }

  .chart-wrap {
    min-height: 260px;
    padding: 8px 12px 16px;
  }

  #priceChart {
    height: 260px;
    aspect-ratio: auto;
  }

  .panel-head h2,
  .timeline-panel h2 {
    font-size: 18px;
  }

  .opinion-tape .panel-head h2,
  .activity-tape .panel-head h2,
  .channel-card h2 {
    font-size: 18px;
    line-height: 1.15;
  }

  .mention-price {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .archive-row {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    display: flex;
    gap: 6px;
    margin: 6px 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .metrics-grid::-webkit-scrollbar {
    display: none;
  }

  .metrics-grid .metric {
    flex: 0 0 142px;
    min-height: 42px;
    padding: 7px 9px;
    scroll-snap-align: start;
  }

  .metrics-grid .metric-label {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metrics-grid .metric-value {
    font-size: 13px;
  }

  .metrics-grid .metric-note {
    display: none;
  }

  .archive-meta {
    text-align: left;
  }

  .platform-module p,
  .module-list-grid p {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .kol-tracker-head strong {
    font-size: 20px;
  }

  .kol-leader-card {
    padding: 18px;
  }

  .kol-leader-metrics {
    gap: 8px;
  }

  .kol-leader-metrics b {
    font-size: 24px;
  }

  .portfolio-map article {
    grid-column: span 1;
    min-height: 84px;
  }

  .home-focus-board strong,
  .portfolio-map span {
    font-size: 16px;
  }

  .portfolio-visual-groups li {
    grid-template-columns: 1fr auto;
  }

  .portfolio-visual-groups li span {
    grid-column: 1 / -1;
  }

  .trump-market-overview-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trump-tracker-panel > .panel-head {
    gap: 8px;
    padding: 12px;
  }

  .trump-tracker-panel > .panel-head .secondary-button {
    display: none;
  }

  .trump-tracker-panel > .panel-head p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .trump-source-brief-head,
  .trump-market-overview-head {
    padding: 10px 12px;
  }

  .trump-source-brief-head p,
  .trump-source-brief-head em,
  .trump-market-overview-head em,
  .trump-market-overview-sources {
    display: none;
  }

  .trump-source-brief-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trump-source-brief-cards button {
    gap: 3px;
    min-height: 62px;
    padding: 8px 7px;
  }

  .trump-source-brief-cards p,
  .trump-source-brief-cards em {
    display: none;
  }

  .trump-market-overview-modules button {
    gap: 4px;
    min-height: 66px;
    padding: 9px;
  }

  .trump-market-overview-lanes button {
    gap: 3px;
    min-height: 56px;
    padding: 8px 7px;
  }

  .trump-market-overview-lanes p {
    display: none;
  }

  .trump-source-boundary-details > summary,
  .trump-source-boundary-details > div {
    grid-template-columns: 1fr;
    padding: 8px 10px;
  }

  .trump-workbench-nav {
    gap: 5px;
    padding: 8px 10px;
  }

  .trump-workbench-nav button {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }
}

/* ==========================================================================
   Dark frame theme
   Unifies every view under one visual language: a dark terminal frame
   (page background, top navigation, grid texture) holding light content
   cards. Panels keep their light token-based surfaces, matching the
   KOL digest's dark-section / paper-card pattern.
   ========================================================================== */

:root {
  --frame-ink: #e4e7ec;
  --frame-muted: #a8b0bd;
  --frame-line: rgba(255, 255, 255, 0.14);
}

body {
  background: linear-gradient(180deg, #14161c 0%, #0e1014 280px, #0c0e12 100%);
}

.home-research-hero {
  border-radius: var(--radius-lg);
  background: #161a22;
}

.home-research-hero-card {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  color: #f8fafc;
}

.home-research-hero-card:hover {
  border-color: rgba(151, 189, 234, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.home-research-hero-card strong { color: #f8fafc; }
.home-research-hero-card p { color: rgba(228, 231, 236, 0.72); }
.home-research-hero-card .research-eyebrow { color: rgba(151, 189, 234, 0.84); }

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 32px 32px;
}

.nav-bar {
  border-bottom-color: var(--frame-line);
  background: rgba(14, 15, 19, 0.88);
}

.app-brand strong {
  color: var(--frame-ink);
}

.app-brand em {
  color: var(--frame-muted);
}

.brand-mark {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(111, 155, 206, 0.22);
}

.nav-tabs {
  border-color: var(--frame-line);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tabs .nav-item {
  color: var(--frame-muted);
}

.nav-tabs .nav-item.active {
  color: #161a22;
  background: #f4f6f8;
}

.top-search {
  border-color: var(--frame-line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--frame-muted);
}

.top-search input {
  color: var(--frame-ink);
}

.top-search input::placeholder {
  color: var(--frame-muted);
}

.top-search svg {
  stroke: var(--frame-muted);
}

.language-toggle {
  border-color: var(--frame-line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--frame-ink);
}

.language-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.hero-ledger {
  background: var(--surface);
}

/* ==========================================================================
   Trump simple board: posts feed + stock relevance + public holdings.
   Replaces the old multi-module first screen with the three blocks the
   tracker actually answers: what he said, which stocks, what he holds.
   ========================================================================== */

.trump-simple-board {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.trump-simple-posts,
.trump-simple-block {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.trump-simple-side {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.trump-simple-head {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trump-simple-head span {
  color: var(--accent);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trump-simple-head strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.trump-simple-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.trump-post-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.trump-post-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.trump-post-card.empty p {
  color: var(--muted);
}

.trump-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.trump-post-meta time {
  color: var(--muted);
  font: 600 11px/1.2 var(--mono);
}

.trump-post-meta b {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 10.5px/1.3 var(--mono);
}

.trump-post-meta a {
  margin-left: auto;
  color: var(--accent);
  font: 600 11px/1.2 var(--mono);
  text-decoration: none;
}

.trump-relevance-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trump-relevance-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.trump-relevance-list li:first-child {
  border-top: 0;
}

.trump-relevance-list strong {
  color: var(--ink);
  font: 700 13px/1.2 var(--mono);
}

.trump-relevance-list span,
.trump-relevance-list em {
  color: var(--muted);
  font: 11px/1.2 var(--mono);
  font-style: normal;
  white-space: nowrap;
}

.trump-simple-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.trump-holdings-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trump-holdings-sources a {
  color: var(--accent);
  font: 600 11px/1.2 var(--mono);
  text-decoration: none;
}

@media (max-width: 900px) {
  .trump-simple-board {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Deep Research module: four-level drill-down (library, theme, sector,
   deep dive). Editorial body first, mono data bands as accents. ANALYST
   scores render teal; machine signals stay grayscale elsewhere.
   ========================================================================== */

.settings-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--frame-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  color: var(--frame-muted);
}

.settings-gear:hover,
.settings-gear.active {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--frame-ink);
}

.research-panel {
  padding: 26px 30px 34px;
}

.research-root {
  display: grid;
  gap: 22px;
  max-width: 980px;
  min-width: 0;
}

.research-eyebrow {
  display: block;
  color: var(--accent);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.research-head {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.research-head h1 {
  margin: 0;
  color: var(--ink);
  font: 700 26px/1.2 var(--display);
  letter-spacing: normal;
}

.research-ticker-mono {
  font-family: var(--mono);
  color: var(--ink);
}

.research-stats {
  margin: 0;
  color: var(--muted);
  font: 600 11px/1.4 var(--mono);
}

.research-standfirst {
  margin: 0;
  max-width: 44em;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.72;
}

.research-body {
  margin: 0;
  max-width: 42em;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.01em;
}

/* Multi-paragraph prose: air between paragraphs of the same section. */
.research-prose .research-body + .research-body {
  margin-top: 0.78em;
}

/* Inline (1)/(2)/(3) enumeration rendered as hanging numbered points. */
.research-body-enum {
  display: grid;
  grid-template-columns: 1.55em 1fr;
  gap: 0 12px;
  align-items: start;
}

.research-prose .research-body + .research-body-enum {
  margin-top: 0.9em;
}

.research-prose .research-body-enum + .research-body-enum {
  margin-top: 0.5em;
}

.research-enum-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  margin-top: 0.16em;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 12px/1 var(--mono);
}

.research-stance {
  margin: 0;
  padding: 9px 12px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   裁决卡 / Verdict card — dual-score hero. Synthesized from a 5-design panel:
   scoreboard gauge geometry + rating-box composite badge + tension gap caption.
   The 产业瓶颈(high, green) vs 入场(low, red) divergence is the visual payload.
   ========================================================================== */
.vcard {
  /* brighter on-dark text hexes; the dark --good/--warning/--danger read muddy as TEXT */
  --v-good: #8fb0d8;
  --v-warn: #e3bd6e;
  --v-bad: #e0a59c;
  --v-track: #97a0ab;
  position: relative;
  margin: 0;
  padding: 16px 18px 15px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  font-family: var(--display);
  color: var(--ink-2);
}

/* posture-tinted hairline on the left edge */
.vcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: var(--v-track);
}
.vcard[data-posture="wait"]::before { background: var(--v-warn); }
.vcard[data-posture="start"]::before { background: var(--accent); }
.vcard[data-posture="buy"]::before { background: var(--v-good); }
.vcard[data-posture="avoid"]::before { background: var(--v-bad); }

.vcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.vcard__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  min-width: 0;
}
.vcard__eyebrow-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--v-track);
}
.vcard__posture {
  font: 700 16.5px/1 var(--display);
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.vcard__posture-en {
  min-width: 0;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vcard[data-posture="wait"] .vcard__eyebrow-dot { background: var(--v-warn); }
.vcard[data-posture="wait"] .vcard__posture { color: var(--v-warn); }
.vcard[data-posture="start"] .vcard__eyebrow-dot { background: var(--accent); }
.vcard[data-posture="start"] .vcard__posture { color: #6f9bce; }
.vcard[data-posture="buy"] .vcard__eyebrow-dot { background: var(--v-good); }
.vcard[data-posture="buy"] .vcard__posture { color: var(--v-good); }
.vcard[data-posture="avoid"] .vcard__eyebrow-dot { background: var(--v-bad); }
.vcard[data-posture="avoid"] .vcard__posture { color: var(--v-bad); }

.vcard__composite {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.vcard__composite-cap {
  margin-right: 3px;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.vcard__composite-num {
  font: 700 19px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.vcard__composite-max { font: 400 11px/1 var(--mono); color: var(--faint); }
.vcard__composite[data-tone="good"] .vcard__composite-num { color: var(--v-good); }
.vcard__composite[data-tone="warn"] .vcard__composite-num { color: var(--v-warn); }
.vcard__composite[data-tone="bad"] .vcard__composite-num { color: var(--v-bad); }

/* gauge row — 1px grid gaps over a --line bg become hairline dividers */
.vcard__gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.vcard__gauges--solo { grid-template-columns: minmax(0, 1fr); }

.vgauge {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 13px 15px 14px;
  background: var(--surface-solid);
}
.vgauge__label {
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vgauge__num {
  font: 600 34px/0.9 var(--mono);
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.vgauge__num--range { font-size: 22px; letter-spacing: 0; }
.vgauge__max { margin-left: 2px; font: 400 13px/1 var(--mono); color: var(--faint); }
.vgauge__bar {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.vgauge__fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.vgauge__bar--range { overflow: visible; }
.vgauge__band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 6px);
  opacity: 0.5;
}
.vgauge__note { font: 600 11px/1 var(--mono); color: var(--faint); }

.vgauge.is-good .vgauge__num { color: var(--v-good); }
.vgauge.is-good .vgauge__fill { background: var(--good); }
.vgauge.is-good .vgauge__note { color: var(--v-good); }
.vgauge.is-warn .vgauge__num { color: var(--v-warn); }
.vgauge.is-warn .vgauge__fill { background: var(--warning); }
.vgauge.is-warn .vgauge__note { color: var(--v-warn); }
.vgauge.is-bad .vgauge__num { color: var(--v-bad); }
.vgauge.is-bad .vgauge__fill { background: var(--danger); }
.vgauge.is-bad .vgauge__note { color: var(--v-bad); }
.vgauge.is-unknown .vgauge__num { color: var(--v-track); }

.vcard--lite .vgauge__num { font-size: 42px; }

/* strip: verbalized gap caption (left) + gate dots (right) */
.vcard__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 12px;
}
.vcard__gap {
  min-width: 0;
  font: 600 12.5px/1.4 var(--mono);
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.vcard__gap i { margin: 0 3px; color: var(--faint); font-style: normal; }
.vcard__gates {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vgate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: 700 11px/1 var(--mono);
  color: var(--faint);
}
.vgate--pass { color: var(--good); }
.vgate--partial { color: var(--warning); }
.vgate--fail { color: var(--danger); }

/* --- Home verdict scoreboard (free dual-score hook, locked reasoning) --- */
.home-scoreboard {
  margin: 18px 0 0;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.sb-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.sb-head-titles strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink);
}
.sb-head-titles p {
  margin: 4px 0 0;
  max-width: 660px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.sb-sorts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.sb-sort,
.sb-chip {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.sb-sort.is-active {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.sb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 10px;
}
.sb-chip.is-active {
  color: #18233a;
  border-color: var(--accent);
  background: var(--accent);
}

/* Deep Research library — search + filter + full table; reuses .sb-table/.sb-row. */
.research-library { margin: 4px 0 6px; }
.reslib-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.reslib-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.reslib-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0 2px; }
.reslib-search { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 240px; min-width: 190px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.reslib-search svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.reslib-search input { flex: 1; min-width: 0; border: none; background: transparent; color: var(--ink); font-size: 13px; outline: none; }
.reslib-search input::placeholder { color: var(--muted); }
.research-structure-head { margin-top: 22px; }

/* Throughline tabs (Chips / Mars / Cars) — switch which line the map shows. */
.rmap-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.rmap-tab {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  font: 700 13px/1 var(--display);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rmap-tab:hover { background: rgba(255, 255, 255, 0.1); }
.rmap-tab.is-active { color: #18233a; border-color: var(--accent); background: var(--accent); }
.sb-sample { margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: rgba(111, 155, 206, 0.16); color: var(--accent); font: 700 9px/1.4 var(--display); font-style: normal; letter-spacing: 0.04em; vertical-align: middle; }

.sb-table { display: flex; flex-direction: column; }
.sb-colhead,
.sb-row {
  display: grid;
  grid-template-columns: 26px minmax(110px, 1.4fr) minmax(84px, 1fr) 80px 80px minmax(92px, 0.9fr) 64px 16px;
  align-items: center;
  gap: 10px;
}
.sb-colhead {
  padding: 0 8px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
.sb-row {
  padding: 9px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.sb-row:hover { background: rgba(255, 255, 255, 0.045); }
.sb-rank { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.sb-name { display: flex; flex-direction: column; min-width: 0; }
.sb-name strong { font-size: 13.5px; color: var(--ink); }
.sb-name em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-sectorcol {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-score { display: flex; flex-direction: column; gap: 3px; }
.sb-score b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-score .sb-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.sb-score .sb-bar i { display: block; height: 100%; }
.sb-score.is-good b { color: var(--v-good); }
.sb-score.is-good .sb-bar i { background: var(--good); }
.sb-score.is-warn b { color: var(--v-warn); }
.sb-score.is-warn .sb-bar i { background: var(--warning); }
.sb-score.is-bad b { color: var(--v-bad); }
.sb-score.is-bad .sb-bar i { background: var(--danger); }
.sb-score.is-unknown b { color: var(--muted); }
.sb-score.is-unknown .sb-bar i { background: var(--line-strong); }
.sb-posture { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sb-posture[data-tone="buy"] { color: var(--v-good); }
.sb-posture[data-tone="start"] { color: #6f9bce; }
.sb-posture[data-tone="track"] { color: #6ea8d8; }
.sb-posture[data-tone="wait"] { color: var(--v-warn); }
.sb-posture[data-tone="avoid"] { color: var(--v-bad); }
.sb-gates { display: inline-flex; align-items: center; gap: 4px; }
.sb-gate { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.sb-gate--pass { background: var(--good); }
.sb-gate--partial { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warning); }
.sb-gate--fail { background: var(--danger); }
.sb-gate--neutral { background: var(--line-strong); }
.sb-gates em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 2px; }
.sb-go { color: var(--faint); font-size: 13px; text-align: right; }
.sb-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.sb-cta:hover { background: var(--accent); color: #18233a; }
.sb-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.sb-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.sb-lock-svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -1px; }
.sb-cell-locked { color: var(--faint); }
.sb-posture-locked { color: var(--accent); display: inline-flex; align-items: center; gap: 3px; }
.vcard--locked .vcard__posture--locked { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.vcard__unlock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.vcard__unlock:hover { background: var(--accent); color: #18233a; }

/* --- Home research map (the framework brain-map as the signature homepage visual) --- */
.home-research-map {
  margin: 18px 0 0;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.hrm-head strong { display: block; margin-top: 4px; font-size: 15px; color: var(--ink); }
.hrm-head p { margin: 4px 0 0; max-width: 640px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hrm-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 12px 0;
}
.hrm-side { flex: none; width: 220px; padding-top: 28px; }
.hrm-legend { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.hrm-dot { flex: none; width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); }
.hrm-dot.is-on { background: var(--accent); }
.hrm-side-note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }
.hrm-canvas {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.hrm-canvas .research-map-svg { margin: 0; }
.hrm-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.hrm-cta:hover { background: var(--accent); color: #18233a; }
.hrm-list { display: none; }
.hrm-theme { margin: 0 0 14px; }
.hrm-theme-name { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.hrm-sec { margin: 0 0 10px; padding-left: 10px; border-left: 2px solid var(--accent-soft); }
.hrm-sec-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.hrm-sec-head b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.hrm-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.hrm-ticker strong { flex: none; font-size: 13px; }
.hrm-ticker span { flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrm-ticker b { flex: none; margin-left: auto; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.hrm-ticker em { flex: none; margin-left: auto; font-size: 11px; color: var(--faint); font-style: normal; }
.hrm-ticker.is-watch { opacity: 0.5; }
@media (max-width: 760px) {
  .hrm-body { display: none; }
  .hrm-list { display: block; margin: 12px 0; }
}

@media (max-width: 760px) {
  .sb-head { gap: 10px; }
  .sb-colhead { display: none; }
  .sb-row {
    grid-template-columns: 20px minmax(0, 1fr) 46px 46px auto;
    gap: 8px;
  }
  .sb-sectorcol,
  .sb-gates,
  .sb-go { display: none; }
}
.vcard__gates-cap {
  margin-left: 3px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 560px) {
  .vcard { padding: 14px 14px 13px 18px; }
  .vcard__head { flex-wrap: wrap; }
  .vcard__gauges { grid-template-columns: minmax(0, 1fr); }
  .vgauge {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 11px 14px;
  }
  .vgauge__label { order: 1; flex: 1 1 auto; }
  .vgauge__num { order: 2; font-size: 28px; }
  .vgauge__note { order: 3; }
  .vgauge__bar { order: 4; flex: 1 1 100%; }
  .vcard--lite .vgauge__num { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .vgauge__fill { transition: none; }
}

/* ==========================================================================
   橱窗锁墙 / Storefront lock-wall — the conversion moment on a public thesis.
   Server strips the load-bearing sections; this lists what's behind the wall
   + a 知识星球 CTA. Hidden entirely for admin/full (thesis.locked !== true).
   ========================================================================== */
.research-lockwall {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
  border: 1px solid rgba(111, 155, 206, 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(111, 155, 206, 0.12), transparent 55%),
    var(--surface-solid);
  overflow: hidden;
}

.research-lockwall::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(111, 155, 206, 0));
}

.research-lockwall-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.research-lockwall-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.research-lockwall-title strong {
  display: block;
  color: var(--ink);
  font: 700 15.5px/1.3 var(--display);
}

.research-lockwall-title p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
  max-width: 46em;
}

.research-lockwall-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-lockwall-items li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.research-lockwall-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 11px;
  height: 9px;
  border: 1.5px solid var(--accent);
  border-radius: 2px 2px 1px 1px;
  opacity: 0.85;
}

.research-lockwall-items li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.2em;
  width: 5px;
  height: 6px;
  border: 1.5px solid var(--accent);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

.research-lockwall-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: 700 13.5px/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.research-lockwall-cta:hover {
  transform: translateY(-1px);
  background: #11a08c;
  box-shadow: 0 6px 20px rgba(111, 155, 206, 0.3);
}

.research-lockwall-cta span {
  font-size: 15px;
  transition: transform 0.15s ease;
}

.research-lockwall-cta:hover span { transform: translateX(2px); }

.research-lockwall-member {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.research-lockwall-member-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.research-lockwall-member ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.research-lockwall-member li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.research-lockwall-member li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.research-lockwall-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 16px;
}

.research-lockwall-price-main {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.research-lockwall-price-main strong {
  font: 760 26px/1 var(--display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.research-lockwall-price-main span {
  font-size: 13px;
  color: var(--muted);
}

.research-lockwall-price-sub {
  font-size: 12px;
  color: var(--muted);
}

.research-lockwall-compliance {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 560px) {
  .research-lockwall { padding: 16px 16px 18px; }
  .research-lockwall-items { grid-template-columns: minmax(0, 1fr); }
  .research-lockwall-cta { width: 100%; justify-content: center; }
}

/* Free-sample thesis: a teal "fully open" badge in the head + a join card at the foot. */
.research-sample-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(111, 155, 206, 0.14);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.research-sample-cta {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(111, 155, 206, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(111, 155, 206, 0.06);
}

.research-sample-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.research-sample-cta > strong {
  font-size: 16px;
  color: var(--ink);
}

.research-sample-cta > p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* "How the scores work" entry link + methodology page (?method=1). */
.research-method-link {
  align-self: start;
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid rgba(111, 155, 206, 0.34);
  border-radius: 999px;
  background: rgba(111, 155, 206, 0.08);
  color: var(--accent);
  font: 700 12.5px/1 var(--display);
  cursor: pointer;
  transition: background 0.15s ease;
}
.research-method-link:hover { background: rgba(111, 155, 206, 0.16); }
.sb-method-link { margin-top: 10px; }

/* Home: frames macro + radar as secondary "market context" below the research storefront. */
.home-context-head {
  margin: 30px 0 -2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.home-context-head .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-context-head p {
  margin: 5px 0 0;
  max-width: 640px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.method-body { display: grid; gap: 22px; margin-top: 8px; }
.method-section { display: grid; gap: 8px; }
.method-section h2 {
  margin: 0;
  font: 700 17px/1.3 var(--display);
  color: var(--ink);
}
.method-section > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.method-dims {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.method-dims li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.method-dims li strong { font-size: 13.5px; color: var(--ink); }
.method-dims li span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.method-cta { margin-top: 26px; }

@media (max-width: 560px) {
  .research-sample-cta { padding: 16px 16px 18px; }
}

/* Serenity is a frozen archive (token expired ~2026-05-29) — label it honestly,
   never let KOL mentions read as a live/real-time feed. */
.research-kol-archive {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(214, 170, 70, 0.14);
  color: #e3bd6e;
  box-shadow: inset 0 0 0 1px rgba(214, 170, 70, 0.32);
  font: 600 10px/1.5 var(--mono);
  letter-spacing: 0.04em;
  vertical-align: 1px;
  white-space: nowrap;
}

html[lang="zh-CN"] .research-kol-archive { font-family: var(--display); }

.research-muted {
  color: var(--muted);
  font-size: 13px;
}

.research-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.research-head-meta em {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 600 11px/1.3 var(--mono);
  font-style: normal;
}

.research-head-meta time {
  color: var(--muted);
  font: 600 11px/1.3 var(--mono);
}

.research-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.research-score-label {
  color: var(--muted);
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.12em;
}

.research-score b {
  color: var(--accent);
  font: 700 19px/1 var(--mono);
}

.research-score b i {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.research-score-bar {
  overflow: hidden;
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: rgba(8, 7, 5, 0.1);
}

.research-score-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.research-section-head {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.research-section-head span {
  color: var(--accent);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .research-section-head span {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

html[lang="zh-CN"] .research-feed-row em {
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.research-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.research-breadcrumb i {
  color: var(--faint);
  font-style: normal;
}

.research-crumb {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: 600 12px/1.4 var(--mono);
}

.research-crumb-current {
  color: var(--muted);
  font: 600 12px/1.4 var(--mono);
}

.research-theme-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 2px 0 0 var(--accent);
}

.research-theme-hero:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 155, 206, 0.4);
}

.research-theme-hero-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.research-theme-hero-main strong {
  color: var(--ink);
  font: 700 22px/1.2 var(--display);
}

.research-theme-hero-main p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.research-theme-hero-side {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-width: 0;
}

.research-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.research-mini-stats span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.research-mini-stats b {
  color: var(--ink);
  font: 700 15px/1.1 var(--mono);
}

.research-mini-stats em {
  color: var(--muted);
  font: 9.5px/1.3 var(--mono);
  font-style: normal;
  text-transform: uppercase;
}

.research-link {
  color: var(--accent);
  font: 600 12px/1.3 var(--mono);
  font-style: normal;
}

.research-feed {
  display: grid;
  gap: 0;
}

.research-feed-row {
  display: grid;
  grid-template-columns: 84px 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.research-feed-row:hover {
  background: var(--accent-soft);
}

.research-feed-row time {
  color: var(--muted);
  font: 600 11px/1.3 var(--mono);
}

.research-feed-row em {
  color: var(--muted);
  font: 700 9.5px/1.3 var(--mono);
  font-style: normal;
  letter-spacing: 0.08em;
}

.research-feed-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.research-feed-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.research-score-chip {
  color: var(--accent);
  font: 700 15px/1 var(--mono);
}

.research-roadmap-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: transparent;
}

.research-roadmap-card span {
  color: var(--muted);
  font: 700 9.5px/1.3 var(--mono);
  letter-spacing: 0.14em;
}

.research-roadmap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.research-takeaways ol,
.research-numbered {
  display: grid;
  gap: 13px;
  margin: 0;
  max-width: 46em;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.research-numbered li {
  padding-left: 3px;
}

.research-numbered li::marker {
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 700;
}

/* Evidence confidence pill: [确凿]/[较强]/[传闻]/[缺失] → scannable color. */
.research-ev-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  font: 700 11px/1.6 var(--mono);
  letter-spacing: 0.02em;
  vertical-align: 0.08em;
  white-space: nowrap;
}

html[lang="zh-CN"] .research-ev-tag {
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.research-ev-tag.is-hard {
  color: #8fb0d8;
  background: rgba(111, 176, 106, 0.14);
  box-shadow: inset 0 0 0 1px rgba(111, 176, 106, 0.34);
}

.research-ev-tag.is-strong {
  color: #8ab8f6;
  background: rgba(70, 140, 230, 0.14);
  box-shadow: inset 0 0 0 1px rgba(70, 140, 230, 0.34);
}

.research-ev-tag.is-soft {
  color: #e3bd6e;
  background: rgba(214, 170, 70, 0.14);
  box-shadow: inset 0 0 0 1px rgba(214, 170, 70, 0.34);
}

.research-ev-tag.is-missing {
  color: #e0a59c;
  background: rgba(224, 90, 90, 0.14);
  box-shadow: inset 0 0 0 1px rgba(224, 90, 90, 0.34);
}

.research-ev-tag.is-removed {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: line-through;
}

.research-ev-tag.is-neutral {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}

.research-ev-text {
  color: var(--ink-2);
}

.research-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.research-sector-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
}

button.research-sector-card {
  cursor: pointer;
  box-shadow: inset 2px 0 0 var(--accent);
}

button.research-sector-card:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 155, 206, 0.4);
}

.research-sector-card.planned {
  border-style: dashed;
  background: transparent;
}

.research-sector-card strong {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
}

.research-sector-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.research-sector-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.research-sector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.research-sector-meta span,
.research-sector-meta time {
  color: var(--muted);
  font: 600 10.5px/1.3 var(--mono);
}

.research-sector-meta b {
  color: var(--accent);
  font: 700 12px/1.3 var(--mono);
}

.research-scoreboard,
.research-ticker-list {
  display: grid;
  gap: 0;
}

.research-scoreboard-row,
.research-ticker-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

button.research-scoreboard-row,
button.research-ticker-row {
  cursor: pointer;
}

button.research-scoreboard-row:hover,
button.research-ticker-row:hover {
  background: var(--accent-soft);
}

.research-scoreboard-row strong,
.research-ticker-row strong {
  color: var(--ink);
  font: 700 13px/1.3 var(--mono);
}

.research-scoreboard-row span,
.research-ticker-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-scoreboard-row em {
  color: var(--muted);
  font: 11px/1.3 var(--mono);
  font-style: normal;
}

.research-scoreboard-row b,
.research-ticker-row b {
  color: var(--accent);
  font: 700 15px/1 var(--mono);
}

.research-scoreboard-row time,
.research-ticker-row time {
  color: var(--faint);
  font: 600 10.5px/1.3 var(--mono);
}

.research-ticker-row.watch {
  grid-template-columns: 110px minmax(0, 1fr) auto;
}

.research-ticker-row.watch small {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.research-directions {
  display: grid;
  gap: 10px;
}

.research-directions article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.research-directions b {
  grid-row: span 3;
  color: var(--accent);
  font: 700 15px/1.3 var(--mono);
}

.research-directions strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.research-directions span {
  color: var(--muted);
  font: 600 10.5px/1.4 var(--mono);
}

.research-directions p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.research-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.research-two-col ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.research-watch-signals {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-watch-signals li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.research-watch-signals li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
}

.research-scorecard {
  display: grid;
  gap: 9px;
}

.research-scorecard-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
}

.research-scorecard-row span {
  color: var(--ink-2);
  font-size: 12.5px;
}

.research-scorecard-row b {
  color: var(--ink);
  font: 700 12px/1.3 var(--mono);
  text-align: right;
}

.research-regime {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.research-regime-state {
  color: var(--accent);
  font: 700 11px/1.4 var(--mono);
}

.research-regime-note {
  min-width: 180px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.research-regime-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.research-regime-dates span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--muted);
  font: 650 10.5px/1.3 var(--mono);
}

.research-gates,
.research-os-scores,
.research-positioning,
.research-falsification {
  display: grid;
  gap: 10px;
}

.research-gate-row,
.research-os-score,
.research-falsify-row {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.research-gate-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) auto;
  gap: 6px 12px;
  align-items: start;
}

.research-gate-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.research-gate-result {
  justify-self: end;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--good);
  background: var(--good-soft);
  font: 700 10.5px/1.3 var(--mono);
}

.research-gate-result.partial {
  color: var(--warning);
  background: var(--warning-soft);
}

.research-gate-result.fail {
  color: var(--danger);
  background: var(--danger-soft);
}

.research-gate-basis {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.research-os-overall {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.research-os-overall b {
  color: var(--accent);
  font: 750 14px/1.3 var(--mono);
}

.research-os-score {
  display: grid;
  gap: 9px;
}

.research-os-score-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.research-os-score-head strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.research-os-score-head b {
  color: var(--accent);
  font: 750 13px/1.3 var(--mono);
}

.research-os-score-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.research-section-subhead {
  color: var(--accent);
  font: 700 10.5px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-positioning {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.research-pos-type,
.research-pos-starter {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.72;
}

.research-pos-type {
  color: var(--ink);
  font-weight: 700;
}

.research-falsification {
  gap: 8px;
}

.research-falsify-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 12px;
}

.research-falsify-trigger,
.research-falsify-threshold,
.research-falsify-action {
  min-width: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.research-falsify-trigger {
  color: var(--ink);
  font-weight: 700;
}

.research-falsify-threshold {
  color: var(--warning);
  font-family: var(--mono);
}

.research-falsify-action {
  color: var(--muted);
}

.research-data-reliability {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 11.5px/1.6 var(--mono);
}

.research-theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.research-theme-chips span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 600 11px/1.4 var(--mono);
}

.research-disclaimer {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
}

.research-skeleton {
  width: 280px;
  height: 18px;
  border-radius: 4px;
  background: rgba(8, 7, 5, 0.07);
}

.research-skeleton.wide {
  width: 460px;
}

@media (max-width: 760px) {
  .research-panel {
    padding: 18px 16px 26px;
  }

  .research-theme-hero {
    grid-template-columns: 1fr;
  }

  .research-feed-row {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .research-feed-row em {
    display: none;
  }

  .research-scoreboard-row,
  .research-ticker-row {
    grid-template-columns: 86px minmax(0, 1fr) auto;
  }

  .research-scoreboard-row em,
  .research-scoreboard-row time,
  .research-ticker-row time,
  .research-ticker-row .research-link {
    display: none;
  }

  .research-scorecard-row {
    grid-template-columns: 110px minmax(0, 1fr) 56px;
  }

  .research-gate-row,
  .research-falsify-row {
    grid-template-columns: 1fr;
  }

  .research-gate-result {
    justify-self: start;
  }
}

/* Holdings subscriber snapshot page */

.portfolio-snapshot {
  display: grid;
  gap: 22px;
  max-width: 880px;
  padding: 26px 30px 34px;
}

.portfolio-snapshot-tools {
  display: flex;
  gap: 8px;
}

.portfolio-theme-bar {
  display: flex;
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(8, 7, 5, 0.06);
}

.portfolio-theme-bar span {
  display: block;
  min-width: 8px;
}

.portfolio-theme-bar .tone-0, .portfolio-theme-legend .tone-0 b { background: rgba(111, 155, 206, 0.85); }
.portfolio-theme-bar .tone-1, .portfolio-theme-legend .tone-1 b { background: rgba(111, 155, 206, 0.55); }
.portfolio-theme-bar .tone-2, .portfolio-theme-legend .tone-2 b { background: rgba(111, 155, 206, 0.3); }
.portfolio-theme-bar .tone-3, .portfolio-theme-legend .tone-3 b { background: rgba(138, 144, 156, 0.35); }

.portfolio-theme-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
}

.portfolio-theme-legend em {
  color: var(--muted);
  font: 600 11px/1.5 var(--mono);
  font-style: normal;
}

.portfolio-theme-legend b {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
}

.portfolio-snapshot-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.portfolio-snapshot-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 2px 0 0 var(--accent);
}

.portfolio-snapshot-card-top {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.portfolio-snapshot-card-top strong {
  color: var(--ink);
  font: 700 16px/1.2 var(--mono);
}

.portfolio-snapshot-card-top span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-snapshot-card-top .research-score {
  margin-left: auto;
}

.portfolio-snapshot-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.portfolio-snapshot-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.portfolio-snapshot-card-meta em {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 600 10.5px/1.3 var(--mono);
  font-style: normal;
}

.portfolio-read-thesis {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.workbench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  border-left: 3px solid #d9a514;
  padding-left: 14px;
}

.workbench-head h1 {
  grid-column: 1;
}

.workbench-head .secondary-button {
  grid-row: span 2;
}

/* ==========================================================================
   Market structure risk radar: regime strip + score board. Machine
   output stays grayscale; amber/red appear only for warning regimes.
   ========================================================================== */

.radar-strip {
  margin: 2px 0 4px;
}

.radar-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  color: #cdd2db;
  text-align: left;
  cursor: pointer;
}

.radar-strip-inner.caution { box-shadow: inset 2px 0 0 rgba(224, 179, 79, 0.8); }
.radar-strip-inner.warning { box-shadow: inset 2px 0 0 rgba(240, 150, 70, 0.9); }
.radar-strip-inner.danger { box-shadow: inset 2px 0 0 rgba(240, 114, 111, 0.95); }
.radar-strip-inner.calm { box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.25); }

.radar-strip-kicker {
  color: #8a909c;
  font: 700 9.5px/1.3 var(--mono);
  letter-spacing: 0.14em;
}

.radar-strip-inner strong {
  color: #f4f6f8;
  font-size: 14px;
  font-weight: 700;
}

.radar-strip-inner em {
  color: #aeb4c0;
  font: 600 11px/1.3 var(--mono);
  font-style: normal;
}

.radar-strip-inner em b {
  color: #8fb0d8;
  font-weight: 700;
}

.radar-strip-posture {
  color: #aeb4c0;
  font-size: 12px;
}

.radar-strip-change {
  overflow: hidden;
  max-width: 320px;
  color: #8a909c;
  font: 600 10.5px/1.4 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-strip-inner time {
  margin-left: auto;
  color: #8a909c;
  font: 600 10.5px/1.4 var(--mono);
}

.radar-strip-inner i {
  color: #97a0ab;
  font: 600 11px/1.4 var(--mono);
  font-style: normal;
}

.radar-board {
  display: grid;
  gap: 16px;
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #101216;
}

.radar-board-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: start;
  justify-content: space-between;
}

.radar-board-kicker {
  display: block;
  color: #8a909c;
  font: 700 11px/1.4 var(--display);
  letter-spacing: 0.02em;
}

.radar-board-head strong {
  display: block;
  margin-top: 4px;
  color: #f4f6f8;
  font-size: 19px;
  font-weight: 700;
}

.radar-board-head p {
  margin: 4px 0 0;
  color: #aeb4c0;
  font-size: 12.5px;
}

.radar-board-head p em {
  color: #8a909c;
  font-style: normal;
  font-size: 11px;
}

.radar-board-head time {
  color: #8a909c;
  font: 600 10.5px/1.6 var(--mono);
}

.radar-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 6px 26px;
}

.radar-score-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
}

.radar-score-row span:first-child {
  color: #aeb4c0;
  font: 600 11px/1.4 var(--mono);
}

.radar-score-bar {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.radar-score-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.radar-score-bar span.warm { background: rgba(224, 179, 79, 0.75); }
.radar-score-bar span.hot { background: rgba(240, 114, 111, 0.85); }

.radar-score-row b {
  color: #cdd2db;
  font: 700 12.5px/1.2 var(--mono);
  text-align: right;
}

.radar-score-row.left-tail span:first-child,
.radar-score-row.left-tail b {
  color: #f4f6f8;
  font-weight: 750;
}

.radar-term {
  margin: 0;
  color: #97a0ab;
  font: 600 11.5px/1.5 var(--mono);
}

.radar-narrative {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.radar-narrative > div > span {
  display: block;
  margin-bottom: 6px;
  color: #8a909c;
  font: 700 11px/1.4 var(--display);
  letter-spacing: 0.02em;
}

.radar-narrative ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: #aeb4c0;
  font-size: 12px;
  line-height: 1.5;
}

.radar-note {
  margin: 0;
  color: #8a909c;
  font-size: 11.5px;
  line-height: 1.55;
}

.radar-board .research-disclaimer {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #6b7280;
}

@media (max-width: 760px) {
  .radar-strip-inner time { margin-left: 0; }
  .radar-board { padding: 16px 16px 20px; }
  .radar-score-row { grid-template-columns: 110px minmax(0, 1fr) 30px; }
}

/* ==========================================================================
   Radar manual observations: admin settings panel for the dealer
   positioning paste lane (net gamma / flip / walls). Grayscale SIGNAL
   treatment; amber appears only for stale/warning states.
   ========================================================================== */

.radar-observation-status span {
  display: inline-block;
  color: var(--ink-2);
  font: 600 11.5px/1.5 var(--mono);
}

.radar-observation-status span.stale {
  color: var(--warning);
}

.radar-observation-status span.empty {
  color: var(--muted);
}

.radar-observation-import {
  display: grid;
  gap: 12px;
}

.radar-observation-guide {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.9);
}

.radar-observation-guide strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.radar-observation-guide ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.radar-observation-import label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.radar-observation-import label > span {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.radar-observation-import textarea {
  width: 100%;
  min-width: 0;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: 12px/1.5 var(--mono);
}

.radar-observation-controls {
  display: grid;
  gap: 8px;
}

.radar-observation-controls .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.radar-observation-controls em {
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.radar-observation-preview {
  display: grid;
  gap: 8px;
}

.radar-observation-parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.radar-observation-parts article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.radar-observation-parts article > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.radar-observation-parts article span {
  color: var(--ink-2);
  font: 700 10.5px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.radar-observation-parts article b {
  color: var(--ink);
  font: 700 12px/1.4 var(--mono);
}

.radar-observation-parts article p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.radar-observation-warnings {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: var(--warning);
  font-size: 11.5px;
  line-height: 1.5;
}

.radar-observation-asof {
  margin: 0;
  color: #97a0ab;
  font: 600 11px/1.5 var(--mono);
}

@media (max-width: 760px) {
  .radar-observation-parts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Research KOL cross-reference: R3 single-name bridge back to the
   Serenity SIGNAL tracker.
   ========================================================================== */

.research-kol-crossref {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.research-kol-crossref .research-section-head {
  margin-bottom: 0;
}

.research-kol-stats,
.research-kol-empty {
  margin: 0;
  color: var(--muted);
  font: 600 11px/1.5 var(--mono);
}

.research-kol-mentions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.research-kol-mentions article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.research-kol-mentions article time {
  color: var(--faint);
  font: 600 10.5px/1.3 var(--mono);
}

.research-kol-mentions article p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.research-kol-link {
  justify-self: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--surface-solid);
  color: var(--ink);
  cursor: pointer;
  font: 700 11.5px/1.3 var(--mono);
}

.research-kol-link:hover {
  border-color: var(--line-strong);
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .research-kol-crossref {
    padding: 12px;
  }

  .research-kol-mentions {
    grid-template-columns: 1fr;
  }

  .research-kol-link {
    width: 100%;
  }
}

/* ==========================================================================
   Home judgment board: first-screen market judgment before digest drilldowns.
   ========================================================================== */

.home-judgment-board {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #161a22;
  color: #f8fafc;
}

.home-judgment-board.caution {
  box-shadow: inset 2px 0 0 rgba(224, 179, 79, 0.8);
}

.home-judgment-board.warning {
  box-shadow: inset 2px 0 0 rgba(240, 150, 70, 0.9);
}

.home-judgment-board.danger {
  box-shadow: inset 2px 0 0 rgba(240, 114, 111, 0.95);
}

.home-judgment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.home-judgment-kicker,
.home-judgment-chip,
.home-judgment-confidence,
.home-judgment-head time,
.home-judgment-stats span,
.home-judgment-stats em,
.home-judgment-watch span,
.home-judgment-evidence span {
  color: rgba(228, 231, 236, 0.68);
  font: 700 10px/1.25 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-judgment-board.caution .home-judgment-kicker,
.home-judgment-watch .watch-priority span {
  color: rgba(224, 179, 79, 0.98);
}

.home-judgment-board.warning .home-judgment-kicker {
  color: rgba(240, 150, 70, 0.98);
}

.home-judgment-board.danger .home-judgment-kicker {
  color: rgba(240, 114, 111, 0.98);
}

.home-judgment-chip {
  padding: 3px 6px;
  border: 1px solid rgba(228, 231, 236, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(228, 231, 236, 0.82);
}

.home-judgment-confidence {
  font-style: normal;
  text-transform: none;
}

.home-judgment-head time {
  margin-left: auto;
  text-transform: none;
}

.home-judgment-line {
  max-width: 980px;
  margin: 0;
  color: #f8fafc;
  font-size: 24px;
  font-weight: 720;
  line-height: 1.22;
}

.home-judgment-line.muted,
.home-judgment-board .muted {
  color: rgba(228, 231, 236, 0.42);
}

.home-judgment-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-judgment-stats article,
.home-judgment-watch article,
.home-judgment-evidence > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.home-judgment-stats article {
  display: grid;
  gap: 5px;
  align-content: start;
}

.home-judgment-stats strong {
  overflow: hidden;
  color: #f8fafc;
  font: 700 22px/1.1 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-judgment-stats em {
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.home-judgment-watch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-judgment-watch article {
  display: grid;
  gap: 7px;
  align-content: start;
}

.home-judgment-watch article.watch-priority {
  border-radius: 0;
  box-shadow: inset 2px 0 0 rgba(224, 179, 79, 0.8);
}

.home-judgment-watch p {
  margin: 0;
  color: rgba(248, 250, 252, 0.9);
  font-size: 13px;
  line-height: 1.46;
}

.home-judgment-watch article.muted p {
  color: rgba(228, 231, 236, 0.42);
}

.home-judgment-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-judgment-evidence > div {
  display: grid;
  gap: 8px;
}

.home-judgment-evidence ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: rgba(248, 250, 252, 0.86);
  font-size: 12.5px;
  line-height: 1.46;
}

.home-judgment-radar-link {
  justify-self: start;
  border: 1px solid rgba(228, 231, 236, 0.18);
  border-radius: 6px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  cursor: pointer;
  font: 700 11.5px/1.25 var(--mono);
}

.home-judgment-radar-link:hover {
  border-color: rgba(151, 189, 234, 0.44);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 760px) {
  .home-judgment-head {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .home-judgment-head time {
    margin-left: 0;
  }

  .home-judgment-line {
    font-size: 19px;
  }

  .home-judgment-stats,
  .home-judgment-watch,
  .home-judgment-evidence {
    grid-template-columns: 1fr;
  }
}

/* Phase A2 shared view stat strips */

.view-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.view-stat-strip article {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
}

.view-stat-strip span,
.view-stat-strip em {
  min-width: 0;
  color: var(--muted);
  font: 700 10px/1.25 var(--mono);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.view-stat-strip span {
  text-transform: uppercase;
}

.view-stat-strip strong {
  overflow: hidden;
  color: var(--ink);
  font: 700 22px/1.1 var(--mono);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-stat-strip em {
  color: var(--ink-2);
}

.research-method-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
}

.research-method-details > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 44px 10px 14px;
  cursor: pointer;
  list-style: none;
}

.research-method-details > summary::-webkit-details-marker {
  display: none;
}

.research-method-details > summary::after {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 24px;
  height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  content: "+";
  font-size: 15px;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}

.research-method-details[open] > summary::after {
  content: "-";
}

.research-method-details > summary span {
  color: var(--muted);
  font: 700 10px/1.25 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-method-details p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .view-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phase B1 research map view */

.research-root:has(.research-map-shell) {
  max-width: 1120px;
}

.research-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.research-map-view,
.research-map-rail {
  min-width: 0;
}

.research-map-view {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.research-map-svg {
  display: block;
  width: 760px;
  height: auto;
  margin: 0 auto;
  stroke: none;
}

.research-map-svg text {
  stroke: none;
  paint-order: fill;
}

.rmap-count {
  fill: var(--muted);
  font: 700 11px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}

.rmap-edge {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0.45;
}

.rmap-pill {
  fill: var(--surface-solid);
  stroke: var(--line);
  stroke-width: 1;
}

.rmap-hit {
  fill: transparent;
  stroke: none;
}

.rmap-node.ticker:hover .rmap-hit {
  fill: var(--accent-soft);
}

.rmap-dot {
  fill: var(--line-strong, #b4b2a9);
}

.rmap-node.covered .rmap-dot {
  fill: var(--accent);
}

.rmap-node.covered {
  cursor: pointer;
}

.rmap-node.watch,
.rmap-node.planned {
  cursor: default;
}

.rmap-node.watch {
  cursor: pointer;
}

.rmap-node.covered .rmap-pill {
  stroke: var(--accent);
}

.rmap-node.planned .rmap-pill {
  stroke-dasharray: 4 3;
}

.rmap-node text {
  fill: var(--ink);
  font: 600 11.5px/1 var(--display);
  letter-spacing: 0;
  pointer-events: none;
}

.rmap-node .rmap-pill-label {
  font-size: 12px;
}

.rmap-node.theme .rmap-pill-label {
  font-size: 12.5px;
}

.rmap-node .rmap-pill-side {
  fill: var(--muted);
  font: 400 9.5px/1 var(--mono);
}

.rmap-node .rmap-node-name {
  fill: var(--muted);
  font: 400 10.5px/1 var(--display);
}



.rmap-node .rmap-ticker-label,
.rmap-node .rmap-score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.rmap-node .rmap-score {
  fill: var(--accent);
  text-anchor: end;
}

.rmap-node.watch .rmap-ticker-label {
  fill: var(--ink-2);
}

.rmap-node.planned .rmap-pill-label {
  fill: var(--muted);
}

.rmap-node-dot {
  fill: var(--accent-bright);
  stroke: var(--surface-solid);
  stroke-width: 1;
}

.research-map-rail {
  display: grid;
  gap: 14px;
}

.rmap-howto {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
}

.rmap-howto p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.rmap-feed {
  display: grid;
  gap: 0;
}

.rmap-feed .research-feed-row {
  grid-template-columns: 34px 72px 72px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
}

.rmap-feed .research-feed-row em {
  letter-spacing: 0;
}

.rmap-feed .research-feed-row strong {
  font-size: 12.5px;
}

.rmap-feed .research-feed-row p {
  display: none;
}

.rmap-badge {
  display: inline-grid;
  min-width: 30px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font: 800 9px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0;
}

.rmap-badge.updated {
  border-style: dashed;
}

.rmap-badge.empty {
  visibility: hidden;
}

@media (max-width: 760px) {
  .research-map-shell {
    display: none;
  }
}

/* Phase B2 research watch data page */

.research-watch .view-stat-strip {
  margin-top: 14px;
}

.research-watch-status {
  margin: 8px 0 0;
  color: var(--muted);
  font: 700 11px/1.4 var(--mono);
}

/* ==========================================================================
   Phase B1.1 research map polish: sans labels on the SVG (CJK renders
   poorly in bold mono), a wider rail, 2x2 stat cards, and a feed-row
   grid that accounts for the badge column B2 introduced.
   ========================================================================== */

.rmap-count {
  font-weight: 600;
}

.research-map-shell {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.research-map-rail .view-stat-strip {
  grid-template-columns: 1fr 1fr;
}

.research-map-rail .view-stat-strip strong {
  font-size: 16px;
}

.research-map-rail .research-feed-row {
  grid-template-columns: auto 64px auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 2px;
}

.research-map-rail .research-feed-row strong {
  font-size: 13px;
  line-height: 1.35;
}

.research-map-rail .research-feed-row p {
  display: none;
}

.research-map-rail .rmap-badge.empty {
  width: 26px;
}

/* ==========================================================================
   Phase C1-a research section nav: sticky in-page anchors for R3 long reads.
   ========================================================================== */

.research-section-nav {
  position: sticky;
  top: 64px;
  z-index: 12;
  display: flex;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  contain: paint;
  margin: -4px 0 2px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  scrollbar-width: none;
}

.research-section-nav::-webkit-scrollbar {
  display: none;
}

.research-section-nav-item {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--surface-solid);
  color: var(--muted);
  font: 700 10.5px/1 var(--mono);
  letter-spacing: 0;
  white-space: nowrap;
}

.research-section-nav-item:hover {
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.research-section-nav-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.research-root > section[id^="research-"] {
  scroll-margin-top: 126px;
}

@media (max-width: 760px) {
  .research-section-nav {
    top: 58px;
    margin-top: -2px;
    padding: 7px 0;
  }

  .research-root > section[id^="research-"] {
    scroll-margin-top: 116px;
  }
}

/* Macro first-screen dashboard */
.macro-dashboard {
  display: grid;
  gap: 16px;
  padding: 22px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #161a22;
  color: #f4f6f8;
}

.macro-dashboard-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: start;
  justify-content: space-between;
}

.macro-dashboard-head span,
.macro-risk-card span,
.macro-fear-grid span,
.macro-metric-card span,
.macro-pressure-grid span {
  display: block;
  color: #8a909c;
  font: 700 10px/1.4 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .macro-dashboard-head span,
html[lang="zh-CN"] .macro-risk-card span,
html[lang="zh-CN"] .macro-fear-grid span,
html[lang="zh-CN"] .macro-metric-card span,
html[lang="zh-CN"] .macro-pressure-grid span {
  letter-spacing: 0.02em;
  text-transform: none;
}

.macro-dashboard-head strong {
  display: block;
  margin-top: 5px;
  color: #f4f6f8;
  font-size: 22px;
  font-weight: 700;
}

.macro-dashboard-head p {
  margin: 5px 0 0;
  color: #aeb4c0;
  font-size: 12.5px;
}

.macro-dashboard-head p em,
.macro-dashboard-head time,
.macro-risk-card small,
.macro-metric-card small,
.macro-metric-card i,
.macro-pressure-grid em,
.macro-fear-grid small,
.macro-footer p {
  color: #8a909c;
  font: 600 10.5px/1.5 var(--mono);
  font-style: normal;
}

.macro-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 1.12fr);
  gap: 14px;
  align-items: stretch;
}

.macro-risk-card,
.macro-fear-grid article,
.macro-metric-card,
.macro-pressure-grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.macro-risk-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.macro-risk-card > div:first-child {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.macro-risk-card strong {
  color: #f4f6f8;
  font: 800 34px/1 var(--mono);
}

.macro-risk-card strong small {
  margin-left: 2px;
  color: #8a909c;
  font-size: 13px;
}

.macro-risk-card em {
  color: var(--accent-bright);
  font: 700 12px/1.2 var(--mono);
  font-style: normal;
}

.macro-dashboard.warning .macro-risk-card em,
.macro-dashboard.warning .macro-risk-meter span {
  color: #8fb0d8;
  background: rgba(224, 179, 79, 0.78);
}

.macro-dashboard.danger .macro-risk-card em,
.macro-dashboard.danger .macro-risk-meter span {
  color: #dd8f86;
  background: rgba(240, 114, 111, 0.82);
}

.macro-risk-meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.macro-risk-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-bright);
}

.macro-risk-buckets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.macro-risk-buckets li {
  overflow: hidden;
  padding-top: 5px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  color: #8a909c;
  font: 600 11px/1.35 var(--display);
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: normal;
}

.macro-risk-buckets li.active {
  border-top-color: var(--accent-bright);
  color: #f4f6f8;
  font-weight: 700;
}

.macro-risk-components summary {
  cursor: pointer;
  color: #aeb4c0;
  font: 700 12px/1.4 var(--display);
}

.macro-risk-components div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.macro-risk-components p {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 34px minmax(120px, 1.2fr);
  gap: 8px;
  margin: 0;
  align-items: center;
}

.macro-risk-components p b {
  color: #f4f6f8;
  font: 750 12px/1 var(--mono);
  text-align: right;
}

.macro-risk-components p em {
  overflow: hidden;
  color: #8a909c;
  font: 600 10px/1.35 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-fear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.macro-fear-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.macro-fear-grid strong {
  color: #f4f6f8;
  font: 780 26px/1 var(--mono);
}

.macro-fear-grid em {
  overflow: hidden;
  color: #aeb4c0;
  font: 650 12px/1.35 var(--mono);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-metric-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 8px;
}

.macro-metric-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.macro-metric-card strong {
  overflow: hidden;
  color: #f4f6f8;
  font: 760 18px/1 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-metric-card em {
  color: #aeb4c0;
  font: 700 11px/1.2 var(--mono);
  font-style: normal;
}

.macro-metric-card em.up { color: var(--good); }
.macro-metric-card em.down { color: #dd8f86; }
.macro-metric-card.unknown { opacity: 0.72; }

.macro-pressure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.macro-pressure-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.macro-pressure-grid strong {
  color: #f4f6f8;
  font: 780 22px/1 var(--mono);
}

.macro-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.macro-footer p {
  max-width: 820px;
  margin: 0;
}

.macro-radar-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: #f4f6f8;
  background: rgba(255, 255, 255, 0.05);
  font: 750 11px/1 var(--mono);
}

.macro-radar-link:hover {
  border-color: rgba(151, 189, 234, 0.42);
  color: var(--accent-bright);
}

.macro-dashboard-empty {
  margin: 0;
  color: #aeb4c0;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .macro-hero-grid,
  .macro-pressure-grid {
    grid-template-columns: 1fr;
  }

  .macro-metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .macro-dashboard {
    padding: 18px 16px 20px;
  }

  .macro-dashboard-head strong {
    font-size: 19px;
  }

  .macro-fear-grid,
  .macro-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .macro-risk-buckets {
    grid-template-columns: 1fr;
  }

  .macro-risk-buckets li {
    white-space: normal;
  }

  .macro-risk-components p {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .macro-risk-components p em {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

/* ===== Home hero — Investment OS four-layer narrative + ambient gold canvas ===== */
.command-head.command-hero { display: block; position: relative; overflow: hidden; padding: 0; }
.command-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.command-hero-inner { position: relative; z-index: 1; text-align: center; padding: 58px 24px 24px; }
.command-hero .eyebrow { color: var(--accent); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.command-hero #homeHeroTitle { margin: 18px auto 0; max-width: 720px; font-size: clamp(32px, 5vw, 56px); font-weight: 600; line-height: 1.22; letter-spacing: 0.01em; color: #eef2f8; }
.command-hero .hero-accent { color: var(--accent-bright); }
.platform-command .command-hero .command-hero-sub { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.command-hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.hero-cta-primary { display: inline-block; background: var(--accent); color: #0b1018; border: none; border-radius: var(--radius-lg); padding: 11px 20px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background 0.15s ease; }
.hero-cta-primary:hover { background: var(--accent-bright); }
.platform-command .command-hero .hero-cta-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 11px 20px; font-size: 14px; cursor: pointer; }
.platform-command .command-hero .hero-cta-ghost:hover { border-color: var(--accent); background: rgba(111, 155, 206, 0.08); }
.command-hero-stats { display: flex; justify-content: center; gap: 38px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 26px; font-weight: 700; color: var(--accent-bright); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 12px; color: var(--muted); }
.command-hero-layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; margin: 34px auto 4px; max-width: 940px; text-align: left; }
.hero-layer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 15px 16px 14px; }
.hero-layer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.hero-layer-top i { font-style: normal; font-size: 17px; color: var(--accent-bright); }
.hero-layer-top span { font-size: 11px; color: var(--faint); }
.hero-layer-kicker { font-size: 11px; letter-spacing: 1px; color: var(--accent); margin-bottom: 3px; }
.hero-layer-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.command-hero .hero-layer p { margin: 0 0 10px; max-width: none; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.hero-layer-stat { font-size: 11.5px; color: var(--ink-2); }
.command-hero .primary-button#openActiveSourceButton { position: absolute; top: 14px; right: 14px; z-index: 2; }
@media (max-width: 760px) { .command-hero-inner { padding: 40px 16px 20px; } .command-hero-stats { gap: 22px; } .command-hero-layers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .command-hero-layers { grid-template-columns: 1fr; } }

/* ===== P0 colorblind redundancy: shapes that survive grayscale on the highest-stake signals ===== */
.vcard__posture-mark { margin-right: 5px; font-size: 0.8em; vertical-align: 0.06em; }
.research-ev-dots { margin-right: 5px; font-size: 0.78em; letter-spacing: -0.5px; vertical-align: 0.05em; opacity: 0.95; }

/* ===== Node-attribution card (产业瓶颈研究·评环节不评股票) ===== */
.vcard--node { padding: 14px 16px; }
.vcard__node-attr { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vcard__node-cap { font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.vcard__node-attr strong { font-size: 16px; color: var(--ink); }
.vcard__node-score { margin-left: auto; font-size: 12px; color: var(--muted); }
.vcard__node-score b { font-size: 20px; color: var(--accent-bright); font-variant-numeric: tabular-nums; vertical-align: -1px; }
.vcard__node-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }

/* ============================================================
   Site-wide compliance disclaimer (产业研究·评环节不评股票 reframe §7).
   Persistent footer at the foot of the app shell — visible on every view
   (it sits outside the toggled .page panels), aligned to the page gutter.
   ============================================================ */
.site-disclaimer {
  width: min(1720px, calc(100% - 56px));
  margin: 8px auto 0;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
}
.site-disclaimer__label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-bright);
}
.site-disclaimer__body {
  margin: 0;
  max-width: 96ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 560px) {
  .site-disclaimer { padding-bottom: 24px; }
  .site-disclaimer__body { font-size: 12px; }
}

/* ============================================================
   产业提及热度 (home mention-heat) — discoverable entry into the mention
   archive, aggregated by research node. Dark cards, neutral (no perf color).
   ============================================================ */
.home-mention-heat { width: min(1720px, calc(100% - 56px)); margin: 18px auto 0; }
.home-mention-heat .mh-head { margin-bottom: 12px; }
.home-mention-heat .mh-head .eyebrow {
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent-bright); font-weight: 600;
}
.home-mention-heat .mh-head p {
  margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 92ch;
}
.mh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.mh-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid);
}
.mh-sector {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left; width: 100%;
}
.mh-sector strong { font-size: 14px; color: var(--ink); }
.mh-sector:hover strong { color: var(--accent-bright); }
.mh-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-tickers { display: flex; flex-wrap: wrap; gap: 6px; }
.mh-ticker {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.mh-ticker em { color: var(--muted); font-style: normal; font-size: 11px; }
.mh-ticker:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ============================================================
   Fear/greed gauge dial (macro dashboard) — explicit sizing overrides the
   global svg{width:18px;height:18px;stroke:currentColor} interface-icon rule.
   ============================================================ */
.fear-gauge { width: 112px; height: 64px; display: block; margin: 4px 0 2px; stroke: none; }
.macro-fear-strip article.has-gauge strong { margin-top: -34px; position: relative; z-index: 1; }
.macro-drawdown { display: block; font-size: 11px; }

/* ============================================================
   判断记分牌 (judgment scoreboard) — timestamped calls with outcomes.
   Human-judgment surface → ANALYST teal accents per design rule #2;
   challenged uses amber-red (a recorded miss, not an alert).
   ============================================================ */
.judgment-scoreboard { width: min(1720px, calc(100% - 56px)); margin: 18px auto 0; }
.js-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.js-head .eyebrow { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-bright); font-weight: 600; }
.js-head p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 88ch; }
.js-tallies { display: flex; gap: 8px; flex-wrap: wrap; }
.js-tally { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.js-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; }
.js-entry { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); }
.js-entry-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.js-entry-head time { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.js-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; padding: 2px 9px; border-radius: 999px; }
.v-confirmed { background: rgba(54, 214, 186, 0.14); color: #36d6ba; border: 1px solid rgba(54, 214, 186, 0.35); }
.v-challenged { background: rgba(229, 72, 77, 0.12); color: #ef8a8d; border: 1px solid rgba(229, 72, 77, 0.35); }
.v-early { background: rgba(245, 158, 11, 0.12); color: #f5b04b; border: 1px solid rgba(245, 158, 11, 0.35); }
.v-pending { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.js-thesis-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent-bright); font-size: 12.5px; font-family: inherit; }
.js-thesis-link:hover { text-decoration: underline; }
.js-entry p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2, #c3c9d4); }
.js-entry p b { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.js-replay { margin: 14px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.js-replay img { display: block; width: 100%; height: auto; max-width: 100%; }
.js-replay figcaption { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: #5a6472; }

/* Replay exhibit framing (导语+结论卡+读图指南) — fixes the bare-figure abruptness. */
.js-exhibit { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); }
.js-exhibit-kicker { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-bright); font-weight: 600; }
.js-exhibit-head p { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2, #c3c9d4); max-width: 100ch; }
.js-takeaways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 12px; }
.js-takeaways article { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.js-takeaways span { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.js-takeaways strong { display: block; margin: 4px 0 5px; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.js-takeaways em { display: block; font-style: normal; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.js-exhibit .js-replay { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.js-howto { margin: 12px 0 0; }
.js-howto summary { cursor: pointer; font-size: 12.5px; color: var(--accent-bright); user-select: none; }
.js-howto ol { margin: 8px 0 0; padding-left: 20px; }
.js-howto li { font-size: 12.5px; line-height: 1.7; color: var(--ink-2, #c3c9d4); margin-bottom: 6px; }
.js-exhibit-conclusion { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.65; color: var(--muted); }

/* Native promo card in the macro KPI row (peer weight with data tiles; free planet CTA). */
.macro-promo-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid rgba(111, 155, 206, 0.35); border-radius: 10px; background: linear-gradient(135deg, rgba(111, 155, 206, 0.10), rgba(111, 155, 206, 0.03)); }
.macro-promo-card span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-bright); font-weight: 600; }
.macro-promo-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.macro-promo-card a { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent-bright); text-decoration: none; }
.macro-promo-card a:hover { text-decoration: underline; }

/* 板块×关注标的 情绪代理 strip (52w range-position gauges; machine-signal framing). */
.sentiment-strip { margin: 12px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); }
.sentiment-strip-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.sentiment-strip-head span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sentiment-strip-head p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.sentiment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sentiment-card { display: flex; flex-direction: column; align-items: center; padding: 10px 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.sentiment-card .sentiment-label { font-size: 12px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.sentiment-card .sentiment-label i { font-style: normal; font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.sentiment-card .fear-gauge { width: 96px; height: 54px; margin: 4px 0 0; }
.sentiment-card strong { margin-top: -30px; position: relative; z-index: 1; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sentiment-card em { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.sentiment-card small { font-size: 11px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sentiment-card small.up { color: #2f9e63; }
.sentiment-card small.down { color: #e5484d; }

/* Sector-warning flag next to the regime headline (amber = warning tier per design rule #2). */
.macro-sector-flag { display: inline-block; margin: 6px 0 2px; padding: 3px 10px; border-radius: 6px; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.4); color: #f5b04b; font-size: 12px; font-weight: 600; }
.macro-risk-lens-note { margin: 8px 0 0; font-size: 11px; line-height: 1.55; color: var(--muted); }

.sentiment-card .sentiment-method { font-style: normal; font-size: 10px; letter-spacing: 0.3px; color: var(--faint, #6a7280); margin-top: 3px; }
