/* MoneyRadar v4.0 — readable desktop and mobile product system. */
:root {
  --ui-bg: #f4f7fb;
  --ui-card: #ffffff;
  --ui-ink: #14263d;
  --ui-copy: #52677e;
  --ui-muted: #71849a;
  --ui-line: #d7e2ed;
  --ui-line-soft: #e9eff5;
  --ui-blue: #1769d2;
  --ui-blue-dark: #0f4f9d;
  --ui-blue-soft: #eaf3ff;
  --ui-red: #d64545;
  --ui-green: #07865a;
  --ui-amber: #b66d12;
  --ui-shadow: 0 12px 34px rgba(31, 66, 105, .08);
  --ui-shadow-raised: 0 20px 50px rgba(31, 66, 105, .12);
  --ui-radius: 22px;
  --ui-radius-sm: 14px;
  color-scheme: light;
}

html { background: var(--ui-bg); }
body {
  color: var(--ui-ink);
  background: var(--ui-bg);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body:not(.login-page) {
  background:
    radial-gradient(circle at 88% -6%, rgba(49, 136, 232, .09), transparent 32rem),
    var(--ui-bg);
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}
img { image-rendering: auto; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(23, 105, 210, .24);
  outline-offset: 2px;
}

/* Header and product navigation */
.appbar {
  min-height: 76px;
  padding: 0 clamp(20px, 2.2vw, 36px);
  column-gap: clamp(16px, 2vw, 32px);
  border-bottom: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 24px rgba(30, 64, 104, .07);
  backdrop-filter: blur(18px) saturate(130%);
}
.brand strong { color: #12365d; font-size: 22px; letter-spacing: -.02em; }
.brand small { color: #6f8298; font-size: 11px; letter-spacing: .16em; }
.brand-visual { width: 46px; height: 46px; border-radius: 14px; }
.brand-title-line .app-version {
  min-height: 25px;
  padding: 4px 8px;
  color: #315f90;
  background: #edf5ff;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
}
.source-chip { color: #294d72; background: #f4f8fd; border-color: var(--ui-line); }
#freshnessText { color: var(--ui-muted); font-size: 12px; }
.appbar .ghost-button, .service-state, .session-chip { min-height: 42px; }
.mobile-nav-toggle, .mobile-nav-backdrop { display: none; }

.view-tabs {
  top: 76px;
  width: 252px;
  padding: 20px 14px 30px;
  gap: 4px;
  background: #fff;
  border-right: 1px solid var(--ui-line);
}
.nav-group {
  margin: 17px 12px 6px;
  color: #7d8da0;
  font-size: 11px;
  letter-spacing: .12em;
}
.view-tabs button {
  min-height: 58px;
  padding: 9px 11px;
  color: #4f647a;
  border-radius: 12px;
}
.view-tabs button > span:last-child { font-size: 15px; line-height: 1.25; }
.view-tabs button small { margin-top: 4px; color: #74879b; font-size: 11px; }
.view-tabs button.active {
  color: var(--ui-blue-dark);
  background: linear-gradient(135deg, #eaf3ff, #f5f9ff);
  border-color: #c8dcf3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.view-tabs button.active::after { background: var(--ui-blue); }
.nav-visual { width: 36px; height: 36px; flex: 0 0 36px; }

main {
  width: min(1520px, calc(100% - 64px));
  margin: 24px auto 88px;
}
.view-panel { scroll-margin-top: 92px; }

/* Shared page hierarchy */
.table-panel, .map-panel, .system-panel, .detail-panel {
  color: var(--ui-ink);
  background: var(--ui-card);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}
.table-panel, .map-panel, .system-panel { padding: clamp(28px, 3vw, 42px); }
.panel-heading {
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ui-line-soft);
}
.panel-heading h2 {
  margin: 0;
  color: var(--ui-ink);
  font-size: clamp(30px, 2.2vw, 38px);
  font-weight: 780;
  line-height: 1.22;
  letter-spacing: -.035em;
}
.panel-heading h2 small { font-size: .42em; letter-spacing: 0; }
.panel-heading > div > p:not(.eyebrow) {
  max-width: 960px;
  margin-top: 12px;
  color: var(--ui-copy);
  font-size: 15px;
  line-height: 1.8;
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--ui-blue);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: .12em;
}
.panel-heading::after { width: 88px; height: 3px; background: linear-gradient(90deg, var(--ui-blue), #64b5f6); }

.report-actions, .panel-actions { align-items: center; gap: 10px; }
.primary-button, .ghost-button, button.ghost,
.panel-switch button, .segmented button {
  min-height: 44px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
}
.primary-button { color: #fff; background: var(--ui-blue); box-shadow: 0 8px 18px rgba(23,105,210,.2); }
.primary-button:hover { background: var(--ui-blue-dark); }
.ghost-button, button.ghost { color: #315b85; background: #fff; border-color: #cbdbea; }
.ghost-button:hover, button.ghost:hover { color: var(--ui-blue-dark); background: #f3f8fe; border-color: #9fbfe0; }
input, select, textarea {
  color: var(--ui-ink);
  background: #fff;
  border-color: #c8d7e6;
  border-radius: 10px;
}
input::placeholder, textarea::placeholder { color: #8a9aab; }

.result-count, .muted { color: var(--ui-copy); font-size: 14px; line-height: 1.7; }
.read-only-badge, .date-field, .warehouse-meta { font-size: 13px; }
h3 { line-height: 1.35; }
p, li, td { overflow-wrap: anywhere; }

/* Data surfaces */
.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  box-shadow: none;
}
.formal-signal-table { width: 100%; min-width: 0; table-layout: fixed; }
.formal-signal-table th, .formal-signal-table td { white-space: normal; }
.formal-signal-table th:nth-child(1) { width: 15%; }
.formal-signal-table th:nth-child(2) { width: 23%; }
.formal-signal-table th:nth-child(3) { width: 11%; }
.formal-signal-table th:nth-child(4) { width: 20%; }
.formal-signal-table th:nth-child(5) { width: 12%; }
.formal-signal-table th:nth-child(6) { width: 19%; }
table { color: var(--ui-ink); background: #fff; }
th {
  padding-block: 14px !important;
  color: #566d84 !important;
  background: #f5f8fc !important;
  border-bottom-color: var(--ui-line) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}
td {
  padding-block: 14px;
  color: #304860;
  border-bottom-color: var(--ui-line-soft) !important;
  font-size: 13px;
  line-height: 1.55;
}
tbody tr:hover { background: #f8fbff; }
.fold-panel, .bt-section, .theme-fold, .route-group {
  background: #fff;
  border-color: var(--ui-line);
  border-radius: var(--ui-radius-sm);
}
.fold-panel > summary, .bt-section > summary, .theme-fold > summary, .route-head {
  min-height: 58px;
  color: #29445f;
  background: #f8fafc;
  font-size: 15px;
}

.kpi-card, .screen-card, .focus-card, .action-card, .position-card,
.check-history-card, .flow-card, .market-news-card, .strategy-cards article,
.tracker-card, .pool-group, .theme-card, .panel-block, .screen-focus, .screen-route,
.strategy-chart-card, .bt-section, .check-history-section {
  border-color: var(--ui-line);
  box-shadow: 0 8px 24px rgba(31, 66, 105, .06);
}
.kpi-card:hover, .screen-card:hover, .focus-card:hover, .action-card:hover,
.market-news-card:hover, .strategy-cards article:hover {
  border-color: #b9d1e8;
  box-shadow: 0 14px 34px rgba(31, 73, 117, .10);
}
.screen-legend, .tracker-rule-note, .legend-principle, .radar-strategy-note,
.page-task-toolbar small, .progress-head-actions small { color: var(--ui-copy); font-size: 13px; }
.brief-verdict, .position-room, .page-task-toolbar, .progress-window,
.state-legend, .radar-strategy-bar { border-radius: 16px; }
.formal-promotion-evidence article { margin: 18px 0; padding: 22px 24px; color: #153b63; background: linear-gradient(135deg, #edf7ff, #f5fbff 55%, #ecfbf5); border: 1px solid #9ec9ee; border-left: 6px solid #1769d9; border-radius: 18px; box-shadow: 0 12px 30px rgba(27, 94, 157, .1); }
.formal-promotion-evidence header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.formal-promotion-evidence header span { padding: 5px 10px; color: #fff; background: #1769d9; border-radius: 999px; font-size: 12px; font-weight: 750; }
.formal-promotion-evidence header strong { font-size: 21px; }
.formal-promotion-evidence header em { margin-left: auto; color: #71879c; font-size: 12px; font-style: normal; }
.formal-promotion-evidence article > div { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.formal-promotion-evidence article > div span { padding: 13px 15px; background: rgba(255,255,255,.72); border: 1px solid #cfe1f1; border-radius: 12px; }
.formal-promotion-evidence small { display: block; color: #6e8397; font-size: 12px; }
.formal-promotion-evidence b { display: block; margin-top: 4px; color: #087f5b; font-size: 24px; }
.formal-promotion-evidence p { margin: 14px 0 0; color: #61768a; font-size: 13px; }
@media (max-width: 760px) { .formal-promotion-evidence article > div { grid-template-columns: repeat(2, 1fr); } .formal-promotion-evidence header em { width: 100%; margin-left: 0; } }

/* Champion Radar: clear research semantics and readable evidence. */
.champion-shell { overflow: hidden; }
.champion-shell .panel-heading { align-items: flex-start; }
.champion-shell .panel-heading > div:first-child { min-width: 0; }
.champion-shell .report-actions { flex-wrap: wrap; justify-content: flex-end; }
.champion-research-badge {
  min-height: 42px;
  padding: 9px 13px;
  color: #8a570e;
  background: #fff8e9;
  border-color: #e9cc91;
  border-radius: 11px;
  font-size: 12px;
  white-space: nowrap;
}
.champion-method {
  grid-template-columns: minmax(86px, max-content) 1fr;
  gap: 9px 20px;
  margin: 18px 0;
  padding: 18px 20px;
  color: var(--ui-copy);
  background: #f6f9fd;
  border-color: var(--ui-line);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.7;
}
.champion-status {
  min-width: 0;
  margin: 18px 0;
  padding: 13px 16px;
  color: #4f677f;
  background: #f4f8fc;
  border-color: var(--ui-line);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.champion-status span { min-width: 0; }
.champion-status em { color: #61788f; font-size: 12px; white-space: nowrap; }
.champion-status.blocked { color: #7d5526; background: #fff8ec; border-color: #edd2a0; }

.champion-agent { margin: 18px 0; }
.champion-legacy-comparison { margin-top: 18px; background: #f8fafc; border: 1px solid #d9e4ee; border-radius: 13px; }
.champion-legacy-comparison > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 11px 15px; color: #49657f; cursor: pointer; list-style: none; }
.champion-legacy-comparison > summary::-webkit-details-marker { display: none; }
.champion-legacy-comparison > summary span b, .champion-legacy-comparison > summary span small { display: block; }
.champion-legacy-comparison > summary span b { font-size: 12px; }
.champion-legacy-comparison > summary span small { margin-top: 3px; color: #7b8fa2; font-size: 10px; }
.champion-legacy-comparison > summary em { flex: 0 0 auto; color: #5e7890; font-size: 10px; font-style: normal; font-weight: 800; }
.champion-legacy-comparison > summary em::after { content: "↓"; margin-left: 6px; }
.champion-legacy-comparison[open] > summary { border-bottom: 1px solid #d9e4ee; }
.champion-legacy-comparison[open] > summary em::after { content: "↑"; }
.champion-legacy-body { padding: 15px; }
.agent-shell {
  padding: 22px;
  color: #173f67;
  background: linear-gradient(135deg, #f7fbff 0%, #edf6ff 100%);
  border: 1px solid #bad6ef;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(28, 86, 143, .09);
}
.agent-shell.blocked { background: #fff9ef; border-color: #ead09d; }
.agent-shell > header, .agent-shell > footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.agent-shell > header > div { min-width: 0; }
.agent-shell > header small { color: #2670b7; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.agent-shell > header h3 { margin: 5px 0 4px; color: #143f69; font-size: 22px; }
.agent-shell > header p { max-width: 920px; margin: 0; color: #5a738b; font-size: 12px; line-height: 1.65; }
.agent-shell > header > span { padding: 6px 10px; color: #32658f; background: #fff; border: 1px solid #cfe0ef; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.agent-funnel { margin: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) auto); align-items: center; gap: 8px; }
.agent-funnel > span { min-width: 0; padding: 13px 15px; background: #fff; border: 1px solid #d3e4f3; border-radius: 12px; }
.agent-funnel > span:last-child { grid-column: auto; }
.agent-funnel small { display: block; color: #6a8197; font-size: 11px; }
.agent-funnel b { margin-top: 3px; display: block; color: #185994; font-size: 22px; }
.agent-funnel i { color: #82a6c7; font-size: 15px; font-style: normal; }
.agent-validation-strip { margin: -4px 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, .7fr)) minmax(220px, 1.4fr); gap: 8px; }
.agent-validation-strip > span { min-width: 0; padding: 11px 13px; background: rgba(255,255,255,.82); border: 1px solid #d3e4f3; border-radius: 11px; }
.agent-validation-strip small { display: block; color: #71869a; font-size: 9px; }
.agent-validation-strip b { margin-top: 3px; display: block; color: #265478; font-size: 14px; }
.agent-validation-strip em { margin-top: 2px; display: block; color: #71869a; font-size: 9px; font-style: normal; }
.agent-validation-strip .promoted { border-color: #9ed8c7; background: #f1fbf7; }
.agent-validation-strip .research { border-color: #ebcf9c; background: #fff9ef; }
.champion-decision-stack { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 14px; }
.champion-first-choice, .ranking-governance, .champion-risk-plan { min-width: 0; padding: 20px; background: #fff; border: 1px solid #cfe0ef; border-radius: 15px; }
.champion-first-choice { border-color: #9cc8ed; box-shadow: 0 10px 28px rgba(28, 86, 143, .09); cursor: pointer; }
.champion-first-choice:hover { border-color: #4f9ad9; box-shadow: 0 14px 32px rgba(28, 86, 143, .13); }
.champion-first-choice > header, .ranking-governance > header, .champion-risk-plan > header, .secondary-candidates > header, .ranking-why > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.champion-first-choice > header > div { display: flex; align-items: center; gap: 9px; }
.formal-choice-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; color: #fff; background: #1769b7; border-radius: 999px; font-size: 11px; font-weight: 850; }
.champion-first-choice > header > div > small { color: #637c94; font-size: 11px; }
.champion-first-choice > header > strong { color: #1768b5; font-size: 31px; line-height: 1; text-align: right; }
.champion-first-choice > header > strong small { display: block; margin-bottom: 4px; color: #71869a; font-size: 9px; font-weight: 750; }
.first-choice-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 14px 0 18px; }
.first-choice-title h3 { margin: 0; color: #123f6b; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.1; }
.first-choice-title span { display: block; margin-top: 6px; color: #6d8499; font-size: 12px; }
.first-choice-title .open-report-cue { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 13px; color: #1768b5; background: #edf6ff; border: 1px solid #c5def3; border-radius: 9px; font-size: 12px; font-weight: 800; }
.ranking-why { padding: 16px; background: #f6faff; border: 1px solid #d6e7f5; border-radius: 12px; }
.ranking-why > header small, .ranking-governance > header small, .champion-risk-plan > header small, .secondary-candidates > header small { color: #2b78bb; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.ranking-why > header h4, .ranking-governance > header h4, .champion-risk-plan > header h4, .secondary-candidates > header h4 { margin: 3px 0 0; color: #174a76; font-size: 16px; }
.ranking-why > header > span { color: #59728a; font-size: 10px; text-align: right; }
.ranking-components { margin-top: 13px; display: grid; gap: 9px; }
.ranking-component { display: grid; grid-template-columns: minmax(105px, 1.05fr) minmax(100px, 1.4fr) 42px 58px; gap: 10px; align-items: center; }
.ranking-component > span b, .ranking-component > span small { display: block; }
.ranking-component > span b { color: #294f72; font-size: 11px; }
.ranking-component > span small, .ranking-component > small { color: #7c90a3; font-size: 9px; }
.ranking-component > i { height: 7px; overflow: hidden; background: #e4edf5; border-radius: 999px; }
.ranking-component > i em { display: block; height: 100%; background: linear-gradient(90deg, #3b92df, #1768b5); border-radius: inherit; }
.ranking-component > strong { color: #174f7f; font-size: 12px; text-align: right; }
.first-choice-proof { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) max-content; gap: 8px; align-items: stretch; }
.first-choice-proof > span:not(.agent-review) { min-width: 0; padding: 10px 11px; background: #f5f8fb; border-radius: 9px; }
.first-choice-proof small, .first-choice-proof b, .first-choice-proof em { display: block; }
.first-choice-proof small { color: #74899d; font-size: 9px; }
.first-choice-proof b { margin-top: 3px; color: #265478; font-size: 12px; }
.first-choice-proof em { margin-top: 3px; color: #6b8297; font-size: 9px; font-style: normal; }
.first-choice-proof .agent-review { align-self: center; }
.ranking-governance { background: #fffaf0; border-color: #ecd29e; }
.ranking-governance.promoted { background: #f3fbf8; border-color: #9fd7c5; }
.ranking-governance > header > span { padding: 5px 8px; color: #936016; background: #fff0ce; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.ranking-governance.promoted > header > span { color: #0d7355; background: #dff5ed; }
.ranking-governance > p { margin: 10px 0; color: #60778c; font-size: 11px; line-height: 1.55; }
.stage2-current { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.stage2-current > span { padding: 9px; background: rgba(255,255,255,.8); border: 1px solid #ecddbf; border-radius: 8px; }
.stage2-current small, .stage2-current b { display: block; }
.stage2-current small { color: #778a9b; font-size: 9px; }
.stage2-current b { margin-top: 3px; color: #765425; font-size: 13px; }
.promotion-gates { margin-top: 10px; display: grid; gap: 5px; }
.promotion-gate { display: grid; grid-template-columns: 18px 1fr max-content; gap: 6px; align-items: center; padding: 6px 8px; background: rgba(255,255,255,.68); border-radius: 7px; }
.promotion-gate i { display: grid; place-items: center; width: 17px; height: 17px; color: #fff; background: #d58165; border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 900; }
.promotion-gate.passed i { background: #26936f; }
.promotion-gate b { color: #536c83; font-size: 9px; }
.promotion-gate small { color: #7b8fa2; font-size: 9px; text-align: right; }
.ranking-governance > footer { margin-top: 10px; padding-top: 9px; color: #775c32; border-top: 1px solid #edddbd; font-size: 9px; line-height: 1.5; }
.stage2-empty { padding: 10px; background: rgba(255,255,255,.68); border-radius: 8px; }
.champion-risk-plan { grid-column: 1 / -1; background: #fbfdff; }
.champion-risk-plan > header > span { padding: 5px 8px; color: #3e668b; background: #edf4fa; border-radius: 999px; font-size: 9px; font-weight: 800; }

/* 信号日收盘 vs 最新价。原来整张卡一个现价都没有——计划入场区是死的，
   看不出这笔计划是不是已经跑掉了。 */
.champion-price-row { margin: 13px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.champion-price-row > span { padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; background: #f3f8fc; border: 1px solid #dceaf5; border-radius: 10px; }
.champion-price-row small { color: #5b7f9f; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.champion-price-row b { color: #16385a; font-size: 17px; font-variant-numeric: tabular-nums; }
.champion-price-row em { font-style: normal; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.champion-price-row em.up { color: #c8102e; }
.champion-price-row em.down { color: #1a7f5a; }

/* 第2–3名卡片内嵌的排名分解与交易计划：与第一名同构，但去掉重复的外框，
   否则会变成卡里套卡。 */
.agent-candidate .ranking-why, .agent-candidate .champion-risk-plan { margin-top: 13px; padding: 13px 0 0; background: none; border: 0; border-top: 1px solid #e4eef7; border-radius: 0; grid-column: auto; }
.agent-candidate .ranking-why > header h4, .agent-candidate .champion-risk-plan > header h4 { font-size: 13px; }
.agent-candidate .champion-price-row b { font-size: 15px; }
.r-definition { display: flex; gap: 8px; align-items: baseline; margin: 11px 0 15px; padding: 10px 12px; color: #526b82; background: #eef6fd; border-left: 3px solid #2478bd; border-radius: 7px; }
.r-definition b { flex: 0 0 auto; color: #17588e; font-size: 11px; }
.r-definition p { margin: 0; font-size: 11px; line-height: 1.5; }
.risk-ladder { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.risk-ladder::before { content: ""; position: absolute; left: 7%; right: 7%; top: 10px; height: 3px; background: linear-gradient(90deg, #d45f55 0%, #2b75b8 35%, #2b9a76 68%, #d39a29 100%); border-radius: 999px; }
.risk-ladder > span { position: relative; min-width: 0; padding-top: 23px; }
.risk-ladder > span > i { position: absolute; left: 7px; top: 2px; z-index: 1; width: 17px; height: 17px; background: #fff; border: 4px solid #2477ba; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.risk-ladder > span.stop > i { border-color: #d45f55; }
.risk-ladder > span.protect > i { border-color: #2b9a76; }
.risk-ladder > span.target > i { border-color: #d39a29; }
.risk-ladder small, .risk-ladder b, .risk-ladder em { display: block; }
.risk-ladder small { color: #71869a; font-size: 9px; }
.risk-ladder b { margin-top: 4px; color: #234f77; font-size: 17px; }
.risk-ladder em { margin-top: 3px; color: #70869a; font-size: 9px; font-style: normal; line-height: 1.4; }
.risk-plan-notes { margin-top: 15px; display: grid; grid-template-columns: .55fr 1fr 1.45fr; gap: 8px; }
.risk-plan-notes > span { padding: 9px 10px; color: #61798f; background: #f4f8fc; border-radius: 8px; font-size: 9px; line-height: 1.45; }
.risk-plan-notes b { display: block; margin-bottom: 3px; color: #2b587f; font-size: 9px; }
.secondary-candidates { margin-top: 17px; }
.secondary-candidates > header { margin-bottom: 10px; }
.secondary-candidates > header > span { color: #70869a; font-size: 10px; }
.secondary-candidates .agent-candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-candidates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agent-candidate { min-width: 0; padding: 17px; background: #fff; border: 1px solid #cfe0ef; border-radius: 14px; cursor: pointer; }
.agent-candidate:hover { border-color: #85b6e2; box-shadow: 0 9px 22px rgba(28, 86, 143, .09); }
.agent-candidate > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.agent-candidate > header small { color: #d45b47; font-size: 11px; }
.agent-candidate > header h4 { margin: 3px 0; color: #173f67; font-size: 18px; }
.agent-candidate > header span { color: #74889b; font-size: 10px; }
.agent-candidate > header strong { color: #1768b5; font-size: 24px; }
.agent-stage-evidence { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.agent-stage-evidence > span, .agent-plan-row > span { min-width: 0; padding: 9px; background: #f4f8fc; border-radius: 9px; }
.agent-stage-evidence small, .agent-plan-row small { display: block; color: #71869a; font-size: 9px; }
.agent-stage-evidence b, .agent-plan-row b { margin-top: 3px; display: block; color: #265478; font-size: 12px; }
.agent-stage-evidence em { margin-top: 3px; display: block; color: #708498; font-size: 9px; font-style: normal; line-height: 1.35; }
.agent-plan-row { margin-top: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.agent-candidate > footer { margin-top: 11px; display: flex; align-items: center; gap: 8px; }
.agent-candidate > footer > small { min-width: 0; color: #71869a; font-size: 9px; line-height: 1.4; }
.agent-review { flex: 0 0 auto; padding: 4px 7px; color: #496983; background: #edf3f8; border-radius: 999px; font-size: 9px; font-weight: 850; }
.agent-review.positive { color: #a52c21; background: #fff0ee; }
.agent-review.negative, .agent-review.veto { color: #0f7757; background: #ebf8f3; }
.agent-empty { padding: 17px; display: flex; flex-direction: column; gap: 4px; color: #5d748a; background: #fff; border: 1px dashed #bad1e5; border-radius: 12px; }
.agent-empty b { color: #2b587e; font-size: 14px; }
.agent-empty span { font-size: 12px; }
.agent-shell > footer { margin-top: 15px; color: #617b91; font-size: 10px; }

.champion-hero {
  grid-template-columns: minmax(300px, 1.25fr) 156px minmax(330px, .95fr);
  gap: 24px;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(255,255,255,.15), transparent 17rem),
    linear-gradient(126deg, #103c70 0%, #1769d2 58%, #398fe8 100%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(20, 81, 148, .2);
}
.champion-hero:empty, .champion-top3:empty { display: none; }
.champion-leader-copy > small { color: #d1e6fb; font-size: 12px; letter-spacing: .1em; }
.champion-leader-copy h3 { margin: 10px 0 9px; font-size: clamp(30px, 2.5vw, 40px); line-height: 1.15; }
.champion-leader-copy h3 span { font-size: 16px; }
.champion-leader-copy h3 em { color: #d4e7fa; font-size: 14px; }
.champion-leader-copy p {
  margin: 0 0 16px;
  display: block;
  color: #e5f2ff;
  font-size: 13px;
  line-height: 1.7;
}
.champion-trigger-row, .champion-card-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.champion-trigger-row { margin: 0 0 13px; }
.champion-trigger-reason {
  min-width: 0;
  color: #dcecff;
  font-size: 12px;
  line-height: 1.45;
}
.champion-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #315d87;
  background: #eaf3fc;
  border: 1px solid #c5dcf2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.champion-trigger.triggered { color: #a5271d; background: #fff0ee; border-color: #f1b7b0; }
.champion-trigger.blocked, .champion-trigger.overheated { color: #91580b; background: #fff7e5; border-color: #ebcf91; }
.champion-trigger.wait_price, .champion-trigger.wait_time { color: #245d91; background: #edf6ff; border-color: #bdd8f0; }
.champion-trigger.no_live_data, .champion-trigger.wait_next_session, .champion-trigger.window_closed { color: #63768a; background: #f2f5f8; border-color: #d2dce5; }
.champion-confirmations {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.champion-confirmation {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.champion-confirmation.strong_confirmation { color: #245d91; background: #edf6ff; border-color: #bdd8f0; }
.champion-confirmation.high_confluence { color: #a5271d; background: #fff0ee; border-color: #f1b7b0; }
.champion-hero .champion-confirmation.strong_confirmation { color: #e6f3ff; background: rgba(119,190,255,.2); border-color: rgba(181,220,255,.42); }
.champion-hero .champion-confirmation.high_confluence { color: #ffe7e4; background: rgba(235,87,74,.22); border-color: rgba(255,190,184,.42); }
.champion-leader-copy .champion-check { min-height: 44px; padding-inline: 16px; font-size: 14px; }
.champion-leader-score { width: 142px; height: 142px; border-width: 2px; }
.champion-leader-score span, .champion-leader-score small { color: #d6e9fb; font-size: 12px; }
.champion-leader-score strong { margin: 5px 0; font-size: 42px; }
.champion-leader-metrics { gap: 10px; }
.champion-leader-metrics span { min-width: 0; padding: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.champion-leader-metrics small { color: #d3e6fa; font-size: 12px; }
.champion-leader-metrics b { margin-top: 6px; font-size: 18px; line-height: 1.3; }
.champion-forecast {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 18px;
  background: rgba(7, 42, 82, .28);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
}
.champion-forecast > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.champion-forecast > header div { min-width: 0; }
.champion-forecast > header b { display: block; color: #fff; font-size: 15px; }
.champion-forecast > header small { margin-top: 4px; display: block; color: #cae1f7; font-size: 11px; }
.champion-forecast > header > span { padding: 5px 9px; color: #eaf5ff; background: rgba(255,255,255,.1); border-radius: 999px; font-size: 11px; white-space: nowrap; }
.champion-forecast-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.champion-forecast-grid > span { min-width: 0; padding: 11px; background: rgba(255,255,255,.09); border-radius: 10px; }
.champion-forecast-grid small { display: block; color: #cfe4f8; font-size: 10px; line-height: 1.4; }
.champion-forecast-grid b { margin-top: 5px; display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.champion-forecast > p { margin: 12px 0 0; color: #cee2f5; font-size: 11px; line-height: 1.6; }
.champion-forecast.unavailable { padding: 14px 16px; }
.champion-forecast.unavailable > p { margin-top: 7px; }
.champion-probability-note { margin-top: 0; color: #d5e6f8; font-size: 12px; line-height: 1.6; }

.champion-top3 { gap: 16px; margin-top: 18px; }
.champion-rank-card { padding: 20px; border-radius: 16px; box-shadow: 0 8px 22px rgba(30, 78, 124, .07); }
.champion-rank-card > header span { font-size: 22px; }
.champion-rank-card > header small { color: #6b8095; font-size: 12px; }
.champion-rank-card > header b { font-size: 20px; }
.champion-rank-card h3 { margin: 13px 0; color: #163f68; font-size: 21px; }
.champion-rank-card h3 small { margin-top: 6px; color: #698198; font-size: 12px; }
.champion-rank-card > div { gap: 10px; }
.champion-rank-card > .champion-card-trigger {
  margin: 0 0 13px;
  display: flex;
  grid-template-columns: none;
}
.champion-card-trigger small { min-width: 0; flex: 1 1 130px; color: #657c93; font-size: 11px; line-height: 1.45; }
.champion-rank-card > .champion-card-forecast {
  margin-top: 13px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  background: #f3f8fd;
  border: 1px solid #dbe8f4;
  border-radius: 11px;
}
.champion-card-forecast > small:first-child { grid-row: 1 / 3; color: #5c738a; font-size: 11px; }
.champion-card-forecast > b { font-size: 16px; }
.champion-card-forecast > small:last-child { color: #6c8297; font-size: 10px; line-height: 1.4; }
.champion-forecast-missing { color: #7b8d9e; font-size: 11px; line-height: 1.45; }
.champion-rank-card > div span { color: #657b91; font-size: 12px; }
.champion-rank-card > div b { margin-top: 5px; font-size: 15px; }
.champion-rank-card > p { gap: 7px; margin-top: 15px; }
.champion-rank-card > p i { padding: 6px 8px; display: block; color: #3f6384; font-size: 12px; line-height: 1.6; }

.champion-research-grid { grid-template-columns: minmax(0, 1.5fr) minmax(330px, .75fr); gap: 18px; margin-top: 18px; }
.champion-block { min-width: 0; padding: 20px; border-color: var(--ui-line); border-radius: 16px; }
.champion-block > header { gap: 16px; margin-bottom: 15px; }
.champion-block > header small { color: var(--ui-blue); font-size: 11px; }
.champion-block > header h3 { margin-top: 4px; color: #214b74; font-size: 19px; }
.champion-block > header > span { color: #687e94; font-size: 12px; }
.champion-block table { min-width: 980px; }
.champion-block td { font-size: 13px; }
.champion-block td small { color: #75899e; font-size: 11px; }
.champion-block td .champion-confirmations { margin-left: 5px; }
.champion-weight { grid-template-columns: minmax(135px, 1fr) minmax(90px, .9fr) 58px; gap: 11px; margin: 12px 0; }
.champion-weight span b { color: #2b567f; font-size: 13px; }
.champion-weight span small { color: #75889b; font-size: 11px; }
.champion-weight > i { height: 8px; }
.champion-weight > strong { font-size: 13px; }
.champion-empty-note {
  padding: 16px;
  color: var(--ui-copy);
  background: #f6f9fc;
  border: 1px dashed #cbd9e6;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.champion-recent { margin-top: 18px; }
.champion-hit { padding: 5px 8px; font-size: 11px; }

/* Login reuses the radar artwork under a contrast-safe overlay. */
body.login-page {
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 16% 12%, rgba(48, 139, 236, .16), transparent 24rem),
    #f3f7fc;
}
.login-shell {
  width: min(1040px, 100%);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 28px;
  box-shadow: var(--ui-shadow-raised);
}
.login-intro {
  position: relative;
  padding: clamp(38px, 5vw, 64px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10, 47, 88, .94), rgba(23, 105, 210, .78)),
    url("/assets/market-radar-hero-v1.webp") center / cover no-repeat;
}
.login-intro::after { display: none; }
.login-intro > * { position: relative; z-index: 1; }
.login-brand strong, .login-intro h1 { color: #fff; }
.login-mark { color: var(--ui-blue); background: #fff; }
.login-kicker { color: #c9e2fb; font-size: 12px; }
.login-intro h1 { font-size: clamp(36px, 4vw, 50px); line-height: 1.2; }
.login-intro > p:not(.login-kicker) { color: #dfedfb; font-size: 16px; }
.login-features span { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); font-size: 13px; }
.login-card { padding: clamp(38px, 5vw, 58px); }
.login-card-head span { font-size: 13px; }
.login-card-head strong { color: var(--ui-ink); font-size: 32px; }
.login-card > p { color: var(--ui-copy); font-size: 15px; }
.login-field span { color: #425b74; font-size: 14px; }
.login-field input { min-height: 52px; font-size: 16px; }
.login-card button { min-height: 52px; font-size: 16px; }
.login-help { color: var(--ui-copy); font-size: 13px; }

@media (max-width: 1100px) {
  body:not(.login-page) { padding-left: 0; }
  .appbar { grid-template-columns: minmax(0, 1fr) max-content; }
  .view-tabs {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
  }
  .nav-group { display: none; }
  .view-tabs button::after { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; }
  .champion-hero { grid-template-columns: minmax(0, 1fr) 140px; }
  .champion-leader-metrics { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .champion-research-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body:not(.login-page) {
    padding-left: 0;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  body.mobile-nav-open { overflow: hidden; }
  .appbar {
    z-index: 74;
    min-height: 66px;
    padding: 8px 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
  }
  .brand { min-width: 0; gap: 7px; }
  .brand-visual { width: 38px; height: 38px; transform: none; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .brand-title-line { gap: 5px; }
  .brand-title-line .app-version { min-height: 21px; padding: 3px 6px; font-size: 10px; }
  .appbar-center, .appbar-help, .appbar-runtime .service-state { display: none; }
  .appbar-actions, .appbar-runtime { min-width: 0; gap: 4px; }
  .session-chip { min-height: 44px; padding: 4px 4px 4px 9px; font-size: 12px; }
  .session-chip button, #logoutButton { min-width: 42px; min-height: 36px; padding: 0 7px; }
  .mobile-nav-toggle {
    min-width: 48px;
    min-height: 44px;
    padding: 4px 7px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #355b81;
    background: #f4f8fd;
    border: 1px solid var(--ui-line);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 750;
  }
  .mobile-nav-toggle i, .mobile-nav-toggle i::before, .mobile-nav-toggle i::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
  }
  .mobile-nav-toggle i { position: relative; }
  .mobile-nav-toggle i::before, .mobile-nav-toggle i::after { content: ""; position: absolute; left: 0; }
  .mobile-nav-toggle i::before { top: -5px; }
  .mobile-nav-toggle i::after { top: 5px; }
  .mobile-nav-toggle[aria-expanded="true"] { color: #fff; background: var(--ui-blue); border-color: var(--ui-blue); }
  .mobile-nav-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
    background: rgba(12, 32, 54, .42);
    border: 0;
    backdrop-filter: blur(3px);
  }
  .mobile-nav-backdrop[hidden] { display: none; }

  main { width: calc(100% - 20px); margin: 12px auto 24px; }
  .view-tabs {
    position: fixed;
    z-index: 71;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-top: 1px solid var(--ui-line);
    border-radius: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 24px rgba(30, 62, 101, .12);
  }
  .view-tabs button {
    flex: 0 0 76px;
    width: 76px;
    min-width: 76px;
    min-height: 58px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    align-content: center;
    gap: 2px;
  }
  .view-tabs button > span:last-child { font-size: 12px; line-height: 1.2; white-space: nowrap; }
  .view-tabs button small, .view-tabs .nav-group { display: none; }
  .view-tabs .nav-visual { width: 28px; height: 28px; display: block; transform: scale(.74); transform-origin: center; }
  .view-tabs button.active .nav-visual { transform: scale(.8); }

  .mobile-nav-open .view-tabs {
    left: 12px;
    right: 12px;
    top: 76px;
    bottom: 12px;
    width: auto;
    height: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 20px;
    box-shadow: 0 26px 70px rgba(14, 38, 65, .3);
  }
  .mobile-nav-open .view-tabs .nav-group {
    grid-column: 1 / -1;
    display: block;
    margin: 12px 5px 1px;
    font-size: 11px;
  }
  .mobile-nav-open .view-tabs .nav-group:first-child { margin-top: 0; }
  .mobile-nav-open .view-tabs button {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    padding: 9px 10px;
    display: flex;
    justify-content: flex-start;
    gap: 9px;
    text-align: left;
  }
  .mobile-nav-open .view-tabs button > span:last-child { min-width: 0; font-size: 14px; white-space: normal; }
  .mobile-nav-open .view-tabs button small { display: block; margin-top: 3px; font-size: 11px; white-space: normal; }
  .mobile-nav-open .view-tabs .nav-visual { flex: 0 0 30px; }

  .table-panel, .map-panel, .system-panel, .detail-panel {
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 66, 105, .07);
  }
  .panel-heading { padding-bottom: 18px; }
  .panel-heading h2 { font-size: clamp(27px, 8vw, 32px); line-height: 1.22; }
  .panel-heading > div > p:not(.eyebrow) { margin-top: 10px; font-size: 15px; line-height: 1.75; }
  .eyebrow { margin-bottom: 9px; font-size: 11px; letter-spacing: .08em; }
  .panel-heading .report-actions, .panel-heading .panel-actions {
    width: 100%;
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .panel-heading .report-actions > *, .panel-heading .panel-actions > * { min-width: 0; width: 100%; }
  .panel-heading .report-actions > :only-child, .panel-heading .panel-actions > :only-child { grid-column: 1 / -1; }
  .panel-heading .report-actions select { width: 100%; }
  .primary-button, .ghost-button, button.ghost { min-height: 46px; font-size: 14px; }
  .result-count, .muted { font-size: 14px; }

  .table-wrap { border-radius: 13px; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: grid; gap: 10px; padding: 10px; }
  .table-wrap tbody tr {
    min-width: 0;
    padding: 9px 12px;
    display: block;
    background: #fff;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
  }
  .table-wrap tbody td {
    width: 100%;
    min-width: 0;
    padding: 9px 0;
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    gap: 12px;
    border-top: 1px solid var(--ui-line-soft);
    border-bottom: 0 !important;
    font-size: 13px;
    text-align: left !important;
    white-space: normal;
  }
  .table-wrap tbody td:first-child { border-top: 0; }
  .table-wrap tbody td[data-label]::before {
    content: attr(data-label);
    color: #64798e;
    font-size: 12px;
    font-weight: 800;
  }
  .table-wrap tbody td[colspan] { display: block; }

  .champion-shell .panel-heading .report-actions { grid-template-columns: 1fr 1fr; }
  .champion-research-badge { grid-column: 1 / -1; justify-content: center; white-space: normal; }
  .champion-method { grid-template-columns: 1fr; gap: 3px; margin: 15px 0; padding: 16px; font-size: 13px; }
  .champion-legacy-comparison > summary { align-items: flex-start; }
  .champion-legacy-comparison > summary span small { max-width: 230px; }
  .champion-method b:not(:first-child) { margin-top: 8px; }
  .agent-shell { padding: 17px; }
  .agent-shell > header, .agent-shell > footer { flex-direction: column; gap: 7px; }
  .agent-funnel { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .agent-funnel i { display: none; }
  .agent-funnel > span { padding: 10px; }
  .agent-funnel b { font-size: 18px; }
  .agent-candidates { grid-template-columns: minmax(0, 1fr); }
  .agent-validation-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .champion-decision-stack { grid-template-columns: minmax(0, 1fr); }
  .champion-risk-plan { grid-column: auto; }
  .secondary-candidates .agent-candidates { grid-template-columns: minmax(0, 1fr); }
  .champion-status { align-items: flex-start; flex-direction: column; gap: 5px; margin: 15px 0; font-size: 13px; }
  .champion-status em { margin-left: 0; font-size: 12px; white-space: normal; }
  .champion-hero {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
    padding: 20px;
    border-radius: 17px;
  }
  .champion-leader-copy { min-width: 0; padding-right: 0; }
  .champion-leader-copy > small { font-size: 11px; }
  .champion-leader-copy h3 {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2px 7px;
    margin-top: 8px;
    display: grid;
    font-size: 27px;
  }
  .champion-leader-copy h3 em { grid-column: 2; margin-left: 0; font-size: 12px; }
  .champion-leader-copy p { margin-bottom: 13px; }
  .champion-leader-copy p b { font-size: 11px; }
  .champion-trigger-row { grid-column: 1 / -1; align-items: flex-start; flex-direction: column; gap: 6px; }
  .champion-trigger-reason { font-size: 11px; }
  .champion-leader-score {
    position: static;
    align-self: start;
    width: 90px;
    height: 90px;
  }
  .champion-leader-score span, .champion-leader-score small { font-size: 10px; }
  .champion-leader-score strong { font-size: 27px; }
  .champion-leader-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .champion-leader-metrics span { padding: 12px; }
  .champion-leader-metrics small { font-size: 11px; }
  .champion-leader-metrics b { font-size: 16px; }
  .champion-forecast { padding: 15px; }
  .champion-forecast > header { align-items: flex-start; }
  .champion-forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .champion-forecast-grid > span { padding: 10px; }
  .champion-rank-card > .champion-card-forecast { align-items: start; grid-template-columns: 72px minmax(0, 1fr); }
  .champion-probability-note { grid-column: 1 / -1; font-size: 11px; }
  .champion-top3, .champion-research-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .champion-rank-card, .champion-block { min-width: 0; padding: 16px; }
  .champion-rank-card h3 { font-size: 20px; }
  .champion-rank-card > div span { font-size: 12px; }
  .champion-rank-card > p i { font-size: 11px; }
  .champion-rank-card > .champion-card-trigger { align-items: flex-start; flex-direction: column; gap: 6px; }
  .champion-block > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .champion-block > header h3 { font-size: 18px; }
  .champion-block .table-wrap { margin-inline: 0; overflow: visible; }
  .champion-block table { width: 100%; min-width: 0; }
  .champion-block .table-wrap tbody { padding: 8px; }
  .champion-block .table-wrap tbody tr { padding: 8px 11px; }
  .champion-weight { grid-template-columns: minmax(112px, 1fr) 74px 50px; gap: 8px; }
  .champion-weight span b, .champion-weight > strong { font-size: 12px; }
  .champion-weight span small { font-size: 10px; }

  .tracker-rule-note, .tracker-summary span, .tracker-summary small,
  .tracker-card > header span, .tracker-card h3 small, .tracker-status,
  .tracker-main small, .tracker-decision p, .tracker-levels small,
  .rank-identity > small, .rank-identity p, .rank-prices small,
  .rank-outcomes small, .analysis-process-grid article small {
    font-size: 12px;
  }
  .tracker-card, .screen-card, .focus-card, .action-card, .position-card { border-radius: 15px; }
  .strategy-chart, .fund-chart, .flow-chart { overflow-x: auto; }
}

/* v4.9 · 可审计计算流：让运行中的数据、量化、AI与编排节点在页面顶部可见。 */
.global-activity {
  position: fixed;
  z-index: 13;
  top: 76px;
  right: 0;
  left: 252px;
  min-height: 68px;
  padding: 10px clamp(18px, 2.2vw, 34px);
  display: grid;
  grid-template-columns: 48px minmax(260px, 1fr) auto 160px 48px;
  align-items: center;
  gap: 14px;
  color: #183d64;
  background:
    linear-gradient(90deg, rgba(231, 244, 255, .98), rgba(248, 252, 255, .98)),
    #fff;
  border-bottom: 1px solid #bcd7f2;
  box-shadow: 0 10px 30px rgba(31, 91, 151, .12);
  overflow: hidden;
}
.global-activity[hidden] { display: none; }
.global-activity::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 47px, rgba(56, 133, 211, .045) 48px 49px);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.global-activity::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(75, 166, 255, .15), transparent);
  animation: activity-sweep 2.8s linear infinite;
}
.activity-orbit {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid #98c9f3;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1769d9 0 4px, transparent 5px);
  box-shadow: inset 0 0 0 7px #eef7ff, 0 0 22px rgba(23, 105, 217, .2);
  animation: activity-breathe 1.8s ease-in-out infinite;
}
.activity-orbit::before, .activity-orbit::after {
  position: absolute;
  inset: 7px;
  content: "";
  border: 1px dashed #4d9de5;
  border-radius: 50%;
  animation: activity-spin 4s linear infinite;
}
.activity-orbit::after { inset: 13px; border-style: solid; border-color: #80bdf0 transparent; animation-direction: reverse; animation-duration: 2.4s; }
.activity-orbit i, .activity-orbit b, .activity-orbit span { position: absolute; width: 5px; height: 5px; background: #1676dd; border-radius: 50%; box-shadow: 0 0 8px #5fb4ff; }
.activity-orbit i { top: 5px; left: 18px; }
.activity-orbit b { right: 5px; bottom: 10px; }
.activity-orbit span { bottom: 7px; left: 7px; }
.activity-copy { position: relative; z-index: 1; min-width: 0; }
.activity-copy > span { display: block; color: #2073be; font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.activity-copy strong, .activity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy strong { margin-top: 1px; font-size: 14px; }
.activity-copy small { margin-top: 1px; color: #607b96; font-size: 11px; }
.activity-actors { position: relative; z-index: 1; display: flex; gap: 6px; }
.activity-actors > span {
  min-width: 82px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 2px 6px;
  color: #647a91;
  background: rgba(255,255,255,.7);
  border: 1px solid #d5e3f0;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 750;
}
.activity-actors > span small { grid-column: 2; color: #9aabba; font-size: 7px; letter-spacing: .11em; }
.activity-actors > span.active { color: #155d9f; background: #fff; border-color: #6eb0ea; box-shadow: 0 5px 15px rgba(37, 110, 180, .12); }
.activity-actors > span.active small { color: #1680df; }
.actor-dot { width: 7px; height: 7px; display: inline-block; background: #8da2b6; border-radius: 50%; }
.actor-dot.data { background: #2186df; }
.actor-dot.quant { background: #735fe2; }
.actor-dot.model { background: #d35cc2; }
.actor-dot.engine { background: #16a36a; }
.activity-actors .active .actor-dot { box-shadow: 0 0 0 4px rgba(43, 137, 221, .12), 0 0 12px currentColor; animation: actor-pulse 1.2s ease-out infinite; }
.activity-progress { position: relative; z-index: 1; height: 6px; overflow: hidden; background: #dbe8f4; border-radius: 999px; }
.activity-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #1777df, #7b63e8, #d35cc2); border-radius: inherit; box-shadow: 0 0 12px rgba(61, 128, 224, .35); transition: width .4s ease; }
.activity-percent { position: relative; z-index: 1; color: #1a69b2; font-size: 18px; text-align: right; }
.has-global-activity main { padding-top: 82px; }

.intelligence-progress, .market-progress {
  overflow: hidden;
  background: linear-gradient(135deg, #fbfdff, #f1f7fd);
  border-color: #c6daf0;
  box-shadow: 0 15px 36px rgba(29, 84, 139, .08);
}
.intelligence-progress::before, .market-progress::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(55, 139, 224, .07) 48%, transparent 61%);
  transform: translateX(-100%);
}
.intelligence-progress.running::before, .market-progress.running::before { animation: panel-scan 2.5s ease-in-out infinite; }
.intelligence-progress .progress-track i { background: linear-gradient(90deg, #277ed7, #775fe3, #d35cc2); }
.market-progress .progress-track i { background: linear-gradient(90deg, #207dd3, #2cb4a1); }
.progress-logs .log-stage { display: flex; align-items: center; gap: 6px; }
.progress-head-actions { display: flex; align-items: center; gap: 10px; }
.progress-head-actions small { color: #6f8499; font-size: 10px; }
.pool-warehouse-tools { position: relative; }
.pool-warehouse-tools::before {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 6px;
  content: "USER CONTROLLED WATCHLIST";
  color: #3676b6;
  background: #fff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .15em;
}
.pool-warehouse-tools input:focus { border-color: #4d9de5; box-shadow: 0 0 0 4px rgba(45, 130, 211, .1); }

@keyframes activity-sweep { from { left: -190px; } to { left: calc(100% + 10px); } }
@keyframes activity-spin { to { transform: rotate(360deg); } }
@keyframes activity-breathe { 50% { transform: scale(1.06); box-shadow: inset 0 0 0 7px #eef7ff, 0 0 30px rgba(23, 105, 217, .32); } }
@keyframes actor-pulse { 70% { box-shadow: 0 0 0 8px rgba(43, 137, 221, 0), 0 0 12px currentColor; } }
@keyframes panel-scan { 0% { transform: translateX(-110%); } 70%, 100% { transform: translateX(110%); } }

@media (max-width: 1100px) {
  .global-activity { left: 0; grid-template-columns: 42px minmax(220px, 1fr) auto 130px 42px; }
  .activity-actors > span { min-width: 70px; }
}

@media (max-width: 760px) {
  .global-activity {
    top: 66px;
    min-height: 72px;
    padding: 9px 12px;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    gap: 9px;
  }
  .activity-orbit { width: 36px; height: 36px; }
  .activity-actors, .activity-progress { display: none; }
  .activity-copy strong { font-size: 12px; }
  .activity-copy small { font-size: 10px; }
  .activity-percent { font-size: 16px; }
  .has-global-activity main { padding-top: 80px; }
  .progress-head-actions small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .global-activity::after, .activity-orbit, .activity-orbit::before, .activity-orbit::after,
  .activity-actors .active .actor-dot, .intelligence-progress::before, .market-progress::before { animation: none !important; }
}

@media (max-width: 430px) {
  body.login-page { padding: 10px; }
  .login-shell { border-radius: 20px; }
  .login-intro { padding: 28px 24px; }
  .login-intro h1 { font-size: 30px; }
  .login-kicker { margin-top: 30px; }
  .login-card { padding: 30px 24px; }

  .table-panel, .map-panel, .system-panel, .detail-panel { padding: 15px; }
  .panel-heading h2 { font-size: 27px; }
  .champion-hero { grid-template-columns: minmax(0, 1fr) 82px; padding: 17px; }
  .champion-leader-score { width: 80px; height: 80px; }
  .champion-leader-score strong { font-size: 24px; }
  .champion-leader-copy h3 { font-size: 24px; }
  .champion-leader-copy .champion-check { width: 100%; }
  .agent-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-stage-evidence { grid-template-columns: minmax(0, 1fr); }
  .agent-plan-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-validation-strip { grid-template-columns: minmax(0, 1fr); }
  .champion-first-choice, .ranking-governance, .champion-risk-plan { padding: 15px; }
  .champion-first-choice > header > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .first-choice-title { align-items: flex-start; flex-direction: column; }
  .first-choice-title .open-report-cue { box-sizing: border-box; justify-content: center; width: 100%; }
  .ranking-why > header { flex-direction: column; }
  .ranking-why > header > span { text-align: left; }
  .ranking-component { grid-template-columns: 88px minmax(70px, 1fr) 34px; gap: 6px; }
  .ranking-component > small { display: none; }
  .first-choice-proof { grid-template-columns: minmax(0, 1fr); }
  .first-choice-proof .agent-review { justify-self: start; }
  .risk-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .risk-ladder::before { display: none; }
  .risk-ladder > span { padding: 10px 10px 10px 32px; background: #f5f8fb; border-radius: 8px; }
  .risk-ladder > span > i { left: 9px; top: 12px; }
  .risk-plan-notes { grid-template-columns: minmax(0, 1fr); }
  .r-definition { align-items: flex-start; flex-direction: column; }
  .champion-rank-card > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .champion-weight { grid-template-columns: minmax(100px, 1fr) 62px 46px; }
  .mobile-nav-open .view-tabs { grid-template-columns: 1fr; }
  .mobile-nav-open .view-tabs .nav-group { grid-column: 1; }
}

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

/* ============ 北极星 · 事件推演 ============
   设计意图:推理过程本身是主角。深色控制台承载"机器正在思考"的实时感,
   与浅色工作台形成层次;概率用堆叠权重条表达,宽度即先验;
   个股用关联度条降序排,一眼看出谁最相关。 */

.ns-shell { display: grid; gap: 22px; }

.ns-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ns-head h2 { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: -.01em; }
.ns-head p { margin: 0; color: var(--ui-copy); max-width: 62ch; }
.ns-head-meta { display: flex; gap: 18px; font-size: .82rem; color: var(--ui-muted); white-space: nowrap; }
.ns-head-meta b { display: block; font-size: 1.05rem; color: var(--ui-ink); font-variant-numeric: tabular-nums; }

/* 单一输入:刻意做大,聚焦"只需要一条链接" */
.ns-input {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 18px; border-radius: 999px;
  border: 1px solid var(--ui-line); background: var(--ui-card);
  box-shadow: var(--ui-shadow); transition: border-color .2s, box-shadow .2s;
}
.ns-input:focus-within { border-color: var(--ui-blue); box-shadow: 0 0 0 4px rgba(23, 105, 210, .12), var(--ui-shadow); }
.ns-input-glyph {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--ui-blue); box-shadow: 0 0 0 4px rgba(23, 105, 210, .14);
}
.ns-input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 1rem; color: var(--ui-ink); padding: 12px 0;
}
.ns-input input::placeholder { color: var(--ui-muted); }
.ns-run {
  flex: none; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 26px; font-size: .95rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--ui-blue), var(--ui-blue-dark));
  transition: transform .15s, filter .15s;
}
.ns-run:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.ns-run:disabled { opacity: .55; cursor: progress; }

/* 推理流:深色控制台 */
.ns-stream {
  border-radius: var(--ui-radius); overflow: hidden;
  background: linear-gradient(168deg, #10233c, #0a1728);
  color: #d6e4f5; box-shadow: var(--ui-shadow-raised);
}
.ns-stream-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 12px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: #7f9dc0;
}
.ns-stream-pct { font-variant-numeric: tabular-nums; color: #62b8ff; letter-spacing: normal; font-size: 1rem; }
.ns-progress { height: 2px; background: rgba(255, 255, 255, .08); }
.ns-progress > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #2f7fd8, #62b8ff);
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.ns-log { list-style: none; margin: 0; padding: 14px 22px 20px; display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.ns-log li {
  display: grid; grid-template-columns: 16px 74px 1fr; align-items: baseline; gap: 12px;
  padding: 7px 0; font-size: .9rem; color: #b7cbe2;
  animation: nsFade .32s ease both;
}
@keyframes nsFade { from { opacity: 0; transform: translateY(4px); } }
.ns-log time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: #6b88ab; }
.ns-log .ns-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #35557c; justify-self: center;
  position: relative; top: 5px;
}
.ns-log li.is-active { color: #eaf4ff; }
.ns-log li.is-active .ns-dot { background: #62b8ff; box-shadow: 0 0 0 0 rgba(98, 184, 255, .6); animation: nsPulse 1.7s infinite; }
@keyframes nsPulse { 70% { box-shadow: 0 0 0 8px rgba(98, 184, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(98, 184, 255, 0); } }
.ns-log li.is-failed { color: #ff9d9d; }
.ns-log li.is-failed .ns-dot { background: #e46363; }

/* 事件卡 */
.ns-result { display: grid; gap: 22px; }
.ns-event { padding: 20px 24px; border-radius: var(--ui-radius-sm); background: var(--ui-blue-soft); border: 1px solid rgba(23, 105, 210, .14); }
.ns-event h3 { margin: 0 0 8px; font-size: 1.1rem; }
.ns-event p { margin: 0 0 10px; color: var(--ui-copy); }
.ns-event-link { font-size: .84rem; color: var(--ui-blue); word-break: break-all; }

.ns-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.ns-section-head h4 { margin: 0; font-size: 1rem; }
.ns-hint { font-size: .82rem; color: var(--ui-muted); }

/* 概率权重条:宽度即先验概率 */
.ns-weightbar { display: flex; gap: 3px; height: 62px; border-radius: 12px; overflow: hidden; background: var(--ui-line-soft); }
.ns-weight {
  position: relative; border: 0; cursor: pointer; padding: 0 12px; min-width: 62px;
  display: grid; align-content: center; gap: 2px; text-align: left;
  background: #dbe7f4; color: var(--ui-ink);
  transition: background .2s, color .2s, flex-grow .3s;
}
.ns-weight:hover { background: #cddef2; }
.ns-weight[aria-selected="true"] { background: linear-gradient(160deg, var(--ui-blue), var(--ui-blue-dark)); color: #fff; }
.ns-weight[data-dir="NEGATIVE"][aria-selected="true"] { background: linear-gradient(160deg, #d76b6b, #b23c3c); }
.ns-weight b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ns-weight span { font-size: .75rem; opacity: .82; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分支详情 */
.ns-branch-detail { margin-top: 18px; display: grid; gap: 16px; }
.ns-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ns-fact { padding: 14px 16px; border-radius: var(--ui-radius-sm); border: 1px solid var(--ui-line-soft); background: var(--ui-card); }
.ns-fact dt { font-size: .76rem; color: var(--ui-muted); margin-bottom: 5px; letter-spacing: .04em; }
.ns-fact dd { margin: 0; font-size: .92rem; line-height: 1.55; }
.ns-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.ns-tag.up { background: rgba(7, 134, 90, .12); color: var(--ui-green); }
.ns-tag.down { background: rgba(214, 69, 69, .12); color: var(--ui-red); }

/* 个股:关联度降序 */
.ns-stocks { display: grid; gap: 1px; background: var(--ui-line-soft); border-radius: var(--ui-radius-sm); overflow: hidden; border: 1px solid var(--ui-line-soft); }
.ns-stock {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1.25fr) 86px 116px;
  gap: 14px; align-items: center; padding: 13px 16px; background: var(--ui-card);
}
.ns-stock:hover { background: #fafcfe; }
.ns-rank { font-variant-numeric: tabular-nums; color: var(--ui-muted); font-size: .86rem; }
.ns-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ns-name strong { font-size: .96rem; white-space: nowrap; }
.ns-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--ui-muted); }
.ns-badge { font-size: .68rem; padding: 1px 7px; border-radius: 5px; background: var(--ui-blue-soft); color: var(--ui-blue-dark); font-weight: 600; white-space: nowrap; }
.ns-why { font-size: .84rem; color: var(--ui-copy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-rel { display: grid; gap: 4px; justify-items: end; }
.ns-rel-track { width: 100%; height: 5px; border-radius: 3px; background: var(--ui-line-soft); overflow: hidden; }
.ns-rel-track > i { display: block; height: 100%; background: linear-gradient(90deg, #7fb4ea, var(--ui-blue)); }
.ns-rel-num { font-size: .76rem; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.ns-empty { padding: 22px; text-align: center; color: var(--ui-muted); font-size: .9rem; }

.ns-report { border: 1px solid var(--ui-line-soft); border-radius: var(--ui-radius-sm); background: var(--ui-card); }
.ns-report summary { padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.ns-report-body { padding: 0 22px 20px; color: var(--ui-copy); white-space: pre-wrap; line-height: 1.75; font-size: .92rem; }

@media (max-width: 760px) {
  .ns-stock { grid-template-columns: 32px 1fr; row-gap: 8px; }
  .ns-why, .ns-rel { grid-column: 2 / -1; }
  .ns-rel { justify-items: start; }
  .ns-weightbar { height: auto; flex-direction: column; }
  .ns-weight { min-height: 54px; }
}

/* ---- 北极星 v2:五阶段 + 思维导图 + 交易计划 ---- */

/* 阶段条:五个阶段本来就是五件不同的事,让它们各自可见 */
.ns-stages{list-style:none;margin:0;padding:16px 22px 4px;display:flex;gap:0;flex-wrap:wrap}
.ns-stages li{flex:1 1 0;min-width:112px;display:flex;align-items:center;gap:8px;
  font-size:.78rem;color:var(--ui-muted);position:relative;padding-right:10px}
.ns-stages li::after{content:"";position:absolute;right:6px;top:50%;width:8px;height:1px;
  background:var(--ui-line-soft)}
.ns-stages li:last-child::after{display:none}
.ns-stages li>span{width:16px;height:16px;border-radius:50%;flex:none;border:1.5px solid var(--ui-line);
  background:var(--ui-card);position:relative;transition:border-color .3s,background .3s}
.ns-stages li.done{color:var(--ui-ink)}
.ns-stages li.done>span{background:var(--ui-blue);border-color:var(--ui-blue)}
.ns-stages li.done>span::after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;
  border:solid #fff;border-width:0 1.5px 1.5px 0;transform:rotate(42deg)}
.ns-stages li.active{color:var(--ui-ink);font-weight:600}
.ns-stages li.active>span{border-color:var(--ui-blue);
  box-shadow:0 0 0 0 rgba(23,105,210,.34);animation:nsStagePulse 1.9s infinite}
@keyframes nsStagePulse{70%{box-shadow:0 0 0 8px rgba(23,105,210,0)}100%{box-shadow:0 0 0 0 rgba(23,105,210,0)}}

/* 思维导图 */
.ns-map-wrap{overflow-x:auto;border:1px solid var(--ui-line-soft);border-radius:var(--ui-radius-sm);
  background:var(--ui-card);padding:6px}
.ns-map{display:block;width:100%;height:320px}

/* 敞口存疑标记 */
.ns-badge.warn{background:rgba(182,109,18,.13);color:var(--ui-amber)}
.ns-px{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;
  font-size:.84rem;text-align:right}
.ns-px small{display:block;font-size:.72rem;color:var(--ui-muted)}

/* 交易计划 */
.ns-plan-card{border:1px solid var(--ui-line-soft);border-radius:var(--ui-radius-sm);background:var(--ui-card);
  padding:18px 20px}
.ns-verdict{display:inline-block;padding:3px 12px;border-radius:999px;font-size:.8rem;font-weight:700;margin-bottom:10px}
.ns-verdict.TRADE{background:rgba(7,134,90,.13);color:var(--ui-green)}
.ns-verdict.WATCH{background:rgba(182,109,18,.13);color:var(--ui-amber)}
.ns-verdict.SKIP{background:var(--ui-line-soft);color:var(--ui-muted)}
.ns-pos{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1.5fr);gap:12px;align-items:baseline;
  padding:11px 0;border-top:1px solid var(--ui-line-soft);font-size:.86rem}
.ns-pos b{font-family:ui-monospace,Menlo,monospace;font-variant-numeric:tabular-nums;color:var(--ui-blue)}
.ns-pos .rule{color:var(--ui-copy);font-size:.82rem}

/* 细化:详情淡入、个股逐条落位、关联度条延后填充 */
.ns-branch-detail{opacity:0;transform:translateY(6px);
  transition:opacity .34s ease,transform .34s ease}
.ns-branch-detail.is-in{opacity:1;transform:none}
.ns-stock{opacity:0;transform:translateY(4px)}
.ns-stock.is-in{opacity:1;transform:none;transition:opacity .3s ease,transform .3s ease}
.ns-rel-track>i{width:0;transition:width .7s cubic-bezier(.22,1,.36,1)}
/* 思维导图容器:给 canvas 一点呼吸,并让横向溢出自己滚动 */
.ns-map-wrap{padding:8px}
.ns-map{border-radius:8px}
.ns-map:focus-visible{outline:2px solid var(--ui-blue);outline-offset:2px}
@media (prefers-reduced-motion:reduce){
  .ns-branch-detail,.ns-stock{opacity:1;transform:none}
  .ns-rel-track>i{transition:none}
}
/* 共识度徽标:全票用实心,非全票用描边,一眼区分核心与长尾 */
.ns-badge.cons{background:transparent;color:var(--ui-muted);border:1px solid var(--ui-line);
  font-variant-numeric:tabular-nums}
.ns-badge.cons.full{background:var(--ui-blue);color:#fff;border-color:var(--ui-blue)}

/* Macro radar: probability, provenance and validation are the visual hierarchy. */
.nav-visual.macro::before {
  content: ""; position: absolute; inset: 7px; border: 2px solid #3568c8; border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 4px, transparent 5px);
}
.nav-visual.macro::after {
  content: ""; position: absolute; left: 8px; top: 17px; width: 20px; height: 2px;
  background: #0a9664; transform: rotate(-22deg); border-radius: 2px;
  box-shadow: 5px -6px 0 -1px #ed9b2d;
}
.nav-visual.macro i { position: absolute; right: 6px; top: 7px; width: 6px; height: 6px; background: #ed9b2d; border: 2px solid #fff; border-radius: 50%; }
.view-tabs button.active .nav-visual.macro i { animation: iconNodePulse 2.2s ease-out infinite; }
.macro-shell { overflow: hidden; }
.macro-heading { align-items: flex-start; }
.macro-heading .report-actions { flex-wrap: wrap; justify-content: flex-end; }
.macro-experiment-badge { min-height: 42px; padding: 9px 13px; color: #85570e; background: #fff8e8; border: 1px solid #efd39d; border-radius: 11px; font-size: 12px; font-weight: 750; }
.macro-empty { margin-top: 24px; padding: 34px; text-align: center; color: var(--ui-copy); background: #f8fbff; border: 1px dashed #b8cee5; border-radius: 18px; }
.macro-empty strong { display: block; color: var(--ui-ink); font-size: 20px; }
.macro-empty p { max-width: 720px; margin: 10px auto 0; line-height: 1.75; }
.macro-content { display: grid; gap: 22px; margin-top: 24px; }
.macro-status-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.macro-status-strip > div { min-width: 0; padding: 15px 17px; background: #f6f9fd; border: 1px solid var(--ui-line); border-radius: 13px; }
.macro-status-strip small, .macro-spot small, .macro-intervals small, .macro-validation-grid small { display: block; color: var(--ui-muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.macro-status-strip b { display: block; margin-top: 5px; overflow: hidden; color: var(--ui-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.macro-status-strip .macro-status-experimental { color: #0a8058; }
.macro-status-strip .macro-status-low_sample { color: #9b6716; }
.macro-status-strip .macro-status-missing_data { color: #bd514b; }
.macro-forecast-card { padding: clamp(22px, 3vw, 34px); color: #17334f; background: linear-gradient(135deg, #f3f9ff 0%, #fff 54%, #f1fbf7 100%); border: 1px solid #b9d3ec; border-left: 6px solid var(--ui-blue); border-radius: 20px; box-shadow: 0 14px 34px rgba(31, 73, 117, .08); }
.macro-portfolio-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.macro-portfolio-head small { color: var(--ui-blue); font-size: 11px; font-weight: 850; letter-spacing: .11em; }
.macro-portfolio-head h3 { margin: 4px 0 0; color: var(--ui-ink); font-size: clamp(24px, 2.2vw, 32px); }
.macro-portfolio-head p { max-width: 840px; margin: 8px 0 0; color: var(--ui-copy); font-size: 13px; line-height: 1.7; }
.macro-portfolio-head > span { flex: 0 0 auto; padding: 8px 12px; color: #0a8058; background: #eaf8f2; border: 1px solid #bfe5d4; border-radius: 999px; font-size: 12px; font-weight: 800; }
.macro-asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.macro-asset-card { min-width: 0; padding: 19px; background: rgba(255,255,255,.82); border: 1px solid #d5e3f0; border-top: 4px solid #e4a136; border-radius: 15px; box-shadow: 0 7px 20px rgba(31, 73, 117, .05); }
.macro-asset-card.up { border-top-color: #e25a55; }
.macro-asset-card.down { border-top-color: #12a16b; }
.macro-asset-card > header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.macro-asset-card > header small { color: var(--ui-muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.macro-asset-card > header h3 { margin: 3px 0 0; color: var(--ui-ink); font-size: 18px; }
.macro-asset-card > header > span { max-width: 150px; padding: 5px 9px; color: #4d6176; background: #f0f5fa; border-radius: 999px; font-size: 10px; font-weight: 800; text-align: center; }
.macro-asset-spot { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 14px; }
.macro-asset-spot b { color: var(--ui-ink); font-size: 28px; font-variant-numeric: tabular-nums; }
.macro-asset-spot small { color: var(--ui-muted); font-size: 10px; text-align: right; }
.macro-probability-grid.compact { gap: 7px; margin-top: 13px; }
.macro-probability-grid.compact .macro-probability { padding: 10px; }
.macro-probability-grid.compact .macro-probability span { font-size: 10px; }
.macro-probability-grid.compact .macro-probability b { font-size: 14px; }
.macro-probability-grid.compact .macro-probability > i { margin-top: 8px; }
.macro-asset-stats { display: grid; grid-template-columns: .8fr 1.35fr .75fr; gap: 7px; margin-top: 9px; }
.macro-asset-stats > div { min-width: 0; padding: 10px; background: #f7fafc; border-radius: 9px; }
.macro-asset-stats small { display: block; color: var(--ui-muted); font-size: 9px; }
.macro-asset-stats b { display: block; margin-top: 3px; overflow: hidden; color: var(--ui-ink); font-size: 12px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.macro-forecast-head { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.macro-forecast-head h3 { margin: 4px 0 0; color: var(--ui-ink); font-size: clamp(24px, 2.3vw, 34px); }
.macro-forecast-head p { max-width: 760px; margin: 9px 0 0; color: var(--ui-copy); font-size: 13px; line-height: 1.7; }
.macro-forecast-head > div > small, .macro-block header small { color: var(--ui-blue); font-size: 11px; font-weight: 850; letter-spacing: .11em; }
.macro-spot { min-width: 210px; text-align: right; }
.macro-spot b { display: block; margin-top: 4px; color: var(--ui-ink); font-size: clamp(31px, 3.2vw, 46px); font-variant-numeric: tabular-nums; }
.macro-spot span { display: block; margin-top: 5px; color: #19764f; font-size: 13px; font-weight: 700; }
.macro-probability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.macro-probability { padding: 15px 16px; background: rgba(255,255,255,.78); border: 1px solid #d3e2f0; border-radius: 13px; }
.macro-probability span { color: var(--ui-copy); font-size: 12px; }
.macro-probability b { float: right; color: var(--ui-ink); font-size: 19px; font-variant-numeric: tabular-nums; }
.macro-probability > i { display: block; clear: both; height: 6px; margin-top: 12px; overflow: hidden; background: #e7eef6; border-radius: 999px; }
.macro-probability > i em { display: block; height: 100%; border-radius: inherit; }
.macro-probability.up > i em { background: #e25a55; }
.macro-probability.flat > i em { background: #e4a136; }
.macro-probability.down > i em { background: #12a16b; }
.macro-intervals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.macro-intervals > div { padding: 13px 15px; background: rgba(255,255,255,.65); border: 1px solid #d8e5f1; border-radius: 12px; }
.macro-intervals b { display: block; margin-top: 4px; color: var(--ui-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.macro-no-forecast { text-align: center; padding: 18px; }
.macro-no-forecast strong { font-size: 20px; }
.macro-no-forecast p { max-width: 680px; margin: 8px auto 0; color: var(--ui-copy); }
.macro-grid { display: grid; gap: 22px; }
.macro-grid-primary { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
.macro-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.macro-block { min-width: 0; padding: 22px; background: #fff; border: 1px solid var(--ui-line); border-radius: 18px; box-shadow: 0 8px 24px rgba(31, 66, 105, .05); }
.macro-block > header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 17px; }
.macro-block header h3 { margin: 3px 0 0; color: var(--ui-ink); font-size: 20px; }
.macro-block header > span { color: var(--ui-muted); font-size: 12px; }
.macro-driver-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.macro-driver-grid article { position: relative; min-width: 0; padding: 14px 15px; background: #f7faff; border: 1px solid #dfebf5; border-radius: 12px; }
.macro-driver-grid small { display: block; color: var(--ui-copy); font-size: 11px; }
.macro-driver-grid b { display: block; margin-top: 4px; color: var(--ui-ink); font-size: 17px; }
.macro-driver-grid span { display: block; margin-top: 4px; color: #45627e; font-size: 12px; }
.macro-driver-grid em { position: absolute; right: 12px; bottom: 12px; color: #91a4b7; font-size: 10px; font-style: normal; }
.macro-validation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.macro-validation-grid > div { padding: 12px 13px; background: #f7fafc; border: 1px solid #e1e9f1; border-radius: 11px; }
.macro-validation-grid b { display: block; margin-top: 3px; color: var(--ui-ink); font-size: 19px; }
.macro-validation > p { margin: 13px 0 0; color: var(--ui-copy); font-size: 12px; line-height: 1.65; }
.macro-validation-summary { display: flex; gap: 14px; align-items: center; margin-bottom: 11px; padding: 13px 15px; background: #f5f8fc; border: 1px solid #dce6ef; border-radius: 11px; }
.macro-validation-summary small { display: block; color: var(--ui-muted); font-size: 10px; }
.macro-validation-summary b { display: block; margin-top: 2px; color: var(--ui-ink); font-size: 22px; }
.macro-validation-summary p { margin: 0; color: var(--ui-copy); font-size: 11px; line-height: 1.55; }
.macro-validation-table { width: 100%; min-width: 650px; }
.macro-validation-table th, .macro-validation-table td { padding: 10px 8px; font-size: 11px; }
.macro-validation-table th:nth-child(n+2):nth-child(-n+5), .macro-validation-table td:nth-child(n+2):nth-child(-n+5) { text-align: right; }
.macro-validation-state { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #6d7d8e; background: #eef3f7; font-size: 9px; font-weight: 800; white-space: nowrap; }
.macro-validation-state.initial_pass { color: #087b55; background: #e9f8f1; }
.macro-validation-state.below_baseline { color: #b06225; background: #fff3e8; }
.macro-validation-state.interval_miscalibrated { color: #8b6a2b; background: #fff8df; }
.macro-validation-verdict { margin-bottom: 11px; padding: 13px 15px; background: #f5f8fc; border: 1px solid #dce6ef; border-left: 4px solid #8ba3ba; border-radius: 11px; }
.macro-validation-verdict small, .macro-validation-verdict span { display: block; color: var(--ui-muted); font-size: 11px; }
.macro-validation-verdict strong { display: block; margin: 3px 0; color: var(--ui-ink); font-size: 15px; }
.macro-validation-verdict.initial_pass { background: #effaf5; border-color: #b8e2cf; border-left-color: #0b9b69; }
.macro-validation-verdict.below_baseline { background: #fff7f0; border-color: #efd3b8; border-left-color: #d38332; }
.macro-validation-verdict.interval_miscalibrated { background: #fffbea; border-color: #eadca3; border-left-color: #c59822; }
.macro-outcome-heading { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--ui-line); }
.macro-outcome-heading strong { color: var(--ui-ink); font-size: 13px; }
.macro-outcome-heading span { color: var(--ui-muted); font-size: 11px; text-align: right; }
.macro-outcome-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.macro-outcome-grid > div { padding: 11px 13px; background: #f8fbff; border: 1px solid #dfe9f2; border-radius: 10px; }
.macro-outcome-grid small { display: block; color: var(--ui-muted); font-size: 10px; }
.macro-outcome-grid b { display: block; margin-top: 3px; color: var(--ui-ink); font-size: 17px; }
.macro-outcome-summary > p { margin: 9px 0 0; color: var(--ui-muted); font-size: 11px; }
.macro-outcome-by-asset { display: grid; gap: 6px; margin-top: 9px; }
.macro-outcome-by-asset > div { display: grid; grid-template-columns: minmax(90px, 1fr) auto auto; gap: 9px; align-items: center; padding: 8px 10px; background: #f8fbff; border-radius: 9px; }
.macro-outcome-by-asset span { color: var(--ui-ink); font-size: 11px; font-weight: 750; }
.macro-outcome-by-asset b, .macro-outcome-by-asset small { color: var(--ui-copy); font-size: 10px; font-weight: 650; }
.macro-scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.macro-scenario-grid article { min-width: 0; padding: 18px; background: #f8fbfe; border: 1px solid #dbe7f1; border-radius: 14px; }
.macro-scenario-grid article > small { color: var(--ui-blue); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.macro-scenario-grid strong { display: block; min-height: 42px; margin-top: 6px; color: var(--ui-ink); font-size: 14px; line-height: 1.5; }
.macro-scenario-grid article > div { display: flex; gap: 7px; margin-top: 13px; }
.macro-scenario-grid span { flex: 1; padding: 8px; text-align: center; color: var(--ui-copy); background: #fff; border: 1px solid #e1eaf2; border-radius: 9px; font-size: 11px; }
.macro-scenario-grid span b { display: block; margin-top: 2px; color: var(--ui-ink); font-size: 14px; }
.macro-scenario-grid p { margin: 11px 0 0; color: var(--ui-muted); font-size: 11px; line-height: 1.55; }
.macro-scenario-grid .unavailable { opacity: .72; }
.macro-scenario-assets { display: grid !important; gap: 6px !important; margin-top: 13px !important; }
.macro-scenario-assets > div { display: grid !important; grid-template-columns: minmax(90px, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 9px; background: #fff; border: 1px solid #e1eaf2; border-radius: 9px; }
.macro-scenario-assets span { padding: 0; text-align: left; background: transparent; border: 0; color: var(--ui-copy); font-size: 10px; }
.macro-scenario-assets b { color: var(--ui-ink); font-size: 10px; }
.macro-scenario-assets em { color: var(--ui-muted); font-size: 9px; font-style: normal; text-align: right; }
.macro-table { width: 100%; min-width: 540px; }
.macro-history-table { min-width: 1020px; }
.macro-table td small { display: block; color: var(--ui-muted); font-size: 10px; }
.macro-history-table th:nth-child(4), .macro-history-table td:nth-child(4),
.macro-history-table th:nth-child(6), .macro-history-table td:nth-child(6) { text-align: right; }
.macro-pending { color: #8b6a2b; font-size: 11px; font-weight: 700; }
.macro-outcome-state { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.macro-outcome-state.hit { color: #087b55; background: #e9f8f1; }
.macro-outcome-state.miss { color: #b64b48; background: #fff0ef; }
.macro-source-state { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.macro-source-state.available { color: #087b55; background: #e9f8f1; }
.macro-source-state.missing { color: #b64b48; background: #fff0ef; }
.macro-source-errors { margin-top: 14px; padding: 14px 16px; color: #744f1c; background: #fff9ec; border: 1px solid #efd8aa; border-radius: 12px; font-size: 12px; line-height: 1.6; }
.macro-source-errors strong { color: #7c5115; }
.macro-source-errors ul { margin: 6px 0; padding-left: 18px; }
.macro-source-errors p { margin: 6px 0 0; color: #866b43; }
.macro-inline-empty { padding: 22px; text-align: center; color: var(--ui-muted); background: #f8fafc; border-radius: 12px; }

@media (max-width: 980px) {
  .macro-status-strip, .macro-intervals { grid-template-columns: repeat(2, 1fr); }
  .macro-grid-primary, .macro-grid-secondary { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .macro-heading .report-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .macro-portfolio-head { display: grid; gap: 12px; }
  .macro-portfolio-head > span { justify-self: start; }
  .macro-asset-grid { grid-template-columns: 1fr; }
  .macro-forecast-head { display: grid; gap: 14px; }
  .macro-spot { min-width: 0; text-align: left; }
  .macro-probability-grid, .macro-scenario-grid { grid-template-columns: 1fr; }
  .macro-probability-grid.compact { grid-template-columns: repeat(3, 1fr); }
  .macro-asset-stats { grid-template-columns: 1fr 1.4fr 1fr; }
  .macro-driver-grid { grid-template-columns: 1fr; }
  .macro-shell { padding-inline: 16px; }
  .macro-block, .macro-forecast-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .view-tabs button.active .nav-visual.macro i { animation: none; }
}

/* v4.31 macro research surface: continuous matrix, fewer container cards */
.page-progress-window { right: auto; bottom: auto; }
.macro-content { gap: 28px; }
.macro-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid #d8e3ec;
}
.macro-status-strip > div {
  padding: 13px 18px;
  background: transparent;
  border: 0;
  border-right: 1px solid #dfe8f0;
  border-radius: 0;
}
.macro-status-strip > div:last-child { border-right: 0; }
.macro-status-strip b { margin-top: 3px; font-size: 14px; }
.macro-matrix-panel { min-width: 0; padding: 0; border-block: 1px solid #cddce8; }
.macro-matrix-head { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(560px, 1.55fr); gap: 32px; align-items: end; padding: 24px 0 20px; }
.macro-matrix-head > div:first-child > small,
.macro-study-section > header small,
.macro-evidence-grid header small { color: var(--ui-blue); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.macro-matrix-head h3 { margin: 4px 0 0; color: var(--ui-ink); font-size: clamp(23px, 2vw, 30px); }
.macro-matrix-head p { max-width: 680px; margin: 7px 0 0; color: var(--ui-copy); font-size: 12px; line-height: 1.65; }
.macro-matrix-kpis { display: grid; grid-template-columns: .7fr 1.15fr 1.35fr .75fr; border-left: 1px solid #dce6ee; }
.macro-matrix-kpis > span { min-width: 0; padding: 4px 14px; border-right: 1px solid #dce6ee; }
.macro-matrix-kpis small, .macro-matrix-kpis b { display: block; }
.macro-matrix-kpis small { color: var(--ui-muted); font-size: 10px; }
.macro-matrix-kpis b { margin-top: 5px; overflow: hidden; color: var(--ui-ink); font-size: 14px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.macro-matrix-wrap { margin-inline: -1px; border-top: 1px solid #d8e3ec; }
.macro-matrix-table { width: 100%; min-width: 1180px; border-collapse: collapse; table-layout: fixed; }
.macro-matrix-table th { padding: 11px 12px; color: #72869a; background: #f7f9fb; font-size: 10px; font-weight: 800; text-align: left; letter-spacing: .02em; }
.macro-matrix-table th:nth-child(1) { width: 180px; }
.macro-matrix-table th:nth-child(2) { width: 155px; }
.macro-matrix-table th:nth-child(3) { width: 210px; }
.macro-matrix-table th:nth-child(4) { width: 130px; }
.macro-matrix-table th:nth-child(5) { width: 100px; }
.macro-matrix-table th:nth-child(6) { width: 150px; }
.macro-matrix-table th:nth-child(7) { width: 82px; }
.macro-matrix-table td { position: relative; padding: 14px 12px; color: var(--ui-copy); border-top: 1px solid #e3eaf0; font-size: 12px; vertical-align: middle; }
.macro-matrix-table tbody tr:first-child td { border-top: 0; }
.macro-matrix-table tbody tr:hover td { background: #f8fbfd; }
.macro-matrix-table tbody tr td:first-child { padding-left: 18px; }
.macro-matrix-table tbody tr td:first-child::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: #d19a34; }
.macro-matrix-table tbody tr.direction-up td:first-child::before { background: #dc5753; }
.macro-matrix-table tbody tr.direction-down td:first-child::before { background: #15976a; }
.macro-matrix-table td > b, .macro-matrix-table td > small { display: block; }
.macro-matrix-table td > b { color: var(--ui-ink); font-size: 13px; }
.macro-matrix-table td > small { margin-top: 4px; color: var(--ui-muted); font-size: 10px; }
.macro-matrix-table td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.macro-matrix-table td.numeric small { text-align: right; }
.macro-probability-vector { display: flex; width: 100%; height: 8px; overflow: hidden; background: #e7edf2; border-radius: 2px; }
.macro-probability-vector i { display: block; height: 100%; }
.macro-probability-vector .up { background: #db5c57; }
.macro-probability-vector .flat { background: #d6a13f; }
.macro-probability-vector .down { background: #1b9a6d; }
.macro-vector-labels { display: flex !important; justify-content: space-between; margin-top: 5px !important; font-size: 9px !important; font-variant-numeric: tabular-nums; }
.macro-direction { display: inline-flex; padding: 5px 8px; border: 1px solid #d9e2e9; color: #637789; background: #f7f9fb; border-radius: 5px; font-size: 10px; font-weight: 800; }
.macro-direction.up { color: #aa403d; background: #fff5f4; border-color: #efd0ce; }
.macro-direction.down { color: #08764f; background: #f0faf6; border-color: #c9e8da; }

.macro-study-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(520px, 1.42fr); border-block: 1px solid #d4e0e9; }
.macro-study-section { min-width: 0; padding: 24px 0; }
.macro-study-grid > .macro-study-section:first-child { padding-right: 28px; border-right: 1px solid #dce5ed; }
.macro-study-grid > .macro-study-section:last-child { padding-left: 28px; }
.macro-study-section > header, .macro-evidence-grid section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.macro-study-section > header h3, .macro-evidence-grid header h3 { margin: 3px 0 0; color: var(--ui-ink); font-size: 19px; }
.macro-study-section > header > span, .macro-evidence-grid header > span { color: var(--ui-muted); font-size: 11px; text-align: right; }
.macro-driver-grid { display: block; border-top: 1px solid #e0e8ef; }
.macro-driver-grid article { display: grid; grid-template-columns: 7px minmax(150px, 1fr) 72px 112px; gap: 12px; align-items: center; min-width: 0; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid #e5ebf0; border-radius: 0; }
.macro-driver-grid article > i { width: 7px; height: 7px; background: #c6973d; border-radius: 50%; }
.macro-driver-grid article.up > i { background: #d85350; box-shadow: 0 0 0 4px #fff0ef; }
.macro-driver-grid article.down > i { background: #149468; box-shadow: 0 0 0 4px #eaf8f2; }
.macro-driver-grid article div { min-width: 0; }
.macro-driver-grid article small { color: var(--ui-ink); font-size: 11px; font-weight: 750; }
.macro-driver-grid article em { position: static; display: block; margin-top: 2px; color: var(--ui-muted); font-size: 9px; font-style: normal; }
.macro-driver-grid article b { margin: 0; color: var(--ui-ink); font-size: 13px; text-align: right; }
.macro-driver-grid article > span { margin: 0; color: #4d657b; font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.macro-validation-summary { margin: 0 0 10px; padding: 0 0 12px; background: transparent; border: 0; border-bottom: 1px solid #e0e8ef; border-radius: 0; }
.macro-validation-table th, .macro-validation-table td { padding: 9px 7px; border-bottom-color: #e6ecf1; }
.macro-validation-state { border-radius: 5px; }
.macro-outcome-heading { margin-top: 16px; }
.macro-outcome-grid { grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid #e1e8ee; }
.macro-outcome-grid > div { padding: 10px 12px; background: transparent; border: 0; border-right: 1px solid #e1e8ee; border-radius: 0; }
.macro-outcome-grid > div:last-child { border-right: 0; }
.macro-outcome-by-asset > div { background: transparent; border-bottom: 1px solid #e5ebf0; border-radius: 0; }
.macro-scenario-section { padding-top: 0; }
.macro-scenario-section .macro-scenario-grid { display: block; }
.macro-scenario-wrap { border-block: 1px solid #d9e3eb; }
.macro-scenario-table { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; }
.macro-scenario-table th { padding: 10px; color: #72869a; background: #f7f9fb; border-left: 1px solid #e0e7ed; font-size: 9px; font-weight: 800; text-align: center; }
.macro-scenario-table th:first-child { width: 290px; border-left: 0; text-align: left; }
.macro-scenario-table td { padding: 12px 10px; border-top: 1px solid #e0e7ed; border-left: 1px solid #e0e7ed; vertical-align: middle; }
.macro-scenario-table td:first-child { border-left: 0; }
.macro-scenario-table td:first-child small, .macro-scenario-table td:first-child b { display: block; }
.macro-scenario-table td:first-child small { color: var(--ui-blue); font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.macro-scenario-table td:first-child b { margin-top: 4px; color: var(--ui-ink); font-size: 11px; line-height: 1.45; }
.macro-heat { text-align: center; }
.macro-heat.up { background: #fff3f2; }
.macro-heat.flat { background: #fffaec; }
.macro-heat.down { background: #edf9f4; }
.macro-heat.unavailable { background: #f7f9fb; }
.macro-heat b, .macro-heat span, .macro-heat small { display: block; }
.macro-heat b { color: var(--ui-ink); font-size: 11px; }
.macro-heat span { margin-top: 3px; color: #455f75; font-size: 11px; font-variant-numeric: tabular-nums; }
.macro-heat small { margin-top: 2px; color: var(--ui-muted); font-size: 9px; }
.macro-evidence { border-block: 1px solid #d4e0e9; }
.macro-evidence > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; list-style: none; cursor: pointer; }
.macro-evidence > summary::-webkit-details-marker { display: none; }
.macro-evidence > summary span, .macro-evidence > summary b, .macro-evidence > summary small { display: block; }
.macro-evidence > summary b { color: var(--ui-ink); font-size: 15px; }
.macro-evidence > summary small { margin-top: 3px; color: var(--ui-muted); font-size: 10px; }
.macro-evidence > summary em { color: var(--ui-blue); font-size: 11px; font-style: normal; font-weight: 800; }
.macro-evidence-grid { display: grid; grid-template-columns: minmax(400px, .8fr) minmax(620px, 1.2fr); gap: 28px; padding: 22px 0 8px; border-top: 1px solid #e0e7ed; }
.macro-evidence-grid section { min-width: 0; }

@media (max-width: 1120px) {
  .macro-matrix-head { grid-template-columns: 1fr; }
  .macro-study-grid { grid-template-columns: 1fr; }
  .macro-study-grid > .macro-study-section:first-child { padding-right: 0; border-right: 0; }
  .macro-study-grid > .macro-study-section:last-child { padding-left: 0; border-top: 1px solid #dce5ed; }
  .macro-evidence-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .macro-content { gap: 22px; }
  .macro-status-strip { grid-template-columns: repeat(2, 1fr); }
  .macro-status-strip > div:nth-child(2) { border-right: 0; }
  .macro-status-strip > div:nth-child(-n+2) { border-bottom: 1px solid #dfe8f0; }
  .macro-matrix-head { gap: 18px; padding-top: 18px; }
  .macro-matrix-kpis { grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid #dce6ee; }
  .macro-matrix-kpis > span { padding: 10px 8px; border-bottom: 1px solid #dce6ee; }
  .macro-study-section { padding: 20px 0; }
  .macro-driver-grid article { grid-template-columns: 7px minmax(120px, 1fr) 64px; }
  .macro-driver-grid article > span { grid-column: 2 / -1; text-align: left; }
  .macro-outcome-grid { grid-template-columns: 1fr 1fr; }
  .macro-outcome-grid > div:nth-child(2) { border-right: 0; }
  .macro-outcome-grid > div:nth-child(-n+2) { border-bottom: 1px solid #e1e8ee; }
  .macro-evidence-grid { min-width: 0; }
}

/* v4.32 macro intelligence experience */
.macro-shell { position: relative; overflow: visible; }
.macro-intelligence-stage {
  --macro-night: #0b2747;
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: clamp(42px, 5vw, 66px) clamp(28px, 5vw, 70px) 112px;
  color: #173754;
  background:
    radial-gradient(circle at 80% 42%, rgba(67, 157, 234, .14), transparent 25%),
    radial-gradient(circle at 62% 12%, rgba(68, 220, 185, .10), transparent 23%),
    linear-gradient(135deg, #ffffff 0%, #f5faff 47%, #edf7ff 100%);
  border: 1px solid #c7dbed;
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(30, 82, 132, .12), inset 0 1px 0 rgba(255,255,255,.9);
  isolation: isolate;
}
.macro-intelligence-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 480px;
  right: -180px;
  top: -210px;
  background: conic-gradient(from 120deg, transparent, rgba(45,132,223,.12), transparent 42%, rgba(58,214,175,.08), transparent 72%);
  border-radius: 50%;
  animation: macroAmbientSpin 28s linear infinite;
}
.macro-intelligence-canvas,
.macro-stage-grid,
.macro-stage-scan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.macro-intelligence-canvas { z-index: 0; opacity: .92; }
.macro-stage-grid {
  z-index: -1;
  opacity: .38;
  background-image:
    linear-gradient(rgba(68, 118, 166, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 118, 166, .07) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
}
.macro-stage-scan {
  z-index: 1;
  left: 50%;
  width: 52%;
  opacity: .35;
  background: linear-gradient(180deg, transparent 0%, rgba(75,157,230,.24) 49%, rgba(75,157,230,.42) 50%, transparent 51%);
  background-size: 100% 210%;
  animation: macroScanField 8s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 90%, transparent);
}
.macro-stage-copy { position: relative; z-index: 3; max-width: min(650px, 56%); }
.macro-stage-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #2374bd;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}
.macro-stage-kicker i {
  width: 7px;
  height: 7px;
  background: #2fd3a7;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(47,211,167,.38);
  animation: macroLivePulse 2s ease-out infinite;
}
.macro-stage-copy h2 {
  margin: 17px 0 0;
  color: var(--macro-night);
  background: linear-gradient(105deg, #0c2848 10%, #1569ad 58%, #138c79 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(45px, 5.2vw, 76px);
  font-weight: 780;
  line-height: .98;
  letter-spacing: -.055em;
}
.macro-stage-copy > p:not(.macro-stage-kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: #486780;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.85;
}
.macro-ai-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 630px;
  margin-top: 32px;
  border-block: 1px solid rgba(92,135,174,.22);
}
.macro-ai-pipeline > span { position: relative; min-width: 0; padding: 14px 12px 14px 0; }
.macro-ai-pipeline > span::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 8px;
  width: calc(100% - 37px);
  height: 1px;
  background: #ccdce9;
}
.macro-ai-pipeline > span:last-child::after { display: none; }
.macro-ai-pipeline i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #7891a7;
  background: #fff;
  border: 1px solid #b9cddd;
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}
.macro-ai-pipeline .complete i { color: #087a5b; background: #e8fbf5; border-color: #89ddc5; }
.macro-ai-pipeline .active i { color: #fff; background: #287cc7; border-color: #287cc7; box-shadow: 0 0 0 6px rgba(40,124,199,.11); animation: macroStagePulse 2.4s ease-in-out infinite; }
.macro-ai-pipeline b, .macro-ai-pipeline small { display: block; }
.macro-ai-pipeline b { margin-top: 9px; color: #23435f; font-size: 11px; }
.macro-ai-pipeline small { margin-top: 2px; color: #8397a9; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.macro-core-wrap {
  position: absolute;
  z-index: 2;
  top: 42%;
  right: clamp(90px, 13vw, 210px);
  width: 186px;
  height: 186px;
  transform: translateY(-50%);
}
.macro-ai-core {
  position: absolute;
  inset: 42px;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 38% 28%, rgba(255,255,255,.96), rgba(223,244,255,.93) 38%, rgba(116,191,238,.34) 70%, rgba(54,139,209,.22));
  border: 1px solid rgba(66,147,213,.38);
  border-radius: 50%;
  box-shadow: 0 0 38px rgba(55,153,224,.24), inset 0 0 24px rgba(255,255,255,.96);
  animation: macroCoreBreathe 3.6s ease-in-out infinite;
}
.macro-ai-core::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(52,152,216,.17);
  border-radius: 50%;
}
.macro-ai-core span { color: #136ba9; font-size: 30px; font-weight: 760; line-height: .9; }
.macro-ai-core small { margin-top: 6px; color: #4f7895; font-size: 6px; font-weight: 850; letter-spacing: .12em; line-height: 1.35; }
.macro-core-orbit { position: absolute; inset: 0; border: 1px solid rgba(61,136,199,.24); border-radius: 50%; }
.macro-core-orbit::before { content: ""; position: absolute; inset: 16px; border: 1px dashed rgba(40,154,181,.19); border-radius: 50%; }
.macro-core-orbit i { position: absolute; width: 6px; height: 6px; background: #3bd2ad; border: 2px solid #f5fbff; border-radius: 50%; box-shadow: 0 0 13px rgba(48,201,165,.65); }
.macro-core-orbit i:first-child { top: -3px; left: 50%; }
.macro-core-orbit i:nth-child(2) { right: 10px; bottom: 36px; background: #579ce1; box-shadow: 0 0 13px rgba(66,143,218,.65); }
.macro-core-orbit i:nth-child(3) { left: 4px; top: 62%; background: #f2b456; box-shadow: 0 0 13px rgba(242,180,86,.65); }
.macro-core-orbit.orbit-a { animation: macroOrbit 14s linear infinite; }
.macro-core-orbit.orbit-b { inset: 18px; animation: macroOrbitReverse 9s linear infinite; }
.macro-core-caption { position: absolute; left: 50%; bottom: -28px; display: flex; align-items: center; gap: 7px; transform: translateX(-50%); white-space: nowrap; }
.macro-core-caption i { width: 5px; height: 5px; background: #25bf96; border-radius: 50%; animation: macroLivePulse 1.8s ease-out infinite; }
.macro-core-caption span { color: #54748d; font-size: 9px; font-weight: 750; letter-spacing: .04em; }
.macro-stage-actions {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 5vw, 70px);
  bottom: 104px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.macro-run-button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(110deg, #166fb8, #268fd0 55%, #159b83);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(23,111,181,.22);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.macro-run-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
  animation: macroButtonSweep 4.2s ease-in-out infinite;
}
.macro-run-button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(23,111,181,.28); }
.macro-run-button:disabled { opacity: .68; cursor: progress; transform: none; }
.macro-run-button i { position: relative; z-index: 1; width: 9px; height: 9px; background: #8ff7d7; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; box-shadow: 0 0 0 0 rgba(143,247,215,.4); animation: macroLivePulse 2s ease-out infinite; }
.macro-run-button span { position: relative; z-index: 1; }
.macro-experiment-badge { background: rgba(255,248,232,.82); backdrop-filter: blur(10px); }
.macro-live-readout {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr 1.25fr;
  min-height: 78px;
  padding: 0 clamp(20px, 4vw, 54px);
  background: rgba(247,251,255,.78);
  border-top: 1px solid rgba(132,171,205,.28);
  backdrop-filter: blur(16px);
}
.macro-live-readout > span { min-width: 0; align-self: center; padding: 0 18px; border-right: 1px solid rgba(132,171,205,.24); }
.macro-live-readout > span:first-child { padding-left: 0; }
.macro-live-readout > span:last-child { padding-right: 0; border-right: 0; }
.macro-live-readout small, .macro-live-readout b { display: block; }
.macro-live-readout small { color: #7e94a8; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.macro-live-readout b { margin-top: 5px; overflow: hidden; color: #183a58; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.macro-content:not([hidden]) { animation: macroSurfaceReveal .65s cubic-bezier(.22,.8,.32,1) both; }
.macro-matrix-table tbody tr,
.macro-driver-grid article { animation: macroRowReveal .42s ease both; animation-delay: calc(var(--macro-row, 0) * 55ms); }
.macro-probability-vector i { transform-origin: left center; animation: macroVectorGrow .7s cubic-bezier(.22,.8,.32,1) both; }
.macro-probability-vector .flat { animation-delay: .08s; }
.macro-probability-vector .down { animation-delay: .16s; }
.macro-driver-grid article > i { animation: macroDriverPulse 2.8s ease-in-out infinite; }
.macro-scenario-table td.macro-heat { transition: filter .2s ease, transform .2s ease; }
.macro-scenario-table td.macro-heat:hover { z-index: 1; filter: saturate(1.2); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30,82,132,.10); }

@keyframes macroAmbientSpin { to { transform: rotate(360deg); } }
@keyframes macroScanField { 0%, 12% { background-position: 0 -110%; opacity: 0; } 28%, 72% { opacity: .35; } 88%, 100% { background-position: 0 110%; opacity: 0; } }
@keyframes macroLivePulse { 0% { box-shadow: 0 0 0 0 rgba(47,211,167,.42); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47,211,167,0); } }
@keyframes macroStagePulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(40,124,199,.08); } 50% { box-shadow: 0 0 0 8px rgba(40,124,199,.14); } }
@keyframes macroCoreBreathe { 0%, 100% { transform: scale(.97); filter: saturate(.92); } 50% { transform: scale(1.04); filter: saturate(1.18); } }
@keyframes macroOrbit { to { transform: rotate(360deg); } }
@keyframes macroOrbitReverse { to { transform: rotate(-360deg); } }
@keyframes macroButtonSweep { 0%, 42% { transform: translateX(-120%); } 68%, 100% { transform: translateX(120%); } }
@keyframes macroSurfaceReveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes macroRowReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes macroVectorGrow { from { transform: scaleX(0); opacity: .25; } to { transform: scaleX(1); opacity: 1; } }
@keyframes macroDriverPulse { 0%, 100% { transform: scale(.78); opacity: .55; } 50% { transform: scale(1.18); opacity: 1; } }

@media (max-width: 1020px) {
  .macro-intelligence-stage { min-height: 610px; }
  .macro-stage-copy { max-width: 62%; }
  .macro-core-wrap { right: 7vw; }
  .macro-ai-pipeline { grid-template-columns: 1fr 1fr; }
  .macro-ai-pipeline > span:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .macro-shell { padding-inline: 12px; }
  .macro-intelligence-stage { display: flex; min-height: 0; flex-direction: column; padding: 30px 20px 0; border-radius: 22px; }
  .macro-stage-copy { max-width: none; }
  .macro-stage-copy h2 { font-size: 48px; }
  .macro-stage-copy > p:not(.macro-stage-kicker) { margin-top: 16px; font-size: 14px; line-height: 1.72; }
  .macro-stage-kicker { font-size: 9px; letter-spacing: .11em; }
  .macro-ai-pipeline { margin-top: 24px; }
  .macro-ai-pipeline > span { padding-block: 10px; }
  .macro-ai-pipeline b { margin-top: 6px; }
  .macro-core-wrap { position: relative; top: auto; right: auto; width: 108px; height: 108px; margin: 14px auto 22px; transform: none; }
  .macro-ai-core { inset: 24px; }
  .macro-ai-core span { font-size: 21px; }
  .macro-ai-core small { margin-top: 3px; font-size: 5px; }
  .macro-core-orbit::before { inset: 10px; }
  .macro-core-caption { bottom: -17px; }
  .macro-stage-actions { position: relative; left: auto; bottom: auto; display: grid; grid-template-columns: 1fr; margin-bottom: 22px; }
  .macro-run-button { justify-content: center; min-height: 48px; }
  .macro-experiment-badge { min-height: 0; padding: 8px 10px; text-align: center; }
  .macro-live-readout { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr 1fr; min-height: 0; margin-inline: -20px; padding: 0 14px; }
  .macro-live-readout > span { min-height: 66px; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border-bottom: 1px solid rgba(132,171,205,.24); }
  .macro-live-readout > span:nth-child(2) { border-right: 0; }
  .macro-live-readout > span:nth-child(n+3) { border-bottom: 0; }
  .macro-intelligence-canvas { opacity: .5; }
  .macro-stage-grid { opacity: .24; -webkit-mask-image: none; mask-image: none; }
  .macro-stage-scan { left: 0; width: 100%; opacity: .18; }
  .macro-content { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .macro-intelligence-stage::before,
  .macro-stage-scan,
  .macro-stage-kicker i,
  .macro-ai-pipeline .active i,
  .macro-ai-core,
  .macro-core-orbit,
  .macro-core-caption i,
  .macro-run-button::after,
  .macro-run-button i,
  .macro-content:not([hidden]),
  .macro-matrix-table tbody tr,
  .macro-driver-grid article,
  .macro-probability-vector i,
  .macro-driver-grid article > i { animation: none !important; }
}

/* MoneyRadar v4.33 — opportunity radar decision cockpit */
.brief-verdict:has(.opportunity-cockpit) {
  display: block;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.brief-verdict:has(.opportunity-cockpit)::before { display: none; }
.opportunity-cockpit {
  --cockpit-tone: #1769e0;
  --cockpit-soft: #edf5ff;
  overflow: hidden;
  color: #17283d;
  background: #f5f8fc;
  border: 1px solid #d5e1ed;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(31, 67, 105, .09);
}
.opportunity-cockpit.buy { --cockpit-tone: #069565; --cockpit-soft: #eaf8f2; }
.opportunity-cockpit.cash { --cockpit-tone: #c17a16; --cockpit-soft: #fff6e8; }
.opportunity-cockpit.hold { --cockpit-tone: #1769e0; --cockpit-soft: #edf5ff; }
.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid #dce6ef;
}
.cockpit-header > div:first-child > span,
.cockpit-reasons > span,
.cockpit-funnel header span,
.cockpit-comparison header span,
.cockpit-lifecycle header span {
  color: #6d8095;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.cockpit-header h2 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.02em; }
.cockpit-runtime { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cockpit-runtime span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  color: #66798e;
  font-size: 12px;
  background: #f3f6fa;
  border: 1px solid #e0e7ef;
  border-radius: 999px;
}
.cockpit-runtime span b { color: #23364d; }
.cockpit-runtime span.ok { color: #087753; background: #ebf8f2; border-color: #cdebdc; }
.cockpit-runtime span.warn { color: #a05b09; background: #fff5e5; border-color: #f1d8ab; }
.cockpit-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .72fr); gap: 16px; padding: 20px 20px 0; }
.cockpit-primary,
.cockpit-reasons,
.cockpit-funnel,
.cockpit-comparison,
.cockpit-lifecycle {
  background: #fff;
  border: 1px solid #d8e3ed;
  border-radius: 18px;
}
.cockpit-primary { min-width: 0; padding: 25px; }
.cockpit-primary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cockpit-primary-head > div > span { color: var(--cockpit-tone); font-size: 12px; font-weight: 800; }
.cockpit-primary-head h3 { margin: 7px 0 0; font-size: clamp(25px, 2.2vw, 36px); letter-spacing: -.035em; }
.cockpit-primary-head p { max-width: 760px; margin: 8px 0 0; color: #63768b; font-size: 15px; line-height: 1.65; }
.cockpit-primary-head em {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--cockpit-tone);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: var(--cockpit-soft);
  border-radius: 999px;
}
.cockpit-price-lane { margin: 38px 6px 30px; padding: 24px 0 18px; }
.price-lane-track { position: relative; height: 9px; background: #e8eef4; border-radius: 99px; }
.price-lane-track .buy-zone { position: absolute; top: 0; bottom: 0; background: rgba(23,105,224,.35); border-radius: 99px; }
.price-marker { position: absolute; top: -7px; width: 3px; height: 23px; background: #667e96; border-radius: 3px; transform: translateX(-50%); }
.price-marker.current { width: 4px; background: var(--cockpit-tone); }
.price-marker.review { background: #d34e52; }
.price-marker.target { background: #1769e0; }
.price-marker small,
.price-marker b { position: absolute; left: 50%; display: block; white-space: nowrap; transform: translateX(-50%); }
.price-marker small { bottom: 28px; color: #73869a; font-size: 10px; font-style: normal; }
.price-marker b { top: 29px; color: #24364c; font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; }
.cockpit-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cockpit-metrics span { min-width: 0; padding: 13px 14px; background: #f5f8fb; border-radius: 12px; }
.cockpit-metrics small,
.cockpit-metrics b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cockpit-metrics small { color: #72859a; font-size: 11px; }
.cockpit-metrics b { margin-top: 5px; color: #1e3249; font-size: 17px; font-variant-numeric: tabular-nums; }
.cockpit-open-report {
  min-height: 44px;
  margin-top: 16px;
  padding: 0;
  color: #1769e0;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.cockpit-reasons { padding: 24px; }
.cockpit-reasons h3 { margin: 5px 0 0; font-size: 21px; }
.cockpit-reasons ol { display: grid; gap: 17px; margin: 22px 0 0; padding: 0; list-style: none; }
.cockpit-reasons li { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 10px; align-items: start; }
.cockpit-reasons li i { width: 27px; height: 27px; display: grid; place-items: center; color: var(--cockpit-tone); font-size: 12px; font-style: normal; font-weight: 800; background: var(--cockpit-soft); border-radius: 50%; }
.cockpit-reasons li span { color: #455b72; font-size: 14px; line-height: 1.55; }
.cockpit-funnel,
.cockpit-comparison,
.cockpit-lifecycle { margin: 16px 20px 0; padding: 20px 22px; }
.cockpit-funnel header,
.cockpit-comparison header,
.cockpit-lifecycle header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cockpit-funnel h3,
.cockpit-comparison h3,
.cockpit-lifecycle h3 { margin: 3px 0 0; font-size: 19px; }
.cockpit-funnel > div,
.cockpit-lifecycle > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.cockpit-funnel > div > span,
.cockpit-lifecycle > div > span { position: relative; min-width: 0; padding: 14px 16px 11px 18px; border-top: 3px solid #dce4ec; }
.cockpit-funnel > div > span + span::before,
.cockpit-lifecycle > div > span + span::before { content: ""; position: absolute; left: -7px; top: -6px; width: 11px; height: 11px; background: #dce4ec; border: 3px solid #fff; border-radius: 50%; }
.cockpit-funnel > div > span.done,
.cockpit-lifecycle > div > span.done { border-color: #0b9b69; }
.cockpit-funnel > div > span.active,
.cockpit-lifecycle > div > span.active { border-color: #1769e0; }
.cockpit-funnel > div > span.blocked,
.cockpit-lifecycle > div > span.blocked { border-color: #d18a22; }
.cockpit-funnel > div > span.done + span::before,
.cockpit-lifecycle > div > span.done + span::before { background: #0b9b69; }
.cockpit-funnel > div > span.active + span::before,
.cockpit-lifecycle > div > span.active + span::before { background: #1769e0; }
.cockpit-funnel span > i { display: none; }
.cockpit-funnel span > b,
.cockpit-funnel span > small,
.cockpit-lifecycle span > b,
.cockpit-lifecycle span > small { display: block; }
.cockpit-funnel span > b,
.cockpit-lifecycle span > b { font-size: 14px; }
.cockpit-funnel span > small,
.cockpit-lifecycle span > small { margin-top: 5px; color: #718499; font-size: 11px; }
.cockpit-comparison header > small { color: #6e8196; font-size: 12px; }
.comparison-row { display: grid; grid-template-columns: 34px minmax(150px, 1fr) repeat(3, minmax(100px, .72fr)) auto; gap: 12px; align-items: center; min-height: 54px; margin-top: 10px; padding: 0 12px; color: #60748a; background: #f7f9fc; border-radius: 11px; }
.comparison-row.leader { color: #29435d; background: var(--cockpit-soft); }
.comparison-row > b { color: var(--cockpit-tone); font-size: 18px; }
.comparison-row > strong { color: #21374e; }
.comparison-row > span { font-size: 12px; font-variant-numeric: tabular-nums; }
.comparison-row > em { color: var(--cockpit-tone); font-size: 11px; font-style: normal; font-weight: 800; }
.cockpit-lifecycle > div > span > i { display: none; }
.cockpit-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 20px 20px; padding: 15px 18px; color: #5f748b; font-size: 13px; background: #fff; border: 1px solid #d8e3ed; border-radius: 14px; }
.cockpit-footer button { min-height: 44px; padding: 0; color: #1769e0; font: inherit; font-weight: 800; background: transparent; border: 0; cursor: pointer; }
.cockpit-empty { padding: 34px; background: #fff; }
.cockpit-empty b { font-size: 22px; }
.cockpit-empty p { margin: 7px 0 0; color: #687b90; }
@keyframes cockpitActivePulse { 50% { box-shadow: 0 0 0 7px rgba(23,105,224,.08); } }
.cockpit-funnel > div > span.active + span::before,
.cockpit-lifecycle > div > span.active + span::before { animation: cockpitActivePulse 1.8s ease-in-out infinite; }

@media (max-width: 1050px) {
  .cockpit-grid { grid-template-columns: 1fr; }
  .comparison-row { grid-template-columns: 30px minmax(150px, 1fr) repeat(2, minmax(90px, .7fr)) auto; }
  .comparison-row > span:nth-of-type(1) { display: none; }
}
@media (max-width: 760px) {
  .opportunity-cockpit { border-radius: 19px; }
  .cockpit-header { align-items: flex-start; flex-direction: column; padding: 18px 16px; }
  .cockpit-runtime { justify-content: flex-start; }
  .cockpit-runtime span { min-height: 32px; padding-inline: 9px; }
  .cockpit-grid { padding: 12px 12px 0; }
  .cockpit-primary,
  .cockpit-reasons { padding: 19px 16px; border-radius: 15px; }
  .cockpit-primary-head { flex-direction: column; }
  .cockpit-primary-head h3 { font-size: 27px; }
  .cockpit-primary-head p { font-size: 14px; }
  .cockpit-primary-head em { order: -1; }
  .cockpit-price-lane { margin: 34px 12px 32px; }
  .price-marker small { font-size: 9px; }
  .cockpit-metrics { grid-template-columns: 1fr 1fr; }
  .cockpit-metrics span { min-height: 68px; display: flex; flex-direction: column; justify-content: center; }
  .cockpit-funnel,
  .cockpit-comparison,
  .cockpit-lifecycle { margin: 12px 12px 0; padding: 18px 16px; border-radius: 15px; }
  .cockpit-funnel > div,
  .cockpit-lifecycle > div { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .cockpit-funnel > div > span:nth-child(3)::before,
  .cockpit-lifecycle > div > span:nth-child(3)::before { display: none; }
  .comparison-row { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .comparison-row > span { display: none; }
  .comparison-row > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cockpit-footer { align-items: flex-start; flex-direction: column; margin: 12px; }
  .cockpit-footer button { width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .cockpit-funnel > div > span.active + span::before,
  .cockpit-lifecycle > div > span.active + span::before { animation: none; }
}

/* MoneyRadar v4.34 — one subject, one frozen plan, one review context */
.rank-outcomes { grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); }
.rank-outcomes > span {
  padding: 7px 8px;
  background: #f5f8fb;
  border-radius: 9px;
}
.check-plan.radar-context {
  padding: 22px;
  background: #f8fbff !important;
  border: 1px solid #cbddec !important;
  border-left: 4px solid #1769e0 !important;
  border-radius: 18px;
}
.check-plan.radar-context.pass { border-left-color: #089a68 !important; }
.radar-independent-audit {
  margin-top: 18px;
  padding: 16px 18px;
  color: #50677e;
  background: #fff;
  border: 1px solid #d9e4ed;
  border-radius: 13px;
}
.radar-independent-audit > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.radar-independent-audit span { color: #263c53; font-size: 13px; font-weight: 800; }
.radar-independent-audit b { padding: 5px 9px; font-size: 11px; border-radius: 999px; }
.radar-independent-audit b.confirm { color: #08764f; background: #e3f7ee; }
.radar-independent-audit b.wait { color: #9c6209; background: #fff2dd; }
.radar-independent-audit b.risk { color: #b53e3b; background: #ffe8e7; }
.radar-independent-audit p { margin: 9px 0 4px; font-size: 13px; line-height: 1.55; }
.radar-independent-audit small { color: #718397; font-size: 11px; line-height: 1.5; }

@media (max-width: 760px) {
  .check-plan.radar-context { padding: 17px 14px; }
  .radar-independent-audit > div { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* MoneyRadar v4.35 — opportunity prices and expected payoff hierarchy */
.cockpit-metrics span {
  position: relative;
  min-height: 92px;
  padding: 15px 16px 14px 18px;
  overflow: hidden;
  background: #f7f9fc;
  border: 1px solid #e3eaf1;
}
.cockpit-metrics span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #a8b7c6;
}
.cockpit-metrics span.live { background: #edf5ff; border-color: #cfe0f4; }
.cockpit-metrics span.live::before { background: #1769e0; }
.cockpit-metrics span.entry { background: #fff9ed; border-color: #f0dfb8; }
.cockpit-metrics span.entry::before { background: #d28b1f; }
.cockpit-metrics span.risk { background: #fff3f2; border-color: #efd5d2; }
.cockpit-metrics span.risk::before { background: #d34e52; }
.cockpit-metrics span.target { background: #eef9f4; border-color: #d2eade; }
.cockpit-metrics span.target::before { background: #0a9b69; }
.cockpit-metrics span.target.strong { background: #e7f7ef; border-color: #bee2d1; }
.cockpit-metrics span.payoff { background: #f2f0ff; border-color: #ddd8f5; }
.cockpit-metrics span.payoff::before { background: #705bc2; }
.cockpit-metrics span.live b,
.cockpit-metrics span.target b,
.cockpit-metrics span.payoff b { font-size: 22px; }
.cockpit-metrics span.risk b { color: #bc3d42; }
.cockpit-metrics span.target b { color: #087a56; }
.cockpit-metrics span.live b { color: #145fbf; }
.cockpit-metrics em {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #6c7f93;
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-marker.target-two { background: #089868; }

.opportunity-rank-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.opportunity-rank-card,
.opportunity-rank-card.featured {
  grid-column: auto;
  grid-template-columns: 58px minmax(230px, .9fr) 86px minmax(620px, 1.8fr);
  grid-template-areas: "index identity score prices" "index outcomes outcomes open";
  padding: 22px 24px;
}
.rank-prices {
  grid-template-columns: .78fr 1.18fr .9fr .86fr .86fr;
  border-color: #d8e4ee;
  box-shadow: 0 7px 22px rgba(37, 75, 115, .055);
}
.rank-prices > span {
  position: relative;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 13px 11px 16px;
  background: #f8fafc;
}
.rank-prices > span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #aab8c6;
}
.rank-prices > span.live { background: #edf5ff; }
.rank-prices > span.live::before { background: #1769e0; }
.rank-prices > span.entry { background: #fff9ed; }
.rank-prices > span.entry::before { background: #d28b1f; }
.rank-prices > span.risk { background: #fff3f2; }
.rank-prices > span.risk::before { background: #d34e52; }
.rank-prices > span.target { background: #eef9f4; }
.rank-prices > span.target::before { background: #0a9b69; }
.rank-prices > span.target.strong { background: #e6f7ef; }
.rank-prices small,
.rank-prices b,
.rank-prices em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-prices small { color: #6d8094; font-size: 10px; font-weight: 720; }
.rank-prices b { margin-top: 5px; color: #22374e; font-size: 17px; font-variant-numeric: tabular-nums; }
.rank-prices .live b { color: #145fbf; font-size: 22px; }
.rank-prices .risk b { color: #bc3d42; }
.rank-prices .target b { color: #087a56; }
.rank-prices em { margin-top: 5px; color: #6f8295; font-size: 9px; font-style: normal; }
.rank-outcomes { grid-template-columns: repeat(6, minmax(88px, 1fr)); }
.rank-outcomes > span { min-height: 52px; display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; }
.rank-outcomes > span.failure b { color: #ba3f43; }
.rank-outcomes > span.big-win b { color: #087a56; }

@media (max-width: 1380px) {
  .opportunity-rank-card,
  .opportunity-rank-card.featured {
    grid-template-columns: 52px minmax(220px, 1fr) 78px;
    grid-template-areas: "index identity score" "index prices prices" "index outcomes open";
  }
  .rank-prices { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rank-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-prices > span + span { border-left: 0; border-top: 1px solid #dfe7f0; }
  .rank-prices > span.live { grid-column: 1 / -1; }
  .rank-outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .opportunity-rank-card,
  .opportunity-rank-card.featured {
    grid-template-columns: 38px minmax(0, 1fr) 58px;
    grid-template-areas: "index identity score" "prices prices prices" "outcomes outcomes outcomes" "open open open";
    padding: 15px;
  }
  .cockpit-metrics span { min-height: 86px; padding: 13px 13px 12px 15px; }
  .cockpit-metrics span.live b,
  .cockpit-metrics span.target b,
  .cockpit-metrics span.payoff b { font-size: 19px; }
  .price-marker.target-two small,
  .price-marker.target-two b { transform: translateX(-82%); }
}
@media (max-width: 460px) {
  .rank-prices { grid-template-columns: minmax(0, 1fr); }
  .rank-prices > span.live { grid-column: auto; }
  .rank-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 资金流雷达 ────────────────────────────────────────────── */
.champion-flow { margin: 16px 0; }
.champion-flow-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: .7;
  margin-top: 4px;
}
/* 交易计划一格里塞三行：动作、日期、以及「不设止损止盈」。
   最后一行是刻意留的——没有止损不是遗漏，看的人需要知道这是设计。 */
.champion-flow-plan { line-height: 1.4; }
.champion-flow-plan b { display: block; font-size: 13px; }
.champion-flow-plan small { display: block; font-size: 11.5px; opacity: .68; }
.champion-flow td small.up { color: var(--rise, #C8102E); margin-left: 4px; }
.champion-flow td small.down { color: var(--fall, #0E9A63); margin-left: 4px; }

/* ── v4.43 市场解读：纵向收盘日志，不做卡片墙 ─────────────────────────── */
.market-readout-shell { max-width: 1480px; margin-inline: auto; }
.market-readout-shell .panel-heading { align-items: flex-start; }
.market-readout-shell .report-actions { max-width: 580px; align-items: flex-end; flex-direction: column; }
.market-journal-dates { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.market-journal-dates button {
  min-width: 52px; min-height: 34px; padding: 6px 10px;
  color: #64778c; background: #fff; border: 1px solid #d7e1eb; border-radius: 999px;
  font-size: 11px; font-weight: 700; cursor: pointer;
}
.market-journal-dates button:hover { color: #155fbf; border-color: #8eb8e6; }
.market-journal-dates button.active { color: #fff; background: #1769d9; border-color: #1769d9; }

.market-readout-lead {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(480px, 1fr);
  gap: 30px; margin: 28px 0 12px; padding: 34px 36px;
  background: linear-gradient(120deg, #f4f9ff 0%, #fff 56%, #f3fbf8 100%);
  border: 1px solid #cbddeb; border-radius: 26px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(31, 72, 115, .08);
  animation: marketJournalReveal .42s ease both;
}
.market-readout-lead::after {
  position: absolute; width: 260px; height: 260px; right: -120px; top: -150px;
  border: 1px solid rgba(23, 105, 217, .18); border-radius: 50%; content: "";
  box-shadow: 0 0 0 38px rgba(23, 105, 217, .035), 0 0 0 76px rgba(9, 155, 105, .025);
}
.market-lead-copy { position: relative; z-index: 1; }
.market-log-stamp { color: #1769d9; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.market-lead-copy h3 { max-width: 760px; margin: 16px 0 22px; color: #182d45; font-size: clamp(23px, 2.2vw, 34px); line-height: 1.45; }
.market-lead-verdicts { display: grid; gap: 9px; }
.market-lead-verdicts p { display: flex; gap: 12px; margin: 0; color: #536a82; font-size: 14px; line-height: 1.65; }
.market-lead-verdicts b { flex: 0 0 42px; color: #223a54; }
.market-pulse-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #dbe6ef; border-radius: 18px; overflow: hidden; }
.market-pulse-cell { min-height: 112px; padding: 18px 20px; background: rgba(255, 255, 255, .78); border-right: 1px solid #e2eaf2; border-bottom: 1px solid #e2eaf2; }
.market-pulse-cell:nth-child(2n) { border-right: 0; }
.market-pulse-cell:nth-last-child(-n+2) { border-bottom: 0; }
.market-pulse-cell:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.market-pulse-cell span, .market-pulse-cell em { display: block; color: #72859a; font-size: 11px; font-style: normal; }
.market-pulse-cell strong { display: block; margin: 8px 0 6px; color: #21364e; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.market-pulse-cell strong i { margin-left: 2px; color: #718398; font-size: 12px; font-style: normal; }

.market-readout-index {
  position: sticky; top: 8px; z-index: 6; display: flex; gap: 5px; margin: 22px 0 4px; padding: 6px;
  background: rgba(255, 255, 255, .92); border: 1px solid #d9e4ee; border-radius: 14px;
  box-shadow: 0 8px 25px rgba(31, 66, 105, .07); backdrop-filter: blur(14px); overflow-x: auto;
}
.market-readout-index a { flex: 1 0 auto; min-height: 38px; padding: 9px 14px; color: #60768d; border-radius: 9px; text-align: center; text-decoration: none; font-size: 12px; font-weight: 750; }
.market-readout-index a:hover { color: #155fbf; background: #eef5fd; }

.market-journal-section { position: relative; margin: 0; padding: 52px 0 48px 48px; border-bottom: 1px solid #e0e8f0; }
.market-journal-section::before { position: absolute; left: 17px; top: 58px; bottom: -1px; width: 1px; background: #d7e3ee; content: ""; }
.market-journal-section::after { position: absolute; left: 12px; top: 61px; width: 11px; height: 11px; background: #fff; border: 3px solid #1769d9; border-radius: 50%; content: ""; }
.market-journal-section:last-child { border-bottom: 0; }
.market-journal-section .panel-block-head { margin-bottom: 22px; }
.market-journal-section .panel-block-head h3 { margin: 5px 0 7px; color: #1d334b; font-size: 24px; }
.market-section-no { color: #1769d9; font-size: 10px; font-weight: 800; letter-spacing: .16em; }

.market-line-list.panel-industry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid #dce6ee; }
.market-line-row.panel-sector {
  display: grid; grid-template-columns: 44px minmax(250px, .9fr) minmax(300px, 1.1fr); align-items: center;
  gap: 18px; padding: 18px 4px; background: #fff; border: 0; border-bottom: 1px solid #e4ebf2; border-radius: 0;
}
.market-line-row > header { grid-column: 2; }
.market-line-row > .panel-bar, .market-line-row > .panel-sector-meta, .market-line-row > .panel-leaders { grid-column: 3; }
.market-line-row > .panel-bar { margin: 0 0 7px; }
.market-line-row > .panel-leaders { margin: 8px 0 0; padding: 8px 0 0; }
.market-line-rank { grid-column: 1; grid-row: 1 / span 3; color: #a1b1c1; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.market-line-row header strong { color: #20364e; font-size: 18px; }

.market-structure-strip { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); border: 1px solid #dce6ef; border-radius: 18px; overflow: hidden; }
.market-structure-metric { min-height: 118px; padding: 20px; background: #fff; border-right: 1px solid #e2e9f0; }
.market-structure-metric:last-of-type { border-right: 0; }
.market-structure-metric span, .market-structure-metric em { display: block; color: #74879a; font-size: 11px; font-style: normal; }
.market-structure-metric b { display: block; margin: 11px 0 8px; color: #20364d; font-size: 27px; font-variant-numeric: tabular-nums; }
.market-structure-metric.up b { color: var(--market-up); }
.market-structure-metric.down b, .market-structure-metric.risk b { color: var(--market-down); }
.market-structure-metric.primary { background: #f1f7ff; }
.market-structure-metric.primary b { color: #1769d9; }
.market-structure-metric.space { background: #fbfcfe; }
.market-ladder { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin: 0; padding: 15px 20px; color: #60768d; background: #f7fafc; border-top: 1px solid #e1e9f1; font-size: 13px; }
.market-ladder b { color: #243b54; }

.market-limit-overview { display: grid; gap: 14px; }
.market-limit-verdict { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: #f4f8fc; border-left: 4px solid #7b8da0; border-radius: 0 14px 14px 0; }
.market-limit-verdict span { color: #72869a; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.market-limit-verdict h4 { margin: 5px 0 4px; color: #20384f; font-size: 22px; }
.market-limit-verdict p { margin: 0; color: #5d7388; font-size: 13px; line-height: 1.6; }
.market-limit-verdict > strong { color: #6e8297; font-size: 12px; white-space: nowrap; }
.market-limit-verdict.expanding { background: #eef9f5; border-color: #15936e; }
.market-limit-verdict.expanding h4 { color: #087458; }
.market-limit-verdict.retreat { background: #fff3f4; border-color: #cf4053; }
.market-limit-verdict.retreat h4 { color: #a82e40; }
.market-limit-verdict.divergence { background: #fff8eb; border-color: #d8912e; }
.market-limit-verdict.divergence h4 { color: #9a6419; }
.market-limit-quality { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid #dce6ef; border-radius: 14px; overflow: hidden; }
.market-limit-quality > span { min-height: 88px; padding: 17px 19px; border-right: 1px solid #e2e9f0; }
.market-limit-quality > span:nth-child(4) { border-right: 0; }
.market-limit-quality small, .market-limit-quality b, .market-limit-quality em { display: block; }
.market-limit-quality small { color: #71859a; font-size: 10px; }
.market-limit-quality b { margin-top: 9px; color: #284159; font-size: 20px; }
.market-limit-quality b.up { color: var(--market-up); }
.market-limit-quality b.down { color: var(--market-down); }
.market-limit-quality em { margin-top: 4px; color: #8495a6; font-size: 10px; font-style: normal; }
.market-limit-quality > p { grid-column: 1 / -1; margin: 0; padding: 10px 18px; color: #7b8ea1; background: #f8fafc; border-top: 1px solid #e3eaf1; font-size: 10px; line-height: 1.55; }

.market-limit-history { margin-top: 28px; }
.market-limit-history-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.market-limit-history-head h4 { margin: 0; color: #28445f; font-size: 16px; }
.market-limit-history-head p { margin: 5px 0 0; color: #73879b; font-size: 11px; }
.market-limit-history-head > span { color: #71869b; font-size: 10px; font-weight: 750; }
.market-limit-history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.market-limit-history-grid > section { min-width: 0; padding: 18px; background: #fbfcfe; border: 1px solid #dce6ef; border-radius: 16px; }
.market-limit-history-grid section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.market-limit-history-grid section > header > b { color: #314b64; font-size: 12px; }
.market-ladder-legend { display: flex; align-items: center; gap: 5px; color: #75899d; font-size: 9px; }
.market-ladder-legend i { width: 8px; height: 8px; border-radius: 2px; }
.market-ladder-legend .b1, .market-ladder-day .b1 { background: #b8c6d4; }
.market-ladder-legend .b2, .market-ladder-day .b2 { background: #72a9e8; }
.market-ladder-legend .b3, .market-ladder-day .b3 { background: #2f78cf; }
.market-ladder-legend .b4, .market-ladder-day .b4 { background: #e39a35; }
.market-ladder-legend .b5, .market-ladder-day .b5 { background: #ce4052; }
.market-ladder-chart, .market-relay-chart { height: 210px; display: grid; grid-template-columns: repeat(30, minmax(10px, 1fr)); align-items: end; gap: 2px; overflow-x: auto; padding: 24px 0 0; border-bottom: 1px solid #cad6e1; }
.market-ladder-day, .market-relay-day { height: 180px; display: grid; grid-template-rows: 24px minmax(0, 1fr) 20px; align-items: end; text-align: center; }
.market-ladder-day > b, .market-relay-day > b { align-self: center; color: #445f78; font-size: 9px; font-variant-numeric: tabular-nums; }
.market-ladder-day > b small { color: #8b9aa9; font-size: 7px; }
.market-ladder-day > span { width: 68%; min-height: 2px; display: flex; flex-direction: column-reverse; align-self: end; justify-self: center; overflow: hidden; background: #e7edf3; border-radius: 3px 3px 0 0; transition: filter .2s ease, transform .2s ease; }
.market-ladder-day:hover > span { filter: saturate(1.25); transform: scaleX(1.12); }
.market-ladder-day > span i { display: block; width: 100%; min-height: 1px; }
.market-ladder-day > em, .market-relay-day > em { align-self: end; color: #8a9baa; font-size: 7px; font-style: normal; white-space: nowrap; transform: rotate(-45deg) translate(3px, 5px); transform-origin: center; }
.market-relay-switch { display: flex; gap: 3px; overflow-x: auto; }
.market-relay-switch button { min-height: 30px; padding: 6px 8px; color: #6a8095; background: #eef3f8; border: 0; border-radius: 8px; font-size: 9px; white-space: nowrap; cursor: pointer; }
.market-relay-switch button.active { color: #fff; background: #1769d9; }
.market-relay-chart { background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #e9eef3 25%); }
.market-relay-day > span { position: relative; width: 58%; height: 100%; justify-self: center; overflow: hidden; background: rgba(23,105,217,.06); border-radius: 4px 4px 0 0; }
.market-relay-day > span i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #4c9af0, #1769d9); border-radius: 4px 4px 0 0; transition: height .35s ease; }
.market-relay-day.missing > span { background: repeating-linear-gradient(135deg, #f2f4f6, #f2f4f6 3px, #e7ebef 3px, #e7ebef 6px); }
.market-limit-history-grid section > p { margin: 10px 0 0; color: #8394a5; font-size: 9px; }

.market-progression-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0 20px; }
.market-progression-group { min-width: 0; border-top: 3px solid #168b69; }
.market-progression-group.broken { border-color: #cb4052; }
.market-progression-group > header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 4px; border-bottom: 1px solid #dfe7ee; }
.market-progression-group h5 { margin: 0; color: #2b455f; font-size: 14px; }
.market-progression-group header p { margin: 4px 0 0; color: #8293a4; font-size: 10px; }
.market-progression-group header > b { min-width: 32px; height: 32px; display: grid; place-items: center; color: #1769d9; background: #eef5fd; border-radius: 50%; font-size: 12px; }
.market-progression-group > div > a { min-height: 58px; display: grid; grid-template-columns: minmax(130px, 1fr) 64px 72px; align-items: center; gap: 9px; color: inherit; border-bottom: 1px solid #e5ebf1; text-decoration: none; }
.market-progression-group > div > a:hover { background: #f7fafe; }
.market-progression-group a span strong, .market-progression-group a span em { display: block; }
.market-progression-group a span strong { color: #294159; font-size: 12px; }
.market-progression-group a span em { margin-top: 3px; overflow: hidden; color: #8294a5; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.market-progression-group a > b { color: #1769d9; font-size: 11px; }
.market-progression-group.broken a > b { color: #a63c4b; }
.market-progression-group a > u { font-size: 11px; font-weight: 800; text-align: right; text-decoration: none; }
.market-limit-list-head { margin-top: 12px; }

.market-tape { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(520px, 1.1fr); gap: 24px; align-items: stretch; }
.market-tape-breadth { padding: 22px 24px; background: #f7fafc; border: 1px solid #dce6ef; border-radius: 16px; }
.market-tape-breadth header { display: flex; justify-content: space-between; gap: 20px; color: #5b7188; font-size: 12px; }
.market-tape-breadth header div { display: flex; gap: 8px; align-items: baseline; }
.market-tape-breadth header b { color: #263e57; font-size: 18px; }
.market-tape-bar { height: 15px; margin: 18px 0 14px; display: flex; gap: 3px; overflow: hidden; background: #dfe7ee; border-radius: 999px; }
.market-tape-bar i, .market-tape-bar u { display: block; height: 100%; text-decoration: none; }
.market-tape-bar i { background: linear-gradient(90deg, #d63c55, #ee6f7e); }
.market-tape-bar u { margin-left: auto; background: linear-gradient(90deg, #2eb58a, #168563); }
.market-tape-breadth p { margin: 0; color: #61768b; font-size: 13px; }
.market-tape-breadth p b { margin-left: 3px; }
.market-tape-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #dce6ef; border-radius: 16px; overflow: hidden; }
.market-tape-metric { min-height: 108px; padding: 18px 20px; background: #fff; border-right: 1px solid #e3eaf1; border-bottom: 1px solid #e3eaf1; }
.market-tape-metric:nth-child(2n) { border-right: 0; }
.market-tape-metric:nth-last-child(-n+2) { border-bottom: 0; }
.market-tape-metric span, .market-tape-metric em { display: block; color: #71859a; font-size: 11px; font-style: normal; }
.market-tape-metric strong { display: block; margin: 9px 0 7px; color: #213850; font-size: 24px; font-variant-numeric: tabular-nums; }
.market-tape-metric strong i { color: #73879a; font-size: 12px; font-style: normal; }

.market-quant-grid { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(620px, 1.15fr); gap: 26px; margin-top: 28px; }
.market-quant-grid > div { min-width: 0; }
.market-quant-grid h4, .market-subsection-head h4 { margin: 0; color: #28445f; font-size: 14px; }
.market-return-distribution, .market-style-map { margin-top: 12px; border-top: 2px solid #dce6ef; }
.market-distribution-axis { display: flex; justify-content: space-between; padding: 11px 0 8px; color: #7f92a5; font-size: 10px; }
.market-distribution-axis b { color: #526c84; font-weight: 700; }
.market-distribution-list { display: grid; gap: 7px; }
.market-distribution-row { display: grid; grid-template-columns: 58px minmax(100px, 1fr) 42px 43px; gap: 8px; align-items: center; color: #64798e; font-size: 11px; }
.market-distribution-row > div { height: 12px; overflow: hidden; background: #eef2f6; border-radius: 999px; }
.market-distribution-row i { display: block; height: 100%; background: #aab8c6; border-radius: inherit; }
.market-distribution-row.up i { background: linear-gradient(90deg, #e56c74, #c93d4d); }
.market-distribution-row.down i { background: linear-gradient(90deg, #55c49c, #148260); }
.market-distribution-row b { color: #2e475f; text-align: right; font-variant-numeric: tabular-nums; }
.market-distribution-row em { color: #8a9bad; font-style: normal; text-align: right; }
.market-style-map { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 11px; }
.market-style-group header { display: flex; justify-content: space-between; gap: 10px; min-height: 28px; }
.market-style-group h5 { margin: 0; color: #344e67; font-size: 12px; }
.market-style-group header span { color: #8a9bad; font-size: 9px; text-align: right; }
.market-style-group > div { border-top: 1px solid #e0e8ef; }
.market-style-group p { display: grid; grid-template-columns: minmax(105px, 1fr) 68px 80px 92px; gap: 8px; align-items: center; min-height: 39px; margin: 0; border-bottom: 1px solid #e5ebf1; font-size: 10px; }
.market-style-group p strong { overflow: hidden; color: #2c455e; text-overflow: ellipsis; white-space: nowrap; }
.market-style-group p b { text-align: right; }
.market-style-group p span, .market-style-group p em { color: #7e90a1; font-style: normal; text-align: right; }

.market-subsection-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 28px 0 10px; }
.market-subsection-head span { color: #8495a6; font-size: 10px; }
.market-capital-history { padding: 16px 18px 12px; background: #f8fafc; border: 1px solid #dfe7ef; border-radius: 14px; }
.market-capital-legend { display: flex; align-items: center; gap: 14px; color: #708499; font-size: 10px; }
.market-capital-legend span { display: flex; align-items: center; gap: 5px; }
.market-capital-legend i { width: 7px; height: 7px; border-radius: 2px; }
.market-capital-legend i.up { background: var(--market-up); }
.market-capital-legend i.down { background: var(--market-down); }
.market-capital-legend b { margin-left: auto; color: #91a1b0; font-weight: 500; }
.market-capital-chart { display: grid; grid-template-columns: repeat(10, minmax(48px, 1fr)); gap: 8px; margin-top: 12px; overflow-x: auto; }
.market-capital-day { min-width: 48px; display: grid; grid-template-rows: 17px 100px 17px 17px; justify-items: center; color: #71869a; font-size: 9px; }
.market-capital-day b { font-size: 9px; font-variant-numeric: tabular-nums; }
.market-capital-day > div { position: relative; width: 100%; height: 100px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; }
.market-capital-day > div::after { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #d7e1ea; content: ""; }
.market-capital-day i { position: absolute; z-index: 1; left: 27%; width: 46%; max-height: 47px; border-radius: 4px 4px 1px 1px; }
.market-capital-day.up i { bottom: 50%; background: linear-gradient(#ef7b82, #cf4452); }
.market-capital-day.down i { top: 50%; background: linear-gradient(#39aa81, #177d5f); border-radius: 1px 1px 4px 4px; }
.market-capital-day.up b { color: var(--market-up); }
.market-capital-day.down b { color: var(--market-down); }
.market-capital-day span { color: #385a77; font-weight: 750; }

.market-financial-brief { border-top: 2px solid #dce6ef; }
.market-financial-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 4px; border-bottom: 1px solid #e2e9f0; }
.market-financial-summary div { display: flex; gap: 10px; align-items: baseline; }
.market-financial-summary span, .market-financial-summary p { color: #71869a; font-size: 11px; }
.market-financial-summary strong { color: #253e57; font-size: 14px; }
.market-financial-summary p { margin: 0; }
.market-financial-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.market-financial-columns section > header { display: flex; justify-content: space-between; padding: 13px 4px 8px; }
.market-financial-columns h5 { margin: 0; color: #314b64; font-size: 12px; }
.market-financial-columns header span { color: #8b9cad; font-size: 10px; }
.market-financial-columns section > div { border-top: 1px solid #e0e8ef; }
.market-financial-columns a { min-height: 62px; display: grid; grid-template-columns: 26px minmax(100px, 1fr) 72px minmax(150px, auto); gap: 8px; align-items: center; color: inherit; border-bottom: 1px solid #e5ebf1; text-decoration: none; }
.market-financial-columns a:hover { background: #f7fafe; }
.market-financial-columns a > b { color: #a0afbd; font-size: 10px; }
.market-financial-columns a span strong, .market-financial-columns a span em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-financial-columns a span strong { color: #29435d; font-size: 12px; }
.market-financial-columns a span em, .market-financial-columns a small { color: #8596a7; font-size: 9px; font-style: normal; }
.market-financial-columns a u { text-align: right; font-size: 12px; font-weight: 800; text-decoration: none; }
.market-financial-columns a small { text-align: right; white-space: nowrap; }

.market-provenance { border-top: 2px solid #dce6ef; }
.market-provenance-head, .market-provenance-row { display: grid; grid-template-columns: minmax(130px, 1fr) 120px 80px minmax(280px, 1.6fr); gap: 12px; align-items: center; }
.market-provenance-head { min-height: 36px; color: #8294a6; font-size: 10px; }
.market-provenance-row { min-height: 52px; border-top: 1px solid #e4ebf1; color: #61768b; font-size: 11px; }
.market-provenance-row strong { color: #29435d; }
.market-provenance-row time, .market-provenance-row > b { font-variant-numeric: tabular-nums; }
.market-provenance-row p { display: flex; align-items: center; gap: 10px; margin: 0; }
.market-provenance-row i { min-width: 58px; padding: 3px 7px; color: #18795a; background: #eaf7f1; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; text-align: center; }
.market-provenance-row.partial i { color: #9a681e; background: #fff4df; }
.market-provenance-row.missing i { color: #9c4f4f; background: #fdeeee; }

.market-resonance { margin-bottom: 24px; padding: 0 20px; background: #f5f9fe; border-left: 3px solid #1769d9; border-radius: 0 14px 14px 0; }
.market-resonance-head { display: flex; align-items: baseline; gap: 14px; padding: 15px 0 10px; border-bottom: 1px solid #dbe6f0; }
.market-resonance-head span { color: #203a54; font-size: 14px; font-weight: 800; }
.market-resonance-head p { margin: 0; color: #778a9e; font-size: 11px; }
.market-resonance-list article { display: grid; grid-template-columns: 32px minmax(180px, 1fr) 220px minmax(220px, .7fr); gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid #e0e9f1; }
.market-resonance-list article:last-child { border-bottom: 0; }
.market-resonance-list article > b { color: #93a6b9; font-size: 13px; }
.market-resonance-list strong { color: #233b53; font-size: 14px; }
.market-resonance-list p { margin: 3px 0 0; color: #718399; font-size: 11px; }
.market-resonance-list em { color: #61768c; font-size: 12px; font-style: normal; text-align: right; }
.market-resonance-lights { display: flex; gap: 7px; }
.market-resonance-lights span { display: flex; align-items: center; gap: 4px; color: #8798a8; font-size: 10px; }
.market-resonance-lights i { width: 8px; height: 8px; background: #ccd6df; border-radius: 50%; }
.market-resonance-lights span.on { color: #087956; font-weight: 750; }
.market-resonance-lights span.on i { background: #1dae7f; box-shadow: 0 0 0 4px rgba(29,174,127,.11); }
.market-resonance-empty { margin: 0 0 20px; padding: 14px 18px; color: #6e8296; background: #f7fafc; border-left: 3px solid #93a7ba; font-size: 13px; }

.panel-news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.market-news-group { border-top: 1px solid #dce6ee; }
.market-news-group > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; background: #f8fafc; border-bottom: 1px solid #e3eaf1; }
.market-news-group > header div { display: flex; gap: 12px; align-items: baseline; }
.market-news-group > header h4 { margin: 0; color: #203b56; font-size: 15px; }
.market-news-group > header p { margin: 0; color: #7a8da1; font-size: 11px; }
.market-news-group > header > b { min-width: 28px; padding: 4px 8px; color: #1769d9; background: #eaf3ff; border-radius: 999px; text-align: center; font-size: 11px; }
.market-event-row.panel-news-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 22px 4px; background: #fff; border: 0; border-bottom: 1px solid #e4ebf2; border-radius: 0; }
.market-event-row.panel-news-card.up, .market-event-row.panel-news-card.down { border-left: 0; }
.market-event-index { padding-top: 3px; color: #9aabbb; font-size: 17px; font-weight: 800; }
.market-event-body h5 { max-width: 1050px; margin-top: 10px; color: #21374f; font-size: 17px; }
.market-event-body .panel-chain, .market-event-body .panel-risk { display: flex; gap: 12px; max-width: 1100px; margin-top: 8px; color: #526a81; font-size: 13px; }
.market-event-body .panel-chain b, .market-event-body .panel-risk b { flex: 0 0 62px; color: #31506e; font-size: 11px; }
.market-event-body .panel-risk { color: #a25d28; }
.panel-chip.horizon { color: #315d87; background: #edf5fc; }
.market-event-horizons { margin-top: 28px; padding: 18px 20px; background: #f5f8fc; border-left: 3px solid #8099b3; border-radius: 0 12px 12px 0; }
.market-event-horizons > header { display: flex; gap: 12px; align-items: baseline; }
.market-event-horizons h4 { margin: 0; color: #29445f; font-size: 14px; }
.market-event-horizons header p { margin: 0; color: #7b8d9e; font-size: 11px; }
.market-event-horizons > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.market-event-horizons span { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.market-event-horizons b { color: #536d85; font-size: 11px; }
.market-event-horizons strong { color: #1769d9; font-size: 12px; }
.market-event-horizons em { grid-column: 1 / -1; overflow: hidden; color: #76899d; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.market-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.market-evidence-grid > div { min-width: 0; }
.market-evidence-grid h4 { margin: 0; padding: 0 0 12px; color: #28445f; border-bottom: 2px solid #dce6ef; font-size: 14px; }
.market-institution, .market-extremes { display: grid; }
.market-institution > a, .market-extremes > a { min-height: 58px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: inherit; border-bottom: 1px solid #e5ebf1; text-decoration: none; }
.market-institution > a:hover, .market-extremes > a:hover { background: #f6f9fc; }
.market-institution > a > b, .market-extremes > a > b { color: #a1b0bf; font-size: 11px; }
.market-institution span, .market-extremes span { min-width: 0; }
.market-institution span strong, .market-institution span em, .market-extremes span strong, .market-extremes span em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-institution span strong, .market-extremes span strong { color: #294159; font-size: 13px; }
.market-institution span em, .market-extremes span em { margin-top: 3px; color: #8595a5; font-size: 10px; font-style: normal; }
.market-institution u, .market-extremes u { font-size: 12px; font-weight: 800; text-decoration: none; }
.market-data-boundary { margin: 24px 0 0; padding: 13px 16px; color: #72869a; background: #f7f9fb; border: 1px dashed #cbd7e2; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.market-data-boundary b { color: #3b556e; }

.market-subsection-head-first { margin-top: 0; }
.market-cross-table, .market-limit-leaders, .market-company-events, .market-viewpoint-ledger { border-top: 2px solid #dce6ef; }
.market-cross-head, .market-cross-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(105px, .7fr)) minmax(120px, .75fr); gap: 14px; align-items: center; }
.market-cross-head { min-height: 38px; color: #8193a4; font-size: 10px; }
.market-cross-row { min-height: 66px; border-top: 1px solid #e3eaf1; }
.market-cross-row > span { display: flex; align-items: center; gap: 10px; }
.market-cross-row > span i { min-width: 58px; padding: 4px 7px; color: #516b83; background: #edf3f8; border-radius: 999px; font-size: 9px; font-style: normal; text-align: center; }
.market-cross-row strong { color: #253e57; font-size: 13px; }
.market-cross-row > b { color: #223a53; font-size: 16px; font-variant-numeric: tabular-nums; }
.market-cross-row > em { font-size: 13px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.market-cross-row time { color: #708397; font-size: 11px; font-variant-numeric: tabular-nums; }
.market-cross-row time small { display: block; margin-top: 3px; color: #ad742a; }
.market-cross-row.stale { background: #fffaf2; }
.market-cross-note, .market-company-event-note { margin: 0; padding: 12px 4px; color: #7d8fa1; border-top: 1px solid #e3eaf1; font-size: 10px; }

.market-limit-summary { display: flex; align-items: baseline; gap: 16px; padding: 13px 4px; color: #6d8194; border-bottom: 1px solid #e3eaf1; font-size: 11px; }
.market-limit-summary b { color: var(--market-up); font-size: 14px; }
.market-limit-summary em { margin-left: auto; color: #8c9baa; font-size: 10px; font-style: normal; }
.market-limit-head, .market-limit-row { display: grid; grid-template-columns: 64px minmax(200px, 1.4fr) 82px 82px 90px minmax(110px, .8fr); gap: 12px; align-items: center; }
.market-limit-head { min-height: 36px; color: #8395a6; font-size: 10px; }
.market-limit-row { min-height: 62px; color: inherit; border-top: 1px solid #e4ebf1; text-decoration: none; }
.market-limit-row:hover { background: #f7fafe; }
.market-limit-row > b { color: #c73449; font-size: 13px; }
.market-limit-row > span strong, .market-limit-row > span em { display: block; }
.market-limit-row > span strong { color: #294159; font-size: 13px; }
.market-limit-row > span em { margin-top: 3px; color: #8697a7; font-size: 10px; font-style: normal; }
.market-limit-row > u, .market-limit-row > i, .market-limit-row > small { color: #38516a; font-size: 12px; font-style: normal; font-weight: 750; text-decoration: none; font-variant-numeric: tabular-nums; }
.market-limit-row > i { color: var(--market-up); }
.market-limit-row > mark { width: max-content; padding: 4px 8px; color: #8a681f; background: #fff4d9; border-radius: 999px; font-size: 9px; }

.market-company-event-head, .market-company-event { display: grid; grid-template-columns: 140px minmax(260px, 1.25fr) minmax(260px, 1.25fr) 130px; gap: 18px; align-items: center; }
.market-company-event-head { min-height: 38px; color: #8395a6; font-size: 10px; }
.market-company-event { position: relative; min-height: 82px; padding: 12px 4px 12px 13px; border-top: 1px solid #e3eaf1; }
.market-company-event::before { position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: #a8b6c4; border-radius: 999px; content: ""; }
.market-company-event.up::before { background: var(--market-up); }
.market-company-event.down::before { background: var(--market-down); }
.market-company-event > span time, .market-company-event > span b { display: block; }
.market-company-event > span time { color: #71869a; font-size: 10px; }
.market-company-event > span b { margin-top: 5px; color: #38546f; font-size: 11px; }
.market-company-event > div strong { display: block; color: #263e57; font-size: 13px; }
.market-company-event > div strong a { color: inherit; }
.market-company-event > div > a { display: inline-block; margin-top: 5px; color: #1769d9; font-size: 10px; text-decoration: none; }
.market-company-event > p { margin: 0; color: #65798e; font-size: 11px; line-height: 1.55; }
.market-company-event > em { color: #8596a6; font-size: 10px; font-style: normal; }

.market-viewpoint-summary { display: grid; grid-template-columns: repeat(3, minmax(120px, 170px)) minmax(260px, 1fr); gap: 18px; align-items: center; padding: 16px 4px; }
.market-viewpoint-summary div { padding-right: 18px; border-right: 1px solid #dde6ee; }
.market-viewpoint-summary span { display: block; color: #7c8fa2; font-size: 10px; }
.market-viewpoint-summary b { display: block; margin-top: 4px; color: #243e58; font-size: 20px; }
.market-viewpoint-summary p { margin: 0; color: #687e93; font-size: 11px; line-height: 1.6; }
.market-viewpoint-head, .market-viewpoint-row { display: grid; grid-template-columns: 100px minmax(190px, .8fr) minmax(260px, 1.2fr) minmax(170px, .7fr) 80px; gap: 14px; align-items: center; }
.market-viewpoint-head { min-height: 38px; color: #8395a6; border-top: 1px solid #e2e9f0; font-size: 10px; }
.market-viewpoint-row { min-height: 76px; border-top: 1px solid #e3eaf1; }
.market-viewpoint-row > time { color: #5f7489; font-size: 11px; }
.market-viewpoint-row > span b, .market-viewpoint-row > span em { display: block; }
.market-viewpoint-row > span b { color: #29435c; font-size: 13px; }
.market-viewpoint-row > span em { margin-top: 4px; color: #8293a4; font-size: 10px; font-style: normal; }
.market-viewpoint-row > p { margin: 0; color: #60768b; font-size: 11px; }
.market-viewpoint-row > p small { display: block; margin-top: 4px; color: #93a2b0; }
.market-viewpoint-row > strong { width: max-content; padding: 5px 9px; color: #906221; background: #fff3da; border-radius: 999px; font-size: 10px; }
.market-viewpoint-row.hit > strong { color: #087458; background: #e8f7f1; }
.market-viewpoint-row.miss > strong { color: #a0484f; background: #fdecef; }
.market-viewpoint-row.unscorable > strong { color: #687c90; background: #eef2f6; }

.market-risk-section::after { border-color: #d28b34; }
.market-risk-list ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e2e8ee; }
.market-risk-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 16px 4px; border-bottom: 1px solid #e5ebf1; }
.market-risk-list li > span { align-self: start; padding: 3px 8px; color: #a45e2b; background: #fff5e8; border-radius: 999px; text-align: center; font-size: 10px; font-weight: 800; }
.market-risk-list li b { color: #31475d; font-size: 14px; }
.market-risk-list li p { margin: 5px 0 0; color: #728397; font-size: 13px; line-height: 1.6; }

.market-next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.market-next-grid article { min-height: 145px; padding: 20px 22px; background: #f8fafc; border-top: 3px solid #1769d9; border-radius: 0 0 14px 14px; }
.market-next-grid article:nth-child(2) { border-color: #d28b34; }
.market-next-grid article:nth-child(3) { border-color: #708397; }
.market-next-grid span { color: #1769d9; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.market-next-grid p { margin: 13px 0 0; color: #486078; font-size: 14px; line-height: 1.75; }
.market-next-boundary { grid-column: 1 / -1; margin: 0; padding: 13px 16px; color: #718398; background: #f7f9fb; border-left: 3px solid #91a4b6; font-size: 12px; }
.market-next-boundary b { margin-right: 10px; color: #36516b; }
.market-reference-section::after { border-color: #8fa2b5; }

@keyframes marketJournalReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .market-readout-lead { grid-template-columns: 1fr; }
  .market-structure-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-structure-metric:nth-child(3) { border-right: 0; }
  .market-structure-metric:nth-child(-n+3) { border-bottom: 1px solid #e2e9f0; }
  .market-limit-history-grid { grid-template-columns: 1fr; }
  .market-line-row.panel-sector { grid-template-columns: 36px minmax(220px, .8fr) minmax(260px, 1.2fr); }
  .market-tape { grid-template-columns: 1fr; }
  .market-quant-grid { grid-template-columns: 1fr; }
  .market-evidence-grid { grid-template-columns: 1fr 1fr; }
  .market-evidence-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .market-readout-shell .report-actions { width: 100%; max-width: none; align-items: stretch; }
  .market-journal-dates { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .market-journal-dates button { min-width: 58px; min-height: 44px; }
  .market-readout-lead { gap: 20px; padding: 22px 18px; border-radius: 20px; }
  .market-pulse-grid { grid-template-columns: 1fr 1fr; }
  .market-pulse-cell { min-height: 104px; padding: 15px; }
  .market-readout-index { margin-inline: -4px; }
  .market-readout-index a { min-height: 44px; padding: 12px; }
  .market-journal-section { padding: 38px 0 34px 24px; }
  .market-journal-section::before { left: 7px; top: 46px; }
  .market-journal-section::after { left: 2px; top: 48px; }
  .market-line-row.panel-sector { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .market-line-row > header, .market-line-row > .panel-bar, .market-line-row > .panel-sector-meta, .market-line-row > .panel-leaders { grid-column: 2; }
  .market-line-rank { grid-row: 1 / span 4; }
  .market-tape { grid-template-columns: 1fr; gap: 12px; }
  .market-tape-breadth { padding: 18px 15px; }
  .market-tape-metrics { grid-template-columns: 1fr 1fr; }
  .market-tape-metric { min-height: 98px; padding: 15px 12px; }
  .market-style-map, .market-financial-columns { grid-template-columns: 1fr; }
  .market-style-group p { grid-template-columns: minmax(105px, 1fr) 62px 72px 86px; }
  .market-subsection-head { display: block; }
  .market-subsection-head span { display: block; margin-top: 5px; }
  .market-capital-chart { grid-template-columns: repeat(10, 54px); }
  .market-capital-legend b { display: none; }
  .market-financial-summary { display: block; }
  .market-financial-summary p { margin-top: 6px; }
  .market-financial-columns a { grid-template-columns: 24px minmax(100px, 1fr) 58px; }
  .market-financial-columns a small { grid-column: 2 / -1; padding-bottom: 8px; text-align: left; }
  .market-provenance { overflow-x: auto; }
  .market-provenance-head, .market-provenance-row { min-width: 650px; }
  .market-resonance { padding: 0 12px; }
  .market-resonance-list article { grid-template-columns: 25px minmax(0, 1fr); gap: 8px; }
  .market-resonance-lights, .market-resonance-list em { grid-column: 2; text-align: left; }
  .market-news-group > header div { display: block; }
  .market-news-group > header p { margin-top: 3px; }
  .market-structure-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-structure-metric, .market-structure-metric:nth-child(3) { border-right: 1px solid #e2e9f0; border-bottom: 1px solid #e2e9f0; }
  .market-structure-metric:nth-child(2n) { border-right: 0; }
  .market-limit-verdict { align-items: flex-start; padding: 18px; }
  .market-limit-quality { grid-template-columns: 1fr 1fr; }
  .market-limit-quality > span { min-height: 82px; border-bottom: 1px solid #e2e9f0; }
  .market-limit-quality > span:nth-child(2n) { border-right: 0; }
  .market-limit-history-head { display: block; }
  .market-limit-history-head > span { display: block; margin-top: 6px; }
  .market-limit-history-grid > section { padding: 14px 12px; }
  .market-ladder-chart, .market-relay-chart { grid-template-columns: repeat(30, 26px); }
  .market-progression-grid { grid-template-columns: 1fr; }
  .market-next-grid { grid-template-columns: 1fr; }
  .market-event-row.panel-news-card { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  .market-event-horizons > div, .market-evidence-grid { grid-template-columns: 1fr; }
  .market-evidence-grid > div:first-child { grid-column: auto; }
  .market-cross-table, .market-limit-leaders, .market-company-events, .market-viewpoint-ledger { overflow-x: auto; }
  .market-cross-head, .market-cross-row { min-width: 720px; }
  .market-limit-head, .market-limit-row { min-width: 760px; }
  .market-company-event-head, .market-company-event { min-width: 860px; }
  .market-viewpoint-summary { min-width: 780px; }
  .market-viewpoint-head, .market-viewpoint-row { min-width: 900px; }
  .market-limit-summary { min-width: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  .market-readout-lead { animation: none; }
}

/* 「今日尚未扫描」态里的立即扫描按钮。扫描现在是显式动作,
   所以它必须显眼到不会被当成一句提示语忽略掉。 */
.champion-status .champion-scan-now {
  margin-left: 10px;
  padding: 4px 14px;
  border: 1px solid #2f6feb;
  border-radius: 999px;
  background: #2f6feb;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.champion-status .champion-scan-now:hover { background: #1b56c9; border-color: #1b56c9; }
