/* Fourth visual iteration; the established palette, typography and rails are retained. */
:root { --amber: #e8bd7a; }
select { font: inherit; color: inherit; color-scheme: dark; cursor: pointer; }
select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.topbar { height: 58px; }
main { padding-top: 14px; }
.page-heading { margin-bottom: 14px; min-height: 36px; }
.trade-date { color: #6f88a4; font: 10px var(--number); }
.scenario-control { display: flex; align-items: center; gap: 10px; color: #859cb5; font-size: 10px; }
.scenario-control select { border: 1px solid #94b7e226; border-radius: 5px; padding: 7px 27px 7px 10px; background: #112035; font-size: 11px; }
.overview-grid { grid-template-columns: 1.02fr .88fr 1.08fr; }
.overview-grid > .panel { height: 228px; }
.panel-heading h2 { font-size: 13px; }
.priority-panel { background: radial-gradient(ellipse at 20% 20%, #4b85b01b, transparent 80%), linear-gradient(130deg, #162c40, #122336); border-color: #88b3d730; }
.priority-tag { font-size: 9px; color: #aac9f5; padding: 3px 7px; border-radius: 4px; background: #83a8ff0d; border: 1px solid #83a8ff20; }
.priority-main { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 10px 20px 0; }
.priority-main h3 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.25; letter-spacing: 1px; }
.priority-main p { margin: 5px 0 0; color: #b8d4e9; font-size: 13px; }
.priority-open { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid #8fb9e631; border-radius: 50%; background: #9ad3ff07; color: #bdddf0; }
.priority-open svg { width: 15px; height: 15px; }
.priority-open:hover { background: #9ad3ff19; }
.priority-reason { margin: 8px 20px 0; color: #8eabc1; font-size: 10px; line-height: 1.5; }
.phase-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 13px 20px 0; }
.phase-track span { color: #69829e; font-size: 9px; }
.phase-track i { display: block; height: 2px; background: #7794b225; margin-bottom: 7px; border-radius: 2px; }
.phase-track .is-done { color: #a9d1d8; }
.phase-track .is-done i { background: #61c8b3; }
.priority-switcher { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 11px 16px 0; border-top: 1px solid #a1b9dd12; padding-top: 7px; gap: 7px; }
.priority-switcher button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 3px; font-size: 10px; color: #a0b6cb; background: none; border: 0; border-radius: 4px; white-space: nowrap; }
.priority-switcher button small { font-size: 9px; color: #6f8ca9; }
.priority-switcher button[aria-pressed="true"] { background: #83a8ff0d; color: #c6ddf9; }
.priority-switcher button:hover { background: #83a8ff13; }
.priority-panel[data-tone="warning"] { border-color: #e8bd7a4a; background: radial-gradient(ellipse at 15% 20%, #b3884d17, transparent 80%), #172433; }
.priority-panel[data-tone="warning"] .priority-tag { background: #e8bd7a0c; border-color: #e8bd7a35; color: var(--amber); }
.priority-panel[data-tone="warning"] .priority-main p { color: #e6c897; }
.priority-panel[data-tone="positive"] .priority-tag { color: var(--mint); border-color: #5de2c437; background: #5de2c40d; }
.priority-panel[data-tone="quiet"] .priority-tag { color: #a3b8cf; }
.sector-bars { margin-top: 11px; gap: 5px; }
.sector-row { height: 21px; font-size: 11px; }
.sector-row strong { font-size: 11px; }
.market-breadth { margin: 12px 20px 0; }
.market-breadth .breadth-bars { height: 5px; gap: 3px; }
.market-breadth > div:last-child { display: flex; justify-content: space-between; margin-top: 8px; color: #849cb4; font-size: 9px; }
.market-breadth .dot { margin: 0 4px 1px 10px; }
.funds-top { margin: 7px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.funds-caption { display: block; line-height: 1.25; color: #8ca5bd; font-size: 10px; }
.funds-number { font-family: var(--number); font-size: 33px; font-weight: 500; letter-spacing: -.8px; line-height: 1.25; color: #b4f1da; margin-top: 3px; }
.funds-equity { display: flex; align-items: center; gap: 12px; color: #90a8c1; font-size: 10px; margin-top: 5px; }
.funds-equity b { font-family: var(--number); font-weight: 400; }
.funds-equity > span:last-child { font-family: var(--number); color: #8ccbb7; }
.funds-gauge { position: relative; flex: 0 0 77px; width: 77px; height: 77px; }
.funds-gauge > svg { width: 100%; height: 100%; }
.funds-gauge > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.funds-gauge strong { font: 500 17px var(--number); }
.funds-gauge small { font-size: 8px; }
.funds-gauge span { font-size: 9px; color: #8ba2bc; margin-top: 3px; }
.funds-chart { height: 29px; margin: 5px 20px 0; }
.funds-chart svg { width: 100%; height: 100%; overflow: visible; }
.funds-chart path { vector-effect: non-scaling-stroke; }
.funds-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 7px 20px 0; padding-top: 8px; border-top: 1px solid #a1b9dd13; }
.funds-bottom span { font-size: 9px; color: #8a9fb8; display: flex; align-items: center; gap: 5px; }
.funds-bottom strong { display: block; margin-top: 4px; font: 500 15px var(--number); color: #c3d7e8; }
.risk-summary { text-align: left; padding: 0; border: 0; background: none; }
.risk-summary strong { color: #dfbc89; }
.risk-summary svg { width: 10px; height: 10px; }
.risk-summary:hover span { color: #ecd4b0; }
.main-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.price-heading { min-height: 52px; padding-top: 13px; padding-bottom: 10px; }
.instrument-row { grid-template-columns: 105px minmax(0, 1fr) 87px; grid-template-rows: 84px 20px; padding: 4px 14px 5px 16px; gap: 0 16px; min-height: 113px; }
.instrument-identity { grid-column: 1; grid-row: 1 / 3; }
.instrument-name { font-size: 18px; }
.instrument-meta { font-size: 9px; gap: 4px; flex-wrap: wrap; }
.instrument-code { font-size: 9px; }
.instrument-row.is-selected { border-color: #86aeff65; }
.instrument-row.is-selected::before { background: #9cc2ff; box-shadow: 0 0 10px #83a8ff1c; }
.instrument-row.needs-attention { border-color: #e8bd7a50; background: #e8bd7a08; }
.instrument-row.needs-attention::before { background: var(--amber); }
.needs-attention .instrument-status, .needs-attention .stage-note { color: var(--amber); }
.price-line { grid-column: 2; grid-row: 1; height: 84px; --y: 54px; }
.now .point-label { bottom: 24px; }
.now .point-label strong { font-size: 23px; }
.entry .point-label { bottom: 6px; }
.stop.shared-entry .point-label { display: none; }
.target.is-touched .point-shape { border-color: var(--amber); background: linear-gradient(#e8bd7a85 0 55%, transparent 55%); }
.target.is-touched .point-label, .target.is-touched .point-label strong { color: #e4c898; }
.target.is-realized .point-shape { border-color: var(--mint); background: linear-gradient(#5de2c480 0 55%, transparent 55%); }
.target.is-realized .point-label, .target.is-realized .point-label strong { color: #8ad7be; }
.lots { grid-column: 3; grid-row: 1 / 3; padding-left: 10px; }
.lots > strong { font-size: 23px; }
.lots > span { font-size: 9px; }
.lots > .row-pnl { display: block; font: 10px var(--number); color: #6884a0; white-space: nowrap; }
.lots > .row-pnl.positive-pnl { color: #91d3bd; }
.rail-context { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.stage-note { font-size: 9px; color: #89a9bd; white-space: nowrap; }
.row-evidence { display: flex; align-items: center; gap: 5px; padding: 3px 0; background: none; border: 0; font-size: 9px; color: #849ebe; white-space: nowrap; }
.row-evidence svg { width: 10px; height: 10px; }
.row-evidence:hover { color: #c0d9fb; }
.analysis-lag .row-evidence, .quote-stale .row-evidence { color: var(--amber); }
.rail-legend { padding-top: 10px; padding-bottom: 10px; }
.context-column { grid-template-rows: 1.08fr .92fr; }
.symbol-select { border: 0; background: #83a8ff0c; padding: 4px 5px; border-radius: 4px; color: #aac6e8; font-size: 10px; }
.decision-body { padding: 10px 16px 13px; }
.decision-status { color: #77acaa; font-size: 9px; }
.decision-body h3 { margin: 7px 0 0; font-size: 16px; font-weight: 500; line-height: 1.45; letter-spacing: .1px; color: #d3e6f6; }
.period-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-top: 1px solid #a1b9dd0d; padding-top: 9px; }
.period-strip > span { display: flex; gap: 6px; align-items: center; }
.period-strip small { font-size: 9px; color: #8ca5bf; }
.period-strip b { font-size: 16px; font-weight: 400; }
.invalidation { margin: 10px 0 0; color: #869fb7; font-size: 10px; line-height: 1.7; }
.evidence-link { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: #a7c5ef; padding: 0; margin-top: 12px; font-size: 10px; min-height: 24px; }
.evidence-link svg { width: 12px; height: 12px; }
.evidence-link:hover { color: #d3e4ff; }
.decision-panel.is-lagging h3 { color: #92a2b2; }
.decision-panel.is-lagging .decision-status { color: var(--amber); }
.source-status { color: #8ec5b5; font-size: 9px; }
.is-warning, .source-row.is-warning > strong { color: var(--amber) !important; }
.coverage-flow { padding-top: 9px; }
.coverage-flow .source-row { min-height: 34px; font-size: 10px; position: relative; }
.coverage-flow .source-row:not(:last-child)::before { content: ""; position: absolute; top: 21px; height: 25px; left: 1px; width: 1px; background: #91aec627; }
.coverage-flow .source-row > span { gap: 8px; }
.coverage-flow .source-row > time { font-size: 11px; }
.coverage-flow .source-row > strong { font-size: 9px; }
.coverage-flow .quote-dot { background: var(--mint); }
.coverage-flow .is-warning .source-dot { background: var(--amber); }
#source-foot { width: calc(100% - 32px); display: block; text-align: left; border: 0; border-top: 1px solid #a1b9dd12; background: none; margin: 8px 16px 10px; padding: 8px 0 0; min-height: 28px; line-height: 1.5; font-size: 9px; }
#source-foot:hover { color: #cadcf2; }
.updates-panel { min-height: 76px; margin-top: 12px; padding-top: 13px; padding-bottom: 13px; grid-template-columns: 110px minmax(0, 1fr); }
.update-item strong { font-size: 11px; }
.page-footer { padding-top: 10px; padding-bottom: 10px; font-size: 8px; }
.session-closed .instrument-row.is-triggered { background: #112337; }
.session-closed .price-line { opacity: .8; }
.is-stale .sector-bars, .is-stale .funds-chart { opacity: .55; }
.evidence-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; border: 0; border-left: 1px solid #95b6df36; border-radius: 0; width: min(640px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; overflow: auto; box-shadow: -30px 0 100px #0007; }
.evidence-drawer::backdrop { background: #030b1678; backdrop-filter: blur(3px); }
.evidence-drawer .detail-heading { position: sticky; top: 0; z-index: 4; padding: 26px 28px 20px; background: #14253bea; backdrop-filter: blur(10px); }
.evidence-drawer .detail-heading h2 { font-size: 28px; }
.evidence-drawer #detail-close { width: 34px; height: 34px; }
.detail-tabs { display: flex; gap: 26px; margin: 0 28px 20px; border-bottom: 1px solid #9cb5d222; }
.detail-tabs button { padding: 11px 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: 12px; color: #7e96b2; }
.detail-tabs button[aria-selected="true"] { border-bottom-color: var(--mint); color: #c1eddf; }
.evidence-drawer #detail-body { padding: 0 28px 28px; }
.evidence-verdict { padding: 16px 18px; background: #5de2c408; border: 1px solid #5de2c41b; border-radius: 8px; }
.evidence-verdict > span { font-size: 10px; color: #81b9af; }
.evidence-verdict h3 { margin: 7px 0 0; font-size: 20px; font-weight: 500; color: #d5e9f0; }
.evidence-verdict p { font-size: 11px; color: #8fa6bc; line-height: 1.8; margin: 8px 0 0; }
.evidence-verdict.is-warning { border-color: #e8bd7a30; background: #e8bd7a06; }
.evidence-verdict.is-warning > span { color: var(--amber); }
.evidence-chart-heading { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 8px; font-size: 10px; color: #97afc7; }
.evidence-chart-heading > span:last-child { color: #6d87a4; }
.evidence-chart { border: 1px solid #a1b9dd16; background: #07132145; border-radius: 8px; padding: 10px 9px 5px; }
.evidence-chart svg { width: 100%; }
.chart-label { font-family: var(--number); font-size: 9px; fill: #819abb; }
.chart-gap { font-size: 11px; fill: var(--amber); }
.evidence-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 20px 0; }
.evidence-stats span { display: block; color: #879fb8; font-size: 10px; }
.evidence-stats strong { display: block; font: 500 21px var(--number); margin-top: 7px; color: #c4dce9; }
.evidence-stats small { font-size: 11px; margin-left: 3px; }
.evidence-condition { border-top: 1px solid #a1b9dd16; padding: 17px 0 0; }
.evidence-condition > span { font-size: 10px; color: #b38d94; }
.evidence-condition p { font-size: 12px; color: #c2b5bf; margin: 8px 0 0; }
.coverage-detail { margin-top: 23px; padding: 17px; background: #0815234f; border-radius: 8px; scroll-margin-top: 130px; }
.coverage-detail h3, .order-section h3, .risk-concentration h3 { font-size: 12px; font-weight: 500; margin: 0 0 13px; color: #b4ccdf; }
.coverage-detail > div { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; min-height: 31px; font-size: 10px; color: #8ea8c3; }
.coverage-detail time { font: 11px var(--number); color: #b4c8dd; }
.coverage-detail b { font-weight: 400; font-size: 9px; color: #a4baaf; }
.evidence-footnote { font-size: 10px; line-height: 1.8; color: #6f89a5; margin: 19px 0 0; }
.execution-summary { display: flex; gap: 40px; align-items: center; margin-bottom: 20px; }
.execution-summary > div > span { font-size: 10px; color: #8ca6be; }
.execution-summary strong { display: block; font: 500 29px var(--number); margin-top: 8px; color: #b5e6d2; }
.execution-summary small { font-size: 12px; color: #a0b9cf; }
.execution-stage { margin-left: auto; color: #a3c1e9; font-size: 11px; background: #83a8ff0d; border: 1px solid #83a8ff24; border-radius: 4px; padding: 6px 9px; }
.detail-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
.protection-state { display: flex; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid #a1b9dd15; color: #9ab5cb; }
.protection-state > svg { width: 24px; height: 24px; flex-shrink: 0; }
.protection-state strong { font-size: 12px; font-weight: 400; }
.protection-state span { display: block; font-size: 10px; color: #849bb4; margin-top: 5px; }
.order-section { margin-top: 22px; }
.orders-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
.orders-table th { font-size: 10px; font-weight: 400; color: #7691ac; padding: 6px 0 10px; }
.orders-table td { color: #bdcfe0; padding: 12px 0; border-top: 1px solid #a1b9dd13; }
.orders-table td:nth-child(2), .orders-table td:nth-child(3) { font-family: var(--number); }
.orders-table time { display: block; font: 9px var(--number); color: #718da9; margin-top: 5px; }
.order-empty { font-size: 12px; color: #839db8; padding: 18px 0; }
.target-receipt { padding: 16px; margin-top: 18px; background: #83a8ff08; border: 1px solid #83a8ff1c; border-radius: 7px; }
.target-receipt span { display: block; color: #839fc7; font-size: 10px; }
.target-receipt strong { display: block; font-size: 12px; font-weight: 400; line-height: 1.7; color: #c0d1e3; margin-top: 7px; }
.account-risk-hero { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.account-risk-hero > span { color: #8ba3bd; font-size: 12px; }
.account-risk-hero > strong { font: 500 43px var(--number); color: #e9c99b; }
.account-risk-hero > small { font-size: 11px; color: #baa585; }
.risk-definition { font-size: 12px; line-height: 1.85; color: #90a7bf; margin: 22px 0; }
.account-breakdown { padding: 12px 0; border-top: 1px solid #a1b9dd20; border-bottom: 1px solid #a1b9dd20; }
.account-breakdown > div { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; }
.account-breakdown span { color: #8fa7c0; font-size: 12px; }
.account-breakdown strong { font: 500 16px var(--number); color: #cbdaeb; }
.risk-concentration { margin-top: 25px; }
.risk-concentration > div:not(.concentration-bar) { display: flex; justify-content: space-between; font-size: 11px; color: #b0c6dc; }
.risk-concentration strong { font: 500 13px var(--number); }
.concentration-bar { height: 5px; margin: 12px 0; background: #83a8ff15; border-radius: 3px; }
.concentration-bar i { display: block; height: 100%; background: #789cdf; border-radius: inherit; }
.risk-concentration p { font: 11px var(--number); color: #7892af; }
@media (min-width: 1800px) {
  .overview-grid > .panel { height: 250px; }
  .panel-heading h2 { font-size: 15px; }
  .priority-main { margin-top: 15px; }
  .priority-main h3 { font-size: 36px; }
  .priority-main p { font-size: 15px; }
  .priority-reason { font-size: 11px; }
  .phase-track { margin-top: 16px; }
  .priority-switcher { margin-top: 13px; }
  .sector-bars { margin-top: 16px; gap: 6px; }
  .sector-row { height: 23px; }
  .sector-row, .sector-row strong { font-size: 13px; }
  .market-breadth { margin-top: 13px; }
  .funds-top { margin-top: 12px; }
  .funds-number { font-size: 40px; }
  .funds-gauge { flex-basis: 85px; width: 85px; height: 85px; }
  .funds-gauge strong { font-size: 19px; }
  .funds-chart { height: 34px; }
  .funds-bottom { margin-top: 8px; }
  .funds-bottom strong { font-size: 17px; }
  .main-grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .instrument-row { grid-template-columns: 135px minmax(0, 1fr) 108px; grid-template-rows: 97px 23px; min-height: 131px; }
  .instrument-name { font-size: 21px; }
  .price-line { height: 97px; --y: 61px; }
  .now .point-label strong { font-size: 29px; }
  .now .point-label { bottom: 28px; }
  .entry .point-label { bottom: 6px; }
  .stage-note, .row-evidence { font-size: 10px; }
  .decision-body { padding-top: 16px; }
  .decision-body h3 { font-size: 19px; }
  .period-strip { margin-top: 18px; padding-top: 13px; }
  .period-strip small { font-size: 11px; }
  .invalidation { margin-top: 15px; font-size: 11px; }
  .evidence-link { margin-top: 16px; font-size: 11px; }
  .coverage-flow { padding-top: 16px; }
  .coverage-flow .source-row { min-height: 40px; font-size: 11px; }
  .coverage-flow .source-row:not(:last-child)::before { height: 30px; top: 24px; }
  .coverage-flow .source-row > strong { font-size: 10px; }
  #source-foot { margin-top: 13px; padding-top: 12px; font-size: 10px; }
  .updates-panel { min-height: 88px; }
  .update-item strong { font-size: 12px; }
}
@media (max-width: 1190px) {
  .overview-grid { grid-template-columns: 1fr .88fr 1.07fr; }
  .priority-main { margin-left: 15px; margin-right: 15px; }
  .priority-reason { margin-left: 15px; margin-right: 15px; font-size: 9px; }
  .priority-main h3 { font-size: 27px; }
  .priority-main p { font-size: 11px; }
  .priority-switcher { margin-left: 10px; margin-right: 10px; gap: 3px; }
  .priority-switcher button { gap: 4px; font-size: 9px; }
  .priority-switcher small { font-size: 8px; }
  .phase-track { margin-left: 15px; margin-right: 15px; }
  .phase-track span { font-size: 8px; }
  .funds-top { margin-left: 15px; margin-right: 15px; gap: 8px; }
  .funds-number { font-size: 28px; }
  .funds-equity { font-size: 9px; gap: 7px; }
  .funds-gauge { flex-basis: 67px; width: 67px; height: 67px; }
  .funds-gauge strong { font-size: 15px; }
  .funds-bottom { margin-left: 15px; margin-right: 15px; }
  .market-breadth { margin-left: 15px; margin-right: 15px; }
  .main-grid { grid-template-columns: minmax(0, 1fr) 264px; }
  .instrument-row { grid-template-columns: 82px minmax(0, 1fr) 62px; gap: 0 10px; padding-left: 11px; padding-right: 10px; }
  .instrument-name { font-size: 16px; }
  .instrument-status { display: block; }
  .price-controls { gap: 10px; }
  .price-tabs button { font-size: 10px; }
  .now .point-label strong { font-size: 20px; }
  .point-label { font-size: 8px; }
  .point-label strong { font-size: 9px; }
  .stage-note { font-size: 8px; }
  .row-evidence { font-size: 8px; }
  .row-evidence svg { display: none; }
  .rail-context { gap: 7px; }
  .lots { padding-left: 7px; }
  .lots > .row-pnl { font-size: 9px; }
  .decision-body h3 { font-size: 14px; }
  .coverage-flow .source-row { font-size: 9px; }
  .coverage-flow .source-row > time { font-size: 10px; }
  .coverage-flow .source-row > strong { font-size: 8px; }
}
@media (max-width: 950px) {
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid > .funds-panel { grid-column: 1 / -1; height: auto; min-height: 162px; display: grid; grid-template-columns: 1fr 1.25fr; padding-bottom: 15px; }
  .funds-panel .panel-heading { grid-column: 1 / -1; }
  .funds-top { grid-column: 1; grid-row: 2 / 4; }
  .funds-chart { grid-column: 2; height: 35px; }
  .funds-bottom { grid-column: 2; margin-top: 5px; padding-top: 6px; }
  .main-grid { grid-template-columns: 1fr; }
  .context-column { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .instrument-row { grid-template-columns: 99px minmax(0, 1fr) 82px; }
  .point-label { font-size: 9px; }
  .point-label strong { font-size: 10px; }
  .stage-note, .row-evidence { font-size: 9px; }
  .decision-body h3 { font-size: 17px; }
  .coverage-flow .source-row { font-size: 10px; }
  .coverage-flow .source-row > time { font-size: 11px; }
  .coverage-flow .source-row > strong { font-size: 9px; }
  .updates-panel { grid-template-columns: 85px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 620px) {
  main { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
  .page-heading { order: 0; margin-bottom: 4px; flex-wrap: wrap; gap: 10px; }
  h1 { font-size: 21px; }
  .trade-date { font-size: 9px; }
  .scenario-control { gap: 6px; font-size: 9px; }
  .scenario-control > span { display: none; }
  .scenario-control select { padding: 6px 5px; font-size: 10px; max-width: 125px; }
  .overview-grid, .main-grid, .context-column { display: contents; }
  .overview-grid > .priority-panel { order: 1; height: 226px; }
  .price-panel { order: 2; }
  .overview-grid > .funds-panel { order: 3; display: block; height: 238px; padding: 0; }
  .decision-panel { order: 4; }
  .source-panel { order: 5; }
  .overview-grid > .sector-panel { order: 6; height: 235px; }
  .updates-panel { order: 7; margin: 0; }
  .page-footer { order: 8; }
  .priority-main { margin: 12px 16px 0; }
  .priority-main h3 { font-size: 31px; }
  .priority-main p { font-size: 13px; }
  .priority-reason { margin-left: 16px; margin-right: 16px; font-size: 10px; }
  .phase-track { margin-top: 15px; }
  .phase-track span { font-size: 9px; }
  .priority-switcher { margin: 12px 12px 0; }
  .priority-switcher button { font-size: 10px; }
  .priority-switcher small { font-size: 9px; }
  .panel-heading h2 { font-size: 12px; }
  .price-heading { padding: 13px 12px; }
  .price-tabs button { font-size: 10px; }
  .instrument-row { grid-template-columns: 1fr auto; grid-template-rows: auto 94px 28px; padding: 11px 12px 5px; gap: 0; min-height: 171px; }
  .instrument-identity { grid-column: 1; grid-row: 1; }
  .instrument-name { font-size: 16px; }
  .instrument-code { font-size: 9px; }
  .instrument-meta { margin-top: 2px; font-size: 9px; }
  .instrument-status { display: inline; }
  .lots { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: auto auto; gap: 0 6px; text-align: right; }
  .lots > span { grid-column: 1; grid-row: 1; align-self: center; font-size: 8px; }
  .lots > strong { grid-column: 2; grid-row: 1; font-size: 21px; }
  .lots > .row-pnl { grid-column: 1 / -1; font-size: 9px; }
  .price-line { grid-column: 1 / -1; grid-row: 2; height: 94px; --y: 61px; margin: 0; }
  .now .point-label { bottom: 24px; }
  .now .point-label strong { font-size: 22px; }
  .point-label { font-size: 8px; }
  .point-label strong { font-size: 9px; }
  .entry .point-label { bottom: 6px; }
  .rail-context { grid-column: 1 / -1; grid-row: 3; gap: 5px; }
  .stage-note { font-size: 8px; }
  .row-evidence { font-size: 8px; }
  .rail-legend { font-size: 8px; padding: 12px; }
  .funds-top { margin: 9px 16px 0; }
  .funds-number { font-size: 35px; }
  .funds-equity { font-size: 10px; }
  .funds-gauge { flex-basis: 78px; height: 78px; width: 78px; }
  .funds-gauge strong { font-size: 17px; }
  .funds-chart { margin: 6px 16px 0; height: 35px; }
  .funds-bottom { margin: 7px 16px 0; padding-top: 8px; }
  .funds-bottom span { font-size: 10px; }
  .funds-bottom strong { font-size: 17px; }
  .sector-bars { margin: 12px 15px 0; gap: 5px; }
  .sector-row { grid-template-columns: 49px minmax(0, 1fr) 57px; gap: 10px; height: 24px; font-size: 12px; }
  .sector-row strong { font-size: 12px; }
  .market-breadth { margin-top: 12px; }
  .market-breadth > div:last-child { font-size: 10px; }
  .decision-body { padding: 10px 14px 13px; }
  .decision-body h3 { font-size: 19px; }
  .decision-status { font-size: 10px; }
  .period-strip small { font-size: 10px; }
  .invalidation { font-size: 11px; }
  .evidence-link { font-size: 11px; }
  .coverage-flow { padding: 10px 14px 0; }
  .coverage-flow .source-row { min-height: 35px; font-size: 11px; }
  .coverage-flow .source-row > strong { font-size: 10px; }
  .source-status { font-size: 10px; }
  #source-foot { margin-left: 14px; margin-right: 14px; margin-bottom: 14px; font-size: 10px; }
  .updates-track { grid-template-columns: 1fr; gap: 15px; }
  .update-item { display: flex; align-items: center; gap: 13px; padding-left: 12px; }
  .update-item time { margin: 0; font-size: 9px; }
  .update-item strong { font-size: 10px; }
  .update-node { top: 6px; }
  .evidence-drawer .detail-heading { padding: 22px 20px 17px; }
  .detail-tabs { margin-left: 20px; margin-right: 20px; }
  .evidence-drawer #detail-body { padding-left: 20px; padding-right: 20px; }
  .evidence-verdict { padding: 13px; }
  .evidence-verdict h3 { font-size: 18px; }
  .evidence-stats { gap: 8px; }
  .evidence-stats strong { font-size: 17px; }
  .evidence-stats span { font-size: 9px; }
  .coverage-detail { padding: 12px; }
  .coverage-detail > div { gap: 7px; font-size: 9px; }
  .coverage-detail time { font-size: 10px; }
  .coverage-detail b { font-size: 8px; }
  .execution-summary { gap: 22px; flex-wrap: wrap; }
  .execution-summary strong { font-size: 24px; }
  .execution-stage { font-size: 9px; }
  .detail-facts { grid-template-columns: 1fr 1fr; }
  .orders-table { font-size: 10px; }
  .orders-table th { font-size: 9px; }
  .account-risk-hero > strong { font-size: 36px; }
}
@media (max-width: 370px) {
  .page-title { gap: 6px; }
  .trade-date { display: none; }
  .stage-note, .row-evidence { font-size: 7px; }
  .priority-reason { font-size: 9px; }
}
