:root{--navy:#12243b;--navy-soft:#213750;--blue:#2864e8;--blue-soft:#edf3ff;--teal:#149387;--ink:#1c2d42;--muted:#758294;--line:#e4e9f0;--bg:#f5f7fa;--green:#277b5a;--red:#bc5860;--radius:10px;--shadow:0 2px 5px #12243b03;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button{color:inherit}button svg{flex-shrink:0}a{color:var(--blue);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.85px;font-weight:650;margin-top:8px}h2{font-size:17px;letter-spacing:-.3px;font-weight:650}h3{font-size:14px;font-weight:600}button{border:0;background:none}button:hover{filter:brightness(.97)}.skip{position:absolute;left:240px;top:-100px;background:white;padding:12px;z-index:100}.skip:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:222px;background:var(--navy);color:#bdcadd;z-index:30;padding:34px 16px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:white;margin:0 15px 48px;font-size:31px;line-height:1.1;font-weight:700;letter-spacing:-1.2px}.brand-symbol{width:36px;height:40px;border-radius:9px;background:var(--blue);color:white;font-family:Georgia,serif;font-size:35px;font-style:italic;text-align:center}.brand-sub{display:block;font-size:9px;letter-spacing:1.8px;font-weight:500;margin-top:8px;color:#aec0d8}.nav-label{font-size:10px;letter-spacing:1.6px;color:#8597ae;margin:0 14px 17px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:14px 13px;border-radius:7px;margin:5px 0;color:#b7c5d7;font-size:13px;text-align:left;line-height:1.4}.nav-item svg{width:18px;height:18px}.nav-item.active{background:#294766;color:white;box-shadow:inset 3px 0 #70a5ff}.nav-item:hover{background:var(--navy-soft)}.sidebar-bottom{margin-top:auto}.workspace-mark{display:flex;gap:10px;border-top:1px solid #314158;padding:20px 7px;color:#e9eff7;font-size:13px}.workspace-mark>span{display:grid;place-items:center;border:1px solid #526278;width:33px;height:33px;border-radius:8px}.workspace-mark small{display:block;color:#94a7be;font-size:11px;margin-top:5px}.demo-note{font-size:11px;display:flex;justify-content:space-between;color:#9fb1c8;width:100%;padding:7px}.workspace{margin-left:222px}.topbar{height:69px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;padding:0 32px;gap:22px}.breadcrumb{font-size:12px;color:var(--muted);flex:1}.breadcrumb span{margin:0 12px;color:#bac2ce}.breadcrumb strong{font-weight:500;color:var(--ink)}.delivery{font-size:11px;display:flex;gap:8px;align-items:center;color:#5b697d}.delivery>span:last-child{margin-left:6px;border-left:1px solid var(--line);padding-left:13px;color:var(--muted)}.delivery-dot{width:6px;height:6px;border-radius:50%;background:var(--teal)}.avatar{width:32px;height:32px;border-radius:50%;background:#eaf0f8;color:#405a7b;font-size:10px;font-weight:650}main{padding:28px 32px 0;max-width:2000px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1.65px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:10px}.demo-tag{font-size:9px;letter-spacing:.5px;padding:3px 5px;background:#e8eef7;color:#5b718f;border-radius:3px}.heading-actions{display:flex;align-items:center;gap:14px}.target-toggle{background:#e9edf3;padding:4px;border-radius:7px;display:flex;gap:3px}.target-toggle button{padding:8px 19px;font-size:12px;border-radius:5px;color:#6a788b}.target-toggle .active{background:white;box-shadow:0 1px 4px #17243916;color:var(--blue);font-weight:600}.button{background:white;border:1px solid var(--line);border-radius:6px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;white-space:nowrap}.button.primary{background:var(--blue);color:white;border-color:var(--blue)}.button.link{border:0;background:none;color:var(--muted)}.button.small{font-size:11px;padding:6px 9px}.export>span{font-size:18px;line-height:.6}.filter-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:17px 18px;display:grid;grid-template-columns:repeat(4,minmax(100px,1fr)) auto;gap:14px;align-items:end;box-shadow:var(--shadow)}.filter-field{min-width:0}.filter-field label,.field-label{font-size:11px;font-weight:500;display:block;color:#69778a;margin-bottom:8px}.filter-field input,.filter-field select,.input{width:100%;height:35px;border:1px solid var(--line);background:#fff;border-radius:5px;padding:7px 10px;font-size:12px;color:var(--ink);min-width:0}.filter-field input::placeholder{color:#77869a}.filter-actions{display:flex;align-items:center;gap:5px}.extra-filters{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:14px;grid-column:1/-1;border-top:1px solid var(--line);padding-top:16px;margin-top:3px}.active-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:25px;padding:8px 0}.chip{background:var(--blue-soft);border:1px solid #dce7fe;border-radius:5px;padding:4px 8px;font-size:11px;color:#3c69b7}.chip span{margin-left:8px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);min-width:0;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px}.panel-head small,.muted{color:var(--muted);font-size:11px}.panel-head .count{background:#f0f3f8;border-radius:5px;padding:4px 7px;font-size:10px;color:#63758a;margin-left:7px}.evaluation-grid{display:grid;grid-template-columns:259px minmax(0,1fr);gap:20px}.series-panel{display:flex;flex-direction:column;max-height:490px}.series-panel .panel-head{padding:18px 16px 14px}.search-wrap{position:relative;margin:0 14px 10px}.search-wrap input{padding-left:31px;background:#f9fafc}.search-wrap svg{position:absolute;top:10px;left:10px;width:14px;height:14px;color:#8a97a8}.series-list{overflow-y:auto;flex:1;min-height:0;padding:0 8px 6px}.series-row{width:100%;text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f5;border-radius:5px;display:block}.series-row.active{background:var(--blue-soft);box-shadow:inset 3px 0 var(--blue)}.series-row:hover{background:#f6f8fc}.series-row .customer{font-size:12px;font-weight:550;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}.series-row .series-code{font-size:10px;color:#8793a3;display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#77849a;margin-top:9px}.tag{display:inline-flex;align-items:center;font-size:10px;font-weight:550;line-height:1.3;border-radius:4px;padding:3px 6px;background:#eef2f7;color:#5a708a}.confidence{border:0;cursor:pointer}.confidence.High{color:#31765b;background:#ebf5ef}.confidence.Medium{color:#9a762d;background:#fbf5e6}.confidence.Low{color:#b06357;background:#fcf0ed}.confidence:before{content:"";width:4px;height:4px;background:currentColor;border-radius:50%;margin-right:4px}.series-foot{padding:10px 15px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.analysis-column{min-width:0}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.kpi{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:18px 17px;min-width:0}.kpi-label{font-size:11px;color:#728196;display:flex;justify-content:space-between;gap:5px;margin-bottom:13px}.kpi-label button{color:#8b98aa;font-size:11px;padding:0}.kpi-value{font-size:27px;font-weight:600;letter-spacing:-1px;white-space:nowrap;font-variant-numeric:tabular-nums}.kpi-unit{font-size:13px;font-weight:400;color:#8390a1;margin-left:4px;letter-spacing:0}.kpi-bottom{font-size:10px;color:#8291a4;margin-top:9px;display:flex;align-items:center;gap:5px}.kpi-bottom.good{color:#3b8267}.chart-panel{min-height:337px}.chart-panel .panel-head{padding-bottom:5px}.chart-legend{display:flex;align-items:center;gap:16px;font-size:10px;color:#6c7b8e}.legend-line{display:inline-block;height:2px;width:18px;background:var(--blue);margin-right:6px;vertical-align:middle}.legend-line.teal{background:var(--teal)}.chart{position:relative;width:100%;padding:8px 14px 0}.chart svg{width:100%;display:block;overflow:visible}.chart text{font-family:inherit;font-size:10px;fill:#8b97a7}.chart .gridline{stroke:#edf0f5;stroke-width:1}.chart .curve{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.chart-caption{display:flex;justify-content:space-between;font-size:10px;color:#8593a4;padding:5px 22px 16px}.chart-tooltip{position:fixed;z-index:80;pointer-events:none;background:var(--navy);color:white;border-radius:7px;padding:12px 14px;box-shadow:0 6px 20px #10243b22;font-size:12px;line-height:1.85;min-width:160px}.chart-tooltip strong{display:block;margin-bottom:3px}.chart-tooltip span{color:#adbed5;margin-right:15px}.table-panel{margin-top:20px}.table-toolbar{display:flex;align-items:center;gap:12px}.table-toolbar .input{width:200px;height:31px;font-size:11px}.table-scroll{overflow:auto;max-height:465px;position:relative}.data-table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:12px;font-variant-numeric:tabular-nums}.data-table th{font-size:10px;color:#7a8798;font-weight:550;background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap;position:sticky;top:0;z-index:3;padding:12px 14px}.data-table thead tr:nth-child(2) th{top:37px;font-size:10px}.data-table td{padding:13px 14px;border-bottom:1px solid #edf0f5;white-space:nowrap;background:white}.data-table tr:hover td{background:#fafbfd}.data-table tr.selected td{background:#f0f5ff}.data-table .sticky-col{position:sticky;left:0;z-index:2;border-right:1px solid var(--line);min-width:168px;max-width:230px}.data-table th.sticky-col{z-index:6}.data-table .month{color:#5f7594;text-align:center;background:#f0f4fa;letter-spacing:.6px;border-left:1px solid var(--line)}.data-table .numeric{text-align:right}.data-table .forecast-cell{color:#456fa8;background:#fbfdff;min-width:85px}.data-table .clickable{padding:0;font-size:12px;color:#366abc;text-align:left}.cell-sub{display:block;font-size:10px;color:#8793a3;margin-top:5px;max-width:200px;overflow:hidden;text-overflow:ellipsis}.model-button{padding:0;color:#496582;font-size:11px}.pagination{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;font-size:11px;color:#8190a3;gap:12px}.pagination>div{display:flex;gap:6px;align-items:center}.page-button{border:1px solid var(--line);border-radius:5px;height:26px;min-width:26px;font-size:11px;background:white}.page-button.current{background:var(--blue-soft);border-color:#cbdcfc;color:var(--blue)}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin:26px 0 18px}.tabs button{padding:0 0 12px;color:#77869a;font-size:12px;border-bottom:2px solid transparent}.tabs button.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:600}.section-meta{display:flex;gap:12px;align-items:center}.section-meta select{border:1px solid var(--line);border-radius:5px;background:white;color:#6c7c92;padding:7px;font-size:11px}.empty{padding:65px 20px;text-align:center;color:#8290a3;line-height:1.9}.empty strong{display:block;color:#49607a;font-weight:500}.page-footer{display:flex;justify-content:space-between;padding:22px 0;color:#98a2b1;font-size:9px;letter-spacing:.8px}.loading{padding:70px;text-align:center;color:#7d8a9b}.spinner{display:inline-block;width:17px;height:17px;border:2px solid #dce5f6;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite;vertical-align:middle;margin-right:10px}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:0;border-radius:12px;padding:0;box-shadow:0 25px 80px #11203338;max-height:90vh;width:580px;max-width:94vw;color:var(--ink)}dialog::backdrop{background:#11243b66;backdrop-filter:blur(2px)}dialog.drawer{margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:620px;border-radius:12px 0 0 12px}.dialog-head{position:sticky;top:0;background:white;border-bottom:1px solid var(--line);padding:23px 26px;display:flex;align-items:flex-start;justify-content:space-between;z-index:2}.dialog-head h2{font-size:20px;margin-top:5px}.dialog-head .close{font-size:25px;line-height:1;width:30px;height:30px;color:#8b97a7}.dialog-body{padding:24px 26px;font-size:13px;line-height:1.65}.dialog-body section+section{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.dialog-body h3{margin-bottom:14px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}.detail-grid dt{color:var(--muted);font-size:11px;margin-bottom:3px}.detail-grid dd{margin:0;font-size:12px;overflow-wrap:anywhere}.detail-grid dl{margin:0}.note{padding:12px 14px;border-radius:7px;background:#f4f7fc;color:#718299;font-size:11px;line-height:1.6;margin-top:16px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:7px;box-shadow:0 5px 15px #12243b20;background:var(--navy);color:white;z-index:100;font-size:12px}.leader-layout{display:grid;grid-template-columns:1fr;gap:20px}.bar-chart{padding:0 26px 25px}.bar-row{display:grid;grid-template-columns:110px 1fr 70px;gap:18px;align-items:center;margin:14px 0;font-size:12px}.bar-track{height:19px;background:#f6f8fc;border-radius:3px;overflow:hidden}.bar-fill{height:100%;background:#94b5ec;border-radius:3px;min-width:2px}.bar-row:first-child .bar-fill{background:var(--blue)}.bar-label{padding:0;text-align:left;font-size:12px}.bar-value{text-align:right;color:#657991;font-size:12px}.rank{color:#9aa7b8;width:35px;font-size:11px}.best{background:#f0f7f4!important;color:#357c5b}.portfolio-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px}.matrix-wrap{padding:8px 28px 26px;display:grid;grid-template-columns:24px repeat(3,minmax(0,1fr));gap:12px}.matrix-heading{text-align:center;font-size:12px;color:#79889b;padding:5px}.matrix-side{align-self:center;font-weight:600;color:#6d7c90}.matrix-cell{text-align:left;border:1px solid transparent;border-radius:8px;padding:18px;min-height:115px}.matrix-cell.selected{outline:2px solid var(--blue);outline-offset:3px}.matrix-cell b{font-size:19px;display:block;margin-bottom:14px}.matrix-cell span{font-size:12px;display:block}.matrix-cell small{display:block;font-size:10px;opacity:.8;margin-top:5px}.matrix-cell.AX{background:#e6f2eb;color:#42785c}.matrix-cell.AY,.matrix-cell.BX{background:#eff3e5;color:#6c7c43}.matrix-cell.AZ,.matrix-cell.BY,.matrix-cell.CX{background:#fbf4de;color:#9b813e}.matrix-cell.BZ,.matrix-cell.CY{background:#f9ebdc;color:#ab7a47}.matrix-cell.CZ{background:#f6e4e3;color:#a65f5a}.portfolio-aside{display:flex;flex-direction:column;gap:16px}.summary-body{padding:0 20px 18px}.summary-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f5;padding:13px 0;font-size:12px}.summary-row:last-child{border:0}.summary-row span{color:#7f8c9e}.transition{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:10px 0}.scenario-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px}.scenario-controls{padding:22px}.scenario-controls h2{margin-bottom:22px}.range-field{margin-top:23px}.range-label{display:flex;justify-content:space-between;font-size:12px;gap:10px;align-items:center}.range-label output{color:var(--blue);font-weight:600;background:var(--blue-soft);padding:4px 7px;border-radius:4px;font-size:11px}.range-field input[type=range]{width:100%;margin:16px 0 6px;accent-color:var(--blue);cursor:pointer}.range-ends{display:flex;justify-content:space-between;font-size:9px;color:#95a0af}.switch-row{margin:26px 0;display:flex;align-items:center;justify-content:space-between;font-size:12px}.switch-row input{accent-color:var(--blue);width:17px;height:17px}.scenario-controls select{font-size:12px}.scenario-controls .button{width:100%;margin-top:24px}.scenario-layout .kpi-value{font-size:25px}.heatmap-scroll{overflow:auto;padding:0 20px 20px}.heatmap{border-collapse:separate;border-spacing:4px;width:100%;font-size:10px}.heatmap td{padding:10px 8px;border-radius:4px;text-align:center;white-space:nowrap}.heatmap th{font-weight:500;color:#8a96a6;padding:8px;font-size:10px;white-space:nowrap}.heatmap .heat-label{text-align:left;background:white!important;max-width:180px;overflow:hidden;text-overflow:ellipsis}.mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:0 20px 20px}.mini-chart{border:1px solid var(--line);border-radius:7px;padding:13px;min-width:0}.mini-chart h3{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mini-chart .mini-stat{font-size:17px;margin:8px 0 0}.mini-chart svg{width:100%;height:90px}.hierarchy-path{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 22px 20px;color:#a0adbd;font-size:12px}.hierarchy-path button{font-size:12px;color:var(--blue);padding:3px}.node-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 22px 22px}.node{border:1px solid var(--line);border-radius:7px;padding:17px;text-align:left;background:white;min-width:0}.node strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node>span{display:block;font-size:20px;margin-top:13px;font-weight:500}.node small{font-size:10px;color:#8b97a8;display:block;margin-top:6px}.waterfall-row{display:grid;grid-template-columns:125px minmax(0,1fr) 85px;gap:10px;align-items:center;margin:10px 0;font-size:11px}.waterfall-track{position:relative;height:20px;background:#f6f8fb;border-radius:3px}.waterfall-block{position:absolute;top:3px;height:14px;border-radius:2px;background:#7a9cca}.waterfall-block.pos{background:#75b4a3}.waterfall-block.neg{background:#d89a91}.waterfall-row strong{text-align:right;font-size:11px;font-weight:500}.chat-shell{max-width:920px;margin:auto;min-height:620px;display:flex;flex-direction:column}.chat-intro{text-align:center;padding:42px 25px 25px}.assistant-mark{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 18px;background:var(--blue-soft);color:var(--blue);border:1px solid #dee7fa;border-radius:12px;font-size:24px}.chat-intro h2{font-size:22px}.chat-intro p{font-size:12px;color:#8995a5;margin-top:12px}.quick-prompts{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 32px 25px}.quick-prompts button{text-align:left;border:1px solid var(--line);padding:13px 16px;border-radius:7px;font-size:12px;line-height:1.5;background:#fff}.quick-prompts button:hover{background:var(--blue-soft)}.messages{flex:1;padding:0 32px;max-height:520px;overflow-y:auto}.message{margin:12px 0;max-width:90%;padding:14px 17px;border-radius:9px;font-size:13px;line-height:1.8;background:#f3f6fb}.message.user{margin-left:auto;background:#eaf1ff}.message strong{font-weight:600}.message ul{margin:7px 0;padding-left:18px}.chat-form{display:flex;align-items:center;gap:10px;margin:25px 30px;border:1px solid var(--line);border-radius:8px;padding:8px}.chat-form input{border:0;flex:1;padding:8px;min-width:0;font-size:12px}.chat-form button{background:var(--blue);color:white;border-radius:5px;padding:9px 15px;font-size:12px}.coverage{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.coverage>div{background:#f5f8fc;border-radius:7px;padding:16px}.coverage strong{display:block;font-size:22px;color:var(--blue)}.metric-formula{padding:12px;background:#f4f7fc;border-radius:6px;font-size:12px;margin:12px 0}.metric-formula code{white-space:normal;font-size:11px}.danger-text{color:var(--red)}
@media(min-width:1650px){.series-panel{max-height:560px}.chart-panel{min-height:400px}.chart svg{max-height:330px}.series-row{padding:15px 10px}}
@media(max-width:1200px){.sidebar{width:190px;padding:28px 10px}.workspace{margin-left:190px}main{padding:24px 22px 0}.topbar{padding:0 22px}.brand{margin-left:10px}.nav-item{font-size:12px;padding:12px 10px;gap:9px}.evaluation-grid{grid-template-columns:215px minmax(0,1fr);gap:14px}.kpis{gap:8px}.kpi{padding:15px 12px}.kpi-value{font-size:24px}.filter-panel{gap:10px;padding:14px}.filter-actions{flex-direction:column;gap:0}.filter-actions .button{padding:5px;font-size:10px}.heading-actions{gap:8px}.chart-legend{gap:9px}.portfolio-layout{grid-template-columns:minmax(0,1fr) 230px}.scenario-layout{grid-template-columns:230px minmax(0,1fr)}.scenario-layout .kpis{grid-template-columns:1fr 1fr}.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.sidebar{width:66px;padding:26px 7px}.brand{margin:0 8px 35px;gap:0}.brand>span:last-child,.nav-label,.nav-item span,.workspace-mark,.demo-note{display:none}.brand-symbol{min-width:34px}.nav-item{justify-content:center;padding:15px 0;margin:8px 0}.workspace{margin-left:66px}.filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-actions{flex-direction:row;grid-column:1/-1;justify-content:flex-end}.extra-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.evaluation-grid{grid-template-columns:210px minmax(0,1fr)}.kpis{grid-template-columns:1fr 1fr}.series-panel{max-height:580px}.page-heading{align-items:flex-start}.heading-actions{flex-direction:column;align-items:flex-end}.delivery{font-size:10px}.portfolio-layout{grid-template-columns:1fr}.portfolio-aside{display:grid;grid-template-columns:1fr 1fr}.scenario-layout{grid-template-columns:210px minmax(0,1fr)}.chart-panel .panel-head{flex-wrap:wrap}.node-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){main{padding:20px 14px 0}.topbar{padding:0 14px;height:55px}.delivery{display:none}.page-heading{gap:12px;margin-bottom:20px}h1{font-size:23px}.eyebrow{font-size:8px;letter-spacing:.8px}.export{display:none}.target-toggle button{padding:7px 10px;font-size:11px}.evaluation-grid{grid-template-columns:1fr}.series-panel{max-height:220px}.series-list{display:flex;overflow-x:auto;padding:0 7px 8px}.series-row{min-width:195px;width:195px;border:0;border-right:1px solid var(--line)}.series-foot{display:none}.series-panel .panel-head{padding:13px}.kpi-value{font-size:25px}.kpis{gap:10px}.panel-head{padding:17px}.panel-head h2{font-size:15px}.table-toolbar{gap:5px}.table-toolbar .input{width:120px}.table-toolbar .muted{display:none}.pagination{padding:12px;flex-wrap:wrap}.page-footer{font-size:8px;gap:15px}.scenario-layout{grid-template-columns:1fr}.scenario-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scenario-controls h2{grid-column:1/-1;margin:0}.range-field{margin:10px 0}.switch-row{margin:8px 0}.scenario-controls>.button{margin-top:0}.matrix-wrap{gap:7px;padding:0 12px 20px;grid-template-columns:15px repeat(3,minmax(0,1fr))}.matrix-cell{padding:11px;min-height:110px}.matrix-cell b{font-size:17px}.matrix-cell span{font-size:10px}.matrix-cell small{font-size:9px}.portfolio-aside{grid-template-columns:1fr}.mini-grid{grid-template-columns:1fr}.node-grid{grid-template-columns:1fr}.quick-prompts{grid-template-columns:1fr;padding:0 18px 20px}.chat-form{margin:18px}.messages{padding:0 18px}.chat-intro{padding:30px 18px 20px}.chat-intro h2{font-size:20px}.section-meta{gap:4px;flex-wrap:wrap}.section-meta select{max-width:120px}.detail-grid{gap:14px}.dialog-body,.dialog-head{padding:20px}.waterfall-row{grid-template-columns:100px minmax(0,1fr) 70px;gap:5px}.bar-row{grid-template-columns:90px 1fr 55px;gap:10px;font-size:11px}.bar-chart{padding:0 18px 20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}

/* Keep identifiers visible during horizontal forecasting-table scroll. */
@media(min-width:651px){.weekly-table .sticky-col{width:235px;min-width:235px;max-width:235px}.weekly-table tbody td:nth-child(2),.weekly-table thead tr:first-child th:nth-child(2){position:sticky;left:235px;z-index:2;min-width:125px;width:125px;max-width:125px;border-right:1px solid var(--line)}.weekly-table tbody td:nth-child(3),.weekly-table thead tr:first-child th:nth-child(3){position:sticky;left:360px;z-index:2;min-width:110px;width:110px;max-width:110px;border-right:1px solid var(--line)}.weekly-table thead tr:first-child th:nth-child(2),.weekly-table thead tr:first-child th:nth-child(3){z-index:5}}
@media(max-width:650px){.series-foot{display:flex}.series-panel{max-height:250px}}
.nav-item{font-size:14px}.filter-field label,.field-label{font-size:12px}.filter-field input,.filter-field select{font-size:13px}.data-table{font-size:13px}.series-row .customer{font-size:13px}.series-row .series-code{font-size:11px}.kpi-label{font-size:12px}.kpi-bottom{font-size:11px}.chart-legend{font-size:11px}.chart-caption{font-size:11px}.tabs button{font-size:13px}.data-table .clickable{font-size:12px}.model-button{font-size:12px}.detail-grid dd{font-size:13px}.chat-form input{font-size:14px}.quick-prompts button{font-size:14px}
@media(max-width:1200px){.nav-item{font-size:12px}.kpi-label{font-size:11px}}
/* Additive portfolio and model information surfaces; original layout retained. */
.model-info-card{margin:24px 7px 18px;padding:14px 12px;border:1px solid #395068;border-radius:8px;background:#1c3149;color:#d5e0ed;flex-shrink:0}.model-info-card h3{font-size:12px;color:#f0f5fc;margin-bottom:12px}.model-card-general dl{display:grid;grid-template-columns:53px 1fr;gap:8px 4px;margin:0;font-size:10px}.model-card-general dt{color:#c4d4e7;font-weight:550}.model-card-general dd{margin:0;color:#9fb3ca}.model-card-button{margin-top:13px;width:100%;border:1px solid #47617e;border-radius:5px;padding:7px;color:#d5e4f5;font-size:11px;background:#29425e}.model-card-selected{border-top:1px solid #395068;margin-top:12px;padding-top:12px;font-size:10px;line-height:1.6}.model-card-selected small{display:block;color:#91a8c3;font-size:9px;margin-top:7px}.model-card-selected strong{display:block;color:#e4edfa;font-size:12px}.model-card-selected span{display:block;color:#a7bed7;font-size:10px}.model-info-card:has(.model-card-selected) .model-card-general{display:none}.model-info-card:has(.model-card-selected) .model-card-selected{border:0;margin-top:0;padding-top:0}.sidebar{overflow-y:auto}.brand{flex-shrink:0}.sidebar-bottom{flex-shrink:0}.all-models{display:grid;grid-template-columns:1fr 1fr;gap:12px}.all-models article{border:1px solid var(--line);border-radius:7px;padding:14px;font-size:12px}.all-models article h3{color:var(--blue);margin-bottom:8px}.all-models article p{font-size:12px;margin:3px 0}.all-models article span{font-size:11px;color:var(--muted)}.feature-badge{background:#edf2fb;color:#4a6e9d;cursor:help;font-size:11px;font-weight:500}.feature-badge:hover{background:#e0eaf9}.chart-tooltip small{display:block;color:#9ab0cb;margin-top:5px;font-size:10px}.scatter-wrap{padding:0 20px;width:100%;height:405px}.scatter-wrap canvas{width:100%;height:100%;display:block}.scatter-legend{display:flex;flex-wrap:wrap;gap:20px;align-items:center;padding:15px 26px;font-size:12px;color:#718299}.scatter-legend span{display:flex;align-items:center;gap:7px}.scatter-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}.transition-axis{color:#77889e;font-size:11px;text-align:center;margin:0 20px 10px}.transition-scroll{overflow:auto;padding:0 24px 22px}.transition-matrix{border-collapse:separate;border-spacing:5px;width:100%;min-width:650px;font-size:12px}.transition-matrix th{color:#728399;font-weight:500;text-align:center;padding:7px;white-space:nowrap}.transition-matrix th:first-child{width:145px}.transition-matrix thead th:first-child{font-size:10px}.transition-cell{width:100%;min-width:44px;min-height:37px;border:1px solid transparent;border-radius:5px;font-size:12px;font-variant-numeric:tabular-nums}.transition-cell:disabled{opacity:1;cursor:default}.transition-cell:not(:disabled):hover{border-color:#7299cf}.transition-cell.selected{outline:2px solid var(--blue);outline-offset:1px}.transition-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:18px 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fbfcfe}.transition-summary span{display:block;color:#7c8ba0;font-size:11px;margin-bottom:7px}.transition-summary strong{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}.frequent-transitions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px 26px}.frequent-transitions .tag{font-size:11px;cursor:pointer;padding:6px 9px}.transition-panel .panel-head{flex-wrap:wrap}#portfolio-series{scroll-margin-top:15px}
@media(max-width:1200px){.model-info-card{margin:16px 5px;padding:12px 9px}.model-card-general dl{font-size:9px;grid-template-columns:48px 1fr}.table-toolbar{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:950px){.model-info-card{margin:18px 0;padding:9px 4px;text-align:center}.model-info-card h3{font-size:9px;line-height:1.5;margin-bottom:8px}.model-card-general,.model-card-selected{display:none}.model-card-button{font-size:0;margin-top:0;padding:7px}.model-card-button:after{content:'ⓘ';font-size:15px}.scatter-panel .panel-head{flex-wrap:wrap}.scatter-wrap{height:360px;padding:0 10px}}
@media(max-width:650px){.table-panel .panel-head{flex-wrap:wrap}.table-toolbar{justify-content:flex-start}.scatter-wrap{height:340px;padding:0 4px}.scatter-legend{padding:12px 15px;gap:12px;font-size:10px}.scatter-panel .chart-caption{flex-direction:column;gap:7px}.transition-summary{grid-template-columns:1fr 1fr;padding:18px}.transition-scroll{padding:0 10px 15px}.transition-panel .section-meta{flex-wrap:wrap}.all-models{grid-template-columns:1fr}}
@media(max-height:820px) and (min-width:951px){.sidebar{padding-top:22px}.brand{margin-bottom:25px}.nav-item{padding-top:10px;padding-bottom:10px}.model-info-card{margin-top:15px;margin-bottom:12px}.workspace-mark{padding-top:12px;padding-bottom:12px}}

/* Evaluation diagnostics extend the existing panels and tables. */
.quality-scope-caption{font-size:10px;color:#8794a6;padding:0 20px 15px}
.quality-table-panel{margin-top:20px}.quality-table-panel>.quality-table-heading{border-top:0}.quality-table-panel .quality-table-filters{width:auto;max-width:100%}.quality-table-panel .quality-table-filters input{min-width:180px}
.quality-legend{min-height:58px}.quality-legend .bound-key{border-top:1px dashed #79aaa1;background:none}
.quality-section{margin:26px 0 22px}.quality-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px}.quality-heading h2{font-size:18px}.quality-heading p{font-size:11px;color:var(--muted);margin-top:7px}.quality-heading>.tag{font-size:10px;font-weight:500}.quality-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.quality-panel .panel-head{padding:20px 20px 16px}.quality-panel .panel-head h2{font-size:16px}.quality-info{color:#8292a8;font-size:14px;padding:0 2px}.quality-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 20px 18px;border-bottom:1px solid var(--line)}.quality-metrics>div>span{display:block;font-size:10px;color:#7b899c;line-height:1.55;min-height:31px;margin-bottom:5px}.quality-metrics strong{font-size:20px;font-weight:550;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.quality-status{display:inline-flex;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:550;letter-spacing:0;line-height:1.2}.quality-status.clean{background:#ebf5ef;color:#31765b}.quality-status.warning{background:#fbf5e6;color:#9a762d}.quality-status.alarm{background:#fcf0ed;color:#b06357}.quality-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:17px 20px 4px;font-size:10px;color:#75859a}.quality-legend span{display:flex;align-items:center;gap:6px}.quality-legend i{width:13px;height:2px;display:inline-block}.quality-legend .band-key{height:8px;background:#14938720;border:1px dashed #79aaa1}.quality-chart{padding:6px 10px 0}.quality-chart svg{display:block;width:100%;height:auto;min-height:225px}.quality-chart text{font-family:inherit;fill:#8390a2;font-size:11px}.quality-gridline{stroke:#edf0f5;stroke-width:1}.quality-chart rect[data-quality-chart]{cursor:help}.quality-chart rect[data-quality-chart]:focus{outline:1px solid #94afd6}.quality-chart-caption{font-size:10px;color:#7e8ea4;padding:0 20px 18px}.quality-table-heading{padding:17px 20px 13px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.quality-table-heading h3{font-size:13px}.quality-table-heading .count{font-size:10px;font-weight:400;color:#8090a4;margin-left:5px;white-space:nowrap}.quality-table-heading>.input{width:200px;max-width:100%;height:31px;font-size:11px}.quality-table-scroll{max-height:430px}.quality-data-table{min-width:890px}.tracking-data-table{min-width:1180px}.quality-data-table th{font-size:10px;white-space:nowrap}.quality-data-table th button{font-size:10px;padding:0;color:inherit}.quality-data-table td{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.quality-data-table .outlier-deviation{color:#af6063}.quality-empty{padding:28px!important;color:#8290a3!important}.quality-pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-top:1px solid var(--line);font-size:10px;color:#8290a4}.quality-pagination>div{display:flex;gap:7px;align-items:center}.quality-distribution{padding:15px 20px 17px;border-top:1px solid var(--line)}.quality-distribution h3{font-size:12px;margin-bottom:14px}.quality-distribution h3 span{font-weight:400;margin-left:5px}.quality-distribution-row{display:grid;grid-template-columns:45px 1fr 62px;gap:9px;align-items:center;margin:9px 0;font-size:10px;color:#7b8aa0}.quality-distribution-row>div{height:7px;border-radius:3px;background:#f1f4f8;overflow:hidden}.quality-distribution-row i{display:block;height:100%;border-radius:3px}.quality-distribution-row i.clean{background:#7fae9b}.quality-distribution-row i.warning{background:#c6b06e}.quality-distribution-row i.alarm{background:#cd928b}.quality-distribution-row strong{font-weight:500;text-align:right;color:#596e86;font-variant-numeric:tabular-nums}.quality-table-filters{display:flex;flex-wrap:wrap;gap:8px;width:100%}.quality-table-filters input{flex:1;min-width:130px;font-size:11px;height:31px}.quality-table-filters select{border:1px solid var(--line);border-radius:5px;background:white;padding:5px 7px;max-width:100%;font-size:11px;color:#728297}.quality-point-details{font-size:12px;line-height:1.7}.quality-point-details strong{display:block;margin-bottom:14px}.quality-point-details>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.quality-point-details>div>span{color:var(--muted)}.quality-point-details small{display:block;margin-top:15px;color:var(--muted)}
@media(max-width:1250px){.quality-grid{grid-template-columns:1fr}.quality-chart svg{max-height:350px}.quality-data-table{min-width:890px}.quality-metrics{gap:20px}.quality-legend{gap:20px}}
@media(max-width:650px){.quality-heading{align-items:flex-start;flex-direction:column}.quality-heading h2{font-size:17px}.quality-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding-left:16px;padding-right:16px}.quality-metrics>div>span{min-height:0}.quality-chart{padding-left:3px;padding-right:3px}.quality-chart svg{min-height:190px}.quality-legend{padding-left:16px;padding-right:16px;gap:11px}.quality-panel .panel-head{padding-left:16px;padding-right:16px}.quality-table-heading{padding-left:16px;padding-right:16px}.quality-table-heading>.input{width:100%}.quality-table-filters select{flex:1;min-width:110px}.quality-pagination{padding-left:12px;padding-right:12px}}

@media(max-width:650px){.quality-chart text{font-size:18px}}
/* Feature experiment: inherit the dashboard's panels and table components. */
.feature-lab{margin-top:8px}.fx-intro{display:flex;justify-content:space-between;gap:20px;margin:12px 0 22px;color:#73849a;font-size:13px}.fx-intro p{margin:0}.fx-intro>span{white-space:nowrap}.fx-stepper{display:grid;grid-template-columns:repeat(5,1fr);margin-bottom:25px;border:1px solid #e1e8f1;border-radius:12px;overflow:hidden;background:#fff}.fx-stepper button{display:flex;align-items:center;gap:10px;padding:17px 13px;font-size:12px;font-weight:600;color:#7989a0;line-height:1.4;border:0;border-right:1px solid #e8edf4;background:transparent;text-align:left;cursor:pointer}.fx-stepper button:last-child{border-right:0}.fx-stepper button>span{flex:none;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eef2f7}.fx-stepper button.active{color:#2864e8;background:#f1f6ff}.fx-stepper button.active>span{background:#2864e8;color:white}.fx-stepper button.complete>span{background:#e6f1ec;color:#428873}.fx-stepper button:disabled{opacity:.5;cursor:not-allowed}.fx-panel{margin:20px 0;padding:24px}.fx-panel .panel-head{padding:0 0 22px}.fx-panel .panel-head h2{font-size:16px}.fx-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:34px}.fx-field{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#667b94;min-width:0}.fx-field>span{font-weight:600}.fx-field select,.fx-field input,.fx-inline-field select{width:100%;height:42px;padding:0 11px;border:1px solid #dce5ef;border-radius:7px;background:white;color:#324761;font-size:13px;min-width:0}.fx-demo{font-size:11px;color:#687e98;padding:6px 9px;background:#f0f4f9;border-radius:5px}.fx-catalog-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.fx-catalog-title h3{font-size:14px;margin:0}.fx-catalog td:first-child{min-width:230px}.fx-catalog td:first-child small,.fx-top td small,.fx-history td small,.fx-comparison td small{display:block;font-size:11px;color:#8a98ac;margin-top:7px;white-space:normal;line-height:1.5}.fx-catalog .clickable{font-weight:600;font-size:13px}.fx-selected td{background:#f3f7fd}.fx-badge{display:inline-block;white-space:nowrap;font-size:10px;line-height:1.4;padding:5px 8px;border-radius:5px;letter-spacing:.15px;background:#edf2f8;color:#62758f}.fx-badge.good{background:#edf5f1;color:#458571}.fx-badge.warning{background:#fbf2e8;color:#aa824e}.fx-badge.error{background:#fbeced;color:#b66065}.fx-info{display:inline-block;font-size:12px;font-weight:400;color:#92a4ba;cursor:help}.fx-context{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:#7a8ca3;margin-bottom:10px}.fx-context strong{color:#375376}.fx-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 35px;max-width:920px}.fx-toggle{display:flex;align-items:center;gap:12px;font-size:13px;color:#415b78;padding:12px 0}.fx-toggle input{accent-color:#2864e8;width:17px;height:17px}.fx-toggle small{display:block;color:#8a9aae;font-size:11px;margin-top:6px}.fx-advanced{margin-top:28px;padding:20px 0 0;border-top:1px solid #edf0f6;font-size:13px;color:#6b819a}.fx-advanced summary{cursor:pointer;font-weight:600;margin-bottom:20px}.fx-help{color:#8494a8;font-size:12px;line-height:1.7;margin:18px 0}.fx-live-strip{display:flex;align-items:center;gap:18px;background:#f7f9fc;padding:13px;margin-top:28px;font-size:12px;color:#7890a7;border-radius:7px}.fx-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:25px 0 35px}.fx-validation-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:20px;align-items:start}.fx-validation-grid .fx-panel{margin-top:0}.fx-summary{display:grid;grid-template-columns:1fr 1.2fr;gap:15px;font-size:12px;margin:0}.fx-summary dt{color:#8494a8}.fx-summary dd{margin:0;color:#405976;text-align:right;line-height:1.5}.fx-checks{display:flex;flex-direction:column;gap:4px}.fx-checks button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:white;padding:14px 2px;border-bottom:1px solid #edf0f5;cursor:pointer}.fx-checks button>div{flex:1;min-width:0}.fx-checks strong{display:block;color:#4a617d;font-size:12px}.fx-checks div>span{display:block;color:#8c9bad;font-size:11px;line-height:1.6;margin-top:6px}.fx-checks button>span:last-child{color:#a3b1c4}.fx-filled td{background:#f0f6f3!important}.fx-blockers{background:#fcf3ee;padding:10px 14px;border-radius:7px;color:#ad7858;font-size:12px;margin-top:18px;line-height:1.6}.fx-blockers p{margin:8px 0}.fx-arms{display:grid;grid-template-columns:1fr 45px 1fr;align-items:center;gap:20px;background:#f7f9fd;border-radius:10px;padding:23px;margin-bottom:26px}.fx-arms>div>span{display:block;font-size:10px;font-weight:600;letter-spacing:1px;color:#8d9fb5;margin-bottom:10px}.fx-arms strong{font-size:14px;color:#3e5c80}.fx-vs{text-align:center;color:#8f9eb1;font-size:12px}.fx-conditions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}.fx-conditions>div{display:flex;gap:10px;align-items:center;font-size:11px;line-height:1.6}.fx-conditions span{color:#8b9baf;min-width:110px}.fx-conditions strong{color:#516882;font-weight:500;flex:1}.fx-conditions small{background:#edf5f1;color:#5b927e;border-radius:4px;padding:2px 5px;font-size:9px}.fx-run{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px;font-size:11px}.fx-impact{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e7edf5;padding-top:22px;margin-top:15px;gap:20px}.fx-impact>div>span{display:block;color:#8496ac;font-size:12px}.fx-impact strong{font-size:25px;color:#3d5d82;margin:8px 10px 0 0;display:inline-block}.fx-impact small{color:#8f9eb2;font-size:12px}.fx-comparison{font-size:16px}.fx-comparison td{padding:20px 18px}.fx-better{color:#4d907b!important}.fx-worse{color:#b2776f!important}.fx-scatter-wrap{height:390px;width:100%}#feature-impact-scatter{width:100%;height:100%;display:block}.fx-scatter-legend{display:flex;flex-wrap:wrap;gap:20px;font-size:11px;color:#8b9aaf;margin:10px 0}.fx-scatter-legend>span{display:flex;gap:7px;align-items:center}.fx-scatter-legend i{width:8px;height:8px;border-radius:50%}.fx-inline-field{display:flex;align-items:center;gap:12px;color:#7d90a7;font-size:12px}.fx-inline-field select{width:170px;height:35px}.fx-top-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.fx-top-grid>.fx-panel{min-width:0;margin-top:0}.fx-top{font-size:11px}.fx-top th{font-size:10px}.fx-contribution{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:20px}.fx-contribution span{display:block;font-size:11px;color:#8a9bb0}.fx-contribution strong{display:block;font-size:16px;font-weight:600;color:#476387;margin-top:12px;overflow-wrap:anywhere}.fx-decision-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin:0 0 25px}.fx-decision-summary dt{font-size:11px;color:#8b9db4}.fx-decision-summary dd{margin:12px 0 0;font-size:17px;color:#49688d;overflow-wrap:anywhere}.fx-decision-controls{display:flex;gap:13px;align-items:flex-end;border-top:1px solid #e7edf5;padding-top:24px}.fx-decision-controls .fx-field{max-width:260px;flex:1}.fx-decision-controls button{height:42px}.fx-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:11px;color:#8c9cb1;margin-top:18px}.fx-profile-summary{margin:24px 0}.fx-meta-grid{grid-template-columns:1fr}.fx-history-empty{text-align:center;color:#8e9db2;padding:20px}.feature-lab .button.primary{background:#2864e8;border-color:#2864e8;color:white}.feature-lab button:disabled{opacity:.45;cursor:not-allowed}
@media(min-width:1450px){.fx-top-grid .fx-top{font-size:12px}}
@media(max-width:1150px){.fx-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-top-grid{grid-template-columns:1fr}.fx-validation-grid{grid-template-columns:1fr 1fr}.fx-conditions{grid-template-columns:1fr}.fx-stepper button{font-size:10px;gap:6px;padding:15px 8px}.fx-decision-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-contribution{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.fx-intro{flex-direction:column;gap:10px}.fx-stepper{grid-template-columns:1fr}.fx-stepper button{font-size:12px;padding:10px 15px;border-right:0;border-bottom:1px solid #edf0f5}.fx-form-grid,.fx-validation-grid,.fx-source-grid,.fx-conditions,.fx-arms{grid-template-columns:1fr}.fx-panel{padding:18px}.fx-panel .panel-head{flex-wrap:wrap;gap:12px}.fx-catalog-title,.fx-context,.fx-run{align-items:flex-start;flex-direction:column}.fx-stepper button:last-child{border-bottom:0}.fx-arms{gap:12px}.fx-vs{text-align:left}.fx-contribution{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-decision-controls{flex-wrap:wrap}.fx-decision-controls .fx-field{flex-basis:100%;max-width:none}.fx-actions{gap:10px}.fx-actions .button{font-size:11px}.fx-conditions span{min-width:95px}.fx-conditions>div{flex-wrap:wrap}.fx-scatter-wrap{height:340px}.fx-live-strip{flex-wrap:wrap}.fx-summary{grid-template-columns:1fr 1fr}}
.fx-catalog tbody tr,.fx-history tbody tr[data-fx-history-row]{cursor:pointer}.fx-catalog tbody tr:hover td,.fx-history tbody tr[data-fx-history-row]:hover td{background:#f4f7fc}
@media(max-height:820px) and (min-width:951px){.sidebar .brand{margin-bottom:20px}.sidebar .nav-item{padding-top:9px;padding-bottom:9px}.model-info-card:has(.model-card-selected){padding-top:10px;padding-bottom:10px}.model-info-card:has(.model-card-selected) h3{margin-bottom:8px}.model-card-selected{line-height:1.4}.model-card-selected small{margin-top:4px}.model-card-selected strong{font-size:11px}.model-info-card:has(.model-card-selected) .model-card-button{margin-top:9px}}
/* Evaluation business trends, heatmaps and the active hierarchy branch. */
.bah-section{margin:28px 0}.bah-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}.bah-heading h2{font-size:19px}.bah-heading p{font-size:11px;color:#8394aa;margin-top:8px}.bah-tabs{margin-bottom:18px}.bah-panel{padding:23px}.bah-toolbar{display:flex;gap:22px;align-items:flex-end;flex-wrap:wrap;margin-bottom:20px}.bah-control{display:flex;flex-direction:column;gap:8px;min-width:165px;max-width:280px;color:#778ba3;font-size:11px}.bah-control span{font-weight:600}.bah-control select,.bah-control input{height:37px;border:1px solid #dfe7f1;border-radius:6px;background:white;color:#415b7d;padding:0 10px;font-size:12px;width:100%;min-width:0}.bah-control.bah-search{margin-left:auto;min-width:200px}.bah-meta{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#8b9bb0;margin-bottom:23px;line-height:1.5}.bah-small-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.bah-small{border:1px solid #e7edf5;border-radius:9px;padding:18px 16px 9px;min-width:0}.bah-small-title{display:flex;align-items:center;justify-content:space-between;gap:13px}.bah-small-title h3{font-size:12px;font-weight:600;color:#536b8b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bah-small-title>span{color:#92a2b7;font-size:10px;white-space:nowrap}.bah-small-stat{margin:13px 0 3px;font-size:20px;color:#476787;letter-spacing:-.3px}.bah-small-stat small{font-size:10px;color:#97a6b9;font-weight:400;margin-left:8px;letter-spacing:0}.bah-small-svg{display:block;width:100%;height:auto}.bah-small-svg text{font:11px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;fill:#8a9db5}.bah-mini-legend{display:flex;justify-content:center;gap:20px;font-size:10px;margin:4px 0 10px}.bah-mini-legend span:first-child{color:#2864e8}.bah-mini-legend span:last-child{color:#149387}.bah-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:22px;color:#8597af;font-size:11px}.bah-dual{display:flex;align-items:center;gap:8px;color:#768ba7;font-size:11px;padding-bottom:9px}.bah-dual input{accent-color:#2864e8}.bah-heat-block{margin-top:23px}.bah-heat-block h3{font-size:13px;color:#5b7597;margin-bottom:16px}.bah-heat-scroll{overflow:auto;max-width:100%;border:1px solid #e7edf5;border-radius:8px}.bah-heatmap{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;min-width:1050px;font-variant-numeric:tabular-nums}.bah-heatmap thead th{font-size:10px;font-weight:500;color:#879ab2;text-align:center;background:#f8fafd;padding:14px 5px;white-space:nowrap;border-bottom:1px solid #e8edf4}.bah-heatmap th:first-child{width:185px;text-align:left;position:sticky;left:0;z-index:1;background:#fafbfd;padding-left:13px}.bah-heatmap tbody th{font-size:10px;font-weight:500;color:#657e9e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid #edf1f6;padding:13px}.bah-heatmap td{padding:3px;border-bottom:1px solid #eef2f7}.bah-heatmap td button{width:100%;height:34px;border-radius:4px;font-size:10px;color:#526b88;white-space:nowrap;padding:0 3px}.bah-heatmap td button:hover,.bah-heatmap td button.selected{box-shadow:inset 0 0 0 2px #7398c6}.bah-heat-legend{display:flex;align-items:center;gap:12px;color:#8295ac;font-size:10px;flex-wrap:wrap;margin-top:15px}.bah-heat-legend i{height:9px;width:100px;display:block;border-radius:4px}.bah-heat-legend .error{background:linear-gradient(90deg,hsl(148 32% 94%),hsl(68 45% 89%),hsl(7 52% 77%));width:140px}.bah-heat-legend .bias{background:linear-gradient(90deg,hsl(215 38% 71%),#eef4ef)}.bah-heat-legend .bias-positive{background:linear-gradient(90deg,#eef4ef,hsl(14 42% 72%))}.bah-heat-legend small{margin-left:auto;font-size:9px}.bah-cell-list{margin-top:20px;padding:0}.bah-cell-list .panel-head{padding:22px}.bah-cell-list .panel-head p{margin-top:8px;color:#8399b3;font-size:11px}.bah-cell-tools{display:flex;gap:12px;align-items:center}.bah-cell-tools .input{width:230px}.bah-cell-list .bah-pager{margin:18px 22px}.bah-footnote{font-size:10px;line-height:1.7;color:#8b9db4;margin-top:20px}.bah-cell-list .bah-footnote{padding:0 22px 19px;margin:0}.bah-window-note{font-size:11px;color:#8a9bb2;align-self:center;margin-left:auto}.bah-breadcrumb{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:13px 0;margin-bottom:17px;border-top:1px solid #edf1f6;font-size:11px;color:#9badc3}.bah-breadcrumb button{font-size:11px;color:#6b89b0}.bah-tree-path{display:flex;gap:13px;align-items:center;overflow-x:auto;padding:2px 0 18px}.bah-tree-arrow{color:#9dafc5;flex:none}.bah-node{padding:18px;border:1px solid #e4ebf4;border-radius:9px;background:white;min-width:205px;text-align:left;display:flex;flex-direction:column;color:#607da0}.bah-tree-path .bah-node{width:220px;flex:0 0 220px}.bah-node.active{background:#f4f7fd;border-color:#a9c0e2}.bah-node-name{font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%}.bah-node>strong{font-size:24px;font-weight:600;color:#45678d;margin-top:14px;letter-spacing:-.7px}.bah-node>small{font-size:10px;color:#8b9eb7;margin:7px 0 18px}.bah-node>div{display:flex;justify-content:space-between;gap:10px;font-size:9px;margin-top:7px;color:#95a4b8;line-height:1.5}.bah-node>div>b{font-size:10px;font-weight:500;color:#7591b1}.bah-node:hover{border-color:#91abd0;background:#f7faff}.bah-next-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #edf1f6;padding-top:22px;margin:0 0 18px}.bah-next-heading>div>span{font-size:10px;color:#95a4b7;display:block;margin-bottom:7px}.bah-next-heading h3{font-size:13px;color:#6e88a7}.bah-next-heading .input{max-width:250px}.bah-node-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.bah-node-grid .bah-node{min-width:0}.bah-filter-note{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:13px;background:#edf3fd;border:1px solid #e0e9f8;border-radius:8px;font-size:11px;color:#6887b0;margin-bottom:18px}.bah-empty{padding:25px;color:#91a2b7;font-size:12px;grid-column:1/-1;text-align:center}
@media(min-width:1650px){.bah-small-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.bah-node-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.bah-node-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bah-small-stat small{display:block;margin:6px 0 0}.bah-toolbar{gap:16px}.bah-control.bah-search{margin-left:0}}
@media(max-width:760px){.bah-heading{align-items:flex-start;flex-wrap:wrap}.bah-heading h2{font-size:17px}.bah-panel{padding:16px}.bah-toolbar{display:grid;grid-template-columns:1fr;width:100%}.bah-control{max-width:none;min-width:0}.bah-small-grid,.bah-node-grid{grid-template-columns:1fr}.bah-meta{flex-direction:column;gap:8px}.bah-small-stat small{display:inline-block;margin-left:8px}.bah-cell-tools{flex-wrap:wrap}.bah-cell-tools .input{width:100%}.bah-cell-list .panel-head{align-items:flex-start;flex-direction:column}.bah-next-heading{align-items:flex-start;flex-direction:column}.bah-next-heading .input{max-width:none}.bah-window-note{margin-left:0}.bah-heat-legend small{margin-left:0}.bah-filter-note>span{overflow-wrap:anywhere}.bah-pager{flex-wrap:wrap}}
.bah-node-name{font-size:12px}.bah-node>small{font-size:11px}.bah-node>div{font-size:11px}.bah-node>div>b{font-size:11px}.bah-tree-path .bah-node{width:240px;flex-basis:240px}
@media(min-width:1650px){.bah-small-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.bah-small-svg text{font-size:17px}}
.bah-cell-list span.confidence{cursor:help}

/* Monitoring rows reuse the dashboard's native scrollable tables. */
.quality-row{display:grid;grid-template-columns:minmax(0,58fr) minmax(0,42fr);gap:20px;align-items:stretch;min-width:0}
.quality-grid{grid-template-columns:minmax(0,1fr)}
.quality-row>.quality-table-panel{margin-top:0;min-width:0}
.quality-row .quality-table-scroll{overflow:auto;max-width:100%;max-height:400px;scrollbar-gutter:stable}
.quality-table-scroll:focus-visible{outline:2px solid #94afd6;outline-offset:-2px}
.quality-data-table th,.quality-data-table td{min-width:100px}
.quality-data-table th:nth-child(2),.quality-data-table td:nth-child(2){min-width:120px}
.quality-data-table .sticky-col{min-width:120px}
.tracking-data-table .sticky-col{min-width:120px}
/* Compact spacing applies only to the two monitoring chart/table rows. */
.quality-row .quality-panel .panel-head{padding-bottom:12px}
.quality-row .quality-scope-caption{padding-bottom:12px}
.quality-row .quality-metrics{gap:10px;padding-bottom:14px}
.quality-row .quality-metrics strong{font-size:18px}
.quality-row .quality-legend{min-height:46px;padding-top:12px;gap:10px}
@media(min-width:951px){.quality-row .quality-chart text{font-size:12px}}
@media(min-width:951px) and (max-width:1250px){
 .quality-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
 .quality-row .quality-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .quality-row .quality-metrics>div>span{min-height:0}
 .quality-row .quality-chart text{font-size:14px}
}
/* Let monitoring records use the full chart height, with the pager at the bottom. */
@media(min-width:951px){
 .quality-row>.quality-table-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .quality-row>.quality-table-panel>.quality-table-heading{flex:none}
 .quality-row>.quality-table-panel>[id$="-list"]{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
 .quality-row .quality-table-scroll{flex:1 1 0;min-height:0;max-height:none}
 .quality-row .quality-pagination,.quality-row .quality-tracking-note{flex:none}
}
@media(max-width:950px){.quality-row{grid-template-columns:minmax(0,1fr)}}

/* Chat has no target controls or inherited filter UI. */
#main[data-page="chat"] .heading-actions,#main[data-page="chat"] #filters,#main[data-page="chat"] #active-filters,#main[data-page="chat"] #footer-info{display:none}

/* Model explanations remain within the existing information surfaces. */
.model-card-general dl{gap:6px 4px;line-height:1.35}
.model-selected-comment{margin:5px 0 8px;padding-left:12px;color:#a7bed7;font-size:10px;line-height:1.45}
.model-card-selected .model-selection-info{display:inline;color:#a7bed7;font-size:11px;cursor:help}
.model-selection-info:focus-visible{outline:1px solid #a7bed7;outline-offset:2px}
.model-description ul{padding-left:17px;margin:10px 0 0;font-size:12px;line-height:1.55}
.model-description li{margin:6px 0;color:#61758e}
.model-description-subtitle{color:var(--muted);font-size:11px;line-height:1.5}
.model-selection-note{margin-bottom:14px}
.model-terms{margin:14px 0 18px;padding:12px 14px;background:#f7f9fc;border:1px solid var(--line);border-radius:7px;font-size:12px;line-height:1.5}
.model-terms summary{cursor:pointer;color:#61758e;font-weight:500}
.model-terms dt{font-weight:600;color:#61758e;margin-top:12px}
.model-terms dd{margin:4px 0 0;color:#61758e}
.model-terms ul{padding-left:17px;margin:0}
.model-terms li{margin:3px 0}

/* Model bilgisi: kısa iş açıklamaları ve terim ipuçları. */
.model-card-general dl{grid-template-columns:58px 1fr;gap:4px 4px}
.model-term{text-decoration:none;cursor:help;border:0}
.model-term-icon{font-size:.85em;opacity:.8}
.model-term:focus-visible{outline:1px solid currentColor;outline-offset:2px;border-radius:2px}
.model-card-selected .model-term-icon{display:inline;font-size:.85em}
.model-selection-note p{margin:5px 0 0}
.model-selection-note small{display:block;margin-top:6px}

@media(min-width:951px){
.model-card-general dl{grid-template-columns:66px 1fr;gap:3px 4px}
.model-info-card:not(:has(.model-card-selected)){padding-top:10px;padding-bottom:10px}
.model-info-card:not(:has(.model-card-selected)) h3{margin-bottom:8px}
.model-info-card:not(:has(.model-card-selected)) .model-card-button{margin-top:9px}
}

/* Shared, soft heatmap palette. Only heatmap surfaces use these variables. */
:root{--heat-green:#e6f2eb;--heat-light-green:#edf4df;--heat-yellow:#fbf4de;--heat-orange:#f9ebdc;--heat-red:#f6e4e3}
.matrix-cell.AX{background:var(--heat-green)}
.matrix-cell.AY,.matrix-cell.BX{background:var(--heat-light-green)}
.matrix-cell.AZ,.matrix-cell.BY,.matrix-cell.CX{background:var(--heat-yellow)}
.matrix-cell.BZ,.matrix-cell.CY{background:var(--heat-orange)}
.matrix-cell.CZ{background:var(--heat-red)}
.heatmap-legend{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:4px 22px 15px;color:#758294;font-size:10px}
.heatmap-swatches{display:flex;gap:3px}
.heatmap-swatches i{width:23px;height:12px;border-radius:2px;border:1px solid #12243b08}
.heatmap-legend small{font-size:9px;color:#8b97a7}
.performance-heat-controls{align-items:flex-end;flex-wrap:wrap}
.performance-heat-controls label{font-size:10px;color:#758294;display:flex;flex-direction:column;gap:6px}
.performance-heat-controls select{min-width:145px}
.performance-heat-search{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 22px 12px}
.performance-heat-search .input{width:230px;height:31px;font-size:11px}
.performance-heatmap-panel .heatmap{min-width:970px}
.performance-heatmap-panel .heat-label{position:sticky;left:0;z-index:1;min-width:180px;max-width:220px;font-weight:500;color:#6b7d94}
.performance-heatmap-panel td:focus-visible{outline:2px solid #7798ca;outline-offset:1px}
.performance-heat-caption{gap:12px;flex-wrap:wrap}
.performance-allocation-note,.transition-color-note{font-size:10px;color:#8291a4;line-height:1.6;padding:0 22px 15px}
@media(max-width:650px){.performance-heatmap-panel .panel-head{align-items:flex-start;flex-wrap:wrap}.performance-heat-controls{width:100%}.performance-heat-controls label{flex:1;min-width:130px}.performance-heat-search{flex-wrap:wrap}.performance-heat-search .input{width:100%}.heatmap-legend{justify-content:flex-start}}

/* Fixed customer / roof / time keys: feature laboratory only. */
.feature-lab .fx-key-note{padding:12px 14px;margin:0 0 22px;background:#f7f9fc;border:1px solid #e8edf4;border-radius:7px;font-size:12px;line-height:1.6;color:#667b94}.feature-lab .fx-week-note{margin:24px 0}.feature-lab .fx-subtitle{font-size:13px;color:#415b78;margin:0 0 18px}.feature-lab .fx-stepper small{display:block;font-size:10px;font-weight:400;color:#8494a8;margin-top:5px;line-height:1.5}.fx-meta-grid input[readonly]{background:#f7f9fc;color:#667b94}.feature-lab .fx-context>span{line-height:1.6}

/* Feature laboratory: independent experiment scope and source-aware preparation. */
#main[data-page="experiment"] #filters,#main[data-page="experiment"] #active-filters,#main[data-page="experiment"] .target-toggle,#main[data-page="experiment"] #footer-info{display:none}
.feature-lab .fx-levels{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0;background:#f7f9fc;border:1px solid #e8edf4;padding:16px;border-radius:7px}.feature-lab .fx-levels span,.feature-lab .fx-future-coverage span{display:block;font-size:11px;color:#8494a8;margin-bottom:9px}.feature-lab .fx-levels strong,.feature-lab .fx-future-coverage strong{font-size:13px;color:#405976;font-weight:600}.feature-lab .fx-mapping-effect{display:flex;gap:35px;flex-wrap:wrap;font-size:11px;color:#8494a8;margin:20px 0}.feature-lab .fx-mapping-effect strong{display:block;margin-top:8px;color:#405976;font-size:15px}.feature-lab .fx-future-coverage{padding:15px;background:#f7f9fc;border-radius:7px;margin-bottom:20px}.feature-lab .fx-confirm{display:flex;gap:16px;align-items:center;font-size:12px;color:#8494a8;margin:24px 0}.fx-issue{font-size:13px;line-height:1.7;margin:22px 0}.fx-issue dt{font-weight:600;color:#405976;margin-top:18px}.fx-issue dd{color:#8494a8;margin:7px 0 0}.feature-lab .fx-form-grid>.fx-help{margin:0;align-self:center}.feature-lab .fx-field input[readonly]{background:#f7f9fc;color:#8494a8}.feature-lab .fx-arms{margin-top:20px}
@media(max-width:760px){.feature-lab .fx-levels{grid-template-columns:1fr}.feature-lab .fx-confirm{flex-wrap:wrap}.feature-lab .fx-live-strip{align-items:flex-start}}

/* Six AI model pairs: feature experiment only. */
.feature-lab .fx-arms small{display:block;font-size:11px;color:#8494a8;line-height:1.6;margin-top:9px}.feature-lab .fx-training-intro{margin-top:0}.feature-lab .fx-training-heading{margin-top:25px}.feature-lab .fx-training-table{min-width:800px}.feature-lab .fx-training-table td{white-space:normal;line-height:1.6;vertical-align:top}.feature-lab .fx-training-table td:first-child{min-width:130px}.feature-lab .fx-training-table td:nth-child(3){min-width:240px}.feature-lab .fx-training-table small,.feature-lab .fx-suite-table small{display:block;color:#8494a8;font-size:10px;margin-top:5px}.feature-lab .fx-suite-table{min-width:920px}.feature-lab .fx-suite-table th{white-space:normal;line-height:1.5;max-width:130px}.feature-lab .fx-suite-table td:not(:first-child){white-space:nowrap}.feature-lab .fx-suite-table .fx-selected{background:#f1f6fc}.feature-lab .fx-model-picker{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:24px 0}.feature-lab .fx-model-picker select{width:280px;max-width:310px}.feature-lab .fx-model-picker .muted{font-size:11px;line-height:1.6;max-width:420px}.feature-lab .fx-comparison th{white-space:normal;line-height:1.5}
@media(max-width:760px){.feature-lab .fx-model-picker{flex-wrap:wrap;gap:12px}.feature-lab .fx-model-picker select{max-width:100%}.feature-lab .fx-model-picker .fx-inline-field{flex-wrap:wrap}}

/* Compact sidebar model overview and selected-series context. */
.model-card-general .model-card-count{font-size:9px;line-height:1.6;color:#91a8c3;margin:0 0 12px}.model-card-general dl{row-gap:9px;line-height:1.5}.model-card-selected .model-card-feature{margin-top:5px}.model-card-feature .feature-badge{background:#29425e;color:#d5e4f5;border:1px solid #47617e;font-size:11px;padding:4px 8px;cursor:pointer}.model-card-feature .feature-badge:hover{background:#365471}.model-card-feature .feature-badge:focus-visible{outline:2px solid #9dbceb;outline-offset:2px}

/* Explain existing confidence thresholds without changing classifications. */
.confidence-help{font-size:11px;color:#8494a8;padding:0 3px;margin-left:4px;vertical-align:middle}.confidence-filter-label{display:flex;align-items:center;gap:5px}.confidence-filter-label .confidence-help{margin:0 0 7px}.confidence-method-table{margin-top:20px;min-width:360px}.confidence-method-table th,.confidence-method-table td{padding:12px 14px!important;white-space:normal;line-height:1.5}.confidence-rule-current{background:#edf3ff}.confidence-example{margin-top:20px}.confidence-example h3{margin-bottom:15px}.confidence-definition{padding-left:20px;font-size:12px;line-height:1.7;color:#667b94}.confidence-definition li{margin:8px 0}.confidence-method-note{font-size:11px;color:#8494a8;line-height:1.7;margin-top:16px}

/* Short confidence hints float outside table overflow containers. */
.chart-tooltip.confidence-tooltip{min-width:0;max-width:250px;padding:7px 10px;font-size:11px;line-height:1.4;border-radius:5px}

/* Feature contract: summary first, contextual disclosure, body-level issue hint. */
.feature-lab .fx-analysis-title{font-size:18px;margin:26px 0 12px;color:var(--navy)}
.feature-lab .fx-warning-summary{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.feature-lab .fx-summary-method{margin:8px 4px 20px;max-width:1000px;line-height:1.6}
.feature-lab .fx-overall>.fx-context{margin-bottom:12px;flex-wrap:wrap;gap:12px}
.feature-lab .fx-catalog td:last-child{min-width:245px}
.feature-lab [data-fx-hint]{cursor:help}
.fx-issue-tooltip{position:fixed;z-index:10000;max-width:310px;padding:9px 12px;border-radius:8px;background:#20334b;color:#f5f8fc;box-shadow:0 5px 20px #16283d25;font-size:11px;line-height:1.55;pointer-events:none;white-space:normal}
.fx-issue-tooltip[hidden]{display:none}

.feature-lab .fx-catalog td:last-child small{display:block;margin-top:6px;font-size:11px;color:#8a98ac;white-space:normal;line-height:1.5}

/* Raw-source feature onboarding uses the existing laboratory layout. */
.feature-lab .fx-source-read{display:flex;align-items:center;gap:16px;margin-bottom:22px;font-size:12px}
.feature-lab .fx-mapping-field{min-width:0}
.feature-lab .fx-mapping-field>small{display:block;color:#8494a8;font-size:11px;line-height:1.6;margin-top:8px;overflow-wrap:anywhere}
.feature-lab .fx-key-note .button{margin:8px 0 0 10px}
@media(max-width:760px){.feature-lab .fx-source-read{align-items:flex-start;flex-direction:column}}

/* Compact selected-column review; feature lab only. */
.feature-lab .fx-selected-preview{display:grid;grid-template-columns:minmax(160px,1fr) minmax(240px,2fr) auto;gap:24px;align-items:center;margin-top:20px;padding:18px 20px;border:1px solid #dbe4ed;border-radius:10px;background:#f7fafc}.feature-lab .fx-selected-preview>div{display:grid;gap:6px}.feature-lab .fx-selected-preview .fx-summary{margin:0}.feature-lab .fx-summary dd .fx-help{display:block;margin:5px 0 0}.feature-lab .fx-single-level{margin-top:18px}@media(max-width:900px){.feature-lab .fx-selected-preview{grid-template-columns:1fr}.feature-lab .fx-selected-preview .button{justify-self:start}}

/* Price-only response curve, scoped to the scenario page. */
.price-elasticity-panel{margin-bottom:20px;min-width:0}.price-context{font-size:11px;color:var(--muted);margin-top:8px;line-height:1.6}.price-elasticity-panel .panel-head{flex-wrap:wrap;gap:12px}.price-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 22px 18px}.price-summary span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.price-summary strong{font-size:23px;font-weight:550;letter-spacing:-.4px}.price-summary small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:7px}.price-curve{padding:0 10px!important}.price-curve svg{width:100%;height:auto;max-height:none!important;display:block}.price-curve text{fill:#758294;font-size:12px;font-family:inherit}.price-reference{stroke:#a9b6c8;stroke-width:1;stroke-dasharray:5 5}.price-sample{fill:#2864e8;stroke:white;stroke-width:2}.price-current{fill:#149387;stroke:white;stroke-width:2.5;pointer-events:none}.price-hit{cursor:pointer}.price-hit:focus{outline:none;stroke:#149387;stroke-width:2}.price-legend{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:8px 22px 14px;font-size:11px;color:var(--muted)}.price-legend>span{display:flex;align-items:center;gap:6px}.price-legend i{display:inline-block;width:7px;height:7px;border-radius:50%}.price-dot{background:#2864e8}.price-zero{background:#8b9bb0}.price-selected{background:#149387}.price-note{font-size:11px;line-height:1.7;color:var(--muted);padding:0 22px 16px}.price-function-details{border-top:1px solid var(--line);padding:14px 22px}.price-function-details summary{cursor:pointer;font-size:12px;color:#63758d}.price-function-details p{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0}.price-empty{padding:45px 22px;text-align:center;font-size:12px;color:var(--muted)}@media(max-width:1200px){.price-summary{grid-template-columns:1fr 1fr}.price-summary>div:last-child{grid-column:1/-1}}@media(max-width:650px){.price-summary{padding:0 17px 16px;gap:16px}.price-summary strong{font-size:21px}.price-context{font-size:10px}.price-curve{overflow-x:auto}.price-curve svg{min-width:530px}.price-note,.price-legend{padding-left:17px;padding-right:17px}.price-function-details{padding:14px 17px}}

/* Standard feature workflow; confined to the existing feature laboratory. */
.feature-lab .fx-standard-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.feature-lab .fx-standard-checks>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:7px;font-size:11px;color:#697d96}.feature-lab .fx-standard-readiness{display:flex;align-items:center;gap:14px;padding:12px 0;font-size:12px}.feature-lab .fx-wide-preview{max-height:290px}.feature-lab .fx-pipeline-list{padding-left:0;list-style:none;color:#657c98;font-size:12px;line-height:2}.feature-lab .fx-representations .fx-help{margin-top:15px}.feature-lab .fx-catalog tr{cursor:pointer}.feature-lab .fx-summary{margin-top:14px}.feature-lab .fx-selected-preview{align-items:center;flex-wrap:wrap}.feature-lab .fx-selected-preview strong{font-size:16px}@media(max-width:950px){.feature-lab .fx-standard-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.feature-lab .fx-standard-checks{grid-template-columns:1fr}}

/* Record drilldowns retain the existing card and heatmap sizing. */
.record-value{border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;padding:0;text-align:left;cursor:pointer}
.record-value:hover{text-decoration:underline;text-underline-offset:3px}
.record-value:focus-visible,[data-heat-week]:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
[data-heat-week],[data-chart="main"]{cursor:pointer}

.performance-product-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:0 22px 12px}
.performance-product-controls:empty{display:none}
.performance-product-filter{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted)}
.performance-product-filter select{max-width:260px;height:30px;border:1px solid var(--line);border-radius:6px;background:white;font:inherit;padding:0 8px}
[data-chart="scenario"]{cursor:pointer}
.data-table button[data-model-records]{padding:4px 8px;margin:-4px -8px}



.scatter-legend i{border:1px solid var(--line);width:11px;height:11px}

/* Simple type-aware feature preparation, scoped to the experiment page. */
.feature-lab .fx-preparation,.feature-lab .fx-validation-area{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.feature-lab .fx-preparation h3,.feature-lab .fx-validation-area h3{margin:0 0 10px;font-size:14px;color:var(--navy)}
.feature-lab .fx-check-context{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#697d96}
.feature-lab .fx-check-context strong{font-size:16px;color:var(--navy)}
.feature-lab .fx-preparation .fx-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.feature-lab .fx-preparation-note{font-size:12px;color:#697d96;line-height:1.6}.feature-lab .fx-preparation-note p{margin:6px 0}
.feature-lab .fx-fill-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;background:#f7f9fc;border-radius:8px;font-size:11px;color:#697d96}
.feature-lab .fx-fill-summary strong{display:block;margin-top:6px;color:var(--navy);font-size:18px}
.feature-lab .fx-check-issues{display:grid;gap:8px}.feature-lab .fx-check-issues>div{padding:12px;border-radius:7px;font-size:12px;line-height:1.6}.feature-lab .fx-check-issues .error{background:var(--heat-red)}.feature-lab .fx-check-issues .warning{background:var(--heat-yellow)}.feature-lab .fx-check-issues p{margin:5px 0 0}
.feature-lab .fx-history-section{margin-top:24px}.feature-lab .fx-history-section>summary{cursor:pointer;font-size:12px;color:#697d96;padding:12px 0}
.feature-lab .fx-selected-preview{grid-template-columns:1fr;gap:8px;margin-bottom:20px;overflow-wrap:anywhere}
@media(max-width:650px){.feature-lab .fx-preparation .fx-form-grid{grid-template-columns:1fr}.feature-lab .fx-fill-summary{gap:8px;padding:12px}}
/* Compact Evaluation decomposition; overflow stays inside the visual. */
/* Selected-target zero monitoring shares the existing table and segment palette. */
.zero-realization-panel .panel-head h2 span{font-size:12px;color:var(--muted);font-weight:400}
.zero-realization-panel .zero-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.zero-realization-panel .quality-metrics strong{font-size:18px}
.zero-analysis-grid{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}
.zero-analysis-grid .quality-table-heading{border-bottom:0;padding-bottom:8px}
.zero-analysis-grid select{max-width:190px;border:1px solid var(--line);border-radius:5px;padding:6px;font-size:11px;background:white}
.zero-realization-panel .heatmap{min-width:0;table-layout:fixed}
.zero-realization-panel .heatmap-scroll{padding-bottom:6px}
.zero-realization-panel .heatmap td{padding:0}
.zero-realization-panel .heatmap td button{width:100%;padding:12px 5px;font-size:12px;color:inherit}
.zero-distribution{border-top:0;border-left:1px solid var(--line);padding-top:20px}
.zero-distribution .quality-distribution-row{width:100%;grid-template-columns:80px 1fr 62px;text-align:left;padding:2px 0}
.zero-distribution .quality-distribution-row i{background:var(--blue);opacity:.65}
.zero-caption{font-size:10px;line-height:1.6;color:var(--muted);padding:5px 20px 12px}
.zero-distribution .zero-caption{padding:8px 0 0}
.zero-realization-panel .quality-table-scroll{max-height:400px}
@media(max-width:1100px){.zero-realization-panel .zero-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.zero-analysis-grid{grid-template-columns:1fr}.zero-distribution{border-left:0;border-top:1px solid var(--line)}.zero-realization-panel .zero-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.performance-subtabs{margin-top:0;margin-bottom:16px;gap:22px}.performance-subtabs button{font-size:12px}
.he-edit-actions{display:flex;gap:8px;flex-wrap:wrap}.he-controls .he-saved-selector select{width:230px}.he-save-form{max-width:480px}.he-save-form>p{font-size:12px;color:var(--muted);line-height:1.7}.he-save-preview{margin:16px 0;padding:12px;background:var(--blue-soft);border:1px solid #dce7fe;border-radius:6px;font-size:12px;line-height:1.8;color:#3c526e;overflow-wrap:anywhere}.he-save-form .he-save-note{font-size:11px;margin-top:10px}.he-save-form .he-save-error{color:var(--red);margin-top:8px}.he-save-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.he-panel{min-width:0;overflow:hidden}.he-panel .panel-head{align-items:flex-start;gap:16px;flex-wrap:wrap;padding-bottom:14px}.he-description{font-size:12px;line-height:1.6;color:var(--muted);margin-top:6px}.he-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.he-controls label,.he-add{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px}.he-controls select,.he-editor select{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:6px;padding:7px 9px;font-size:12px;min-width:150px;max-width:100%}.he-context{padding:0 22px 10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.he-path-label{padding:9px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fafbfd;font-size:10px;line-height:1.8;color:#647892}.he-path-label>span:first-child{font-weight:600;color:#3c526e;margin-right:10px}.he-path-label>span[aria-hidden]{color:#a8b5c5;margin:0 4px}.he-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 22px;font-size:11px;color:#a7b2c1}.he-breadcrumb button{font-size:11px;color:var(--blue);padding:3px}.he-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:2px 22px 18px}.he-columns{position:relative;display:flex;align-items:flex-start;gap:24px;width:max-content;min-width:100%}.he-column{position:relative;width:184px;flex:0 0 184px}.he-column h3{font-size:11px;color:#536d8d;font-weight:550;margin-bottom:12px;line-height:1.5}.he-column-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.he-column-title>span{font-size:10px;color:var(--muted);padding-top:1px}.he-node-list{display:flex;flex-direction:column;gap:5px;max-height:330px;overflow-y:auto;scrollbar-width:thin;padding:1px 0}.he-node{position:relative;border:1px solid transparent;border-radius:4px;background:#fff}.he-node.selected{border-color:#e0eafb;background:#f5f8fe}.he-node:focus-within{outline:2px solid #adc5f8;outline-offset:1px}.he-node-select{display:block;width:100%;padding:7px 6px 6px;text-align:left;border:0;background:none;cursor:pointer}.he-node-select:hover{background:#f7faff}.he-node-line{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:6px;padding-right:18px}.he-node-name{display:block;min-width:0;font-size:11px;font-weight:500;line-height:1.5;color:#38516f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.he-node-select strong{flex-shrink:0;font-size:10px;font-weight:550;font-variant-numeric:tabular-nums;color:#526c8c}.he-node-bar{display:block;height:4px;background:#eef2f7;overflow:hidden}.he-node-bar i{display:block;height:100%;background:#7b9fe4}.he-node.selected .he-node-bar i{background:#2864e8}.he-node-sub{display:block;margin-top:5px;font-size:10px;color:#7b8da4;line-height:1.5}.he-detail{position:absolute;right:3px;bottom:4px;display:block;width:20px;height:22px;font-size:12px;color:#7797bd;opacity:0}.he-node:hover .he-detail,.he-node:focus-within .he-detail,.he-root-node .he-detail{opacity:1}.he-detail:hover{color:var(--blue)}.he-root{width:156px;flex-basis:156px;padding-top:90px}.he-root>h3{font-size:10px;font-weight:400;color:var(--muted);margin-bottom:8px}.he-root-node{background:none!important;border:0!important}.he-root-node .he-node-line{display:block;margin-top:8px}.he-root-node .he-node-name{white-space:normal;font-size:11px}.he-root-node .he-node-select strong{display:block;font-size:18px;margin-top:6px;color:#2d4260}.he-root-node .he-node-sub{font-size:9px}.he-instruction{font-size:10px;color:#8a99ad;line-height:1.6;margin:10px 6px}.he-more{display:block;margin-top:9px;width:100%;font-size:10px;padding:6px}.he-link{position:absolute;left:calc(100% - 6px);top:0;pointer-events:none;overflow:visible}.he-footnote{padding:10px 22px;border-top:1px solid var(--line);font-size:10px;line-height:1.7;color:#8a99ad}.he-editor{border-bottom:1px solid var(--line);padding:14px 22px;background:#fafbfd}.he-edit-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px;color:var(--muted);font-size:11px}.he-edit-row{display:flex;align-items:center;gap:8px;margin-top:8px;max-width:580px}.he-edit-row>span{width:18px;color:var(--muted);font-size:11px}.he-edit-row select{flex:1;min-width:100px}.he-edit-row button{flex-shrink:0}.he-add{margin-top:12px;max-width:370px}
@media(max-width:650px){.he-panel .panel-head,.he-context,.he-path-label,.he-breadcrumb,.he-editor,.he-footnote{padding-left:16px;padding-right:16px}.he-scroll{padding-left:16px;padding-right:16px}.he-column{width:174px;flex-basis:174px}.he-root{width:142px;flex-basis:142px}.he-controls{width:100%;justify-content:space-between}.performance-subtabs{gap:14px}.performance-subtabs button{font-size:11px}}

.forecast-series-table thead tr:first-child th:nth-child(3),.forecast-series-table tbody td:nth-child(3){width:100px;min-width:100px;max-width:100px}
.main-forecast-panel .panel-head{align-items:flex-start;flex-wrap:wrap;gap:14px;padding-bottom:14px}.main-forecast-subtitle{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.5}.main-forecast-controls{display:flex;gap:10px;align-items:flex-end;margin-left:auto}.main-forecast-controls label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:10px}.main-forecast-controls .input{height:30px;font-size:11px;width:145px}.main-forecast-controls #chart-window{width:90px}.main-source-summary{margin:0 22px 10px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.main-source-summary dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}.main-source-summary dt{color:var(--muted);font-size:10px}.main-source-summary dd{margin:5px 0 0;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}.main-source-summary p{font-size:10px;color:var(--muted);margin-top:9px;line-height:1.5}.main-source-info{font-size:11px;color:#6e8096;margin:7px 22px;line-height:1.5}.main-source-legend{padding:8px 22px 0;flex-wrap:wrap;row-gap:8px}
@media(max-width:650px){.main-forecast-controls{margin-left:0;flex-wrap:wrap;width:100%}.main-source-summary dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}}
/* Only the real What-If model selector and comparison. */
.scenario-model-field{margin-bottom:18px}.scenario-scope-note{font-size:11px;color:var(--muted);line-height:1.6;margin-top:8px}.price-model-comparison{padding:0 22px 16px}.price-model-comparison .data-table td,.price-model-comparison .data-table th{white-space:nowrap}@media(max-width:650px){.scenario-model-field{grid-column:1/-1}.price-model-comparison{padding:0 17px 16px}}
#scenario-results{min-width:0}
.scenario-monotone{display:flex;align-items:center;gap:9px;margin-top:14px;padding-top:13px;border-top:1px solid var(--line);font-size:12px;color:var(--ink);cursor:pointer}.scenario-monotone input{accent-color:var(--blue);width:15px;height:15px;margin:0}.monotone-note{color:#63758d}

/* What-If scenario line and matching legend only. */
#scenario-results .chart-panel .curve:last-of-type{stroke-dasharray:7 5;stroke-opacity:.72}
#scenario-results .chart-panel .legend-line.teal{background:repeating-linear-gradient(to right,var(--teal) 0 7px,transparent 7px 12px);opacity:.72}

/* Weekly price response heatmap. */
.scenario-heat-controls{display:flex;gap:12px;align-items:end}.scenario-heat-controls label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted)}.scenario-heat-controls .input{height:32px;width:170px}.scenario-heat-scroll{overflow:auto;max-height:430px;margin:0 22px}.scenario-heat-table{width:100%;border-collapse:separate;border-spacing:3px;font-size:11px;font-variant-numeric:tabular-nums}.scenario-heat-table th{font-weight:500;text-align:center;padding:10px 8px;background:#f8fafc;min-width:65px}.scenario-heat-table thead th{position:sticky;top:0;z-index:2;white-space:nowrap}.scenario-heat-table th:first-child{position:sticky;left:0;text-align:left;min-width:145px;max-width:210px;z-index:1}.scenario-heat-table thead th:first-child{z-index:3}.scenario-heat-table th small{display:block;font-weight:400;color:var(--muted);margin-top:4px;font-size:9px}.scenario-heat-table td{padding:0;border-radius:4px;text-align:center}.scenario-heat-table td button{width:100%;min-height:42px;padding:9px 7px;white-space:nowrap;font-size:11px}.scenario-heat-table td button:hover{box-shadow:inset 0 0 0 1px #8ea4bb;border-radius:4px}.scenario-heat-legend{display:flex;gap:14px;flex-wrap:wrap;align-items:center;padding:16px 22px 0;font-size:10px;color:var(--muted)}.scenario-heat-legend span{display:flex;align-items:center;gap:5px}.scenario-heat-legend i{width:12px;height:12px;border-radius:3px}.scenario-heat-legend .negative{background:var(--heat-red)}.scenario-heat-legend .positive{background:var(--heat-green)}.scenario-heat-legend .neutral{background:var(--heat-yellow);border:1px solid var(--line)}
@media(max-width:800px){.scenario-heatmap .panel-head{flex-wrap:wrap}.scenario-heat-controls{width:100%}.scenario-heat-controls label{flex:1;min-width:0}.scenario-heat-controls .input{width:100%}.scenario-heat-scroll{margin:0 17px}.scenario-heat-legend{padding-left:17px;padding-right:17px}}

.zero-realization-panel .heatmap button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px currentColor;font-weight:600}
.zero-summary-controls{align-items:flex-end}.zero-summary-controls label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted)}.zero-summary-controls select{min-width:170px}.zero-summary-controls input{max-width:260px}.zero-summary-controls .chip{height:31px}

.quality-tracking-note{padding:10px 20px;font-size:10px;line-height:1.6;color:var(--muted);border-bottom:1px solid var(--line)}

.tracking-heading .quality-table-filters{align-items:flex-end}.tracking-level-control{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted);flex:1;min-width:150px}.tracking-level-control select{height:31px}

/* Scenario controls end with their contents; lower analyses use the full page width. */
.scenario-layout{grid-template-columns:300px minmax(0,1fr);align-items:start}
.scenario-layout>.scenario-controls{grid-column:1;grid-row:1;align-self:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px}
.scenario-layout>.scenario-controls h2{grid-column:1/-1;margin:0 0 4px}
.scenario-layout>.scenario-controls .scenario-model-field{grid-column:1/-1;margin-bottom:0}
.scenario-layout>.scenario-controls .scenario-scope-note{font-size:10.5px;line-height:1.5}
.scenario-layout>.scenario-controls .range-field{grid-column:1/-1;margin:8px 0 0}
.scenario-layout>.scenario-controls>.button{grid-column:1/-1;margin-top:0!important}
.scenario-layout>#scenario-results{display:contents}
#scenario-results>.scenario-overview{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:20px;min-width:0;align-self:stretch}
.scenario-overview>.kpis{margin-bottom:0}
.scenario-overview>.chart-panel{flex:1;display:flex;flex-direction:column}
.scenario-overview>.chart-panel .chart-caption{margin-top:auto}
#scenario-results>.price-elasticity-panel,#scenario-results>.scenario-heatmap,#scenario-results>.table-panel{grid-column:1/-1;margin:0}
@media(max-width:1000px){.scenario-layout{grid-template-columns:1fr}.scenario-layout>.scenario-controls,#scenario-results>.scenario-overview{grid-column:1;grid-row:auto}}

#scenario-results .price-curve svg{max-height:360px!important}
.scenario-layout .table-panel .data-table td,.scenario-layout .price-model-comparison .data-table td{padding:10px 14px}

/* Y-axis scale control, confined to the price response panel. */
.price-panel-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.price-axis-control{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.price-axis-control .input{width:145px;height:32px}.price-scale-note{padding:8px 22px 0;font-size:11px;color:var(--muted);line-height:1.7}@media(max-width:650px){.price-scale-note{padding-left:17px;padding-right:17px}}

/* Evaluation summaries: Accuracy, BIAS and total forecast. */
.accuracy-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.fx-accuracy-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
@media(max-width:1200px){.accuracy-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.accuracy-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-accuracy-cards{grid-template-columns:1fr}}

/* Outlier / BIAS mode chooser only affects the deviation row. */
.quality-analysis-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.quality-mode-toggle{flex-wrap:wrap}
.quality-mode-toggle button{font-size:10px;padding:6px 9px;white-space:nowrap}
#quality-deviation-row .panel-head{flex-wrap:wrap;gap:12px}

.outlier-sigma-control{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.outlier-sigma-control select{border:1px solid var(--line);border-radius:7px;padding:5px 7px;background:white;color:var(--ink);font:inherit}
.outlier-sigma-badge{display:inline-block;font-weight:600;white-space:nowrap;background:color-mix(in srgb,currentColor 10%,transparent);padding:3px 7px;border-radius:5px}

.transition-controls{flex-wrap:wrap;justify-content:flex-end}
.transition-controls label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted)}
.transition-controls select{min-width:200px;max-width:100%}
.transition-panel .panel-head{flex-wrap:wrap}

/* Keep the weekly performance thresholds visible beside each color. */
.heatmap-legend-labeled .heatmap-swatches{gap:14px;flex-wrap:wrap}
.heatmap-threshold{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.heatmap-threshold i{flex-shrink:0}

.fx-top-controls{justify-content:space-between;flex-wrap:wrap;gap:12px}
.fx-top-controls h3{margin:0;font-size:15px;color:var(--ink)}
.fx-top-help{margin:8px 0 20px}

/* Real feature service */
.fx-real-check{display:flex;align-items:flex-start;gap:9px;margin:18px 0;font-size:13px;line-height:1.6}.fx-real-warning{margin:12px 0;border-left:3px solid #d29945}.fx-real-groups{max-height:380px;overflow:auto}.fx-form-grid input,.fx-form-grid select{width:100%;min-width:0}.fx-field input[type=file]{padding:10px}

/* Standard feature template: automatic structure first, optional corrections second. */
.fx-auto-detection{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--canvas,#f7f9fc)}.fx-auto-detection h3{margin:0 0 12px;font-size:14px}.fx-detected-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.fx-detected-summary span{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;overflow-wrap:anywhere}.fx-detected-summary small{color:var(--muted);line-height:1.6}.fx-feature-choice{max-width:420px;margin:18px 0}.fx-auto-detection .note{margin-top:10px}.fx-advanced .fx-form-grid{margin-top:16px}.fx-selected-preview{overflow-wrap:anywhere}@media(max-width:650px){.fx-detected-summary{grid-template-columns:1fr;gap:12px}.fx-auto-detection{padding:13px}}

/* Feature forms and charts fit the workspace's narrow preview panel too. */
.feature-lab .fx-actions{flex-wrap:wrap}
.feature-lab .fx-actions .button,.feature-lab .fx-decision-controls .button{max-width:100%;white-space:normal;height:auto;min-height:36px}

.feature-lab .fx-summary dd{min-width:0;overflow-wrap:anywhere}

/* Feature experiment charts share the dashboard cards, axes and palette. */
.feature-lab .fx-chart-panel{margin:24px 0;min-height:0}
.feature-lab .fx-chart-panel .panel-head{padding:20px 22px 8px;align-items:flex-start;flex-wrap:wrap}
.feature-lab .fx-chart-panel h3{font-size:17px;letter-spacing:-.3px;font-weight:650}
.feature-lab .fx-chart-subtitle{margin-top:8px;font-size:11px;line-height:1.6;color:var(--muted)}
.feature-lab .fx-chart-panel .chart-legend{flex-wrap:wrap;gap:10px 16px;line-height:1.7}
.feature-lab .fx-chart-panel .legend-line{background:var(--legend-color,var(--blue))}
.feature-lab .fx-chart-panel .legend-line.fx-legend-dashed{background:repeating-linear-gradient(to right,var(--legend-color) 0 5px,transparent 5px 9px)}
.feature-lab .fx-legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;vertical-align:middle}
.feature-lab .fx-chart-panel .chart{overflow-x:auto}
.feature-lab .fx-chart-panel .chart svg{min-width:640px;max-height:none}
.feature-lab .fx-chart-panel .chart text{fill:var(--muted)}
.feature-lab .fx-chart-model{font-weight:550;fill:var(--ink)!important}
.feature-lab .fx-chart-track{fill:var(--bg)}
.feature-lab .fx-chart-reference{stroke:var(--muted);stroke-width:1;stroke-dasharray:5 4}
.feature-lab .fx-chart-point{opacity:.75;stroke:white;stroke-width:1}
.feature-lab .fx-chart-bar,.feature-lab .fx-chart-point{cursor:help}
.feature-lab .fx-chart-bar:focus,.feature-lab .fx-chart-point:focus{outline:none;stroke:var(--navy);stroke-width:2}
.feature-lab .fx-chart-panel .chart-caption{line-height:1.6;padding-top:10px}
@media(max-width:650px){.feature-lab .fx-chart-panel .panel-head{padding:17px 14px 8px}.feature-lab .fx-chart-panel .chart-caption{padding-left:14px;padding-right:14px}}

/* Keep the series list aligned with the complete Actual vs Forecast column. */
@media(min-width:651px){
 .evaluation-grid>.series-panel{max-height:none;min-height:0;overflow:hidden}
 .evaluation-grid>.series-panel>.series-list{flex:1 1 0}
 .evaluation-grid>.series-panel>.panel-head,.evaluation-grid>.series-panel>.search-wrap,.evaluation-grid>.series-panel>.series-foot{flex-shrink:0}
}

.model-card-pending{margin-top:12px;padding-top:10px;border-top:1px solid #395068}.model-card-pending small{font-size:10px;color:#a7bed7}.model-card-pending .model-card-button{margin-top:7px}
