:root {
  color-scheme: light;
  --white: #fff;
  --ink: #12223a;
  --muted: #607087;
  --faint: #8a96a6;
  --line: #dbe2e8;
  --line-strong: #b9c6d0;
  --surface: #f7fafb;
  --teal: #087f83;
  --teal-dark: #05656a;
  --teal-soft: #e3f4f3;
  --green: #198766;
  --amber: #b76a12;
  --red: #b94843;
  --shadow: 0 18px 55px rgba(22, 48, 72, .12);
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-loading { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(247,250,251,.92); backdrop-filter: blur(8px); opacity: 1; transition: opacity .24s ease, visibility .24s ease; }
.app-loading.complete { opacity: 0; visibility: hidden; pointer-events: none; }
.app-loading-card { width: min(420px, calc(100vw - 48px)); display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px 14px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.app-loading-spinner { grid-row: 1 / span 2; width: 38px; height: 38px; border: 3px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; animation: app-loading-spin .8s linear infinite; }
.app-loading-copy { min-width: 0; display: grid; gap: 5px; }
.app-loading-copy strong { font-size: 15px; }
.app-loading-copy span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.app-loading-track { grid-column: 2; height: 5px; overflow: hidden; border-radius: 99px; background: var(--teal-soft); }
.app-loading-track span { display: block; width: 8%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #35aaa5); transition: width .35s ease; }
.app-loading-percent { grid-column: 3; grid-row: 2; min-width: 34px; color: var(--teal-dark); font-family: var(--mono); font-size: 11px; text-align: right; }
@keyframes app-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-loading-spinner { animation-duration: 1.8s; } }

/* Sections 5-8 are intentionally paused; keep their navigation and content out of the detail view. */
.detail-tab[data-target="detailValuation"],
.detail-tab[data-target="detailStructure"],
.detail-tab[data-target="detailScenarios"],
.detail-tab[data-target="detailRisks"],
#detailValuation,
#detailStructure,
#detailScenarios,
#detailRisks { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -50px; z-index: 200; padding: 10px 14px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }

.app-header { position: sticky; top: 0; z-index: 80; height: 64px; padding: 0 28px; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--ink); border-radius: 4px; font-family: Georgia, serif; font-size: 20px; }
.main-nav { display: flex; height: 100%; align-items: stretch; gap: 22px; }
.nav-item { position: relative; border: 0; background: transparent; padding: 0; font-size: 13px; cursor: pointer; white-space: nowrap; }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.nav-item:hover, .nav-item.active { color: var(--teal-dark); }
.nav-item.active::after { background: var(--teal); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.global-freshness { font-size: 11px; color: var(--muted); }
.role-switch, .mobile-menu { min-height: 34px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; padding: 0 12px; font-size: 12px; cursor: pointer; }
.role-switch:hover { border-color: var(--teal); color: var(--teal-dark); }
.mobile-menu { display: none; font-size: 18px; }

.page { display: none; }
.page.active { display: block; }
.page-shell { width: min(1400px, calc(100% - 56px)); margin: 0 auto; padding: 42px 0 70px; }
.opportunity-shell { width: min(1400px, calc(100% - 48px)); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.page-heading p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.regime-line { display: flex; align-items: center; gap: 10px; }
.pulse-line { width: 20px; height: 12px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9h5l2-6 4 12 4-9 3 3h8' fill='none' stroke='%23087f83' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat; }
.secondary-button, .primary-button, .text-button { border-radius: 5px; cursor: pointer; }
.secondary-button { min-height: 38px; padding: 0 15px; border: 1px solid var(--line-strong); background: white; }
.secondary-button:hover { border-color: var(--teal); color: var(--teal-dark); }
.primary-button { min-height: 42px; padding: 0 18px; border: 1px solid var(--teal); color: white; background: var(--teal); font-weight: 700; }
.primary-button:hover { background: var(--teal-dark); }
.text-button { border: 0; padding: 4px 0; color: var(--teal-dark); background: transparent; font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.info-trigger { position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; border: 1px solid #8fa0ae; border-radius: 50%; color: #6e7f8f; background: white; font: 600 10px/1 var(--serif); cursor: pointer; vertical-align: .1em; }
.info-trigger:hover, .info-trigger:focus-visible { color: white; border-color: var(--teal); background: var(--teal); outline: none; }
.gauge-card-heading .info-trigger[data-tip]::after { position: absolute; right: -9px; bottom: calc(100% + 9px); z-index: 20; display: none; width: 230px; padding: 9px 11px; border-radius: 3px; color: white; background: #24313d; box-shadow: 0 8px 22px rgba(12,27,44,.18); content: attr(data-tip); font: 11px/1.55 var(--sans); text-align: left; }
.gauge-card-heading .info-trigger[data-tip]::before { position: absolute; right: 2px; bottom: calc(100% + 4px); z-index: 21; display: none; width: 0; height: 0; border: 5px solid transparent; border-top-color: #24313d; content: ''; }
.gauge-card-heading .info-trigger[data-tip]:hover::after, .gauge-card-heading .info-trigger[data-tip]:hover::before, .gauge-card-heading .info-trigger[data-tip]:focus-visible::after, .gauge-card-heading .info-trigger[data-tip]:focus-visible::before { display: block; }
.heading-info { transform: translateY(-3px); }

.theme-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.theme-button { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 32px; border: 1px solid var(--line); border-radius: 18px; padding: 0 11px; background: white; color: var(--muted); font-size: 12px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.theme-button:hover { border-color: #92c5c1; color: var(--teal-dark); }
.theme-button small { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface); color: #70808d; font: 9px var(--mono); }
.theme-button.active { border-color: var(--teal); color: white; background: var(--teal-dark); font-weight: 700; }
.theme-button.active small { color: var(--teal-dark); background: white; }
.filter-panel { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-panel label { min-width: 190px; }
.filter-panel label, .control-panel label, .backtest-controls label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.strategy-thresholds { flex: 1 0 100%; display: grid; grid-template-columns: auto repeat(4, minmax(128px, 1fr)) auto; align-items: end; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.strategy-thresholds > strong { align-self: center; color: var(--ink); font-size: 13px; }
.strategy-thresholds label { min-width: 0; }
.strategy-thresholds small { grid-column: 2 / -1; color: var(--muted); font-size: 10px; line-height: 1.55; }
.threshold-reset { min-height: 38px; white-space: nowrap; }
select, input { width: 100%; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 10px; color: var(--ink); background: white; font-size: 13px; }
select:focus, input:focus { border-color: var(--teal); outline: 2px solid rgba(8,127,131,.12); }
.input-unit { position: relative; display: block; min-width: 112px; color: var(--muted); white-space: nowrap; }
.input-unit input { padding-right: 30px; }
.input-unit > span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; font: 12px/1 var(--sans); color: var(--muted); white-space: nowrap; }

.opportunity-table-wrap, .open-table { overflow-x: hidden; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 10px; border-bottom: 1px solid var(--line-strong); color: var(--muted); text-align: left; font-size: 11px; font-weight: 600; white-space: nowrap; }
td { padding: 15px 10px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
.opportunity-table tbody tr { transition: background .15s; }
.opportunity-table tbody tr:hover { background: #f8fbfb; }
.opportunity-table tbody tr.selected { background: #f3fbfa; box-shadow: inset 3px 0 var(--teal); }
.symbol-cell { display: flex; align-items: center; gap: 11px; min-width: 142px; }
.symbol-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--ink); font-family: var(--serif); font-size: 15px; font-weight: 700; }
.symbol-cell strong { display: block; font: 700 13px var(--mono); }
.symbol-cell small { display: block; margin-top: 3px; color: var(--muted); }
.structure-cell, .why-list { min-width: 176px; }
.structure-cell strong { display: block; font-size: 12px; }
.structure-cell small { display: block; margin-top: 3px; color: var(--muted); white-space: nowrap; }
.structure-cell strong { white-space: nowrap; }
.why-list { margin: 0; padding-left: 17px; color: var(--ink); line-height: 1.55; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--amber); }
.status-dot.good { background: var(--green); }
.status-dot.bad { background: var(--red); }
.quote-detail { display: block; margin: 4px 0 0 14px; color: var(--muted); white-space: nowrap; }
.model-value { font-family: var(--mono); }
.model-value small { display: block; margin-top: 4px; color: var(--muted); font: 11px var(--sans); }
.freshness { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); white-space: nowrap; }
.freshness::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.freshness.fresh::before { background: var(--green); }
.freshness.stale::before { background: var(--red); }

.health-shell { max-width: 1320px; }
.admin-eyebrow { display: block; margin-bottom: 9px; color: var(--teal-dark); font: 700 10px/1 var(--mono); letter-spacing: .16em; }
.health-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.health-loading { min-height: 160px; display: grid; place-items: center; border: 1px dashed var(--line-strong); color: var(--muted); background: var(--surface); }
.health-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.health-summary-card { display: grid; gap: 7px; min-height: 128px; padding: 20px; border: 1px solid var(--line); background: white; }
.health-summary-card span { color: var(--muted); font-size: 11px; }
.health-summary-card strong { font: 700 32px/1 var(--mono); color: var(--ink); }
.health-summary-card small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.health-summary-card.critical { border-color: #e6b5ae; background: #fff8f6; }
.health-summary-card.critical strong { color: var(--red); }
.health-dataset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.health-dataset-card { min-width: 0; padding: 20px; border: 1px solid var(--line); background: white; }
.health-dataset-card.good { border-top: 3px solid var(--green); }
.health-dataset-card.attention { border-top: 3px solid var(--amber); }
.health-dataset-card.critical { border-top: 3px solid var(--red); }
.health-dataset-card header { display: flex; justify-content: space-between; gap: 16px; }
.health-dataset-card header span { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.health-dataset-card h2 { margin: 5px 0 0; font-size: 18px; }
.health-dataset-card header b { align-self: flex-start; flex: 0 0 auto; padding: 5px 8px; border-radius: 3px; color: var(--muted); background: var(--surface); font-size: 10px; }
.health-dataset-card.good header b { color: #187452; background: #edf8f2; }
.health-dataset-card.attention header b { color: #976512; background: #fff8e8; }
.health-dataset-card.critical header b { color: #a6382b; background: #fff0ed; }
.health-coverage { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; }
.health-coverage strong { font: 700 26px/1 var(--mono); }
.health-coverage span { color: var(--muted); font-size: 11px; }
.health-progress { height: 5px; margin-top: 10px; overflow: hidden; background: #edf1f4; }
.health-progress i { display: block; height: 100%; background: var(--teal); }
.health-dataset-card.attention .health-progress i { background: var(--amber); }
.health-dataset-card.critical .health-progress i { background: var(--red); }
.health-dataset-card dl { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 16px 0 0; }
.health-dataset-card dl div { min-width: 110px; }
.health-dataset-card dt { color: var(--muted); font-size: 10px; }
.health-dataset-card dd { margin: 4px 0 0; font: 600 11px/1.4 var(--mono); }
.health-dataset-card p { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.health-dataset-card .text-button, .health-complete { display: inline-block; margin-top: 14px; }
.health-complete { color: var(--green); font-size: 11px; }
.health-issues-panel { margin-top: 28px; border-top: 1px solid var(--line-strong); padding-top: 24px; }
.health-issues-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; }
.health-issues-heading h2 { margin: 0; font-size: 22px; }
.health-issues-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.health-issues-heading label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.health-issues-heading select { min-width: 190px; }
.health-issue-table { overflow-x: auto; }
.health-issue-table table { min-width: 920px; }
.health-issue-table td { vertical-align: top; }
.health-issue-table td small { display: block; max-width: 140px; margin-top: 3px; color: var(--muted); }
.health-symbol { font-family: var(--mono); }
.health-reason { min-width: 230px; line-height: 1.55; }
.health-severity { display: inline-block; min-width: 38px; padding: 4px 6px; border-radius: 3px; color: #976512; background: #fff8e8; text-align: center; font-size: 10px; }
.health-severity.critical { color: #a6382b; background: #fff0ed; }
.health-empty { padding: 36px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.row-action { min-height: 34px; min-width: 86px; border: 1px solid var(--teal); border-radius: 4px; color: var(--teal-dark); background: white; font-size: 12px; cursor: pointer; }
.row-action:hover { color: white; background: var(--teal); }
.rec-group-row td { padding: 0; border-bottom-color: var(--line-strong); background: var(--surface); }
.rec-group-row div { display: grid; grid-template-columns: 110px 1fr auto 20px; align-items: center; gap: 14px; min-height: 42px; padding: 0 12px; border-left: 4px solid var(--line-strong); }
.rec-group-row { cursor: pointer; }
.rec-group-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.rec-group-row i { color: var(--teal-dark); font: 700 18px/1 var(--mono); text-align: center; }
.rec-group-row strong { font-family: var(--serif); font-size: 15px; }
.rec-group-row span { color: var(--muted); font-size: 10px; }
.rec-group-row b { min-width: 24px; color: var(--muted); font: 700 11px var(--mono); text-align: right; }
.rec-group-row.focus div { border-left-color: var(--green); background: #f1faf6; }
.rec-group-row.watch div { border-left-color: var(--teal); background: #f3fbfb; }
.rec-group-row.caution div { border-left-color: var(--amber); background: #fffaf3; }
.rec-group-row.reject div { border-left-color: var(--red); background: #fff7f6; }
.rec-group-row.opportunity-group-recommended div { border-left-color: var(--green); background: #eef8f3; }
.rec-group-row.opportunity-group-watch div { border-left-color: #d6a323; background: #fff8df; }
.rec-group-row.opportunity-group-reject div { border-left-color: #8a929b; background: #f1f3f5; }
.rec-group-empty td { padding: 16px 14px; color: var(--faint); font-size: 10px; }
.opportunity-row.rec-focus { background: #fbfefc; }
.opportunity-row.rec-reject { opacity: .72; }
.symbol-title { display: flex; align-items: center; gap: 6px; }
.high-probability { display: inline-flex; align-items: center; min-height: 17px; padding: 0 5px; border: 1px solid var(--green); color: var(--green); background: #f4faf7; font-size: 8px; white-space: nowrap; }
.quote-market-cell { min-width: 150px; }
.quote-market-cell strong { display: block; font: 700 12px var(--mono); white-space: nowrap; }
.quote-market-cell small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.quote-age { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font: 9px var(--mono); white-space: nowrap; }
.quote-age::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.quote-age.fresh { color: var(--green); }
.quote-age.fresh::before { background: var(--green); }
.quote-age.warn { color: var(--amber); }
.quote-age.warn::before { background: var(--amber); }
.quote-age.stale { color: var(--red); }
.quote-age.stale::before { background: var(--red); }
.research-conclusion { min-width: 205px; }
.research-conclusion strong { display: block; font-size: 11px; }
.research-conclusion small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; white-space: nowrap; }
.research-loading { color: var(--muted); font-size: 10px; }
.opportunity-table { width: 100%; min-width: 0; table-layout: fixed; }
.opportunity-table-head { padding: 0; }
.opportunity-header-line, .opportunity-line { display: grid; grid-template-columns: minmax(190px, 1.35fr) minmax(180px, 1.25fr) 82px 82px minmax(590px, 4.5fr); align-items: center; column-gap: 10px; }
.opportunity-header-line { padding: 11px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.opportunity-line { min-height: 96px; width: 100%; padding: 10px 12px; color: var(--ink); font: 13px var(--mono); text-decoration: none; }
.opportunity-line:visited { color: var(--ink); }
.opportunity-row td { padding: 0; }
.opportunity-row { cursor: pointer; }
.opportunity-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.opportunity-symbol { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.opportunity-symbol strong { overflow: hidden; text-overflow: ellipsis; }
.opportunity-symbol .symbol-avatar { width: 32px; height: 32px; font-size: 14px; }
.opportunity-theme { display: flex; flex-wrap: wrap; gap: 4px; color: var(--teal-dark); font-family: var(--sans); font-weight: 700; }
.opportunity-theme > span { padding: 3px 7px; border-radius: 10px; background: #eaf6f4; font-size: 10px; line-height: 1.35; white-space: nowrap; }
.opportunity-theme > small { align-self: center; color: var(--muted); font: 9px var(--mono); }
.opportunity-score { color: var(--ink); font-weight: 700; }
.opportunity-score.pending { color: var(--muted); font-size: 11px; font-weight: 400; }
.homepage-strategy-list { display: grid; grid-template-columns: repeat(5, minmax(112px, 1fr)); gap: 6px; min-width: 0; }
.homepage-strategy-card { display: block; min-width: 0; padding: 8px 9px; border: 1px solid #bfd8d5; background: #f4faf8; color: var(--ink); font-family: var(--mono); }
.homepage-strategy-card strong { display: flex; align-items: center; gap: 5px; overflow: hidden; font-size: 10px; white-space: nowrap; }
.homepage-strategy-card strong b { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--teal-dark); color: white; font-size: 9px; }
.homepage-strategy-card strong span + span::before { content: "·"; margin-right: 5px; color: var(--muted); }
.homepage-strategy-card small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font: 9px var(--sans); white-space: nowrap; text-overflow: ellipsis; }
.homepage-strategy-card.attention { border-color: #e4cb78; background: #fff8df; }
.homepage-strategy-card.attention strong b { background: #aa7a00; }
.homepage-strategy-card .metric-fail { color: var(--red); font-weight: 700; }
.homepage-strategy-card strong b.metric-fail { color: white; background: var(--red); }
.opportunity-row-watch { background: #fffdf5; }
.opportunity-row-reject { color: #747b84; background: #f6f7f8; opacity: .78; }
.opportunity-row-reject .opportunity-theme { color: #747b84; }
.stage-abandon-note { color: #818891; font: 10px var(--sans); }
.source-bar { display: flex; justify-content: space-between; gap: 20px; padding: 14px 10px; color: var(--muted); font-size: 10px; }
.empty-state { padding: 42px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.empty-state.large { margin-top: 40px; border: 1px dashed var(--line-strong); }

.detail-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.detail-sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); padding: 112px 0 24px; border-right: 1px solid var(--line); background: white; }
.detail-sidebar { scrollbar-width: none; }
.detail-sidebar::-webkit-scrollbar { display: none; }
.detail-tab { display: block; width: 100%; min-height: 42px; padding: 0 22px; border: 0; border-left: 3px solid transparent; color: var(--muted); background: white; text-align: left; font-size: 12px; cursor: pointer; }
.detail-tab:hover, .detail-tab.active { color: var(--teal-dark); background: var(--surface); }
.detail-tab.active { border-left-color: var(--teal); }
.detail-main { min-width: 0; padding: 28px 34px 72px; }
.detail-header { padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.identity-row { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.identity-row h2 { margin: 0; font: 700 26px var(--mono); }
.identity-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.detail-meta { margin-left: auto; color: var(--muted); font-size: 10px; }
.detail-section { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 78px; }
.detail-section h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 19px; }
.detail-section > p { max-width: 900px; margin: 0; color: #3d4d60; line-height: 1.8; }
.overview-chart-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin: 20px 0 24px; }
.overview-chart-card { min-width: 0; padding: 16px; border: 1px solid var(--line); background: #fbfdfd; }
.overview-chart-wide { grid-column: 1 / -1; }
.chart-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chart-card-heading h4 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 16px; }
.chart-card-heading p, .chart-source { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.chart-source { white-space: nowrap; font-family: var(--mono); }
.chart-controls { display: flex; align-items: center; gap: 8px; }
.chart-controls label { color: var(--muted); font-size: 11px; }
.chart-controls select { min-height: 30px; padding: 0 28px 0 9px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink); background: white; font: 11px var(--sans); }
.price-chart-controls { display: grid; grid-template-columns: auto minmax(180px, 240px); align-items: center; justify-content: end; width: min(62vw, 780px); }
.price-chart-controls .chart-source { grid-column: 1 / -1; width: 100%; margin-top: 2px; line-height: 1.55; text-align: right; white-space: normal; }
.chart-canvas { width: 100%; min-height: 220px; }
.chart-canvas.compact { min-height: 190px; }
.chart-canvas svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-gridline { stroke: #dbe5e8; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-axis-label { fill: var(--muted); font: 9px var(--sans); }
.price-reference-line { stroke-opacity: .52; stroke-width: .8; stroke-dasharray: 5 4; shape-rendering: crispEdges; vector-effect: non-scaling-stroke; }
.price-axis-label { font-size: 9px; font-variant-numeric: tabular-nums; paint-order: stroke fill; stroke: #fbfdfd; stroke-width: 2px; stroke-linejoin: round; }
.price-axis-connector, .price-axis-tick, .price-time-tick { fill: none; stroke-width: .8; stroke-opacity: .72; shape-rendering: crispEdges; vector-effect: non-scaling-stroke; }
.price-time-tick { stroke: #91a4ad; }
.price-time-label { font-size: 9px; font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: url(#priceAreaGradient); opacity: .8; }
.historical-valuation-card { background: #fff; }
.valuation-history-controls { flex-wrap: nowrap; justify-content: flex-end; white-space: nowrap; }
.valuation-history-controls select { width: auto; }
.valuation-history-controls #valuationHistoryRange { min-width: 118px; }
.valuation-history-controls #valuationHistoryMetric { min-width: 72px; }
.valuation-history-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 10px 0 4px; border: 1px solid var(--line); }
.valuation-history-summary div { min-width: 0; padding: 9px 11px; border-right: 1px solid var(--line); }
.valuation-history-summary div:last-child { border-right: 0; }
.valuation-history-summary span { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.valuation-history-summary strong { display: block; margin-top: 4px; color: var(--ink); font: 700 12px var(--mono); }
.historical-valuation-canvas { margin-top: 4px; }
.historical-valuation-line { fill: none; stroke: #22677e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.historical-price-line { fill: none; stroke: #d9902f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.historical-reference-line { stroke-width: .8; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.historical-axis-label, .historical-legend-label { fill: var(--muted); font: 9px var(--sans); font-variant-numeric: tabular-nums; }
.valuation-history-note { display: flex; justify-content: space-between; gap: 18px; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.valuation-history-note span:last-child { text-align: right; }
.financial-statements-section { background: #fff; }
.financial-statements-heading, .financial-chart-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.financial-statements-heading { margin-bottom: 12px; }
.financial-statements-heading h4, .financial-chart-title h5 { margin: 0; color: var(--ink); font-family: var(--serif); }
.financial-statements-heading h4 { font-size: 16px; }
.financial-chart-title h5 { font-size: 14px; }
.financial-statements-heading p, .financial-chart-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.financial-statement-stack { display: grid; gap: 12px; }
.financial-statement-chart { min-width: 0; padding: 13px 14px 8px; border: 1px solid var(--line); background: #fbfdfd; }
.financial-chart-title > span { color: var(--muted); font: 9px var(--mono); white-space: nowrap; }
.financial-chart-canvas { width: 100%; min-height: 250px; margin-top: 4px; }
.financial-chart-canvas svg { display: block; width: 100%; height: auto; overflow: visible; }
.financial-bar { opacity: .88; }
.financial-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.financial-dot { stroke: white; stroke-width: 1.4; }
.financial-axis-label, .financial-legend-label, .financial-point-label { fill: var(--muted); font: 9px var(--sans); font-variant-numeric: tabular-nums; }
.financial-point-label { font-weight: 700; paint-order: stroke fill; stroke: #fbfdfd; stroke-width: 2px; }
.financial-zero-line { stroke: #aebdc3; stroke-width: .8; }
.financial-statements-note { display: flex; justify-content: space-between; gap: 18px; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.financial-statements-note span:last-child { text-align: right; }
.chart-dot { fill: var(--teal-dark); stroke: white; stroke-width: 2; }
.chart-bar { fill: #9bcac7; }
.chart-bar.volume { fill: #d9b969; opacity: .8; }
.chart-value-label { fill: var(--ink); font: 10px var(--sans); }
.option-metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 8px; }
.option-metric { padding: 8px 9px; background: #f1f7f6; }
.option-metric span { display: block; color: var(--muted); font-size: 10px; }
.option-metric strong { display: block; margin-top: 3px; color: var(--ink); font: 700 14px var(--mono); }
.chart-empty { fill: var(--muted); font: 12px var(--sans); }
.volatility-heading { align-items: flex-end; margin-bottom: 18px; }
.volatility-heading h3 { margin-bottom: 5px; }
.volatility-heading p { max-width: 780px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.volatility-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.volatility-gauge-card { min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--line); background: #fbfdfd; }
.gauge-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 48px; }
.gauge-card-heading h4 { margin: 0; font-family: var(--serif); font-size: 17px; }
.gauge-card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.gauge-unit { color: var(--muted); font: 10px var(--mono); }
.gauge-stage { min-height: 156px; margin-top: 8px; }
.metric-gauge { display: block; width: 100%; height: 156px; overflow: visible; }
.gauge-arc-bg { fill: none; stroke: #e7edef; stroke-width: 19; stroke-linecap: round; }
.gauge-arc { fill: none; stroke-width: 17; stroke-linecap: round; }
.gauge-needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.gauge-hub { fill: var(--ink); }
.gauge-value { fill: var(--ink); font: 700 22px var(--mono); }
.gauge-caption { fill: var(--muted); font: 9px var(--sans); }
.gauge-scale-label { fill: var(--muted); font: 9px var(--mono); }
.gauge-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; border-top: 1px solid var(--line); }
.gauge-detail { min-width: 0; padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.gauge-detail:nth-last-child(-n+2) { border-bottom: 0; }
.gauge-detail span { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.gauge-detail strong { display: block; margin-top: 4px; overflow: hidden; color: var(--ink); font: 700 12px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.gauge-detail small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.volatility-score-layout { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr); border: 1px solid var(--line); background: #fbfdfd; }
.volatility-score-panel { padding: 20px 22px; border-right: 1px solid var(--line); }
.score-summary { display: flex; align-items: center; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.score-number { flex: 0 0 auto; min-width: 94px; color: var(--teal-dark); }
.score-number strong { font: 700 42px/1 var(--mono); }
.score-number span { margin-left: 3px; color: var(--muted); font: 10px var(--mono); }
.score-summary h4 { margin: 0; font-family: var(--serif); font-size: 18px; }
.score-summary p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.score-components { display: grid; gap: 10px; margin-top: 16px; }
.score-component { display: grid; grid-template-columns: 92px minmax(0, 1fr) 34px; align-items: center; gap: 9px; }
.score-component-label { color: var(--muted); font-size: 10px; }
.score-component-track { height: 5px; overflow: hidden; border-radius: 99px; background: #e5ecee; }
.score-component-fill { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.score-component strong { font: 11px var(--mono); text-align: right; }
.score-component.unavailable .score-component-fill { width: 0 !important; }
.score-component.unavailable strong { color: var(--muted); font-size: 9px; }
.score-coverage { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.score-coverage strong { color: var(--ink); font: 11px var(--mono); }
.volatility-score-final { margin-top: 14px; border: 1px solid var(--line); border-right: 1px solid var(--line); background: #f3f9f8; }
.score-final-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.score-final-heading h4 { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; }
.score-final-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.score-kicker { color: var(--teal-dark); font: 700 9px var(--sans); letter-spacing: .16em; }
.score-summary-final { padding: 14px 0 0; border-bottom: 0; }
.score-summary-final h4 { font-size: 16px; }
.score-summary-final p { max-width: 980px; font-size: 11px; }
.volatility-metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.volatility-metric { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.volatility-metric:nth-child(3n) { border-right: 0; }
.volatility-metric:nth-last-child(-n+3) { border-bottom: 0; }
.volatility-metric span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.volatility-metric strong { display: block; margin-top: 7px; color: var(--ink); font: 700 18px var(--mono); white-space: nowrap; }
.volatility-metric small { display: block; min-height: 15px; margin-top: 4px; color: var(--muted); font-size: 9px; }
.volatility-chart-card { margin-top: 14px; padding: 18px 20px 14px; border: 1px solid var(--line); background: white; }
.volatility-skew-canvas { min-height: 280px; }
.volatility-controls { flex-wrap: wrap; justify-content: flex-end; }
.segmented-control { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.segmented-control button { min-height: 28px; padding: 0 10px; border: 0; border-right: 1px solid var(--line-strong); color: var(--muted); background: white; font: 10px var(--sans); cursor: pointer; }
.segmented-control button:last-child { border-right: 0; }
.segmented-control button.active { color: var(--teal-dark); background: var(--teal-soft); font-weight: 700; }
.skew-call-line, .skew-put-line { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.skew-call-line { stroke: var(--teal); }
.skew-put-line { stroke: #d56b67; }
.skew-call-dot { fill: var(--teal); }
.skew-put-dot { fill: #d56b67; }
.skew-spot-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-legend { display: flex; justify-content: center; gap: 22px; color: var(--muted); font-size: 10px; }
.chart-legend span::before { content: ''; display: inline-block; width: 16px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--teal); }
.chart-legend .legend-put::before { background: #d56b67; }
.chart-legend .legend-spot::before { background: var(--ink); }
.volatility-flow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.flow-panel { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); background: #fbfdfd; }
.flow-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.flow-panel-heading h4 { margin: 0; font-family: var(--serif); font-size: 16px; }
.flow-panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.flow-panel-heading > strong { color: var(--ink); font: 700 20px var(--mono); white-space: nowrap; }
.put-call-bar { display: flex; height: 8px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: #e5ecee; }
.put-call-bar .call { background: var(--teal); }
.put-call-bar .put { background: #d56b67; }
.flow-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 13px; }
.flow-metrics span { display: block; color: var(--muted); font-size: 9px; }
.flow-metrics strong { display: block; margin-top: 4px; color: var(--ink); font: 700 12px var(--mono); }
.volatility-note { margin-top: 14px; padding: 11px 13px; border-left: 2px solid var(--amber); color: var(--muted); background: #fffaf0; font-size: 10px; line-height: 1.7; }
.company-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.company-badges span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface); font: 11px var(--sans); }
.company-intro { width: 100%; max-width: none !important; font-size: 15px !important; line-height: 1.9 !important; }
.company-snapshot { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border: 1px solid var(--line); }
.company-snapshot .metric-item { min-width: 0; }
.company-core-snapshot .metric-item strong { font: 700 16px/1.4 var(--sans); overflow-wrap: anywhere; }
.fundamental-card h4 { margin: 0; font-family: var(--serif); font-size: 15px; }
.fundamental-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.fundamental-card { min-width: 0; padding: 19px 20px; border: 1px solid var(--line); }
.fundamental-card dl { margin: 12px 0 0; }
.fundamental-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fundamental-card dl > div:last-child { border-bottom: 0; }
.fundamental-card dt { color: var(--muted); font-size: 11px; }
.fundamental-card dd { margin: 0; font: 12px var(--mono); text-align: right; }
.fundamental-card ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 14px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.6; }
.company-source { margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--teal); color: var(--muted); background: var(--surface); font-size: 10px; line-height: 1.7; }
.fundamental-score-panel { margin-top: 16px; padding: 20px; border: 1px solid var(--line); background: #fff; }
.fundamental-score-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.fundamental-score-heading h4 { margin: 0; color: var(--ink); font: 700 16px var(--serif); }
.fundamental-score-heading p { max-width: none; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.fundamental-score-heading > span { flex: 0 0 auto; color: var(--muted); font: 10px var(--mono); }
.fundamental-score-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr) 250px; align-items: stretch; margin-top: 17px; border: 1px solid var(--line); background: var(--surface); }
.fundamental-score-number { display: flex; align-items: baseline; justify-content: center; padding: 25px 18px; border-right: 1px solid var(--line); color: var(--teal-dark); }
.fundamental-score-number strong { font: 700 40px/1 var(--serif); }
.fundamental-score-number span { margin-left: 5px; color: var(--muted); font: 11px var(--mono); }
.fundamental-score-verdict { min-width: 0; padding: 20px 24px; }
.fundamental-score-verdict > span { display: inline-flex; padding: 3px 8px; border: 1px solid #9bcac7; color: var(--teal-dark); background: #edf8f6; font-size: 10px; font-weight: 700; }
.fundamental-score-verdict h5 { margin: 9px 0 5px; color: var(--ink); font: 700 16px/1.4 var(--serif); }
.fundamental-score-verdict p { max-width: none; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.fundamental-score-split { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line); }
.fundamental-score-split div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 18px 12px; }
.fundamental-score-split div + div { border-left: 1px solid var(--line); }
.fundamental-score-split span { color: var(--muted); font-size: 10px; }
.fundamental-score-split strong { color: var(--ink); font: 700 21px var(--mono); }
.fundamental-score-dimensions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--line); }
.fundamental-score-dimension { min-width: 0; padding: 15px 16px; }
.fundamental-score-dimension-wide { grid-column: 1 / -1; }
.fundamental-score-dimension + .fundamental-score-dimension { border-left: 1px solid var(--line); }
.fundamental-score-dimension header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fundamental-score-dimension h5 { margin: 0; color: var(--ink); font: 700 12px var(--sans); }
.fundamental-score-dimension strong { white-space: nowrap; color: var(--ink); font: 700 13px var(--mono); }
.fundamental-score-bar { height: 5px; margin: 11px 0 9px; overflow: hidden; background: #e7edef; }
.fundamental-score-bar span { display: block; height: 100%; background: linear-gradient(90deg, #82c4bf, var(--teal)); }
.fundamental-score-dimension p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.fundamental-valuation-note { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--amber); color: var(--muted); background: #fffaf0; font-size: 10px; line-height: 1.65; }
.fundamental-score-method { display: flex; justify-content: space-between; gap: 24px; margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.fundamental-score-method span:last-child { text-align: right; }
.section-heading, .canvas-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.valuation-strip { padding: 26px 0 8px; }
.strip-track { position: relative; height: 8px; margin: 0 58px; border-radius: 99px; background: linear-gradient(90deg, #edf1f3 0 30%, var(--teal-soft) 30% 72%, #edf1f3 72%); }
.strip-marker { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 2px; height: 24px; background: var(--ink); }
.strip-marker::after { content: attr(data-label); position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: var(--ink); font: 10px var(--mono); white-space: nowrap; }
.strip-labels { display: flex; justify-content: space-between; margin-top: 20px; color: var(--muted); font-size: 10px; }
.split-section { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr); gap: 48px; }
.payoff-mini { height: 128px; }
.payoff-mini svg { width: 100%; height: 100%; }
.axis { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.teal-line { fill: none; stroke: var(--teal); stroke-width: 2.5; }
.key-value-list { margin: 0; }
.key-value-list div { display: grid; grid-template-columns: minmax(110px, 1fr) 1fr; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.key-value-list dt { color: var(--muted); font-size: 11px; }
.key-value-list dd { margin: 0; font: 12px var(--mono); text-align: right; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.scenario-item { padding: 20px; border-right: 1px solid var(--line); }
.scenario-item:last-child { border-right: 0; }
.scenario-item strong { display: block; margin-bottom: 7px; font-family: var(--serif); font-size: 16px; }
.scenario-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.metric-band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.metric-item { padding: 18px; border-right: 1px solid var(--line); }
.metric-item:last-child { border-right: 0; }
.metric-item span { display: block; color: var(--muted); font-size: 10px; }
.metric-item strong { display: block; margin-top: 8px; font: 700 20px var(--mono); }
.risk-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 30px; }
.risk-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); font-size: 12px; }
.risk-list li::before { content: "!"; position: absolute; left: 0; top: 8px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber); font-size: 10px; }

.section-kicker { display: block; margin-bottom: 7px; color: var(--teal-dark); font: 700 9px var(--mono); letter-spacing: .18em; }
.method-version { color: var(--muted); font: 10px var(--mono); white-space: nowrap; }
.decision-section { padding-top: 24px; }
.decision-overall { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-top: 4px; padding: 20px 22px; border: 1px solid var(--line-strong); border-left: 4px solid var(--line-strong); background: var(--surface); }
.decision-overall strong { font-family: var(--serif); font-size: 22px; }
.decision-overall span { color: var(--muted); font-size: 11px; text-align: right; }
.decision-overall.pass { border-left-color: var(--green); background: #f4faf7; }
.decision-overall.conditional { border-left-color: var(--teal); background: #f4fbfb; }
.decision-overall.fail { border-left-color: var(--red); background: #fff7f6; }
.decision-overall.pending, .decision-overall.loading { border-left-color: var(--amber); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--line); }
.evidence-card { min-width: 0; padding: 20px; border-right: 1px solid var(--line); border-top: 3px solid var(--line-strong); }
.evidence-card:last-child { border-right: 0; }
.evidence-card.pass { border-top-color: var(--green); }
.evidence-card.conditional { border-top-color: var(--teal); }
.evidence-card.fail { border-top-color: var(--red); }
.evidence-card.pending { border-top-color: var(--amber); }
.evidence-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.evidence-card-head > span:first-child { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.evidence-status { flex: 0 0 auto; padding: 3px 7px; border: 1px solid currentColor; color: var(--muted); font-size: 9px; }
.evidence-card.pass .evidence-status { color: var(--green); }
.evidence-card.conditional .evidence-status { color: var(--teal-dark); }
.evidence-card.fail .evidence-status { color: var(--red); }
.evidence-card.pending .evidence-status { color: var(--amber); }
.evidence-card h4 { min-height: 44px; margin: 14px 0 8px; font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.evidence-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.evidence-list { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
.evidence-list li { position: relative; padding: 4px 0 4px 15px; color: #34475b; font-size: 10px; line-height: 1.5; }
.evidence-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; background: var(--teal); }
.evidence-falsifier { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); color: var(--red); font-size: 9px; line-height: 1.55; }
.methodology-block { margin-top: 14px; border: 1px solid var(--line); }
.methodology-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.methodology-title strong { font-family: var(--serif); }
.methodology-title span { color: var(--muted); font-size: 10px; }
.methodology-rail { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: method-step; }
.method-step { position: relative; min-height: 92px; padding: 16px 12px 13px 36px; border-right: 1px solid var(--line); counter-increment: method-step; }
.method-step:last-child { border-right: 0; }
.method-step::before { content: counter(method-step); position: absolute; left: 12px; top: 16px; display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--line-strong); color: var(--muted); font: 9px var(--mono); }
.method-step.pass::before { border-color: var(--green); color: var(--green); }
.method-step.conditional::before { border-color: var(--teal); color: var(--teal-dark); }
.method-step.fail::before { border-color: var(--red); color: var(--red); }
.method-step.pending::before { border-color: var(--amber); color: var(--amber); }
.method-step strong { display: block; font-size: 11px; }
.method-step span { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.veto-strip { display: grid; grid-template-columns: 100px 1fr; gap: 12px; margin-top: 12px; padding: 12px 15px; border-left: 3px solid var(--red); background: #fff7f6; font-size: 10px; line-height: 1.55; }
.veto-strip.clear { border-left-color: var(--green); background: #f4faf7; }
.veto-strip strong { color: var(--red); }
.veto-strip.clear strong { color: var(--green); }
.section-note, .backtest-disclosure { color: var(--muted) !important; font-size: 10px; line-height: 1.6 !important; }
.section-note { margin: -4px 0 14px !important; }
.backtest-disclosure { margin-top: 10px !important; }
.backtest-heading { align-items: flex-start; }
.backtest-heading h3 { margin-bottom: 4px; }
.backtest-heading .section-note { margin: 0; }
.backtest-matrix-toolbar { display: grid; grid-template-columns: minmax(230px, auto) minmax(380px, 1fr) auto; align-items: start; gap: 18px; margin: 16px 0 10px; }
#detailDecision { display: none; }
.backtest-matrix-toolbar > div > span { display: block; height: 14px; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.backtest-valuation-filter { justify-self: center; text-align: center; }
.backtest-lookback-group { justify-self: end; }
.segmented-control button:disabled { color: var(--faint); background: var(--surface); cursor: not-allowed; opacity: .65; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 9px; }
.matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-legend i { width: 9px; height: 9px; border-radius: 2px; }
.matrix-legend .safe { background: #d8eee4; border: 1px solid #9dcdb5; }
.matrix-legend .acceptable { background: #fff0c7; border: 1px solid #e6c66a; }
.matrix-legend .risk { background: #f8d8d5; border: 1px solid #df9c96; }
.backtest-matrix-wrap { overflow-x: auto; border: 1px solid var(--line); }
.backtest-result-stack { display: grid; gap: 14px; }
.backtest-result-panel h4 { margin: 0 0 3px; color: var(--ink); font-size: 12px; }
.backtest-result-panel p { margin: 0 0 7px; color: var(--muted); font-size: 9px; }
.backtest-matrix { width: 100%; min-width: 660px; border-collapse: collapse; table-layout: fixed; }
.backtest-matrix th, .backtest-matrix td { height: 42px; padding: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.backtest-matrix th:last-child, .backtest-matrix td:last-child { border-right: 0; }
.backtest-matrix tbody tr:last-child th, .backtest-matrix tbody tr:last-child td { border-bottom: 0; }
.backtest-matrix thead th { color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 600; }
.backtest-matrix thead th small { display: block; margin-top: 3px; color: var(--faint); font: 9px var(--mono); }
.backtest-matrix tbody th { color: var(--ink); background: #fbfcfd; font: 600 11px var(--mono); }
.backtest-matrix td { position: relative; color: var(--ink); font: 700 12px var(--mono); }
.backtest-matrix td.matrix-safe { color: #17643d; background: #d8eee4; }
.backtest-matrix td.matrix-acceptable { color: #7b5b00; background: #fff0c7; }
.backtest-matrix td.matrix-risk { color: #9b332d; background: #f8d8d5; }
.backtest-matrix td.matrix-neutral { color: var(--ink); background: #f7f9fb; }
.matrix-score-badge { display: inline-block; margin-right: 6px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 2px; font-weight: 700; }
.matrix-score-badge.matrix-score-safe { color: #17643d; background: #d8eee4; }
.matrix-score-badge.matrix-score-acceptable { color: #7b5b00; background: #fff0c7; }
.matrix-score-badge.matrix-score-risk { color: #9b332d; background: #f8d8d5; }
.backtest-matrix tbody td { white-space: nowrap; font-size: 11px; }
.backtest-matrix td.matrix-empty, .backtest-matrix td.matrix-loading { color: var(--muted); background: white; font-weight: 400; }
.backtest-matrix td.matrix-loading { height: 120px; text-align: center; }
.structure-design-section { background: linear-gradient(180deg, rgba(237,248,246,.72), rgba(255,255,255,0) 170px); }
.structure-design-gates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 0; border: 1px solid var(--line); background: white; }
.structure-gate { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 2px 8px; min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); }
.structure-gate:last-child { border-right: 0; }
.structure-gate > span { grid-row: 1 / 3; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font: 700 10px var(--mono); }
.structure-gate strong { overflow: hidden; color: var(--ink); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.structure-gate small { color: var(--muted); font: 9px var(--mono); }
.structure-gate.pass { color: var(--green); background: #f4faf7; }
.structure-gate.fail { color: var(--red); background: #fff8f7; }
.structure-design-summary { display: grid; grid-template-columns: minmax(190px, 1.35fr) repeat(5, minmax(105px, 1fr)); margin-bottom: 14px; border: 1px solid var(--line-strong); border-left: 4px solid var(--red); background: white; }
.structure-design-summary.eligible { border-left-color: var(--green); }
.structure-design-summary > div { min-width: 0; padding: 16px 14px; border-right: 1px solid var(--line); }
.structure-design-summary > div:last-child { border-right: 0; }
.structure-design-summary span { display: block; color: var(--muted); font-size: 9px; }
.structure-design-summary strong { display: block; margin-top: 7px; overflow: hidden; color: var(--ink); font: 700 15px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.structure-design-summary .structure-design-verdict strong { color: var(--teal-dark); font-family: var(--serif); font-size: 16px; white-space: normal; }
.structure-design-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: white; }
.structure-design-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.structure-design-table th, .structure-design-table td { padding: 11px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-size: 10px; }
.structure-design-table th:last-child, .structure-design-table td:last-child { border-right: 0; }
.structure-design-table tbody tr:last-child td { border-bottom: 0; }
.structure-design-table th { color: var(--muted); background: var(--surface); font-weight: 600; white-space: nowrap; }
.structure-design-table thead th small { display: block; margin-top: 3px; color: var(--faint); font: 8px var(--mono); }
.structure-design-table tbody th { color: var(--ink); background: #fbfcfd; font: 700 11px var(--mono); }
.structure-design-table td { font-family: var(--mono); }
.structure-design-table td { white-space: nowrap; font-weight: 700; }
.structure-cell-button { width: 100%; min-height: 38px; margin: -11px -12px; padding: 11px 12px; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.structure-cell-button:hover, .structure-cell-button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.structure-design-table td.structure-cell-selected { box-shadow: inset 0 0 0 3px var(--teal-dark); }
.structure-design-table td.structure-cell-selected .structure-cell-button::after { margin-left: 6px; content: "✓"; }
.structure-design-table td.matrix-score-safe { color: #17643d; background: #d8eee4; }
.structure-design-table td.matrix-score-acceptable { color: #7b5b00; background: #fff0c7; }
.structure-design-table td.matrix-score-risk { color: #9b332d; background: #f8d8d5; }
.structure-design-table td.matrix-empty { color: var(--muted); background: white; font-weight: 400; }
.structure-design-table td.structure-cell-eligible { box-shadow: inset 0 0 0 2px var(--green); }
.structure-design-table td strong { font-size: 11px; }
.structure-design-table td small { display: block; margin-top: 4px; color: var(--muted); font: 8px/1.4 var(--sans); }
.structure-row-eligible { background: #f5fbf8; }
.structure-row-ineligible { background: #fff; }
.structure-score { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 6px; border: 1px solid currentColor; }
.structure-score.strong { color: var(--green); background: #e6f4ec; }
.structure-score.medium { color: #8a6500; background: #fff4d7; }
.structure-score.weak { color: var(--red); background: #fff0ee; }
.structure-verdict { display: inline-block; padding: 3px 7px; border: 1px solid currentColor; font: 700 9px var(--sans); white-space: nowrap; }
.structure-verdict.pass { color: var(--green); }
.structure-verdict.fail { color: var(--red); }
.structure-design-empty { height: 100px; color: var(--muted); text-align: center !important; }
.structure-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); background: white; }
.structure-selection-bar > div { min-width: 0; }
.structure-selection-bar span { display: block; color: var(--muted); font-size: 9px; }
.structure-selection-bar strong { display: block; margin-top: 5px; color: var(--ink); font-size: 12px; }
.structure-selection-bar .primary-button:disabled { cursor: not-allowed; opacity: .45; }
.scenario-item::before { display: block; width: 24px; height: 3px; margin-bottom: 15px; background: var(--teal); content: ""; }
.scenario-item.scenario-ko::before { background: var(--green); }
.scenario-item.scenario-hold::before { background: #3f8fd2; }
.scenario-item.scenario-assigned::before { background: var(--red); }

.materials-shell { max-width: 1280px; }
#page-materials, #page-materials button, #page-materials input, #page-materials select, #page-materials textarea { font-family: var(--sans); }
#page-materials .page-heading h1 { font-family: var(--sans); font-size: 30px; line-height: 1.2; }
#page-materials .page-heading p { font-size: 14px; line-height: 1.6; }
.license-gate { padding: 7px 10px; border: 1px solid var(--amber); color: var(--amber); font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.materials-structure-editor { margin-bottom: 20px; padding: 18px 20px 20px; border: 1px solid var(--line-strong); background: white; }
.materials-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.materials-editor-heading h2 { margin: 0; font-family: var(--sans); font-size: 22px; line-height: 1.3; }
.materials-editor-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.materials-editor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 14px; }
.materials-editor-grid label { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 13px; }
.materials-editor-grid input, .materials-editor-grid select { width: 100%; }
.materials-editor-grid .materials-multi-intro-control { grid-column: span 2; }
.multi-screening-guide { margin: 18px 0 14px; padding: 16px; border: 1px solid #9fc0df; background: #f6faff; }
.multi-screening-guide-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.multi-screening-guide-heading small { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.multi-screening-guide-heading h3 { margin: 4px 0 0; color: var(--ink); font-size: 16px; }
.multi-screening-guide-heading > span { padding: 5px 9px; border: 1px solid #b8cfe5; color: #47647f; background: white; font-size: 10px; }
.multi-screening-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.multi-screening-rules article { min-width: 0; padding: 11px 12px; border-top: 3px solid; background: white; }
.multi-screening-rules b, .multi-screening-rules span { display: block; }
.multi-screening-rules b { font-size: 12px; }
.multi-screening-rules span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.multi-screening-rules .screening-fit { border-color: #0aa37f; }
.multi-screening-rules .screening-watch { border-color: #d99a16; }
.multi-screening-rules .screening-stop { border-color: #d65757; }
.multi-screening-guide > p { margin: 11px 0 0; color: var(--muted); font-size: 10px; }
.multi-screening-selection { margin: -2px 0 16px; padding: 10px 12px; border-left: 3px solid #9fb5c9; color: #49647e; background: #f8fafc; font-size: 11px; }
.multi-screening-selection.fit { border-color: #0aa37f; color: #08755d; background: #f2fbf8; }
.multi-screening-selection.watch { border-color: #d99a16; color: #8a620e; background: #fffaf0; }
.multi-screening-selection.stop { border-color: #d65757; color: #a13b3b; background: #fff6f6; }
.materials-editor-grid input, .materials-editor-grid select, .materials-copy-grid input, .materials-copy-grid textarea { font-size: 14px; line-height: 1.5; }
.materials-editor-grid input:disabled, .materials-editor-grid select:disabled { color: var(--faint); background: #f4f6f8; cursor: not-allowed; }
.materials-copy-editor { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.materials-copy-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.materials-copy-heading h3 { margin: 0; font-family: var(--sans); font-size: 18px; }
.materials-copy-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.materials-copy-heading > span { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--line); color: var(--teal); font-size: 12px; }
.materials-copy-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 14px; }
.materials-copy-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.materials-copy-grid .copy-wide { grid-column: 1 / -1; }
.materials-copy-grid input, .materials-copy-grid textarea { width: 100%; }
.materials-copy-grid textarea { min-height: 66px; resize: vertical; line-height: 1.55; }
.materials-copy-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.materials-copy-status { margin: 9px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.material-admin-card { display: grid; gap: 13px; }
.material-admin-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: left; }
.material-admin-card label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.materials-editor-state { display: flex; justify-content: flex-end; margin-top: 12px; color: var(--muted); font-size: 12px; }
.materials-put-curve { margin-top: 18px; padding: 16px 18px 12px; border: 1px solid var(--line); background: #fbfdff; }
.materials-put-curve-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.materials-put-curve-heading h3 { margin: 0; font-family: var(--sans); font-size: 17px; color: var(--ink); }
.materials-put-curve-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.materials-put-curve-heading > span { flex: 0 0 auto; color: var(--teal); font-size: 12px; }
.materials-put-curve svg { display: block; width: 100%; min-height: 250px; overflow: visible; }
.materials-put-grid { stroke: #d8e3ec; stroke-width: 1; stroke-dasharray: 4 5; }
.materials-put-axis { stroke: #7890a4; stroke-width: 1.2; }
.materials-put-axis-label { fill: #60758a; font: 12px var(--sans); }
.materials-put-line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.materials-put-dot { fill: #fff; stroke: var(--teal); stroke-width: 2; }
.materials-put-selected-line { stroke: #f06b2b; stroke-width: 1.6; stroke-dasharray: 6 5; }
.materials-put-selected-dot { fill: #f06b2b; stroke: #fff; stroke-width: 3; }
.materials-put-selected-label { fill: #c64e17; font: 700 12px var(--sans); }
.materials-put-empty { fill: #70869a; font: 14px var(--sans); }
.materials-put-curve-note { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.detail-put-curve { margin: 14px 0; background: white; }
.detail-put-curve .materials-put-curve-heading h4 { margin: 0; color: var(--ink); font-size: 13px; }
.detail-put-curve-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; max-width: 650px; }
.detail-put-curve-controls > span { color: var(--teal); font-size: 10px; }
.detail-put-curve-controls .segmented-control button { min-height: 30px; padding: 6px 11px; font-size: 10px; }
.put-curve-filter-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.put-curve-filter-row > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.put-tenor-toggles button { display: grid; grid-template-rows: auto auto; gap: 1px; line-height: 1.1; }
.put-tenor-toggles button b { font-weight: 650; }
.put-tenor-toggles button small { font-size: 8px; color: inherit; opacity: .72; }
.put-curve-direct-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; margin: 2px 0 6px 58px; color: var(--muted); font-size: 10px; }
.put-curve-direct-legend span::before { content: ''; display: inline-block; width: 20px; height: 2px; margin-right: 5px; vertical-align: middle; background: var(--curve-color); }
.put-curve-direct-legend em { font-style: normal; margin-left: auto; }
.materials-put-multi-line { fill: none; stroke: var(--curve-color); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.materials-put-multi-dot { fill: #fff; stroke: var(--curve-color); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.materials-put-delta-track { fill: none; stroke: var(--delta-color); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .92; vector-effect: non-scaling-stroke; }
.materials-put-delta-dot { fill: #fff; stroke: var(--delta-color); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
@media (max-width: 820px) {
  .materials-put-curve-heading { flex-direction: column; }
  .detail-put-curve-controls { align-items: stretch; max-width: none; width: 100%; }
  .put-curve-filter-row { align-items: flex-start; justify-content: flex-start; flex-direction: column; }
  .put-curve-filter-row .segmented-control { display: flex; flex-wrap: wrap; width: 100%; }
  .put-curve-filter-row .segmented-control button { flex: 1 1 74px; }
  .put-curve-direct-legend { margin-left: 0; }
  .put-curve-direct-legend em { flex-basis: 100%; margin-left: 0; }
}
.client-onepager { --client-navy: #0d2746; --client-panel: #132f51; --client-gold: #e6c16f; --client-cyan: #73d4df; --client-text: #eef5ff; --client-muted: #a9b9ce; color: var(--client-text); background: var(--client-navy); border: 1px solid #1d4b72; box-shadow: 0 24px 60px rgba(8, 29, 54, .2); }
.client-loading { display: grid; place-items: center; min-height: 520px; color: var(--client-muted); }
.client-hero { position: relative; padding: 38px 42px 24px; border-bottom: 1px solid rgba(230,193,111,.45); }
.client-hero::after { content: ""; position: absolute; right: 42px; top: 34px; width: 130px; height: 86px; border: 1px solid rgba(115,212,223,.28); }
.client-overline { display: flex; align-items: center; gap: 14px; color: var(--client-gold); font: 10px var(--mono); letter-spacing: .2em; }
.client-overline::before, .client-overline::after { content: ""; width: 48px; height: 1px; background: var(--client-gold); opacity: .7; }
.client-hero h2 { margin: 22px 0 8px; font-family: var(--serif); font-size: clamp(32px, 5vw, 58px); line-height: 1; letter-spacing: .02em; }
.client-hero h2 span { color: var(--client-cyan); font: 700 .54em var(--mono); }
.client-subtitle { margin: 0; color: var(--client-muted); font-size: 14px; letter-spacing: .05em; }
.client-company-line { max-width: 760px; margin: 9px 0 0; color: var(--client-muted); font-size: 11px; line-height: 1.6; }
.client-meta { display: flex; gap: 18px; margin-top: 18px; color: var(--client-muted); font: 10px var(--mono); }
.client-verdict { display: inline-block; margin-top: 20px; padding: 7px 10px; border: 1px solid var(--client-gold); color: var(--client-gold); font-size: 10px; }
.client-verdict.pass { border-color: #45d8a6; color: #45d8a6; }
.client-verdict.fail { border-color: #ff736f; color: #ff8a86; }
.client-metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 42px; }
.client-metric { min-width: 0; padding: 24px 18px 22px; border-top: 3px solid var(--client-gold); border-right: 1px solid rgba(169,185,206,.28); text-align: center; }
.client-metric:first-child { border-left: 1px solid rgba(169,185,206,.28); }
.client-metric strong { display: block; color: var(--client-gold); font: 700 clamp(24px, 3vw, 38px) var(--mono); white-space: nowrap; }
.client-metric span { display: block; margin-top: 7px; color: var(--client-muted); font-size: 10px; }
.client-terms { margin: 18px 42px 0; padding: 13px 16px; border: 1px solid rgba(115,212,223,.32); color: var(--client-muted); font-size: 11px; }
.client-terms b { color: var(--client-cyan); }
.client-structure-compact { margin: 22px 42px 0; border: 1px solid rgba(115,212,223,.34); }
.client-structure-compact > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 48px; padding: 10px 14px; border-bottom: 1px solid rgba(169,185,206,.22); }
.client-structure-compact > div:last-child { border-bottom: 0; }
.client-structure-compact strong { color: var(--client-cyan); font-size: 12px; }
.client-structure-compact span { color: var(--client-text); font-size: 12px; }
.client-structure-compact em { color: var(--client-gold); font-size: 10px; font-style: normal; }
.client-section { padding: 30px 42px 0; }
.client-section-title { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; color: var(--client-gold); font-family: var(--serif); font-size: 19px; }
.client-section-title::after { content: ""; flex: 1; height: 1px; background: rgba(230,193,111,.34); }
.client-scenarios, .client-evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.client-scenario, .client-evidence-card { min-height: 155px; padding: 18px; border: 1px solid rgba(169,185,206,.3); background: var(--client-panel); }
.client-scenario { border-top: 4px solid var(--client-cyan); }
.client-scenario.ko { border-top-color: #45d8a6; }
.client-scenario.assigned { border-top-color: #ff736f; }
.client-scenario strong, .client-evidence-card strong { display: block; font-family: var(--serif); font-size: 16px; }
.client-scenario.ko strong { color: #56dbad; }
.client-scenario.assigned strong { color: #ff8a86; }
.client-scenario p, .client-evidence-card p { margin: 10px 0 0; color: var(--client-muted); font-size: 11px; line-height: 1.65; }
.client-evidence-card { border-left: 4px solid var(--client-gold); }
.client-evidence-card.pass { border-left-color: #45d8a6; }
.client-evidence-card.conditional { border-left-color: var(--client-cyan); }
.client-evidence-card.fail { border-left-color: #ff736f; }
.client-evidence-card span { display: inline-block; margin-bottom: 10px; color: var(--client-cyan); font: 9px var(--mono); letter-spacing: .08em; }
.client-logic-list { border: 1px solid rgba(169,185,206,.3); background: rgba(19,47,81,.56); }
.client-logic-list article { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 17px 18px; border-bottom: 1px solid rgba(169,185,206,.24); }
.client-logic-list article:last-child { border-bottom: 0; }
.client-logic-list article > span { display: grid; place-items: center; align-self: start; width: 38px; height: 38px; border: 1px solid var(--client-cyan); border-radius: 50%; color: var(--client-cyan); font: 700 10px var(--mono); }
.client-logic-list article div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; }
.client-logic-list b { color: var(--client-cyan); font-size: 13px; }
.client-logic-list strong { color: var(--client-text); font-family: var(--serif); font-size: 16px; }
.client-logic-list p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--client-muted); font-size: 11px; line-height: 1.75; }
.client-compact-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; padding-bottom: 4px; }
.client-compact-band, .client-compact-scenarios { border: 1px solid rgba(169,185,206,.3); background: rgba(19,47,81,.56); }
.client-compact-band { display: grid; grid-template-columns: 1fr 1fr; }
.client-compact-band > div { padding: 18px; border-right: 1px solid rgba(169,185,206,.24); }
.client-compact-band > div:nth-child(2) { border-right: 0; }
.client-compact-band span { display: block; color: var(--client-muted); font-size: 9px; }
.client-compact-band strong { display: block; margin-top: 6px; color: var(--client-gold); font: 700 23px var(--mono); }
.client-compact-band p { grid-column: 1 / -1; margin: 0; padding: 10px 18px; border-top: 1px solid rgba(169,185,206,.24); color: var(--client-muted); font-size: 9px; line-height: 1.55; }
.client-compact-scenarios > div { display: grid; grid-template-columns: 94px 1fr; gap: 12px; padding: 13px 16px; border-bottom: 1px solid rgba(169,185,206,.24); }
.client-compact-scenarios > div:last-child { border-bottom: 0; }
.client-compact-scenarios b { color: var(--client-cyan); font-size: 12px; }
.client-compact-scenarios span { color: var(--client-muted); font-size: 10px; }
.client-deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.client-panel { padding: 20px; border: 1px solid rgba(169,185,206,.3); background: rgba(19,47,81,.72); }
.client-panel h4 { margin: 0; color: var(--client-gold); font-family: var(--serif); font-size: 16px; }
.client-panel ul { margin: 12px 0 0; padding-left: 18px; color: var(--client-muted); font-size: 11px; line-height: 1.8; }
.client-footer { margin-top: 30px; padding: 18px 42px 28px; border-top: 1px solid rgba(169,185,206,.2); color: #7f94ad; font-size: 8px; line-height: 1.65; }
.client-footer strong { color: #ff9e9a; }

.tool-shell { max-width: 1400px; }
.tool-grid, .valuation-model-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-top: 1px solid var(--line-strong); }
.control-panel { padding: 24px 26px 30px 0; border-right: 1px solid var(--line); }
.control-panel h2, .analysis-canvas h2, .chart-panel h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 19px; }
.control-panel label { margin-bottom: 16px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.analysis-canvas { min-width: 0; padding: 24px 0 30px 30px; }
.canvas-heading p, .chart-panel > p { margin: -10px 0 18px; color: var(--muted); font-size: 10px; }
.state-label { padding: 5px 9px; border: 1px solid #86bdbb; border-radius: 4px; color: var(--teal-dark); background: var(--teal-soft); font-size: 10px; }
.state-label.warn { color: var(--amber); border-color: #dbb88c; background: #fff9f0; }
.notice { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--teal); background: var(--surface); font-size: 12px; }
.notice span { color: var(--muted); }
.notice.warning { border-left-color: var(--amber); }
.backtest-controls { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr auto; gap: 14px; align-items: end; padding: 20px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-top: 22px; }
.chart-panel { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.distribution-bars { display: grid; gap: 8px; }
.distribution-row { display: grid; grid-template-columns: 80px 1fr 45px; gap: 10px; align-items: center; font-size: 10px; }
.distribution-track { height: 14px; background: #eef2f4; }
.distribution-fill { height: 100%; background: var(--teal); }
.valuation-model-grid { grid-template-columns: 340px minmax(0, 1fr); }
.empty-chart { display: grid; place-items: center; min-height: 260px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.empty-chart small { display: block; margin-top: -90px; max-width: 480px; line-height: 1.6; }
.option-snapshot { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 180px; border: 1px solid var(--line); }
.option-snapshot div { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.option-snapshot div:nth-child(3n) { border-right: 0; }
.option-snapshot div:nth-last-child(-n+3) { border-bottom: 0; }
.option-snapshot span { display: block; color: var(--muted); font-size: 11px; }
.option-snapshot strong { display: block; margin-top: 9px; font: 700 14px var(--mono); }
.model-output { margin-top: 20px; padding: 18px; border: 1px solid var(--line); }
.model-output strong { color: var(--teal-dark); }
.model-output p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.model-output.ready { border-left: 3px solid var(--teal); }
.model-result-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.model-result-grid div { padding: 12px; border: 1px solid var(--line); border-right: 0; }
.model-result-grid div:last-child { border-right: 1px solid var(--line); }
.model-result-grid span { display: block; color: var(--muted); font-size: 10px; }
.model-result-grid b { display: block; margin-top: 6px; font: 700 15px var(--mono); }
.methodology { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.methodology summary { padding: 16px 0; color: var(--teal-dark); cursor: pointer; font-size: 12px; }
.methodology > div { padding-bottom: 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.role-overlay, .info-dialog { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(12, 27, 44, .34); backdrop-filter: blur(5px); }
.role-dialog { width: min(720px, 100%); padding: 30px 34px 36px; background: white; box-shadow: var(--shadow); }
.dialog-brand { font-family: var(--serif); font-weight: 700; }
.role-dialog h2 { margin: 54px 0 8px; text-align: center; font-family: var(--serif); font-size: 28px; }
.role-dialog > p { margin: 0; color: var(--muted); text-align: center; font-size: 12px; }
.role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 520px; margin: 34px auto 0; }
.role-option { min-height: 220px; padding: 28px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; cursor: pointer; }
.role-option:hover, .role-option:focus-visible { border-color: var(--teal); outline: 2px solid rgba(8,127,131,.12); }
.role-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 20px; border: 2px solid var(--teal); border-radius: 50%; color: var(--teal); font-size: 30px; }
.role-icon.team { border-color: var(--ink); color: var(--ink); }
.role-option strong { display: block; font-family: var(--serif); font-size: 21px; }
.role-option small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.7; }
.info-card { position: relative; width: min(520px, 100%); padding: 30px; background: white; box-shadow: var(--shadow); }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.knowledge-label { color: var(--teal-dark); font-size: 10px; letter-spacing: .12em; }
.info-card h2 { margin: 8px 0 13px; font-family: var(--serif); }
.info-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.info-more { margin-top: 20px; padding: 0; border: 0; color: var(--teal-dark); background: transparent; font: 700 11px var(--sans); cursor: pointer; }
.info-more:hover, .info-more:focus-visible { text-decoration: underline; outline: none; }
.knowledge-shell { max-width: 1180px; }
.page-topic-link { display: inline-block; margin-top: 10px; color: var(--teal-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.page-topic-link:hover, .page-topic-link:focus-visible { text-decoration: underline; outline: none; }
.knowledge-topic-card { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 22px; margin: -2px 0 22px; padding: 22px 24px; border: 1px solid #9fc0df; color: inherit; background: #f7fbff; text-decoration: none; }
.knowledge-topic-card:hover, .knowledge-topic-card:focus-visible { border-color: var(--teal); box-shadow: 0 12px 32px rgba(25,72,104,.08); outline: none; }
.knowledge-topic-number { color: var(--teal); font: 700 10px var(--mono); letter-spacing: .08em; }
.knowledge-topic-card h2 { margin: 0; font-family: var(--serif); font-size: 19px; }
.knowledge-topic-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.knowledge-topic-card > strong { color: var(--teal-dark); font-size: 11px; white-space: nowrap; }
.page-overline { display: block; margin-bottom: 8px; color: var(--teal-dark); font: 700 9px var(--sans); letter-spacing: .18em; }
.knowledge-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 22px; }
.knowledge-index a { padding: 8px 12px; border: 1px solid var(--line); color: var(--teal-dark); background: white; font-size: 11px; text-decoration: none; }
.knowledge-index a:hover, .knowledge-index a:focus-visible { border-color: var(--teal); background: var(--teal-soft); outline: none; }
.knowledge-article { scroll-margin-top: 82px; margin-top: 14px; padding: 25px 27px; border: 1px solid var(--line); background: white; }
.knowledge-article-title { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.knowledge-article-title > span { color: var(--teal); font: 700 18px var(--mono); }
.knowledge-article-title h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.knowledge-article-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.knowledge-copy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 20px; }
.knowledge-copy h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--serif); font-size: 15px; }
.knowledge-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.knowledge-source-note { margin: 16px 0 0; padding: 12px 14px; border-left: 2px solid var(--amber); color: var(--muted); background: #fffaf0; font-size: 10px; line-height: 1.7; }

.analysis-hub-shell, .multi-backtest-shell { max-width: 1440px; }
.analysis-search-panel { position: relative; margin: 4px 0 20px; padding: 22px 24px; border: 1px solid var(--line); background: linear-gradient(115deg, #f3faf8 0%, #fff 68%); }
.analysis-search-panel > label { display: block; margin-bottom: 9px; color: var(--ink); font: 700 12px var(--sans); }
.analysis-search-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.analysis-search-line input { min-width: 0; height: 52px; padding: 0 17px; border: 1px solid var(--line-strong); background: white; color: var(--ink); font: 15px var(--sans); }
.analysis-search-line .primary-button { min-width: 150px; }
.analysis-search-results { position: absolute; z-index: 20; top: calc(100% - 18px); left: 24px; right: 184px; border: 1px solid var(--line-strong); background: white; box-shadow: var(--shadow); }
.analysis-search-results button { display: grid; grid-template-columns: 75px minmax(0, 1fr) 42px; width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; }
.analysis-search-results button:hover, .analysis-search-results button:focus-visible { background: var(--teal-soft); outline: none; }
.analysis-search-results strong, .analysis-search-results b { font-family: var(--mono); }
.analysis-search-results span { color: var(--muted); }
.heatmap-toolbar { display: flex; align-items: flex-end; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.heatmap-toolbar label { display: grid; gap: 5px; min-width: 165px; color: var(--muted); font-size: 10px; }
.heatmap-toolbar select { height: 38px; }
.heatmap-toolbar > span { margin-left: auto; color: var(--muted); font-size: 10px; }
.heatmap-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 0 11px; }
.heatmap-legend span { padding: 5px 9px; border: 1px solid transparent; font: 9px var(--mono); }
.heatmap-legend .heat-high { border-color: #79bca5; background: #d9eee6; }
.heatmap-legend .heat-positive { border-color: #8fc9c8; background: #e5f4f2; }
.heatmap-legend .heat-watch { border-color: #e4c86b; background: #fff3c9; }
.heatmap-legend .heat-low { border-color: #c8cdd2; background: #eef0f2; }
.stock-heatmap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.stock-heat-tile { position: relative; min-height: 126px; padding: 13px; border: 1px solid transparent; color: var(--ink); text-align: left; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.stock-heat-tile:hover, .stock-heat-tile:focus-visible { z-index: 2; transform: translateY(-2px); outline: 2px solid var(--teal); box-shadow: 0 8px 20px rgba(16,42,65,.12); }
.stock-heat-tile.heat-high { border-color: #6eb497; background: #d8eee4; }
.stock-heat-tile.heat-positive { border-color: #8dc6c3; background: #e6f4f2; }
.stock-heat-tile.heat-watch { border-color: #e1c465; background: #fff3c9; }
.stock-heat-tile.heat-low { border-color: #c8cdd2; background: #eef0f2; }
.heat-symbol { display: block; color: var(--teal-dark); font: 800 16px var(--mono); }
.stock-heat-tile > strong { display: block; margin-top: 4px; overflow: hidden; font: 700 12px var(--sans); white-space: nowrap; text-overflow: ellipsis; }
.stock-heat-tile > small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.heat-score { display: flex; align-items: baseline; gap: 5px; margin-top: 15px; color: var(--muted); font-size: 9px; }
.heat-score b { color: var(--ink); font: 800 22px var(--mono); }
.stock-heat-tile > em { position: absolute; right: 10px; bottom: 10px; color: var(--muted); font: normal 8px var(--sans); }

.multi-backtest-controls { display: grid; grid-template-columns: minmax(310px, .75fr) minmax(0, 1.8fr) auto; gap: 16px; align-items: end; margin: 5px 0 16px; padding: 17px 18px; border: 1px solid var(--line); background: #f8fbfc; }
.multi-symbol-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.multi-symbol-picker label, .multi-control-row label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.multi-symbol-picker select, .multi-control-row select { height: 40px; }
.multi-symbol-chips { display: flex; flex-wrap: wrap; gap: 7px; align-content: center; min-height: 40px; }
.multi-symbol-chips > span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 7px 0 11px; border: 1px solid #9fc8c5; background: white; color: var(--muted); font-size: 9px; }
.multi-symbol-chips strong { color: var(--ink); font: 700 11px var(--mono); }
.multi-symbol-chips button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #e8eeee; color: var(--muted); cursor: pointer; }
.multi-control-row { display: flex; align-items: flex-end; gap: 8px; }
.multi-control-row label { min-width: 125px; }
.multi-backtest-results { margin-top: 18px; }
.multi-backtest-matrix td { min-width: 176px; padding: 11px 8px; }
.multi-backtest-matrix td.matrix-score-safe { color: #17643d; background: #d8eee4; }
.multi-backtest-matrix td.matrix-score-acceptable { color: #7b5b00; background: #fff0c7; }
.multi-backtest-matrix td.matrix-score-risk { color: #9b332d; background: #f8d8d5; }
.multi-backtest-matrix td strong { margin-left: 7px; font: 700 11px var(--mono); }
.multi-backtest-matrix td small { display: block; margin-top: 5px; color: inherit; font: 9px var(--mono); }
.multi-backtest-matrix .matrix-score-badge { display: inline-grid; place-items: center; min-width: 31px; height: 24px; border: 1px solid currentColor; background: rgba(255,255,255,.25); font: 700 10px var(--mono); }
.matrix-disclosure { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.75; }

@media (max-width: 1120px) {
  .strategy-thresholds { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .strategy-thresholds > strong, .strategy-thresholds small { grid-column: 1 / -1; }
  .app-header { grid-template-columns: auto 1fr auto; }
  .main-nav { position: fixed; top: 64px; left: 0; right: 0; display: none; height: auto; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); background: white; flex-wrap: wrap; }
  .main-nav.open { display: flex; }
  .nav-item { min-height: 36px; }
  .mobile-menu { display: inline-block; }
  .global-freshness { display: none; }
  .opportunity-table th:nth-child(2), .opportunity-table td:nth-child(2) { display: none; }
  .rec-group-row td, .rec-group-empty td { display: table-cell !important; }
}

@media (max-width: 820px) {
  .overview-chart-grid { grid-template-columns: 1fr; }
  .overview-chart-wide { grid-column: auto; }
  .option-metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-card-heading { align-items: flex-start; flex-direction: column; }
  .chart-controls { width: 100%; flex-wrap: wrap; }
  .price-chart-controls { grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; }
  .price-chart-controls .chart-source { text-align: left; }
  .app-header { height: 58px; padding: 0 16px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; }
  .role-switch { display: none; }
  .main-nav { top: 58px; }
  .page-shell, .opportunity-shell { width: calc(100% - 30px); padding-top: 28px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 32px; }
  .opportunity-table thead { display: none; }
  .opportunity-table, .opportunity-table tbody, .opportunity-table tr, .opportunity-table td { display: block; width: 100%; }
  .opportunity-table tr { position: relative; padding: 14px 92px 14px 0; border-bottom: 1px solid var(--line); }
  .opportunity-table td { display: block !important; padding: 3px 0; border: 0; }
  .opportunity-table td:nth-child(2), .opportunity-table td:nth-child(5) { display: none !important; }
  .opportunity-table td:last-child { position: absolute; right: 0; top: 18px; width: auto !important; transform: none; }
  .rec-group-row, .rec-group-empty { padding: 0 !important; }
  .rec-group-row td, .rec-group-empty td { display: block !important; position: static !important; width: 100% !important; padding: 0; }
  .rec-group-empty td { padding: 14px; }
  .rec-group-row div { grid-template-columns: 96px 1fr auto 18px; }
  .structure-cell { min-width: 0; }
  .quote-market-cell, .research-conclusion { min-width: 0; }
  .source-bar { display: grid; }
  .detail-layout { display: block; }
  .detail-sidebar { position: sticky; top: 58px; z-index: 30; display: flex; height: auto; padding: 0; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-tab { width: auto; flex: 0 0 auto; min-height: 42px; padding: 0 14px; border-left: 0; border-bottom: 2px solid transparent; }
  .detail-tab.active { border-bottom-color: var(--teal); }
  .detail-main { padding: 22px 16px 60px; }
  .identity-row { flex-wrap: wrap; }
  .detail-meta { width: 100%; margin: 6px 0 0; }
  .split-section, .scenario-grid, .risk-list { grid-template-columns: 1fr; }
  .scenario-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .scenario-item:last-child { border-bottom: 0; }
  .evidence-grid, .client-scenarios, .client-evidence { grid-template-columns: 1fr; }
  .evidence-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .evidence-card:last-child { border-bottom: 0; }
  .methodology-rail { grid-template-columns: repeat(3, 1fr); }
  .method-step:nth-child(3n) { border-right: 0; }
  .method-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .materials-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-hero, .client-section { padding-left: 22px; padding-right: 22px; }
  .client-hero::after { display: none; }
  .client-metrics { grid-template-columns: repeat(2, 1fr); padding: 0 22px; }
  .client-metric:nth-child(3) { border-left: 1px solid rgba(169,185,206,.28); }
  .client-terms { margin-left: 22px; margin-right: 22px; }
  .client-structure-compact { margin-left: 22px; margin-right: 22px; }
  .client-compact-section { grid-template-columns: 1fr; }
  .client-deploy-grid { grid-template-columns: 1fr; }
  .client-footer { padding-left: 22px; padding-right: 22px; }
  .metric-band { grid-template-columns: repeat(2, 1fr); }
  .backtest-matrix-toolbar { grid-template-columns: 1fr; align-items: start; }
  .backtest-valuation-filter, .backtest-lookback-group { width: 100%; justify-self: stretch; text-align: left; }
  .backtest-valuation-filter .segmented-control, .backtest-lookback-group .segmented-control { width: max-content; max-width: 100%; overflow-x: auto; }
  .matrix-legend { gap: 7px 12px; }
  .structure-design-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structure-gate { border-bottom: 1px solid var(--line); }
  .structure-gate:nth-child(2n) { border-right: 0; }
  .structure-design-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .structure-design-summary > div { border-bottom: 1px solid var(--line); }
  .structure-design-summary > div:nth-child(3n) { border-right: 0; }
  .company-snapshot, .fundamental-grid { grid-template-columns: repeat(2, 1fr); }
  .fundamental-score-hero { grid-template-columns: 125px minmax(0, 1fr); }
  .fundamental-score-split { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .fundamental-score-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fundamental-score-dimension:nth-child(3) { border-left: 0; }
  .fundamental-score-dimension:nth-child(n+3) { border-top: 1px solid var(--line); }
  .valuation-history-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .valuation-history-summary div:nth-child(3) { border-right: 0; }
  .valuation-history-summary div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .valuation-history-note { flex-direction: column; gap: 3px; }
  .valuation-history-note span:last-child { text-align: left; }
  .financial-statements-heading, .financial-chart-title { align-items: flex-start; }
  .financial-chart-canvas { overflow-x: auto; }
  .financial-chart-canvas svg { min-width: 700px; }
  .financial-statements-note { flex-direction: column; gap: 3px; }
  .financial-statements-note span:last-child { text-align: left; }
  .metric-item:nth-child(2) { border-right: 0; }
  .metric-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tool-grid, .valuation-model-grid { grid-template-columns: 1fr; }
  .control-panel { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .analysis-canvas { padding-left: 0; }
  .backtest-controls { grid-template-columns: 1fr 1fr; }
  .backtest-controls .primary-button { grid-column: 1 / -1; }
  .chart-grid { grid-template-columns: 1fr; }
  .role-options { grid-template-columns: 1fr; }
  .role-option { min-height: 170px; }
}

@media (max-width: 430px) {
  .brand .info-trigger { display: none; }
  .page-heading { gap: 12px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { font-size: 12px; }
  .theme-button { padding: 0 12px; }
  .symbol-cell { min-width: 0; }
  .opportunity-table tr { padding-right: 82px; }
  .row-action { min-width: 76px; }
  .field-pair, .backtest-controls { grid-template-columns: 1fr; }
  .metric-band, .model-result-grid { grid-template-columns: 1fr; }
  .company-snapshot, .fundamental-grid { grid-template-columns: 1fr; }
  .fundamental-score-panel { padding: 16px; }
  .fundamental-score-heading, .fundamental-score-method { flex-direction: column; gap: 6px; }
  .fundamental-score-method span:last-child { text-align: left; }
  .fundamental-score-hero { grid-template-columns: 1fr; }
  .fundamental-score-number { border-right: 0; border-bottom: 1px solid var(--line); }
  .fundamental-score-split { grid-column: auto; }
  .fundamental-score-dimensions { grid-template-columns: 1fr; }
  .fundamental-score-dimension + .fundamental-score-dimension { border-top: 1px solid var(--line); border-left: 0; }
  .option-snapshot { grid-template-columns: 1fr 1fr; }
  .option-snapshot div, .option-snapshot div:nth-child(3n), .option-snapshot div:nth-last-child(-n+3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .option-snapshot div:nth-child(2n) { border-right: 0; }
  .option-snapshot div:nth-last-child(-n+2) { border-bottom: 0; }
  .metric-item, .metric-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-item:last-child { border-bottom: 0; }
  .model-result-grid div { border-right: 1px solid var(--line); border-bottom: 0; }
  .model-result-grid div:last-child { border-bottom: 1px solid var(--line); }
  .role-dialog { padding: 24px 18px; }
  .role-dialog h2 { margin-top: 32px; }
  .decision-overall { align-items: flex-start; flex-direction: column; }
  .decision-overall span { text-align: left; }
  .methodology-title { align-items: flex-start; flex-direction: column; }
  .methodology-rail { grid-template-columns: 1fr 1fr; }
  .method-step, .method-step:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .method-step:nth-child(2n) { border-right: 0; }
  .method-step:nth-last-child(-n+2) { border-bottom: 0; }
  .veto-strip { grid-template-columns: 1fr; }
  .structure-selection-bar, .materials-editor-heading { align-items: stretch; flex-direction: column; }
  .structure-selection-bar .primary-button, .materials-editor-heading .secondary-button { width: 100%; }
  .materials-editor-grid { grid-template-columns: 1fr; }
  .client-metrics { grid-template-columns: 1fr; }
  .client-metric, .client-metric:nth-child(3) { border-left: 1px solid rgba(169,185,206,.28); }
  .client-overline::after { display: none; }
  .client-structure-compact > div { grid-template-columns: 82px minmax(0, 1fr); }
  .client-structure-compact em { grid-column: 2; }
  .client-logic-list article div { grid-template-columns: 1fr; }
  .client-logic-list strong, .client-logic-list p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 980px) {
  .volatility-dashboard-grid { grid-template-columns: 1fr; }
  .volatility-gauge-card { display: grid; grid-template-columns: minmax(160px, .72fr) minmax(0, 1.28fr); column-gap: 20px; }
  .gauge-card-heading { grid-column: 1 / -1; }
  .gauge-detail-grid { align-self: center; }
  .volatility-score-layout { grid-template-columns: 1fr; }
  .volatility-score-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .volatility-score-final { border-right: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .volatility-heading, .chart-card-heading { align-items: flex-start; flex-direction: column; }
  .volatility-gauge-card { display: block; }
  .gauge-stage { min-height: 142px; }
  .metric-gauge { height: 142px; }
  .score-final-heading { align-items: flex-end; }
  .score-final-heading .score-number { min-width: auto; }
  .score-final-heading .score-number strong { font-size: 36px; }
  .volatility-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .volatility-metric, .volatility-metric:nth-child(3n), .volatility-metric:nth-last-child(-n+3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .volatility-metric:nth-child(2n) { border-right: 0; }
  .volatility-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .volatility-flow-grid { grid-template-columns: 1fr; }
  .volatility-controls { justify-content: flex-start; }
  .flow-metrics { grid-template-columns: repeat(2, 1fr); }
  .volatility-skew-canvas { min-height: 220px; overflow-x: auto; }
  .volatility-skew-canvas svg { min-width: 680px; }
  .knowledge-article { padding: 21px 18px; }
  .knowledge-topic-card { grid-template-columns: 1fr; gap: 10px; padding: 19px 18px; }
  .knowledge-copy { grid-template-columns: 1fr; gap: 19px; }
}

@media (max-width: 820px) {
  .opportunity-table-wrap { overflow-x: hidden; }
  .opportunity-table { display: table; min-width: 0; }
  .opportunity-table thead { display: none; }
  .opportunity-table tbody { display: table-row-group; }
  .opportunity-table tr { display: table-row; padding: 0; }
  .opportunity-table td, .opportunity-table th { position: static !important; display: table-cell !important; width: auto !important; transform: none !important; }
  .opportunity-line { grid-template-columns: minmax(140px, 1fr) 90px 54px 54px; gap: 8px; padding: 12px 8px; font-size: 10px; }
  .homepage-strategy-list { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .opportunity-line { grid-template-columns: minmax(130px, 1fr) 76px 44px 44px; gap: 5px; }
  .homepage-strategy-list { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .stock-heatmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .multi-backtest-controls { grid-template-columns: 1fr; align-items: stretch; }
  .multi-control-row { justify-content: flex-end; }
}

@media (max-width: 680px) {
  .analysis-search-panel { padding: 17px; }
  .analysis-search-line { grid-template-columns: 1fr; }
  .analysis-search-line .primary-button { width: 100%; }
  .analysis-search-results { left: 17px; right: 17px; top: calc(100% - 12px); }
  .heatmap-toolbar { align-items: stretch; flex-direction: column; }
  .heatmap-toolbar label { width: 100%; }
  .heatmap-toolbar > span { margin-left: 0; }
  .stock-heatmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .multi-symbol-picker, .multi-control-row { grid-template-columns: 1fr; display: grid; }
  .multi-control-row .primary-button { width: 100%; }
  .multi-backtest-matrix td { min-width: 155px; }
}

/* Mobile-share poster builder */
.materials-theme-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 15px; padding: 0; border: 0; }
.materials-theme-picker > span { grid-column: 1 / -1; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.materials-theme-option { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 10px; align-items: center; min-width: 0; min-height: 58px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 0; background: #fff; cursor: pointer; text-align: left; }
.materials-theme-option b { color: var(--ink); font-size: 14px; }
.materials-theme-option small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-swatch { grid-row: 1 / 3; width: 32px; height: 32px; border: 1px solid rgba(13,39,70,.12); border-radius: 50%; box-shadow: inset 0 0 0 8px rgba(255,255,255,.72); }
.theme-swatch.white-blue { background: linear-gradient(135deg, #187dd9 0 48%, #eef6ff 48%); }
.theme-swatch.orange { background: linear-gradient(135deg, #f46a10 0 48%, #fff4ea 48%); }
.theme-swatch.deep-blue { background: linear-gradient(135deg, #35c0ff 0 48%, #16334f 48%); }
.materials-theme-option[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--teal-soft); }
.materials-theme-option:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.materials-preview-stage { width: 100%; }
.materials-preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: min(100%, 900px); margin: 30px auto 12px; }
.materials-preview-heading h2 { margin: 0; font-family: var(--sans); font-size: 22px; line-height: 1.3; }
.materials-preview-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.materials-preview-actions { display: flex; align-items: center; gap: 10px; }
.materials-preview-actions > span { padding: 8px 11px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; line-height: 1; }
.materials-preview-actions .secondary-button { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.materials-preview-actions .materials-export-button { min-height: 34px; padding: 7px 14px; font-size: 12px; }
.materials-preview-actions .materials-export-button:disabled { cursor: wait; opacity: .55; }
body.materials-preview-open { overflow: hidden; }
.materials-preview-stage.expanded { position: fixed; inset: 0; z-index: 2000; overflow: auto; padding: 0 36px 60px; background: #eef2f6; }
.materials-preview-stage.expanded .materials-preview-heading { position: sticky; top: 0; z-index: 2; width: min(100%, 1080px); margin: 0 auto 18px; padding: 18px 0 14px; background: #eef2f6; }
.materials-preview-stage.expanded .client-onepager { width: min(100%, 1080px); box-shadow: 0 28px 80px rgba(8,29,54,.24); }

.client-onepager { --poster-bg: #eef6ff; --poster-panel: #fff; --poster-text: #0d2746; --poster-muted: #5f7288; --poster-line: #b8d7f1; --poster-accent: #187dd9; --poster-secondary: #00a6a6; --poster-warm: #ed681e; --poster-font-lg: 3cqw; --poster-font-md: 1.75cqw; --poster-font-sm: 1.15cqw; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start; gap: .9cqw; width: min(100%, 900px); height: auto; min-height: 0; margin: 0 auto; padding: 2.4cqw; overflow: visible; container-type: inline-size; color: var(--poster-text); border: 0; border-radius: 0; background: var(--poster-bg); box-shadow: 0 24px 60px rgba(8,29,54,.2); font-family: var(--sans); -webkit-text-size-adjust: none; text-size-adjust: none; }
.client-onepager, .client-onepager button, .client-onepager input, .client-onepager textarea { font-family: var(--sans); }
.client-onepager.theme-orange { --poster-bg: #fff7ef; --poster-panel: #fffdfa; --poster-text: #29232b; --poster-muted: #7b665c; --poster-line: #f1c8a9; --poster-accent: #f46a10; --poster-secondary: #098b91; --poster-warm: #d8442d; }
.client-onepager.theme-deep-blue { --poster-bg: #203a53; --poster-panel: #0e3152; --poster-text: #f4f9ff; --poster-muted: #b2c5d8; --poster-line: #2c668f; --poster-accent: #35c0ff; --poster-secondary: #49dace; --poster-warm: #ff914d; }
.client-onepager.loading { display: grid; place-items: center; }
.client-onepager .client-loading { min-height: 0; color: var(--poster-muted); font-size: var(--poster-font-md); }
.client-poster-header { display: flex; align-items: center; justify-content: space-between; min-height: 11.4cqw; padding: .6cqw 1.2cqw .8cqw; }
.client-poster-title { display: flex; align-items: stretch; gap: 1.6cqw; min-width: 0; }
.client-poster-title > i { flex: 0 0 .9cqw; border-radius: 1cqw; background: var(--poster-accent); }
.client-poster-title h2 { margin: 0; color: var(--poster-text); font-family: var(--sans); font-size: var(--poster-font-lg); line-height: 1.08; font-weight: 800; }
.client-poster-title strong { display: block; margin-top: .65cqw; color: var(--poster-accent); font-size: var(--poster-font-md); letter-spacing: .02em; }
.client-poster-title p { display: -webkit-box; max-width: 70cqw; margin: .45cqw 0 0; overflow: hidden; color: var(--poster-muted); font-size: var(--poster-font-sm); line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.client-logo-mark { display: grid; place-items: center; flex: 0 0 7.4cqw; width: 7.4cqw; height: 7.4cqw; padding: .85cqw; overflow: hidden; border: 1px solid var(--poster-line); border-radius: 50%; color: var(--poster-accent); background: var(--poster-panel); font: 800 var(--poster-font-lg) var(--sans); box-shadow: 0 .5cqw 1.5cqw rgba(13,39,70,.08); }
.client-logo-mark .company-logo-image, .client-logo-mark .company-logo-fallback { width: 100%; height: 100%; margin: 0; object-fit: contain; }
.client-onepager .client-structure-compact { display: block; margin: 0; overflow: hidden; border: 1px solid var(--poster-line); border-radius: 1.9cqw; background: var(--poster-panel); box-shadow: 0 .6cqw 1.4cqw rgba(13,39,70,.08); }
.client-onepager .client-structure-compact > div { display: grid; grid-template-columns: 10.5cqw repeat(3, minmax(0, 1fr)); gap: .8cqw 1.2cqw; align-items: center; min-height: 0; padding: 1.35cqw 1.7cqw; border-bottom: 1px solid var(--poster-line); }
.client-onepager .client-structure-compact > div:first-child { padding-top: 1.45cqw; padding-bottom: 1.45cqw; }
.client-onepager .client-structure-compact > div:last-child { border-bottom: 0; }
.client-onepager .client-structure-compact strong { color: var(--poster-accent); font-size: var(--poster-font-md); font-weight: 800; }
.client-onepager .client-structure-compact span { display: flex; align-items: baseline; gap: .45cqw; min-width: 0; color: var(--poster-text); font-size: var(--poster-font-sm); }
.client-onepager .client-structure-compact span small { color: var(--poster-muted); font-size: var(--poster-font-sm); white-space: nowrap; }
.client-onepager .client-structure-compact span b { color: var(--poster-text); font-size: var(--poster-font-md); white-space: nowrap; }
.client-onepager .client-structure-compact .structure-main-row { background: var(--poster-panel); }
.client-onepager .client-structure-compact .structure-main-row strong { font-size: var(--poster-font-md); }
.client-onepager .client-structure-compact .structure-main-row span b { font-size: var(--poster-font-md); font-weight: 800; }
.client-poster-section, .client-win-band, .client-payoff-section, .client-scenario-section { border: 1px solid var(--poster-line); border-radius: 1.9cqw; background: var(--poster-panel); box-shadow: 0 .6cqw 1.4cqw rgba(13,39,70,.08); }
.client-thesis-section { padding: 1.8cqw 1.8cqw 1.35cqw; }
.client-thesis-section > small { color: var(--poster-accent); font: 700 var(--poster-font-sm) var(--sans); letter-spacing: .05em; }
.client-thesis-section > h3 { margin: .45cqw 0 1.05cqw; padding-bottom: .8cqw; border-bottom: 1px solid var(--poster-line); color: var(--poster-text); font-family: var(--sans); font-size: var(--poster-font-md); line-height: 1.25; font-weight: 800; }
.client-onepager .client-logic-list { border: 0; background: transparent; }
.client-onepager .client-logic-list article { display: grid; grid-template-columns: 4.4cqw minmax(0, 1fr); gap: 1.15cqw; padding: 1.15cqw .2cqw; border-bottom: 1px solid var(--poster-line); }
.client-onepager .client-logic-list article:last-child { border-bottom: 0; }
.client-onepager .client-logic-list article > span { width: 4.1cqw; height: 4.1cqw; border: 0; color: #fff; background: var(--poster-accent); font-size: var(--poster-font-sm); }
.client-onepager .client-logic-list article:nth-child(2) > span { background: var(--poster-secondary); }
.client-onepager .client-logic-list article:nth-child(3) > span { background: var(--poster-warm); }
.client-onepager .client-logic-list article div { grid-template-columns: 5.7cqw minmax(0, 1fr); gap: .25cqw .8cqw; }
.client-onepager .client-logic-list b { color: var(--poster-accent); font-size: var(--poster-font-md); }
.client-onepager .client-logic-list article:nth-child(2) b { color: var(--poster-secondary); }
.client-onepager .client-logic-list article:nth-child(3) b { color: var(--poster-warm); }
.client-onepager .client-logic-list strong { color: var(--poster-text); font-family: var(--sans); font-size: var(--poster-font-md); line-height: 1.35; }
.client-onepager .client-logic-list p { margin: .3cqw 0 0; color: var(--poster-muted); font-size: var(--poster-font-sm); line-height: 1.55; }
.client-win-band { display: grid; grid-template-columns: 19cqw 1fr; align-items: center; padding: 1.5cqw 1.8cqw; }
.client-win-band h3 { margin: 0; font-family: var(--sans); font-size: 2.1cqw; font-weight: 800; }
.client-win-band > div { display: flex; justify-content: space-around; }
.client-win-band span { color: var(--poster-muted); font-size: 1.75cqw; }
.client-win-band strong { margin-left: .5cqw; color: var(--poster-accent); font: 800 3.1cqw var(--sans); }
.client-win-band span:last-child strong { color: var(--poster-secondary); }
.client-win-band p { grid-column: 1 / -1; margin: .65cqw 0 0; color: var(--poster-muted); font-size: 1.15cqw; text-align: center; }
.client-path-section { display: flex; flex-direction: column; padding: 1.35cqw 1.05cqw 1.1cqw; }
.client-path-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 2cqw; padding-bottom: .55cqw; border-bottom: 1px solid var(--poster-line); }
.client-path-heading h3 { margin: 0; color: var(--poster-text); font-family: var(--sans); font-size: var(--poster-font-md); font-weight: 800; }
.client-path-heading span { color: var(--poster-muted); font-size: var(--poster-font-sm); text-align: right; }
.client-path-section > svg { display: block; width: 100%; height: auto; min-height: 0; margin-top: .3cqw; overflow: visible; }
.client-path-section .poster-chart-axis { stroke: var(--poster-muted); stroke-width: 1; }
.client-path-section .poster-chart-now { stroke: var(--poster-text); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .65; }
.client-path-section .poster-quarter-grid { stroke: var(--poster-line); stroke-width: 1; }
.client-path-section .poster-quarter-label { fill: var(--poster-muted); font: var(--poster-font-sm) var(--sans); }
.client-path-section .poster-period-guide { stroke-width: 3; }
.client-path-section .poster-period-guide.history { stroke: var(--poster-accent); }
.client-path-section .poster-period-guide.forecast { stroke: var(--poster-secondary); }
.client-path-section .poster-period-label { fill: var(--poster-muted); font: 700 var(--poster-font-sm) var(--sans); }
.client-path-section .poster-period-label.forecast { fill: var(--poster-secondary); }
.client-path-section .poster-history-area { fill: url(#posterHistoryArea); }
.client-path-section .poster-history-line { fill: none; stroke: var(--poster-accent); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.client-path-section .poster-forecast-band { fill: url(#posterForecastBand); stroke: none; }
.client-path-section .poster-forecast-edge { fill: none; stroke: var(--poster-secondary); stroke-width: 2; stroke-dasharray: 7 5; }
.client-path-section .poster-zone-ko { fill: rgba(24,125,217,.08); }
.client-path-section .poster-zone-repay { fill: rgba(0,166,166,.08); }
.client-path-section .poster-zone-assign { fill: rgba(237,104,30,.09); }
.client-path-section .poster-level { fill: none; stroke-width: 1.4; stroke-dasharray: 7 5; }
.client-path-section .poster-level.start { stroke: var(--poster-text); opacity: .62; }
.client-path-section .poster-level.ko { stroke: var(--poster-accent); }
.client-path-section .poster-level.strike { stroke: var(--poster-warm); }
.client-path-section .poster-level.protection { stroke: var(--poster-warm); }
.client-path-section .poster-level-label, .client-path-section .poster-chart-date, .client-path-section .poster-chart-zone { fill: var(--poster-muted); font: var(--poster-font-sm) var(--sans); }
.client-path-section .poster-level-label { font-weight: 700; }
.client-path-section .poster-level-label.ko { fill: var(--poster-accent); }
.client-path-section .poster-level-label.strike, .client-path-section .poster-level-label.protection { fill: var(--poster-warm); }
.client-path-section .poster-chart-date.now { fill: var(--poster-text); font-weight: 700; }
.client-path-section .poster-chart-date.value { fill: var(--poster-muted); }
.client-path-section .poster-chart-zone { font-weight: 800; }
.client-path-section .poster-chart-zone.ko { fill: var(--poster-accent); }
.client-path-section .poster-chart-zone.repay { fill: var(--poster-secondary); }
.client-path-section .poster-chart-zone.assign { fill: var(--poster-warm); }
.client-path-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1cqw; margin: .15cqw 0 0; }
.client-path-scenarios article { min-width: 0; min-height: 12.5cqw; padding: 1.1cqw 1.2cqw; border: 1px solid var(--poster-line); border-top: .42cqw solid var(--poster-accent); background: var(--poster-panel); }
.client-path-scenarios article.scenario-repay { border-top-color: var(--poster-secondary); background: var(--poster-panel); }
.client-path-scenarios article.scenario-assign { border-top-color: var(--poster-warm); background: var(--poster-panel); }
.client-path-scenarios header { display: flex; align-items: center; gap: .6cqw; margin-bottom: .65cqw; }
.client-path-scenarios i { color: var(--poster-accent); font-size: var(--poster-font-sm); font-style: normal; font-weight: 800; }
.client-path-scenarios .scenario-repay i, .client-path-scenarios .scenario-repay header b { color: var(--poster-secondary); }
.client-path-scenarios .scenario-assign i, .client-path-scenarios .scenario-assign header b { color: var(--poster-warm); }
.client-path-scenarios header b { color: var(--poster-accent); font-size: var(--poster-font-md); }
.client-path-scenarios dl { display: grid; gap: .55cqw; margin: 0; }
.client-path-scenarios dl > div { display: grid; grid-template-columns: 5cqw minmax(0, 1fr); gap: .55cqw; }
.client-path-scenarios dt { color: var(--poster-muted); font-size: var(--poster-font-sm); line-height: 1.45; }
.client-path-scenarios dd { margin: 0; color: var(--poster-text); font-size: var(--poster-font-sm); line-height: 1.45; }
.client-path-scenarios dd span { display: block; }
.client-path-scenarios dd b { display: inline-block; min-width: 3.5cqw; margin-right: .45cqw; color: var(--poster-muted); font-size: var(--poster-font-sm); }
.client-path-scenarios em { color: var(--poster-text); font-style: normal; font-weight: 800; }
.client-path-scenarios article > small { display: block; margin-top: .65cqw; padding-top: .55cqw; border-top: 1px solid var(--poster-line); color: var(--poster-muted); font-size: 1.08cqw; line-height: 1.35; }
.client-path-section > p { margin: .65cqw 0 0; color: var(--poster-muted); font-size: var(--poster-font-sm); line-height: 1.4; text-align: center; }
.client-path-empty { min-height: 14cqw; display: grid; place-items: center; }
.client-backtest-section { padding: 1.35cqw 1.8cqw 1.1cqw; }
.client-backtest-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2cqw; padding-bottom: .7cqw; border-bottom: 1px solid var(--poster-line); }
.client-backtest-heading small { display: block; color: var(--poster-accent); font-size: var(--poster-font-sm); font-weight: 800; letter-spacing: .06em; }
.client-backtest-heading h3 { margin: .15cqw 0 0; color: var(--poster-text); font-family: var(--sans); font-size: var(--poster-font-md); font-weight: 800; }
.client-backtest-heading > span { color: var(--poster-muted); font-size: var(--poster-font-sm); text-align: right; }
.client-backtest-table { width: 100%; margin-top: .55cqw; border-collapse: collapse; table-layout: fixed; }
.client-backtest-table th, .client-backtest-table td { padding: .58cqw .75cqw; border-bottom: 1px solid var(--poster-line); text-align: center; }
.client-backtest-table thead th { color: var(--poster-text); font-size: var(--poster-font-sm); font-weight: 800; }
.client-backtest-table thead th:first-child, .client-backtest-table tbody th { width: 24%; text-align: left; }
.client-backtest-table thead small { display: block; margin-top: .22cqw; color: var(--poster-muted); font-size: var(--poster-font-sm); font-weight: 400; line-height: 1.3; }
.client-backtest-table tbody th { color: var(--poster-muted); font-size: var(--poster-font-sm); font-weight: 700; }
.client-backtest-table tbody td { color: var(--poster-accent); font-size: var(--poster-font-md); font-weight: 800; }
.client-backtest-table tbody td:last-child { color: var(--poster-secondary); }
.client-poster-notes { margin-top: .65cqw; padding-top: .65cqw; border-top: 1px solid var(--poster-line); }
.client-poster-notes > strong { display: block; color: var(--poster-text); font-size: var(--poster-font-sm); }
.client-poster-notes ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4cqw 2cqw; margin: .45cqw 0 0; padding: 0 0 0 1.55cqw; color: var(--poster-muted); font-size: var(--poster-font-sm); line-height: 1.42; }
.client-poster-notes li { padding-left: .15cqw; }
.client-backtest-empty { min-height: 8cqw; display: grid; place-items: center; margin: 0; color: var(--poster-muted); font-size: var(--poster-font-sm); }
.client-payoff-section { padding: 1.45cqw 1.8cqw .8cqw; }
.client-payoff-section h3, .client-scenario-section h3 { margin: 0; color: var(--poster-text); font-family: var(--serif); font-size: 2.05cqw; }
.client-payoff-section svg { display: block; width: 100%; height: 13.7cqw; margin-top: .3cqw; overflow: visible; }
.client-payoff-section .payoff-axis { stroke: var(--poster-muted); stroke-width: 1.3; }
.client-payoff-section .payoff-loss { fill: none; stroke: var(--poster-warm); stroke-width: 4; }
.client-payoff-section .payoff-cash { stroke: var(--poster-secondary); stroke-width: 4; }
.client-payoff-section .payoff-strike { stroke: var(--poster-warm); stroke-width: 1.5; stroke-dasharray: 6 5; }
.client-payoff-section .payoff-ko { stroke: var(--poster-accent); stroke-width: 1.5; stroke-dasharray: 6 5; }
.client-payoff-section text { fill: var(--poster-muted); font: 18px var(--sans); }
.client-payoff-section .payoff-warm { fill: var(--poster-warm); font-weight: 700; }
.client-payoff-section .payoff-accent { fill: var(--poster-secondary); font-weight: 700; }
.client-scenario-section { padding: 1.45cqw 1.8cqw 1.1cqw; }
.client-scenario-section > h3 { padding-bottom: .75cqw; border-bottom: 1px solid var(--poster-line); }
.client-onepager .client-compact-scenarios { border: 0; background: transparent; }
.client-onepager .client-compact-scenarios > div { display: grid; grid-template-columns: 3.4cqw 14cqw 1fr 1fr; gap: 1cqw; align-items: center; padding: .95cqw .15cqw; border-bottom: 1px solid var(--poster-line); }
.client-onepager .client-compact-scenarios > div:last-child { border-bottom: 0; }
.client-onepager .client-compact-scenarios i { display: grid; place-items: center; width: 3.1cqw; height: 3.1cqw; border-radius: 50%; color: #fff; background: var(--poster-accent); font-size: 1.35cqw; font-style: normal; font-weight: 700; }
.client-onepager .client-compact-scenarios > div:nth-child(2) i { background: var(--poster-secondary); }
.client-onepager .client-compact-scenarios > div:nth-child(3) i { background: var(--poster-warm); }
.client-onepager .client-compact-scenarios b { color: var(--poster-accent); font-size: 2.15cqw; }
.client-onepager .client-compact-scenarios > div:nth-child(2) b { color: var(--poster-secondary); }
.client-onepager .client-compact-scenarios > div:nth-child(3) b { color: var(--poster-warm); }
.client-onepager .client-compact-scenarios span { color: var(--poster-text); font-size: 1.95cqw; }
.client-onepager .client-compact-scenarios strong { color: var(--poster-text); font-size: 1.95cqw; }
.client-onepager .client-footer { margin: 0; padding: .45cqw 1cqw 0; border: 0; color: var(--poster-muted); text-align: center; }
.client-onepager .client-footer p { margin: 0; font-size: var(--poster-font-sm); line-height: 1.4; }
.client-onepager .client-footer span { display: block; margin-top: .25cqw; font-size: var(--poster-font-sm); }

.materials-template-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.materials-template-option { display: flex; flex-direction: column; gap: 4px; min-height: 70px; padding: 14px 16px; border: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.materials-template-option[aria-pressed="true"] { border-color: var(--teal); background: #edfafa; box-shadow: inset 0 0 0 1px var(--teal); }
.materials-template-option b { font-size: 16px; }
.materials-template-option small { color: var(--muted); font-size: 13px; }
.materials-copy-target { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.materials-copy-target select { min-width: 170px; }

.client-multi-poster { justify-content: flex-start; gap: .7cqw; height: auto; aspect-ratio: auto; min-height: 0; padding: 1.9cqw 2.2cqw; overflow: visible; }
.multi-poster-header { min-height: 9.5cqw; align-items: center; }
.multi-header-logos { display: flex; align-items: center; justify-content: flex-end; gap: .55cqw; margin-left: auto; }
.multi-header-logo { display: grid; place-items: center; width: 5.8cqw; height: 5.8cqw; padding: 1cqw; border: 1px solid var(--poster-line); border-radius: 50%; background: var(--poster-panel); box-shadow: 0 .45cqw 1.2cqw rgba(13,39,70,.08); }
.multi-logo-times { color: var(--poster-muted); font-size: var(--poster-font-md); font-weight: 700; }
.company-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.company-logo-image[hidden], .company-logo-fallback[hidden] { display: none; }
.company-logo-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; background: var(--poster-accent); font-size: var(--poster-font-md); font-weight: 800; }
.multi-thesis-section { padding: 1.2cqw 1.5cqw; }
.multi-section-heading { display: flex; align-items: baseline; gap: 1.2cqw; padding-bottom: .65cqw; border-bottom: 1px solid var(--poster-line); }
.multi-section-heading small { color: var(--poster-accent); font-size: var(--poster-font-sm); font-weight: 800; }
.multi-section-heading h3 { margin: 0; color: var(--poster-text); font-size: var(--poster-font-md); }
.multi-section-heading span { margin-left: auto; color: var(--poster-muted); font-size: var(--poster-font-sm); }
.multi-logic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; gap: .8cqw; align-items: stretch; margin-top: .8cqw; }
.multi-logic-grid.underlyings-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.multi-logic-grid > article { display: grid; grid-row: span 4; grid-template-rows: subgrid; min-width: 0; border: 1px solid var(--poster-line); background: var(--poster-panel); }
.multi-logic-grid > article > header { display: flex; justify-content: center; padding: .85cqw .8cqw; border-bottom: 1px solid var(--poster-line); text-align: center; }
.multi-company-identity { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.multi-company-identity .company-logo-image, .multi-company-identity .company-logo-fallback { width: 3.8cqw; height: 3.8cqw; margin-bottom: .45cqw; object-fit: contain; }
.multi-company-identity b { display: block; max-width: 100%; color: var(--poster-text); font-size: var(--poster-font-md); line-height: 1.25; text-align: center; white-space: normal; }
.multi-company-identity small { color: var(--poster-muted); font-size: var(--poster-font-sm); }
.multi-logic-grid dl { display: grid; grid-row: span 3; grid-template-rows: subgrid; margin: 0; }
.multi-logic-grid dl > div { display: grid; grid-template-columns: 4.2cqw minmax(0, 1fr); gap: .6cqw; padding: .65cqw .75cqw; border-bottom: 1px solid var(--poster-line); }
.multi-logic-grid dl > div:last-child { border-bottom: 0; }
.multi-logic-grid dt { color: var(--poster-accent); font-size: var(--poster-font-sm); font-weight: 800; }
.multi-logic-grid dd { margin: 0; min-width: 0; }
.multi-logic-grid dd b { display: block; color: var(--poster-text); font-size: var(--poster-font-sm); line-height: 1.35; white-space: normal; }
.multi-logic-grid dd p { display: block; margin: .2cqw 0 0; overflow: visible; color: var(--poster-muted); font-size: var(--poster-font-sm); line-height: 1.45; }
.multi-path-section { padding-top: 1.1cqw; }
.multi-path-section > svg { height: auto; min-height: 0; }
.multi-chart-legend { display: flex; justify-content: center; gap: 2.2cqw; margin-top: .45cqw; color: var(--poster-muted); font-size: var(--poster-font-sm); }
.multi-chart-legend span { display: flex; align-items: center; gap: .4cqw; }
.multi-chart-legend i { width: 1.7cqw; height: .25cqw; background: var(--series-color); }
.multi-chart-legend .worst i { height: .35cqw; background: #d94343; }
.poster-multi-line { fill: none; stroke-width: 2; opacity: .8; }
.poster-multi-forecast-band { fill: var(--band-color); fill-opacity: .1; stroke: none; }
.poster-multi-forecast-edge { fill: none; stroke-width: 1.8; stroke-dasharray: 5 4; }
.poster-future-zone { fill: rgba(0,166,166,.06); }
.multi-summary-table thead th:first-child, .multi-summary-table tbody th { width: auto; text-align: center; }
.multi-summary-table tbody td { color: var(--poster-accent); }
.multi-impact-title { display: flex; justify-content: space-between; align-items: baseline; margin-top: .55cqw; color: var(--poster-text); font-size: var(--poster-font-sm); }
.multi-impact-title span { color: var(--poster-muted); }
.multi-impact-table thead th:first-child, .multi-impact-table tbody th { width: 18%; }
.multi-impact-table tbody td { color: var(--poster-text); font-size: var(--poster-font-sm); }
.multi-impact-table tbody td:last-child { color: var(--poster-secondary); }
.multi-impact-table tbody td.drag-negative { color: var(--poster-warm); }
.client-multi-poster .client-poster-notes ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 680px) {
  .materials-theme-picker { grid-template-columns: 1fr; }
  .materials-theme-option small { white-space: normal; }
  .materials-preview-heading { margin-top: 22px; }
  .materials-copy-grid { grid-template-columns: 1fr; }
  .materials-copy-grid .copy-wide { grid-column: auto; }
  .materials-copy-actions .primary-button, .materials-copy-actions .secondary-button { flex: 1 1 calc(50% - 9px); }
  .health-summary-grid, .health-dataset-grid { grid-template-columns: 1fr; }
  .health-heading, .health-issues-heading { align-items: flex-start; flex-direction: column; }
  .health-actions { width: 100%; justify-content: space-between; }
  .health-issues-heading label, .health-issues-heading select { width: 100%; }
}

@media (max-width: 430px) {
  .client-onepager .client-structure-compact > div { grid-template-columns: 10.5cqw repeat(3, minmax(0, 1fr)); }
  .client-onepager .client-logic-list article div { grid-template-columns: 5.7cqw minmax(0, 1fr); }
  .client-onepager .client-logic-list strong { grid-column: auto; }
  .client-onepager .client-logic-list p { grid-column: 1 / -1; }
}

.valuation-slider-field { margin-bottom: 16px; }
.valuation-slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.valuation-slider-head label { margin: 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.valuation-slider-readout { display: flex; align-items: baseline; gap: 10px; }
.valuation-slider-readout b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.valuation-slider-readout small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.valuation-slider-field input[type="range"] { width: 100%; accent-color: var(--teal); cursor: pointer; }
.valuation-iv-field { margin-bottom: 16px; }
.valuation-iv-ref { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.valuation-iv-ref span { font-size: 11px; color: var(--muted); }
.valuation-iv-ref b { display: inline-block; margin-left: 6px; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }

.field-label-row { display: flex; align-items: center; gap: 6px; }
.valuation-yield-panel { margin-top: 24px; }
.valuation-yield-panel .canvas-heading { margin-bottom: 12px; }
#valuationYieldChart { width: 100%; height: auto; display: block; }
.yield-grid { stroke: #e5ebf1; stroke-width: 1; }
.yield-tick { fill: #8a95a3; font-size: 11px; font-family: var(--mono); }
.yield-line { fill: none; stroke: var(--teal); stroke-width: 2; }
.yield-dot { fill: var(--teal); }
.yield-marker { stroke: #b9c6d0; stroke-width: 1; stroke-dasharray: 4 4; }
.yield-current { fill: #e05c4a; }
.yield-axis-title { fill: #607087; font-size: 11px; }
.model-interp b { color: #c0392b; }
.yield-boundary { stroke: #c0392b; stroke-width: 2; }
.yield-boundary-dot { fill: #c0392b; }
