:root {
  --ink: #202c3d; --muted: #5e6c7e; --line: #dce2e9; --paper: #fff;
  --green: #166954; --green-soft: #eaf3ef; --amber: #89591d; --amber-soft: #faf3e6;
  --red: #a83740; --red-soft: #faedef; --accent: #315bba;
  --chart-grid: #e7ebf1; --chart-fill: rgba(49,91,186,.08); --chart-label: #5e6c7e;
  --chart-line: #3a5d91; --chart-current: #a83740; --chart-paper: #fff;
  background: #f2f4f7; color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-variant-numeric: tabular-nums;
}
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { background: #f2f4f7; font-size: 14px; }
::selection { background: #dce7ff; color: #173468; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input { caret-color: var(--accent); }
* { scrollbar-color: #abb8c9 #f2f4f7; scrollbar-width: thin; }
a { text-underline-offset: 4px; }
.topbar { min-height: 66px; padding: 10px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.brand-mark { background: #263d67; width: 32px; height: 32px; border-radius: 5px; }
.brand strong { font-size: 16px; }
.brand small { color: var(--muted); }
.product-nav a { font-size: 13px; color: var(--muted); }
.product-nav a[aria-current] { color: var(--accent); }
main { width: min(1480px, calc(100% - 64px)); }
.search-band { min-height: 96px; display: flex; gap: 24px; border-bottom: 0; }
.search-copy { flex: 0 0 auto; }
h1 { font-size: 22px; line-height: 1.4; font-weight: 700; }
.search-form { width: 320px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.search-form label { margin: 0; font-size: 12px; white-space: nowrap; }
.search-row { height: 36px; grid-template-columns: 1fr 70px; }
.search-row input { font-size: 14px; padding: 0 10px; border-color: #b7c2d0; border-radius: 4px 0 0 4px; }
.search-row button { background: #315bba; border-radius: 0 4px 4px 0; font-size: 12px; }
.search-row button:hover { background: #254991; }
.input-error { grid-column: 2; margin: 0; min-height: 0; }
.input-error:not(:empty) { padding-top: 5px; }
.sample-switch { display: flex; gap: 14px; margin-left: auto; align-items: center; font-size: 12px; color: var(--muted); }
.sample-switch a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.sample-switch a[aria-current] { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }
#result { background: #fff; border: 1px solid var(--line); }
.identity-row { padding: 22px 24px 18px; align-items: center; }
.identity-row > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.identity-row h2 { font-size: 25px; order: -1; }
.stock-symbol { font: 13px/1.5 Arial, sans-serif; color: var(--muted); margin: 0; }
.as-of { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.as-of time { margin: 0; }
.workspace-nav { display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.workspace-nav a { font-size: 12px; color: var(--muted); padding: 12px 0; text-decoration: none; }
.workspace-nav a[aria-current] { color: var(--accent); border-bottom: 2px solid var(--accent); }
.workspace-nav a:hover { color: var(--accent); }
.location-section { padding: 0; margin: 0; }
.location-grid { border: 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(170px,.8fr) minmax(350px,1.4fr) minmax(240px,1fr); }
.location-grid > * { padding: 18px 24px; }
.location-grid > * + * { border-left: 1px solid var(--line); }
.location-primary span, .locator > span { color: var(--muted); font-size: 11px; }
.location-primary > strong { font-size: 18px; margin-top: 8px; color: var(--ink); }
.location-primary p { font-size: 12px; line-height: 1.7; margin: 6px 0 0; }
.metrics { align-items: center; gap: 14px; }
.metrics div { text-align: left; }
.metrics dt { font-size: 11px; white-space: nowrap; }
.metrics dd { font: 600 21px/1.3 Arial, sans-serif; margin-top: 9px; color: #263d67; }
.metrics div:first-child dd { color: var(--ink); font-size: 27px; }
.locator strong { font-size: 13px; line-height: 1.6; }
.locator p { font-size: 11px; color: var(--muted); line-height: 1.65; }
.analysis-workspace { display: grid; grid-template-columns: minmax(0,1fr) 330px; border-bottom: 1px solid var(--line); }
.section-block { padding: 26px 24px; margin: 0; border-top: 0; border-bottom: 1px solid var(--line); }
.section-heading { margin: 0 0 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-heading h2 { font-size: 16px; line-height: 1.5; }
.chart-source { color: var(--muted); font-size: 11px; }
.map-section { min-width: 0; padding: 22px 24px 18px; border: 0; }
.chart-wrap { height: 380px; border: 0; padding: 0; }
.chart-legend { flex-wrap: wrap; color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 16px; }
.chart-legend .line-price { background: var(--chart-line); }
.chart-legend .line-pivot { background: #dce6f8; }
.interpretation { border-left: 1px solid var(--line); padding: 22px; background: #fbfcfe; min-width: 0; }
.interpretation-title { margin: 0 0 20px; font-size: 14px; }
.verdict { padding: 0; border: 0; background: transparent; }
.verdict-heading { flex-direction: column; gap: 6px; }
.verdict-heading span { font-size: 11px; }
.verdict-heading strong { font-size: 21px; line-height: 1.5; color: var(--ink); }
.verdict[data-tone] .verdict-heading strong { color: var(--ink); }
.verdict > p { margin: 16px 0 22px; font-size: 13px; line-height: 1.95; }
.interpretation-detail { border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; color: #315bba; font-size: 12px; line-height: 1.8; }
summary:hover { color: #213f81; }
.decision-summary { margin: 16px 0 18px; border: 0; display: block; }
.decision-summary > div { padding: 12px 0; }
.decision-summary > div:nth-child(even) { border-left: 0; }
.decision-summary > div + div { border-top: 1px solid var(--line); }
.decision-summary > .boundary-summary { display: block; background: transparent; }
.decision-summary .boundary-summary strong { margin-top: 6px; font-size: 17px; }
.decision-summary strong, .decision-summary .strategy-cell strong { font-size: 13px; }
.decision-summary .boundary-summary p { margin-top: 8px; }
.state-scale { gap: 4px; }
.state-scale span { font-size: 10px; line-height: 1.6; }
.reading-note { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.decision-chain { border: 0; margin: 0; border-bottom: 1px solid var(--line); }
.decision-chain-heading { padding: 24px 24px 14px; border: 0; align-items: baseline; }
.decision-chain-heading h2 { font-size: 16px; margin: 0; }
.decision-chain-heading > p { font-size: 12px; font-weight: 400; text-align: left; color: var(--muted); }
.chain-step { min-height: 0; padding: 14px 24px 20px; border-top: 0; }
.chain-step::after { display: none; }
.chain-step p { margin: 0 0 8px; font-size: 11px; }
.chain-step strong { min-height: 0; font-size: 14px; }
.chain-step small { color: var(--muted); font-size: 11px; }
.chain-conclusion { margin: 0 24px 22px; padding: 12px 0 0; background: transparent; grid-template-columns: 65px 1fr; gap: 14px; }
.chain-conclusion strong { font-size: 12px; font-weight: 400; }
.paths { gap: 0; border-top: 1px solid var(--line); }
.path-card { border: 0; border-radius: 0; background: transparent; padding: 18px; }
.path-card + .path-card { border-left: 1px solid var(--line); }
.paths article { box-shadow: none; border-top-width: 1px; }
.paths h3 { font-size: 14px; }
.paths p { font-size: 12px; line-height: 1.8; }
.actions-grid { gap: 24px; }
.action-panel { border: 0; border-top: 1px solid var(--line); background: transparent; padding: 16px 0; }
.action-panel h3 { font-size: 17px; }
.action-panel p { font-size: 12px; }
.management-contract { border: 0; border-top: 1px solid var(--line); }
.management-heading { background: transparent; padding-left: 0; padding-right: 0; }
.management-conditions { gap: 16px; }
.condition { border: 0; border-top: 1px solid var(--line); background: transparent; padding: 12px 0; }
.evidence-disclosure { padding: 20px 24px; }
.location-section.section-block { padding: 0; border-bottom: 0; }
.map-section .section-heading > div { flex: 1; }
.interpretation-detail { background: transparent; border: 0; border-top: 1px solid var(--line); }
.interpretation-detail > summary { padding: 0; font-size: 11px; }
.evidence-disclosure { margin: 0; border: 0; }
.evidence-disclosure > summary { padding: 0; }
.paths > .path { min-height: 0; padding: 18px 20px 18px 0; border: 0; font-size: 12px; line-height: 1.85; }
.paths > .path + .path { padding-left: 20px; border-left: 1px solid var(--line); }
.action-panel.holder, .action-panel.flat { border-left: 0; min-height: 0; }
.condition + .condition { border-left: 0; }
.method-statement { border-left: 1px solid var(--line); }
.evidence-disclosure > summary { color: var(--muted); }
.evidence-section { padding: 24px 0 0; border: 0; }
.reasoning-panel { background: transparent; border: 0; padding: 0; }
footer { width: min(1480px, calc(100% - 64px)); padding: 20px 0 32px; color: var(--muted); }
.error-state { border: 1px solid var(--line); }
@media (max-width: 1100px) {
  main, footer { width: calc(100% - 32px); }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .analysis-workspace { grid-template-columns: minmax(0,1fr) 290px; }
  .location-grid { grid-template-columns: 1fr 1.5fr; }
  .locator { grid-column: 1 / -1; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
  .location-grid > .locator { border-left: 0; padding: 12px 24px; }
  .locator p { margin: 0; }
  .sample-switch { gap: 8px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  main, footer { width: calc(100% - 24px); }
  header.topbar { gap: 12px; padding: 14px 16px; }
  .brand small { font-size: 10px; }
  .search-band { padding: 20px 0; gap: 14px; flex-wrap: wrap; }
  h1 { font-size: 20px; }
  .search-form { flex: 1 1 230px; width: auto; }
  .search-form label { display: none; }
  .search-row, .input-error { grid-column: 1 / -1; }
  .sample-switch { flex-basis: 100%; margin-left: 0; }
  .identity-row { padding: 20px 16px 14px; gap: 10px; }
  .identity-row h2 { font-size: 23px; }
  .as-of { text-align: left; flex-wrap: wrap; font-size: 10px; gap: 8px; }
  .workspace-nav { padding: 0 16px; gap: 0; justify-content: space-between; }
  .workspace-nav a { font-size: 11px; }
  .location-grid { display: block; }
  .location-grid > * { padding: 16px; }
  .location-grid > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .location-primary { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: baseline; }
  .location-primary > strong { font-size: 16px; margin: 0; }
  .location-primary p { grid-column: 1 / -1; margin: 0; }
  .metrics { min-height: 96px; gap: 8px; }
  .metrics dd { font-size: 19px; }
  .metrics div:first-child dd { font-size: 23px; }
  .location-grid > .locator { display: block; padding: 14px 16px; }
  .locator strong { display: block; margin: 5px 0; }
  .analysis-workspace { display: flex; flex-direction: column; }
  .map-section { padding: 20px 12px 16px; }
  .chart-wrap { height: 290px; }
  .section-heading h2 { font-size: 15px; }
  .chart-source { font-size: 10px; }
  .chart-legend { gap: 9px; font-size: 10px; }
  .interpretation { border-left: 0; border-top: 1px solid var(--line); padding: 20px 16px; }
  .interpretation-title { margin-bottom: 14px; }
  .verdict-heading { flex-direction: row; align-items: baseline; gap: 12px; }
  .verdict-heading strong { font-size: 20px; }
  .verdict > p { margin: 12px 0 18px; }
  .reading-note { margin-top: 16px; }
  .decision-chain-heading { padding: 22px 16px 10px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .decision-chain-grid { grid-template-columns: 1fr 1fr; }
  .chain-step { padding: 14px 16px; }
  .chain-step + .chain-step { border-left: 0; }
  .chain-step:nth-child(even) { border-left: 1px solid var(--line); }
  .chain-step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chain-conclusion { margin: 0 16px 20px; grid-template-columns: 1fr; gap: 6px; }
  .section-block { padding: 22px 16px; }
  .map-section { padding: 20px 12px 16px; }
  .paths { grid-template-columns: 1fr; }
  .path-card { padding: 16px 0; }
  .path-card + .path-card { border-left: 0; border-top: 1px solid var(--line); }
  .paths > .path + .path { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .management-conditions { grid-template-columns: 1fr; }
  .evidence-disclosure { padding: 18px 16px; }
  .evidence-section { padding: 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
