/* Clear, presentation-friendly layer over the existing application. */
:root{--bg:#f3f6fb;--panel:#fff;--panel2:#eef4ff;--text:#182b45;--muted:#526881;--line:#d9e2ee;--mint:#225ed5;--blue:#225ed5;--shadow:0 8px 28px rgba(30,60,100,.06)}
body{background:#f3f6fb;color:#182b45;font-size:16px;line-height:1.6}h1,h2,h3,p{overflow-wrap:anywhere}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}.topbar{height:auto;min-height:76px;background:#fff;backdrop-filter:none;padding:12px 2vw;gap:18px;flex-wrap:wrap}.brand{color:#163b70}.brand-mark{background:#235ed5;color:white;border:0}.brand small{font-size:12px;color:#526881}.topbar nav{margin-left:12px;gap:3px;height:48px;overflow-x:auto}.nav-tab{padding:10px 12px;white-space:nowrap;color:#526881;border-radius:8px;font-size:15px}.nav-tab.active,.nav-tab:hover{background:#eaf1ff;color:#1e55bc}.nav-tab.active:after{display:none}.header-actions{margin-left:auto}.surface{background:#fff;border:1px solid #dce5f0;box-shadow:none;border-radius:16px}.page{max-width:1600px;padding:26px 3vw 60px}.outline-btn,.primary-btn{font-size:15px;min-height:42px;padding:8px 16px}.outline-btn{background:white;color:#244769;border-color:#ccd9e8}.primary-btn{background:#235ed5;color:white;border-color:#235ed5}.phase-intro{background:none;border:0;padding:12px 0 22px;margin:0;display:block;box-shadow:none}.phase-intro h1,.view-heading h1{font-size:clamp(25px,2.5vw,38px);line-height:1.35;letter-spacing:-.045em;margin:8px 0;color:#142f52}.phase-intro span,.view-heading>span{font-size:14px;color:#245dcc;font-weight:700}.view-heading{margin:8px 0 24px}.view-heading p{color:#536a82;margin:8px 0}.more-details{border:1px solid #dce5f0;border-radius:12px;background:#fff;margin:12px 0}.more-details>summary{padding:12px 18px;font-size:14px;font-weight:700;color:#536a82;cursor:pointer}.more-details>summary:hover{color:#235ed5}.more-details>.surface,.more-details>.phase-linkage{border:0;margin:0}.more-details:not([open])>*:not(summary){display:none!important}.demo-path{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:0 0 16px}.demo-path>span{font-size:13px;color:#62758b;margin-right:6px}.demo-path button{background:white;border:1px solid #cddced;color:#284f7c;border-radius:8px;padding:8px 14px;font-size:14px;font-weight:700}.demo-path>b{margin-left:auto;font-size:13px;color:#805625;background:#fff3dc;padding:6px 12px;border-radius:7px}.decision-grid{grid-template-columns:250px minmax(380px,1fr) 310px;gap:18px;align-items:start}.scenario-panel,.priority-panel,.map-panel{padding:20px}.section-head h2{font-size:21px;color:#193553}.section-head p,.section-head small{font-size:14px;color:#5c7087}.section-head span{color:#526881}.scenario-panel label,.scenario-panel legend{font-size:14px;color:#38536f}.scenario-panel select,.scenario-panel input,input,select,textarea{background:#f8faff;color:#183652;border:1px solid #cdd9e8;border-radius:8px;min-height:44px;padding:9px 12px}.quick-budgets button,.layer-tabs button{background:#f1f5fa;color:#365370;border:1px solid #dce5f0;font-size:14px}.quick-budgets button.active,.layer-tabs button.active{color:#fff;background:#235ed5;border-color:#235ed5}.budget-field b{color:#284c71}.scenario-panel fieldset{border-color:#dbe4ef}.kpi-strip{gap:16px;margin:8px 0 20px}.kpi-strip article{background:white;border:1px solid #dae4f1;padding:18px 22px;border-radius:14px}.kpi-strip strong{font-size:30px;color:#174fbc}.kpi-strip span,.kpi-strip small{color:#526881}.kpi-strip article:last-child{display:none}.kpi-strip{grid-template-columns:repeat(3,1fr)}.map-stage{background:#f7faff;border-radius:12px}.map-stage>svg{max-height:490px}.map-note,.map-legend{color:#405b77;font-size:12px}.map-tooltip{background:white;color:#193553;border-color:#dce5f0}.ranking-list li,.ranking-list button{background:#f8faff;color:#193553;border-color:#dae4ef}.ranking-list strong,.ranking-list b{color:#163453}.ranking-list small{color:#536b85}.ranking-list li.active{background:#eaf1ff;border-color:#4f7ede}.cost-card,.score-bars,.detail-body,.score-bridge{background:#f7faff;color:#18344f}.detail-head h2{color:#193553}.detail-body dd,.detail-head p{color:#365370}.score-bars i{background:#e0e8f3}.score-bars em{background:#2969dc}.score-bridge{border-color:#d2dfee}.evidence-warning{background:#fff7e9;color:#6e5127}.portfolio-title h1,.page-title h1{color:#173657}.allocation-summary article{background:white;border:1px solid #dce5f0}.allocation-summary strong{color:#225ec8}.selected-row{color:#193553;border-color:#dce5f0}.selected-row small{color:#576c84}.selected-row strong{color:#225ec8}.alternative-grid button{background:#f6f9fd;color:#254361;border-color:#dce5f0}.alternative-grid button.active{background:#e9f1ff;border-color:#4778d7}.audit-grid article{background:#f6f9fd;color:#244360;border-color:#dce5f0}.audit-grid article.ok strong{color:#087858}.audit-grid article.warn strong{color:#91600b}.phase-one-workspace{grid-template-columns:1fr}.phase-one-workspace>details{display:none}.mode-switch{padding:12px 16px}.mode-switch p{display:none}.mode-switch button{background:#edf3fc;color:#294f77}.mode-switch button.active{background:#235ed5;color:#fff}.mode-banner{font-size:14px;background:#eaf1ff;color:#284c73;border:0}.mode-banner.demo{background:#fff3df;color:#805721}.mode-banner span{font-size:13px}.rapid-panel li{background:#f7faff;color:#173553;border-color:#dce5f0}.rapid-panel li small{color:#536b85}.data-toolbar,.data-actions{background:#fff;color:#284c73}.data-toolbar b{font-size:13px}.table-wrap{overflow:auto}table{color:#284360}thead th{background:#edf3fb;color:#365475;font-size:13px}tbody td{background:white;border-color:#e4ebf4;font-size:14px}tbody tr:hover td{background:#f0f5ff}.table-foot{background:#f7faff;color:#526b86;font-size:13px}.case-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.case-toolbar>strong{font-size:14px;color:#8b5d18;margin-right:auto}.case-context{display:flex;gap:24px;flex-wrap:wrap;background:#eaf1ff;border-radius:12px;padding:16px 24px;margin-bottom:20px;color:#254972}.road-compare{display:grid;grid-template-columns:1fr 1fr;gap:22px}.road-card{padding:24px}.road-card>span{font-size:13px;color:#64758b}.road-card h2{margin:2px 0 14px;font-size:26px}.road-card svg{width:100%;max-height:180px}.road-scores{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:15px}.road-scores span{display:block;font-size:15px;color:#526881}.road-scores strong{font-size:36px;color:#235ed5}.score-change{margin-top:22px;padding:24px}.score-change h2{margin:0 0 20px;font-size:23px}.score-equation{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.score-equation span{display:block;color:#536b85;font-size:14px}.score-equation b{font-size:36px;color:#225ec8}.score-equation i{font-size:28px;font-style:normal;color:#91a3ba}.score-equation .rank-change{border-left:1px solid #dce5f0;padding-left:28px}.rank-change b{font-size:28px}.reason-chips{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.reason-chips span{background:#edf3fd;color:#30577d;border-radius:8px;padding:7px 12px;font-size:14px}.score-change small{color:#687d92}.case-empty{padding:32px}.case-empty p{color:#536b85}.case-empty .road-compare>div{text-align:center}.case-empty svg{width:100%}.analysis-layout{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(460px,1.3fr);gap:24px;align-items:start}.analysis-chat{padding:24px;position:sticky;top:110px}.chat-title{display:flex;justify-content:space-between;align-items:center}.chat-title h2{font-size:22px;margin:0}.chat-title span{font-size:12px;color:#61758b}.prompt-chips{padding:18px 0;display:flex;flex-wrap:wrap;gap:8px}.prompt-chips button{background:#eef4ff;color:#2356ab;border:1px solid #d6e3f7;border-radius:8px;font-size:13px;padding:9px 12px}.chat-log{height:360px;overflow:auto;padding:0 4px 16px;background:transparent}.chat-log .bot,.chat-log .user{background:#f2f6fc;color:#243f60;border:0;border-radius:12px;padding:16px;margin:12px 0}.chat-log .user{background:#235ed5;color:white;margin-left:30px}.chat-log .bot b{color:#1e55b8}.chat-log .bot p{white-space:pre-wrap;font-size:16px;line-height:1.85;margin:8px 0}.chat-log small{font-size:12px;color:#657a90}.chat-log .fallback{background:#fff5df}.chat-log .fallback b{color:#805b1d}#chatForm{padding:16px 0 0;border-top:1px solid #dce5f0;background:none}#chatForm textarea{width:100%;min-height:90px;font-size:16px;background:#f8faff;color:#193553}#chatForm>div{display:flex;justify-content:space-between;align-items:center;margin-top:10px}#chatForm small{color:#5d738c;font-size:12px}button:disabled{opacity:.55;cursor:wait}.visual-panel{padding:24px}.visual-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.visual-head h2{margin:0;font-size:22px}.visual-head span{font-size:12px;color:#8c631d;background:#fff5df;border-radius:6px;padding:5px 8px}.visual-filters{display:flex;gap:16px;margin:20px 0}.visual-filters label{font-size:13px;color:#536c88;flex:1}.visual-filters select{display:block;width:100%;margin-top:6px}.visual-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.visual-metrics>div{padding:15px;background:#eef4ff;border-radius:10px}.visual-metrics span{font-size:12px;color:#536d8a;display:block}.visual-metrics strong{font-size:25px;color:#225ec8}.visual-metrics strong small{font-size:14px;margin-left:4px}.visual-map-rank{display:grid;grid-template-columns:1fr 1.35fr;gap:16px;margin:20px 0}.visual-map-rank svg{width:100%;max-height:340px;align-self:center}.visual-map-rank h3,.allocation-bars h3{font-size:16px;color:#284966;margin:0 0 12px}.visual-rank{display:flex;width:100%;gap:10px;text-align:left;background:none;border:0;border-bottom:1px solid #e7edf5;padding:12px 0;color:#244465;align-items:center}.visual-rank>span{color:#7a8ca3;font-size:14px}.visual-rank>div{flex:1;min-width:0}.visual-rank b{font-size:14px}.visual-rank small{font-size:11px;color:#637a94}.visual-rank>strong{font-size:20px;color:#235ed5}.bar-track{height:8px;background:#e2eaf5;border-radius:10px;overflow:hidden;margin:7px 0}.bar-track i{display:block;height:100%;background:#3474df;border-radius:10px}.allocation-bars>div{display:grid;grid-template-columns:40px 1fr 68px;gap:12px;align-items:center;margin:10px 0;font-size:13px}.allocation-bars b{text-align:right}.allocation-bars h3 small{font-size:11px;font-weight:400;color:#657a90}.quiet-note{font-size:12px;color:#657a90}.ai-fab{background:#235ed5;color:#fff;border-color:#235ed5}.ai-fab span{color:#fff;background:#487ce0}footer{background:#eef3f9;color:#61758b;border-color:#dce5f0}dialog{background:white;color:#193553;border:1px solid #dce5f0}dialog label{color:#355574}dialog .dialog-head{background:#f1f6fc;color:#193553}.presenting .page{max-width:1800px}.presenting .more-details:not([open]),.presenting footer{display:none}.presenting .nav-tab{font-size:17px}.presenting .road-scores strong,.presenting .score-equation b{font-size:44px}.presenting .chat-log .bot p{font-size:18px}.presenting .visual-rank b{font-size:16px}
@media(max-width:1200px){.decision-grid{grid-template-columns:230px 1fr}.priority-panel{grid-column:1/-1}.topbar nav{order:3;width:100%;margin:0}.analysis-chat{position:static}.analysis-layout{grid-template-columns:1fr 1.2fr}.visual-map-rank{grid-template-columns:1fr}.visual-map-rank svg{max-height:220px}.header-actions{margin-left:auto}}
@media(max-width:760px){.page{padding:18px 16px 40px}.brand small{display:none}.topbar{gap:8px}.topbar nav{gap:0}.nav-tab{font-size:13px;padding:8px 10px}.header-actions button{font-size:12px;padding:6px 10px}.decision-grid,.analysis-layout,.road-compare{grid-template-columns:1fr}.priority-panel{grid-column:auto}.kpi-strip{grid-template-columns:1fr 1fr}.kpi-strip article:nth-child(3){display:none}.kpi-strip strong{font-size:25px}.visual-metrics{gap:6px}.visual-metrics>div{padding:10px}.visual-metrics strong{font-size:21px}.visual-map-rank{grid-template-columns:1fr}.score-equation{gap:10px}.score-equation b{font-size:27px}.score-equation .rank-change{padding-left:0;border:0;width:100%}.case-context{gap:10px;font-size:13px}.demo-path>b{margin-left:0}.phase-intro h1,.view-heading h1{font-size:26px}.analysis-chat,.visual-panel{padding:18px}.chat-title{display:block}.chat-log{height:310px}.ai-fab{bottom:18px;right:18px}.data-toolbar{flex-wrap:wrap}}
/* Final readability corrections after checking the deployed screen. */
.priority-list{display:block;max-height:510px;overflow:auto}.priority-list li{padding:16px 10px;grid-template-columns:27px minmax(0,1fr) 48px;gap:9px;background:#fff;border-color:#e3ebf5}.priority-list li:hover,.priority-list li.active{background:#eaf1ff}.priority-list b{font-size:15px;line-height:1.55;color:#173656}.priority-list small{font-size:12px;line-height:1.6;color:#536c85}.priority-list .rank{background:#edf3fc;color:#345c8b;font-size:13px}.priority-list li>strong{font-size:20px;color:#215dc6}.priority-list li>strong em{font-size:11px;color:#5b718a}.priority-columns{font-size:12px;color:#5e738b}.scenario-panel .section-head{display:block}.scenario-panel .section-head h2{white-space:nowrap}.scenario-panel #scenarioDataState{display:none}.scenario-panel .section-head>div>span{display:none}.icon-btn{background:#edf3fc;color:#225ec8;border-color:#d6e3f7}.layer-tabs{background:#edf3fb;padding:6px;border-radius:10px}.map-stage{background:#f7faff}.region-label{fill:#193652;font-size:18px;text-shadow:0 1px 2px #fff,0 -1px 2px #fff}.infra-icon{font-size:15px}.region-shape.is-funded{filter:none;stroke:#225ed5;stroke-width:2.5}.pending-label{fill:#5a6f88;font-size:14px}.phase-intro{padding-bottom:12px}.phase-intro h1{font-size:30px}.demo-path{padding-bottom:8px}.allocation-summary span,.allocation-summary small{font-size:14px}.allocation-summary strong{font-size:24px}.selected-row b{font-size:16px}.selected-row small{font-size:13px}.selected-row strong{font-size:20px}.alternative-grid button span{font-size:16px}.alternative-grid button b{font-size:19px}.alternative-grid button small{font-size:13px}.audit-grid article p{font-size:14px}.source-state.used{background:#e5f4ed;color:#146343}.source-state.scenario{background:#fff0d7;color:#7b5418}.provenance-main h3{color:#193652}.provenance-main p,.provenance-main dd{color:#425d78}.source-ledger,.source-status-note,.source-boundary,.field-lineage{background:#fff;color:#284864}.formula-grid code{color:#174fbc;background:#edf3fc}.formula-grid p,.formula-grid dd,.principles p,.limitations p{color:#48617c}.principles article{background:#fff;border:1px solid #dce5f0}.principles b{color:#24496f}.status.yes{background:#e6f4ee;color:#167451}.status.no{background:#eff3f9;color:#526881}.cost-card strong{color:#225ec8}.mode-switch .active{color:#fff}.rapid-panel li{font-size:15px}.rapid-panel li small{font-size:12px}.rapid-panel li strong{font-size:21px}.table-panel th:nth-child(1),.table-panel td:nth-child(1),.table-panel th:nth-child(8),.table-panel td:nth-child(8),.table-panel th:nth-child(11),.table-panel td:nth-child(11),.table-panel th:nth-child(12),.table-panel td:nth-child(12){display:none}

/* Everyday workflows, with question-driven comparison. */
.data-status {display:flex;justify-content:flex-end;margin:0 0 12px;color:#53647b;font-size:13px}
.comparison-result,#roadComparison:not(:empty){margin-top:24px;padding-top:22px;border-top:1px solid #dae3ee}
#roadComparison h3{font-size:19px;color:#173154;margin:0 0 16px}
#roadComparison .road-card{padding:16px;box-shadow:none}
#roadComparison .road-card h2{font-size:20px}
#roadComparison .road-scores strong{font-size:25px}
#roadComparison .score-change{padding:16px;margin-top:16px}
#roadComparison .score-change h2{font-size:18px}
#roadComparison .score-equation{flex-wrap:wrap;gap:16px}
#roadComparison .score-equation b{font-size:24px}
#roadComparison p,#roadComparison small{line-height:1.7}
#roadComparison small{display:block;color:#63748a;margin-top:10px}
.connection-error{font-size:13px;color:#93451f}

/* Empty state and question-specific output. */
#analysisView [hidden]{display:none!important}
.analysis-layout.is-empty{grid-template-columns:minmax(0,720px);justify-content:center}
.analysis-layout.is-empty .analysis-chat{position:static}
.analysis-layout.is-empty .chat-log:empty{height:36px;min-height:0}
.visual-question{font-size:15px;line-height:1.6;color:#284966;background:#f1f5fb;padding:12px 14px;border-radius:8px;margin:16px 0}
.result-notice{line-height:1.7;padding:24px 0;color:#526881}
.chat-title #clearAnalysis{font-size:13px;min-height:36px;padding:5px 12px}
#analysisView .chat-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
#analysisView .prompt-chips button{font-size:14px;line-height:1.5;text-align:left}
#analysisView .visual-rank small{font-size:13px}
#analysisView .visual-metrics span{font-size:14px}
@media(max-width:1000px){.analysis-layout{grid-template-columns:1fr}.analysis-chat{position:static}.chat-log:empty{height:36px}.chat-log{height:auto;max-height:420px}.visual-map-rank{grid-template-columns:1fr 1.2fr}}
@media(max-width:600px){.visual-map-rank{grid-template-columns:1fr}#analysisView .view-heading h1{font-size:24px}.visual-metrics{grid-template-columns:1fr}.visual-metrics>div{display:flex;justify-content:space-between;align-items:center}.visual-metrics strong{font-size:22px}.chat-title h2{font-size:19px}.analysis-chat,.visual-panel{padding:18px}#analysisView .prompt-chips button{width:100%}}
/* Source provenance: remove residual dark surfaces and restore readable contrast. */
.source-kpis article{background:#fff;border-color:#d4dfec;padding:18px}
.source-kpis span,.source-kpis small{color:#52647a;font-size:14px;line-height:1.6}
.source-kpis strong{color:#205bc4;font-size:28px}
.source-page-heading p,.page-heading p{color:#52647a;font-size:15px;line-height:1.7}
.provenance-main dl div{background:#f2f6fc;border-color:#d5e0ed;padding:12px 14px}
.provenance-main dt{color:#435c78;font-size:13px;font-weight:700}
.provenance-main dd{color:#253e59;font-size:14px;line-height:1.7;margin-top:5px}
.provenance-main>p{color:#344f6b;font-size:15px;line-height:1.7}
.provenance-main h3{font-size:18px;color:#193553}
.source-grade.grade-b,.source-state.used{background:#e2f3ed;color:#116348}
.source-grade.grade-c{background:#e7effa;color:#255585}
.source-grade.grade-d,.source-state.scenario{background:#fff0d6;color:#795017}
.source-state{font-size:12px!important}
.provenance-list>article>a,.source-boundary a{color:#205bc4;font-size:14px}
.provenance-list>article>em{color:#52647a;font-size:13px}
.field-lineage th,.regional-raw-data th{background:#eaf0f8;color:#26415e}
.field-lineage td,.regional-raw-data td,.field-lineage td:last-child{color:#304a65;background:#fff}
.field-lineage th,.field-lineage td,.regional-raw-data th,.regional-raw-data td{font-size:14px;padding:12px}
.source-boundary{background:#fff8e9;border-color:#e6d8b8}
.source-boundary p{color:#4c4638;font-size:14px}
.source-boundary span{color:#795017;font-size:13px}
.outline-link{background:#f0f5fc;border-color:#ccd9e9;color:#244c7a}
.custom-source-card{background:#f4f7fc;color:#28435f;border-color:#d5dfeb}
.custom-source-empty{color:#52647a;border-color:#bdcddd;font-size:14px}
@media(max-width:700px){.provenance-list>article{gap:10px;padding:18px 14px}.provenance-main>div:first-child{flex-wrap:wrap}.source-kpis article{padding:14px}.source-kpis span,.source-kpis small{font-size:13px}}

/* Shared readable palette for every legacy page, disclosure and dialog. */
:root{color-scheme:light;--orange:#875008;--red:#b83c3c;--yellow:#726014;--green:#19755d;--neutral:#405a74}
.budget-field{background:#f5f8fc;color:#253e59}.budget-field b{color:#34516b}
.map-legend{background:rgba(255,255,255,.97);color:#344f6b}
.formula-grid code{background:#edf3fb;color:#214f89;font-size:15px;line-height:1.7}
.formula-grid dl div,.principles article,.phase-card,.phase-fact-grid article,.core-result-grid article{color:#253e59;border-color:#d4dfeb}
.formula-grid p,.formula-grid dd,.principles p,.phase-card p,.core-result-grid small{color:#465e78;font-size:14px;line-height:1.7}
.edit-grid input,.edit-grid select,.edit-grid textarea{background:#f5f8fc;color:#253e59;border-color:#c7d6e7;font-size:16px}
.dialog-head h2,.dialog-head p,.dialog-note{color:#344f6b}
.table-panel tbody tr:hover{background:#eaf1fc}
.mode-switch button.active,.core-mode-buttons button.active{background:#e5eeff;color:#204f9b}
.status.yes,.data-tag.verified{background:#e1f2eb;color:#146148}
.status.no,.data-tag{background:#eaf0f7;color:#415b75}
.source-status-note,.ai-notice{background:#fff6e6;color:#765019;border-color:#dfcda9}
.source-subhead,.core-handoff-notice,.core-results-head,.phase-actions{background:#eef4fb;color:#304a65}
.timeline-track{background:#e8eef7}.timeline-track span{color:#183c50;font-weight:700}
.phase-linkage,.phase-two-linkage{background:#eef4fb;color:#304a65}
.linkage-route span,.linkage-route strong{background:#e6eef9;color:#294d78;border-color:#cddbea}
.custom-source-card button{background:#fff3e7;color:#795018}
.assumption-chip{background:#eaf1fc;color:#2757a0;border-color:#cbdcf2}

/* User-requested permanent side-by-side question and visual panels. */
#analysisView{overflow-x:auto}
#analysisView .analysis-layout,#analysisView .analysis-layout.is-empty{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(360px,1.15fr);gap:22px;min-width:690px;justify-content:normal;align-items:stretch}
#analysisView .analysis-chat{position:static;min-height:540px;display:flex;flex-direction:column}
#analysisView .chat-log{flex:1;min-height:150px;max-height:560px}
#analysisView .chat-log:empty{height:auto;min-height:150px}
#analysisView .visual-panel{min-height:540px;background:#fff}
#analysisView .visual-panel.is-blank>*{display:none!important}
#analysisView .visual-map-rank{grid-template-columns:1fr}
#analysisView .visual-map-rank svg{max-height:260px}
#analysisView .visual-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
#analysisView .visual-metrics>div{display:block;padding:12px}
#analysisView .visual-metrics strong{font-size:22px}
#analysisView .chat-log .bot p strong{font-weight:750;color:inherit}
@media(max-width:760px){#analysisView .analysis-layout,#analysisView .analysis-layout.is-empty{gap:14px}#analysisView .visual-metrics{grid-template-columns:1fr}#analysisView .visual-metrics>div{display:flex;justify-content:space-between;align-items:center}}

#policyReport{display:none!important}
@media print{main>.page{display:none!important}main>#policyReport.page{display:block!important;padding:0;font-size:11pt;color:#182b45}#policyReport h1{font-size:22pt}#policyReport h2{font-size:15pt;margin:20px 0 10px}#policyReport p{line-height:1.6}#policyReport table{width:100%;border-collapse:collapse}#policyReport th,#policyReport td{border:1px solid #adb9c7;padding:8px;text-align:left}#policyReport tr{break-inside:avoid}#policyReport h2{break-after:avoid}}

.coverage-note{padding:14px 18px;margin:0 0 12px;background:#eef4ff;color:#203b61;font-size:14px;line-height:1.6}
@media(max-width:800px){#portfolio .portfolio-grid{grid-template-columns:1fr}#allocationSummary{grid-template-columns:repeat(2,minmax(0,1fr))}#portfolio .surface{min-width:0}}

.search-option{display:flex;gap:8px;align-items:center;margin-bottom:10px;font-size:14px;color:#193655}.search-option small{color:#53677e}.search-option input{width:18px;height:18px}.ai-citation{color:#1856b6;text-decoration:underline;font-size:.9em}.ai-sources{border-top:1px solid #dbe4ef;padding-top:12px;margin-top:14px}.ai-sources a{display:block;color:#1856b6;overflow-wrap:anywhere;padding:5px 0;font-size:14px}

.policy-option button{width:100%;text-align:left}.policy-option details,.policy-note{padding:10px 12px;font-size:13px;line-height:1.6;color:#334155}.policy-option summary{cursor:pointer;font-weight:700}.policy-option details p{margin:8px 0}.ai-sources small{display:block;color:#475569;margin-bottom:12px}

#chatLog .bot>small{display:block;margin-top:8px;line-height:1.5}

.rule-comparison{padding:22px;margin-top:24px}.rule-comparison summary{font-weight:700;cursor:pointer}.rule-comparison p{line-height:1.7;color:#334155}.rule-comparison table{width:100%;text-align:left}.rule-comparison td,.rule-comparison th{padding:12px;border-bottom:1px solid #e2e8f0}
