/*! PV Module Studio UI v2 · 2026-11-03 · 原始样式 + 设计层（AI智研重做） */
:root{font-family:Inter,"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;color:#192943;background:#f4f7fb;font-synthesis:none;font-size:14px;--navy:#0e1c36;--muted:#71809b;--line:#dfe7f1;--blue:#2563eb;--teal:#0d9e91;--surface:#fff;--shadow:0 10px 28px rgba(28,48,85,.055)}*{box-sizing:border-box}body{margin:0;min-width:960px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:default}a{color:inherit}.app{display:flex;min-height:100vh}.side{position:sticky;top:0;height:100vh;width:232px;flex:0 0 232px;background:#0d1930;color:#d5e2f2;padding:27px 17px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 9px 22px;border-bottom:1px solid #25344e}.brandicon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#23c0b2,#3677ec);box-shadow:0 8px 18px #0003;font-size:25px}.brand h1{font-size:15px;color:white;margin:0 0 4px;letter-spacing:.3px}.brand small{font-size:10px;letter-spacing:1.3px;color:#91a7c1}.navtitle{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#6f89a9;margin:28px 12px 12px}.navitem{width:100%;border:0;border-radius:10px;background:transparent;color:#a9bdd5;padding:12px 14px;text-align:left;display:flex;align-items:center;gap:13px;margin:2px 0;font-weight:600;font-size:12px}.navitem:hover{background:#152946;color:#fff}.navitem.active{background:#22385c;color:#fff;box-shadow:inset 3px 0 #32ccbe}.navitem .ic{width:21px;display:inline-block;text-align:center;font-size:17px;font-weight:400}.sidebar-bottom{margin-top:auto;padding:15px 12px 2px;border-top:1px solid #25344e;font-size:11px;color:#94abc5;line-height:1.9}.dot{display:inline-block;width:8px;height:8px;background:#16c7ac;border-radius:50%;margin-right:6px}.shell{min-width:0;flex:1}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 37px;position:sticky;top:0;z-index:6}.crumb{font-size:12px;color:#74829b}.crumb strong{font-weight:700;color:#233550}.top-actions{display:flex;gap:9px;align-items:center}.btn{border:1px solid #d6e1ee;background:#fff;color:#304564;padding:10px 14px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;white-space:nowrap;font-size:12px;transition:.15s}.btn:hover{border-color:#719fe9;color:#185fdd}.btn.primary{color:#fff;background:#2467e8;border-color:#2467e8;box-shadow:0 4px 10px #2467e81d}.btn.primary:hover{background:#1355ce}.btn.ghost{background:#f0f5fc}.smallbtn{padding:7px 10px;font-size:11px}.workspace{padding:30px 38px 55px;max-width:1700px;margin:auto}.headline{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:23px}.eyebrow{font-size:11px;letter-spacing:1.8px;color:var(--teal);text-transform:uppercase;font-weight:900}.headline h2{font-size:25px;letter-spacing:-.5px;line-height:1.3;margin:7px 0 10px;color:#152641}.subtitle{color:#75839c;font-size:12px;line-height:1.8;margin:0}.status{display:flex;gap:8px;align-items:center;font-size:11px;padding:8px 11px;background:#e9f8f5;color:#057b71;border-radius:20px;white-space:nowrap;font-weight:700}.selectors{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:17px 20px;margin-bottom:24px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.field{display:flex;flex-direction:column;gap:7px;min-width:150px}.field.wide{flex:2;min-width:240px}.field.medium{flex:1.5;min-width:190px}.field label{font-size:11px;font-weight:800;color:#687993}.field input,.field select,.paramrow input,.search{outline:none;border:1px solid #dbe4f0;border-radius:8px;padding:10px 11px;color:#263c5d;background:#fff;min-height:40px;width:100%;font-size:12px}.field input:focus,.field select:focus,.paramrow input:focus,.search:focus{border-color:#3774ec;box-shadow:0 0 0 3px #3774ec18}.seg{display:inline-flex;align-items:center;padding:4px;border-radius:9px;background:#eef3f9;gap:3px}.seg button{border:0;padding:9px 20px;background:transparent;border-radius:7px;color:#8190a6;font-weight:800}.seg button.active{background:#fff;color:#235fce;box-shadow:0 3px 8px #102e5614}.grid-kpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.kpi{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:19px 21px;min-height:139px;position:relative;overflow:hidden}.kpi .caption{display:flex;justify-content:space-between;font-size:11px;font-weight:700;color:#7586a0}.kpi .big{margin:15px 0 8px;font-size:28px;line-height:1;font-weight:850;color:#172943;letter-spacing:-1px;white-space:nowrap}.kpi .unit{font-size:13px;font-weight:600;color:#72839c;letter-spacing:0;margin-left:4px}.kpi .trend{font-size:11px;color:#72829b}.kpi .trend b{color:#109b86}.kpi .mark{position:absolute;right:-23px;bottom:-45px;width:110px;height:110px;border-radius:50%;background:#eaf2ff}.kpi.green .big{color:#098e83}.kpi.green .mark{background:#e3f9f4}.kpi.amber .mark{background:#fff3dd}.panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;overflow:hidden}.panelhead{padding:19px 22px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eef2f7}.panelhead h3{font-size:14px;margin:0;color:#1d3152}.panelhead small{color:#8b9ab1;font-size:11px;line-height:1.5}.panelbody{padding:21px 22px}.split{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.85fr);gap:20px;margin-bottom:20px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.barstack{height:13px;background:#e8eff8;border-radius:8px;display:flex;overflow:hidden}.stacksegment{height:100%;transition:width .25s}.legend{display:flex;gap:15px;flex-wrap:wrap;font-size:11px;color:#687a94;margin-top:16px}.legend i{width:10px;height:10px;display:inline-block;border-radius:3px;margin-right:6px}.tabline{display:flex;gap:8px;flex-wrap:wrap}.pill{font-size:11px;background:#f0f5fc;border-radius:6px;padding:6px 9px;color:#426287;font-weight:700}.pill.mint{background:#e7f8f3;color:#0b907d}.break-row{display:grid;grid-template-columns:146px 1fr 83px;align-items:center;gap:13px;margin:17px 0}.break-row .lab{font-size:11px;color:#4f6280}.track{width:100%;height:10px;background:#edf2f8;border-radius:6px;overflow:hidden}.track>div{height:100%;border-radius:6px;background:linear-gradient(90deg,#55a5f8,#2d69d9)}.break-row .val{text-align:right;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;color:#253c61}.notice{display:flex;gap:11px;background:#fff8e9;border:1px solid #f9e7c2;border-radius:10px;padding:13px 14px;margin-bottom:9px;line-height:1.65}.notice.info{background:#f3f7fc;border-color:#e1eaf5}.notice.error{background:#fff0f0;border-color:#ffd4d4}.notice .sym{font-size:16px;color:#bc833a}.notice.info .sym{color:#5e83c2}.notice.error .sym{color:#bf4a4a}.notice strong{font-size:11px;color:#5b4d39}.notice p{font-size:11px;color:#756854;margin:4px 0 0}.notice.info strong{color:#4f6888}.notice.info p{color:#66809c}.notice.error strong,.notice.error p{color:#a72e2e}.detailtable{width:100%;border-collapse:collapse;font-size:11px}.detailtable th{text-align:left;background:#f7f9fd;color:#7c8ca5;font-weight:800;border-bottom:1px solid #e5edf5;padding:12px 14px}.detailtable td{padding:12px 14px;border-bottom:1px solid #edf1f7;color:#455772;line-height:1.5}.detailtable tr:last-child td{border-bottom:0}.detailtable .strong{color:#1c385e;font-weight:800}.detailtable .num{text-align:right;font-variant-numeric:tabular-nums}.detailtable th.num{text-align:right}.detailtable tr.highlight{background:#eff8f5}.muted{color:#93a0b4}.editor{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}.edit-nav{position:sticky;top:92px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}.edit-nav button{width:100%;text-align:left;border:0;background:none;padding:12px;border-radius:8px;color:#6f8098;font-weight:700;font-size:11px;display:block}.edit-nav button:hover,.edit-nav button.active{background:#eaf3ff;color:#185bc9}.edit-nav hr{border:0;border-top:1px solid #e8edf5;margin:10px}.edit-content{min-width:0}.inputgroups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:19px}.paramrow{display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:9px;align-items:center;padding:10px;border-radius:8px;background:#fbfcff;border:1px solid #f0f3fa;min-height:58px}.paramrow.changed{background:#eaf7fe;border-color:#c8e3f9}.paramrow label{font-size:11px;color:#334869;line-height:1.5;font-weight:700}.paramrow .hint{font-size:10px;color:#93a0b5;margin-top:3px;font-weight:400}.paramrow input{min-height:33px;padding:7px 8px;text-align:right;font-variant-numeric:tabular-nums;font-weight:700}.paramrow input.modified{color:#185bc9;background:#f5fbff}.groupnote{padding:11px 20px;background:#f7f9fd;font-size:11px;color:#8594aa;border-bottom:1px solid #e9eef6}.filter{display:flex;align-items:center;gap:10px;margin:15px 0}.filter .search{max-width:300px}.filter .counts{font-size:11px;color:#8492a7}.mini{color:#69809f;font-size:11px}.safe{color:#128674;font-weight:800}.danger{color:#cd5b4f;font-weight:800}.tabs{display:flex;gap:9px;margin-bottom:16px}.tabs button{border:1px solid #e2e9f4;background:white;padding:9px 13px;border-radius:7px;color:#536d90;font-weight:700}.tabs button.active{background:#235fd1;border-color:#235fd1;color:white}.svg-chart{width:100%;max-height:325px;display:block}.chartfoot{font-size:11px;color:#8493aa;margin-top:10px;line-height:1.6}.empty{padding:35px;color:#8da0ba;text-align:center}.audittag{font-size:10px;background:#eff4fa;padding:4px 6px;border-radius:4px;color:#687d99}.audittag.formula{background:#eaf5ff;color:#3575c0}.callout{font-size:11px;line-height:1.8;color:#667c99;border-left:3px solid #45b4a8;padding:10px 14px;background:#f0faf7;margin:15px 0}.sticky-save{position:fixed;bottom:19px;right:22px;background:#142c4b;color:white;padding:10px 16px;border-radius:9px;box-shadow:0 8px 24px #142c4b40;font-size:12px;opacity:0;pointer-events:none;transition:.25s;z-index:12}.sticky-save.show{opacity:1}.footerline{color:#9da9bc;font-size:11px;text-align:center;padding:18px 0}.mono{font-family:Consolas,Menlo,monospace;font-size:11px}.arrow{font-size:20px;color:#2d7796}.right-actions{display:flex;align-items:center;gap:8px}.chip{font-size:10px;border:1px solid #dce6f0;border-radius:5px;padding:4px 7px;background:#fafcff;color:#6e819b}.graphlegend{display:flex;gap:15px;flex-wrap:wrap}.graphlegend span{display:flex;align-items:center;gap:7px;font-size:11px;color:#677b98}.graphlegend em{display:inline-block;width:10px;height:10px;border-radius:2px}.value-color{font-weight:800;color:#2367cf}.val-negative{font-weight:800;color:#cb5d50}#fileInput{display:none}#stage{min-height:350px}@media(max-width:1250px){.workspace{padding:27px 22px}.topbar{padding:0 22px}.side{width:202px;flex-basis:202px}.grid-kpi{gap:11px}.kpi{padding:16px}.kpi .big{font-size:23px}.split{grid-template-columns:1.3fr 1fr}.editor{grid-template-columns:180px 1fr}.inputgroups{grid-template-columns:1fr}}@media(max-width:1050px){.grid-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}.split,.twocol{grid-template-columns:1fr}.side{width:192px;flex-basis:192px}}@media print{body{min-width:0!important;background:#fff}.side,.topbar,.selectors,.headline .status,.btn,.tabs,.edit-nav,.footerline,.filter{display:none!important}.shell{width:100%}.workspace{padding:0!important}.panel,.kpi{box-shadow:none;break-inside:avoid}.headline h2{font-size:21px}.grid-kpi{grid-template-columns:repeat(4,1fr)}.split,.twocol{grid-template-columns:1fr 1fr}#stage>section{break-inside:avoid}}
@media(max-width:900px){body{min-width:0}.app{display:block}.side{width:100%;height:auto;position:relative;padding:10px 14px;display:block}.brand{padding:4px 6px 10px}.brandicon{width:32px;height:32px}.navtitle,.sidebar-bottom{display:none}.side nav{display:flex;overflow-x:auto;gap:3px;padding:7px 0}.side nav .navitem{min-width:100px;font-size:10px;padding:10px 8px;justify-content:center;flex-direction:column;gap:3px;margin:0}.side>.navitem{display:none}.topbar{position:relative;height:auto;gap:8px;padding:12px 14px;flex-wrap:wrap}.top-actions{width:100%;overflow-x:auto}.workspace{padding:15px 12px 35px}.selectors{padding:12px}.field,.field.wide,.field.medium{width:100%;flex:auto}.headline{display:block}.headline h2{font-size:21px}.headline .status{display:inline-flex;margin:10px 0}.grid-kpi{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi .big{font-size:21px}.panelhead,.panelbody{padding:14px}.editor{display:block}.edit-nav{position:relative;top:auto;display:flex;overflow-x:auto;gap:5px;margin-bottom:13px}.edit-nav button{white-space:nowrap}.edit-nav>div,.edit-nav hr{display:none}.inputgroups{grid-template-columns:1fr;padding:10px}.break-row{grid-template-columns:110px 1fr 75px;gap:7px}.break-row .lab{font-size:10px}.detailtable{font-size:10px}}

/* v1.1 engineering QA enhancements */
.global-status{font-size:10px;font-weight:800;white-space:nowrap}.status-error{padding:7px 10px;border-radius:6px;background:#fff0f0;color:#a92727;border:1px solid #f6c4c4}.status-warn{padding:7px 10px;border-radius:6px;background:#fff6df;color:#865d15;border:1px solid #fae4ad}.status-ok{padding:7px 10px;border-radius:6px;background:#e9f8f0;color:#186944}.live-validation{margin:0 0 16px}.paramrow input.invalid{border-color:#ce3434;background:#fff0f0;box-shadow:0 0 0 2px #ce343421}.sort-label{display:flex;align-items:center;gap:6px;color:#556c88;font-size:11px}.sort-label select{font:inherit;border:1px solid #d6e2f2;border-radius:6px;padding:6px;max-width:205px;background:white}.right-actions{flex-wrap:wrap}@media(max-width:760px){.global-status{white-space:normal}.sort-label select{max-width:130px}}

@media(max-width:900px){.topbar{display:flex;flex-direction:column;align-items:stretch;gap:9px}.topbar .crumb{width:100%;flex:0 0 auto;white-space:normal;line-height:1.5}.topbar .top-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;overflow:visible}.top-actions #headline-preview{max-width:100%;font-size:10px}.top-actions .global-status{white-space:normal;max-width:100%}.top-actions .global-status span{display:block}.top-actions>.btn{flex:0 0 auto}}

/* v2.0 RC: independent circuit sandbox, controlled sweep and evidence-gate */
#ivFileInput{display:none}.iv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.iv-field{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#526681;font-weight:700}.iv-field small{color:#9faec1}.iv-field input,.sweep-fields input,.sweep-fields select,.governance-label input,.governance-label textarea,.gate-evidence{width:100%;border:1px solid #dbe4f0;border-radius:8px;padding:10px;background:#fff;min-height:36px;color:#263d59}.iv-field input:focus,.sweep-fields input:focus,.gate-evidence:focus{outline:2px solid #d1e2ff}.iv-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.iv-stat{background:#f5f8fe;border:1px solid #e5ecf6;border-radius:9px;padding:13px;display:flex;flex-direction:column;gap:6px}.iv-stat span{font-size:11px;color:#66809c}.iv-stat strong{font-size:19px;color:#2157a5}.iv-stat small{font-size:10px;color:#7790a9}.iv-chart{max-height:410px}.sweep-fields{display:flex;align-items:end;flex-wrap:wrap;gap:11px}.sweep-fields label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:700;color:#546882;min-width:125px;flex:1}.sweep-fields label:first-child{min-width:245px;flex:2}.gate-item{display:grid;grid-template-columns:minmax(0,245px) minmax(150px,1fr) 135px;align-items:center;gap:15px;padding:14px 3px;border-bottom:1px solid #ecf0f7}.gate-name{font-weight:700;font-size:12px;color:#314967;display:flex;gap:8px;align-items:center}.gate-item small{font-size:10px;color:#8294a9}.governance-label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700;color:#4c6180;margin-bottom:18px}@media(max-width:1100px){.iv-area{grid-template-columns:1fr}.gate-item{grid-template-columns:1fr}.gate-item small{padding-left:0}}@media(max-width:600px){.iv-grid{grid-template-columns:1fr 1fr}.iv-stat-grid{grid-template-columns:repeat(2,1fr)}.sweep-fields{display:grid;grid-template-columns:1fr 1fr}.sweep-fields label:first-child{grid-column:span 2}.gate-item{gap:9px}}

.workflow-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.workflow-step{display:flex;gap:15px;padding:15px;border:1px solid #e7eefa;border-radius:12px;background:#fbfdff}.workflow-step strong{font-size:20px;color:#13a499}.workflow-step b{color:#23476c;font-size:12px}.workflow-step p{font-size:11px;color:#72839e;margin:5px 0 0;line-height:1.6}@media(max-width:650px){.workflow-steps{grid-template-columns:1fr}}

/* V3 enterprise engineering UI: premium studio without external assets */
:root{--navy:#0b1529;--muted:#7184a2;--line:#e3eaf4;--blue:#4168e8;--teal:#069ba3;--surface:#fff;--shadow:0 16px 38px rgba(24,48,99,.055)}
body{background:radial-gradient(ellipse at 92% 3%,rgba(81,132,233,.075),transparent 36%),#f4f7fc;color:#172a45}
.side{background:radial-gradient(circle at 0% 0%,#223961 0%,#0c1b34 43%,#091629 100%);box-shadow:6px 0 28px #06152b12}
.brand{border-bottom-color:#ffffff20}.brandicon{background:linear-gradient(145deg,#17ded0,#507df9);box-shadow:0 6px 23px #31c0ed66}.brand h1{letter-spacing:.1px;font-weight:850}
.navtitle{color:#6c8aae}.navitem{border-radius:9px;font-size:12px;transition:background .16s, transform .16s}.navitem:hover{transform:translateX(2px)}.navitem.active{background:linear-gradient(100deg,rgba(61,129,212,.32),rgba(29,91,156,.1));box-shadow:inset 3px 0 #3fe0cb;color:white}
.topbar{background:rgba(255,255,255,.95);backdrop-filter:blur(18px);box-shadow:0 2px 16px rgba(17,40,75,.025)}
.workspace{max-width:1650px}.selectors{border-color:#e8edf6;box-shadow:0 4px 20px #1a38610a}
.btn{border-radius:9px}.btn.primary{background:linear-gradient(135deg,#4178f4,#2d56d5);box-shadow:0 5px 16px #4875ea28}.btn.primary:hover{background:#1b4abf;color:white}
.headline h2{font-size:27px;font-weight:850;letter-spacing:-.8px}.eyebrow{letter-spacing:1.4px;color:#0b9bac}
.panel,.kpi{border:1px solid #e6edf6;box-shadow:0 10px 27px rgba(32,69,122,.04);transition:box-shadow .2s}.panel:hover,.kpi:hover{box-shadow:0 16px 38px rgba(32,69,122,.072)}
.panelhead h3{font-size:14px;font-weight:850}.kpi{min-height:144px}.kpi .caption{font-size:11px}.kpi .big{font-size:28px;font-variant-numeric:tabular-nums}.kpi .mark{width:105px;height:105px;background:radial-gradient(circle,#e1eaff 0%,#edf5fe 70%)}
.premium-overview{display:flex;justify-content:space-between;align-items:center;gap:20px;position:relative;overflow:hidden;border:1px solid #294c89;border-radius:17px;padding:24px 29px;color:white;margin-bottom:21px;background:radial-gradient(circle at 80% 5%,#244f93 0%,transparent 27%),linear-gradient(115deg,#0c2b4f,#112b50 55%,#112849);box-shadow:0 13px 31px #223b7424}
.premium-overview:after{content:'';position:absolute;width:380px;height:380px;right:16%;top:-200px;border:1px solid #7ca8ff25;border-radius:100%;box-shadow:0 0 0 45px #7ca8ff06,0 0 0 100px #7ca8ff06;pointer-events:none}
.premium-overview h3{color:white;position:relative;font-size:21px;margin:8px 0;z-index:1}.premium-overview p{color:#a9c5e3;font-size:11px;margin:0;position:relative;z-index:1}.premium-overview .overline{color:#57ded1;font-size:10px;font-weight:800;letter-spacing:1.8px}.premium-version{font-size:26px;font-weight:850;letter-spacing:-.3px;white-space:nowrap;z-index:1}.premium-version b{font-size:10px;color:#192b45;background:#56e2d4;border-radius:5px;padding:5px 7px;vertical-align:middle;letter-spacing:1px}.premium-version small{display:block;margin-top:9px;color:#91b6dc;text-align:right;font-size:9px;letter-spacing:2px}
.table-scroll{width:100%;overflow:auto}.money-input{width:125px;min-height:35px;border:1px solid #dbe4f2;border-radius:7px;font-weight:700;text-align:right;padding:8px 9px;background:#fff;color:#19345a}.money-input:focus{border-color:#507de9;outline:2px solid #507de92a}.money-input.invalid{border-color:#dd6060;background:#fff4f4}
.toolbar-inline{display:flex;flex-wrap:wrap;gap:10px}.quote-section{background:#f7f9fd;border:1px solid #e6edf6;padding:13px;border-radius:11px;margin-bottom:13px}.quote-label{font-size:11px;font-weight:800;color:#405678;margin-bottom:9px}.quote-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.quote-compare>div{border:1px solid #edf0f7;border-radius:9px;background:#fafbfe;padding:12px;color:#6b7d97;font-size:11px}.quote-compare b{display:block;margin-top:7px;font-size:17px;color:#14365b;font-variant-numeric:tabular-nums}.warn-pill{background:#fff0d5;color:#ae6b18}
.mini-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mini-controls label,.circuit-config label{font-weight:750;font-size:11px;color:#506987;display:flex;flex-direction:column;gap:9px}.mini-controls input,.circuit-config input,.circuit-config select{width:100%;padding:10px;border:1px solid #dce6f3;border-radius:8px;background:#fff;color:#254463;min-height:38px}.circuit-config{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px;margin:7px 0 15px}
.circuit-cells{padding:12px 13px;background:#f6f9fd;border:1px solid #e8edf7;border-radius:10px;max-height:355px;overflow-y:auto}.path-title{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#1c4167;margin:12px 0 8px}.path-title span{color:#8192aa;font-size:10px}.cell-rail{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:12px}.cell-tile{border:1px solid #c9d9ec;border-radius:5px;background:linear-gradient(135deg,#235a95,#12396c);font-size:9px;font-weight:700;color:#eef9ff;width:28px;height:28px;padding:0;box-shadow:inset 1px 1px #ffffff35;transition:.12s}.cell-tile:hover{transform:scale(1.1);box-shadow:0 0 0 2px #4085e844}.cell-tile.start-sub{border-left:3px solid #5be0d3}.cell-tile.shaded{background:linear-gradient(135deg,#eebd6c,#d47d46);color:#45230e;border-color:#edc078}
.module-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 14px}.mini-kpi{border:1px solid #d9e6f4;border-radius:12px;background:linear-gradient(180deg,#fbfdff,#f5f8fd);padding:12px 13px}.mini-kpi span{display:block;font-size:11px;font-weight:700;color:#7286a1;margin-bottom:6px}.mini-kpi b{display:block;font-size:16px;color:#173a5f;line-height:1.2}.mini-kpi small{display:block;margin-top:4px;color:#5e738f}.module-designer{border:1px solid #dbe6f2;border-radius:14px;background:linear-gradient(180deg,#fbfdff,#f6faff);padding:14px 14px 10px;box-shadow:inset 0 1px 0 #fff}.module-schematic{width:100%;display:block;max-height:560px}.module-legend{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:11px;color:#61758f;margin-top:10px}.module-legend span{display:inline-flex;align-items:center;gap:6px}.module-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid #ccd9e6}.module-legend .muted{color:#7c8da4}.electrical-rail{margin-top:12px;border:1px solid #dce6f3;border-radius:12px;background:#fbfdff}.electrical-rail summary{cursor:pointer;list-style:none;padding:11px 14px;font-weight:700;color:#234565}.electrical-rail summary::-webkit-details-marker{display:none}.electrical-rail[open] summary{border-bottom:1px solid #e7eef7}.front-drawing g[data-circuit-cell]:focus rect,.module-schematic g[data-circuit-cell]:focus rect{outline:none;stroke:#ff8c00;stroke-width:2.2}
@media (max-width:960px){.module-kpis{grid-template-columns:1fr}.module-schematic{max-height:460px}}

.curve-legend{display:flex;flex-wrap:wrap;gap:15px;margin-top:10px}.curve-legend span{font-size:11px;color:#657b98;display:flex;align-items:center;gap:6px}.curve-legend i{height:4px;width:18px;border-radius:4px}.table-scroll .detailtable{min-width:640px}
@media(max-width:900px){.premium-overview{padding:18px}.premium-overview h3{font-size:18px}.premium-version{font-size:19px}.table-scroll .detailtable{font-size:11px}.side nav{scrollbar-width:thin}.side nav .navitem{min-width:122px}}
@media(max-width:600px){.premium-overview{display:block}.premium-version{margin-top:16px}.premium-version small{text-align:left}.mini-controls{grid-template-columns:1fr}.quote-compare{grid-template-columns:1fr}.money-input{width:100px}.grid-kpi{gap:8px}.kpi{padding:14px;min-height:120px}.kpi .big{font-size:19px}.kpi .unit{font-size:11px}.kpi .mark{width:65px;height:65px}.headline h2{font-size:22px}}
@media print{.premium-overview{background:#fff!important;color:#123!important;box-shadow:none}.premium-overview h3{color:#123}.circuit-config,.toolbar-inline,.cell-tile{print-color-adjust:exact}}

body{min-width:0}.side nav{min-height:0;overflow-y:auto;scrollbar-width:thin}@media(max-width:900px){.side nav{overflow-x:auto;overflow-y:hidden}}

/* V4 physical layout & versioned parameter guidance */
.matrix-workspace{display:grid;grid-template-columns:minmax(350px,.88fr) minmax(0,1.25fr);gap:18px;align-items:start}
.matrix-workspace .panel{min-width:0}
.module-display{border-radius:13px;background:linear-gradient(145deg,#e7f1ff,#f4f8fc);border:1px solid #d4e3f1;padding:12px;text-align:center}
.module-display svg{width:100%;max-height:680px;display:block;margin:auto}
.matrix-legend{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}.matrix-legend span{font-size:10px;color:#4d617e;border:1px solid #e0e9f5;border-radius:30px;padding:6px 9px;display:flex;align-items:center;gap:6px}.matrix-legend i{width:9px;height:9px;border-radius:3px}
.matrix-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:16px}.matrix-config label{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#3e5a7b}.matrix-config input,.matrix-config select{width:100%;min-height:43px;padding:9px 11px;border:1px solid #d5e1f0;border-radius:9px;background:#f8faff;color:#143b65;font-weight:750;font-size:14px}.matrix-config input:focus,.matrix-config select:focus{outline:2px solid #7ca9ec}.matrix-config small{font-size:9px;line-height:1.5;color:#879bb4;font-weight:500}
.matrix-tools{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0 19px}.matrix-tools .btn{font-size:10px}
.matrix-analysis{overflow-x:auto}.matrix-analysis .detailtable{min-width:420px}
.page-guidance{margin:0 0 19px;border:1px solid #cfe3ec;border-radius:13px;background:linear-gradient(100deg,#f5fbfc,#eef6ff);overflow:hidden}
.page-guidance summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;color:#1b4e71;font-size:12px;font-weight:800;list-style:none}
.page-guidance summary:before{content:'ⓘ';border-radius:50%;width:19px;height:19px;background:#e1f2fc;text-align:center;font-weight:bold;flex-shrink:0}.page-guidance summary span{flex:1}
.page-guidance summary small{font-weight:550;color:#7b91aa;font-size:10px}
.page-guidance summary::-webkit-details-marker{display:none}.page-guidance[open] summary{border-bottom:1px solid #d6e5f1}.page-guidance>.chartfoot{padding:0 17px 13px}
.guide-scroller{overflow-x:auto;padding:0 10px}.page-guidance table{min-width:820px;font-size:10px}.page-guidance table td{vertical-align:top;line-height:1.7}.page-guidance table td:nth-child(4){min-width:190px}.page-guidance a,.matrix-workspace a{color:#2475b2;text-decoration:none}
@media(max-width:1100px){.matrix-workspace{grid-template-columns:1fr}.module-display svg{max-height:650px}}
@media(max-width:600px){.matrix-config{grid-template-columns:repeat(2,minmax(0,1fr))}.matrix-workspace{grid-template-columns:minmax(0,1fr)}.matrix-config input,.matrix-config select{font-size:12px}.page-guidance summary{flex-wrap:wrap;font-size:11px}.page-guidance summary small{flex:0 0 100%;padding-left:29px}}
@media print{.matrix-tools,.matrix-config{break-inside:avoid}.page-guidance:not([open]){display:none}}

.param-advice{font-size:9px;line-height:1.6;color:#52839e;max-width:310px;margin-top:5px}.paramrow .param-advice{word-break:break-word}
/* V4.2 CTM engineering workstation */
.nav-new{display:inline-flex;align-items:center;justify-content:center;font-size:8px;line-height:1;color:#c2fff7;background:#0b8c83;border-radius:5px;padding:4px 6px;margin-left:auto;letter-spacing:.4px}
.ctm-hero{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.ctm-hero>div{border:1px solid #d7e4f2;border-radius:14px;background:linear-gradient(140deg,#fff,#f2f8ff);padding:22px 24px;box-shadow:0 5px 16px rgba(15,50,95,.04);min-width:0}
.ctm-hero strong{display:block;font-weight:800;font-size:33px;letter-spacing:-1px;color:#133b72;margin:6px 0}
.ctm-hero strong small{font-size:16px}.ctm-hero p{font-size:12px;color:#647b98;line-height:1.6;min-height:37px}
.ctm-flow{display:flex;flex-direction:column;gap:6px}.ctm-flow-item{display:grid;grid-template-columns:minmax(185px,1.3fr) minmax(80px,1.8fr) 110px;gap:14px;align-items:center;border-bottom:1px solid #eaf0f8;padding:10px 0}
.ctm-flow-item>div:first-child{min-width:0}.ctm-flow-item b{font-size:12px;color:#183a61}.ctm-flow-item small{display:block;font-size:10px;color:#7890a8;line-height:1.5;margin-top:3px}
.ctm-flow-item strong{text-align:right;font-size:13px;white-space:nowrap}.ctm-bar-rail{height:9px;border-radius:20px;background:#eff4fa;overflow:hidden}.ctm-bar-rail>span{display:block;height:100%;border-radius:20px}
.ctm-reconcile{display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between;color:#24446b;font-weight:700;font-size:12px;background:#ecf4ff;padding:13px 15px;border-radius:9px;margin-top:16px}
.ctm-scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.ctm-scenario-grid>div{padding:15px;background:#f4f8fe;border-radius:9px;border:1px solid #dfebf9}.ctm-scenario-grid span{font-size:11px;color:#667d98;display:block}.ctm-scenario-grid b{font-size:20px;display:block;color:#194d89;padding-top:7px}
.ctm-layout-templates{border:1px solid #d7e4f2;background:#f6f9ff;padding:17px 18px;border-radius:12px;margin-top:20px;margin-bottom:13px}.ctm-layout-templates .mini{font-weight:800;color:#365376;margin-bottom:9px}.ctm-layout-templates .toolbar-inline{gap:8px;flex-wrap:wrap}.ctm-layout-templates .btn{white-space:normal;text-align:center}
.ctm-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ctm-checklist>div{border:1px solid #e1e9f4;background:#f9fbff;border-radius:10px;padding:15px}.ctm-checklist b{display:block;color:#23446c;margin-bottom:8px}.ctm-checklist p{font-size:12px;color:#647b98;line-height:1.7}
@media(max-width:1100px){.ctm-hero{grid-template-columns:1fr}.ctm-hero>div{padding:16px}.ctm-checklist{grid-template-columns:1fr}}
@media(max-width:650px){.ctm-flow-item{grid-template-columns:minmax(0,1fr) 70px;gap:7px}.ctm-flow-item>.ctm-bar-rail{grid-column:1 / -1;grid-row:2}.ctm-flow-item strong{grid-row:1;grid-column:2}.ctm-scenario-grid{grid-template-columns:1fr}.ctm-hero strong{font-size:27px}}

/* No ghost native upload buttons in mobile/desktop release. */
#fileInput,#guidanceFileInput,#ivFileInput{display:none!important}

/* V5 engineering / traceable electrical network workspace */
.netlist-editor{width:100%;min-height:240px;max-height:420px;resize:vertical;background:#0d1d35;color:#dcf6ef;padding:18px 20px;border:1px solid #294364;border-radius:12px;font:12px/1.85 Consolas,'Courier New',monospace;white-space:pre-wrap;overflow:auto;letter-spacing:.1px;margin:10px 0 15px}
.netlist-editor:focus{outline:2px solid #22a7b6}.netlist-nodes{max-height:310px;overflow:auto;margin:13px 0}.netlist-nodes .detailtable{font-size:11px}
#fileInput,#guidanceFileInput,#ivFileInput,#validationFileInput{display:none!important}
@media(max-width:650px){.netlist-editor{font-size:10px;padding:10px}.netlist-nodes{max-width:100%;overflow:auto}.netlist-nodes table{min-width:400px}}

.confidence-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:25px 0 12px}.confidence-head strong{font-size:16px;color:#243e61}.confidence-head p{font-size:11px;color:#7c8ba1;margin:6px 0 0;line-height:1.6}.confidence-head>span{color:#138d87;font-size:10px;letter-spacing:1.4px;font-weight:800;white-space:nowrap}
.confidence-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 23px}.confidence-card{text-align:left;border:1px solid #dce6f0;background:#fff;border-radius:12px;min-width:0;padding:15px 16px;display:flex;flex-direction:column;gap:9px;box-shadow:0 4px 15px #17396108;transition:.15s}.confidence-card:hover{border-color:#5c99df;transform:translateY(-2px)}.confidence-card small{font-size:11px;color:#69839c;font-weight:700}.confidence-card strong{color:#143c67;font-size:17px;letter-spacing:-.4px}.confidence-card>span{font-size:10px;color:#8297ac}.confidence-card.blocked{border-left:3px solid #d8646c}.confidence-card.caution{border-left:3px solid #d69b3e}.confidence-card.progress{border-left:3px solid #12a49a}
@media(max-width:950px){.confidence-row{grid-template-columns:repeat(2,minmax(0,1fr))}.confidence-head{flex-wrap:wrap}}@media(max-width:550px){.confidence-card strong{font-size:15px}.confidence-card{padding:12px}.confidence-head>span{display:none}}

/* V5.2 drawing workbench with geometric front/rear parity */
.drawing-shell{display:flex;flex-direction:column;gap:16px;margin:18px 0 20px}.drawing-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:14px;background:#eaf3fd;border:1px solid #cbdfee;padding:16px 20px}.drawing-intro strong{display:block;font-size:15px;color:#173c68}.drawing-intro small{display:block;font-size:11px;color:#55728e;margin-top:7px;line-height:1.6}.drawing-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.drawing-duo>.drawing-panel{min-width:0}.drawing-duo .engineering-drawing{max-height:615px;width:100%;display:block;margin:auto}.drawing-duo .module-display{background:linear-gradient(150deg,#edf5fd,#f8fbff);padding:12px}.drawing-settings{min-width:0}.matrix-workspace-config{grid-template-columns:minmax(0,1fr)}.matrix-workspace-config>.panel{grid-column:1/-1}.matrix-workspace-config>.panel .matrix-config{grid-template-columns:repeat(3,minmax(0,1fr))}.engineering-drawing g:focus{outline:none}.engineering-drawing g:focus rect{stroke:#ff9900;stroke-width:3}.drawing-panel .chartfoot{line-height:1.65}@media(max-width:900px){.drawing-duo{grid-template-columns:1fr}.drawing-intro{flex-wrap:wrap}.drawing-duo .engineering-drawing{max-height:590px}}@media(max-width:650px){.matrix-workspace-config>.panel .matrix-config{grid-template-columns:repeat(2,minmax(0,1fr))}.drawing-intro .right-actions{flex-wrap:wrap}.drawing-intro{padding:13px}}@media print{.drawing-panel,.drawing-duo{break-inside:avoid}.drawing-duo{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V5.3 release checklist: readable mobile cards rather than 4 squeezed table columns. */
.release-mobile-cards{display:none}
@media(max-width:680px){
 .release-table{display:none!important}
 .release-mobile-cards{display:grid;gap:11px;padding:13px}
 .release-issue-card{background:#f9fbff;border:1px solid #e2eaf4;border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:9px;min-width:0;overflow-wrap:anywhere}
 .release-issue-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;font-size:11px;color:#506782}
 .release-issue-top span{font-size:10px;border:1px solid #dfebf7;border-radius:5px;padding:3px 6px;background:#eef4fc}
 .release-issue-card>strong{font-size:13px;line-height:1.45;color:#233c5f}
 .release-issue-card p{font-size:11px;line-height:1.7;color:#5b7190;margin:0}
 .release-issue-card .btn{align-self:flex-start;min-height:36px}
}

/* V6.4 market pricing: ensure source provenance and unit prices are readable on narrow screens */
.market-table-scroll .detailtable{min-width:960px;table-layout:auto;font-size:12px}
.market-table-scroll .detailtable td:first-child{min-width:230px;max-width:260px;white-space:normal}
.market-table-scroll .detailtable td:last-child{min-width:125px}
.market-table-scroll .market-range-input{width:86px;max-width:86px;padding:7px 5px;font-size:12px}
.market-summary .kpi .big{font-variant-numeric:tabular-nums}

/* V6.5 — accessible per-parameter engineering guidance */
.param-label-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.param-help-button{display:inline-flex;justify-content:center;align-items:center;width:21px;height:21px;flex:0 0 21px;padding:0;border:1px solid #adc5e7;background:#eef5ff;border-radius:50%;font-size:12px;font-weight:900;color:#205bb6;cursor:pointer;line-height:1}.param-help-button:hover,.param-help-button:focus-visible{background:#1f62ca;border-color:#1f62ca;color:white;outline:2px solid #9dc5ff;outline-offset:2px}.param-row:focus-within,.paramrow:focus-within{border-color:#a9c4e7}.param-range-caption{font-size:9.5px;line-height:1.45;color:#607b9b;margin-top:4px}.param-range-caption.outside-typical{color:#a36a20;font-weight:700}.param-description{min-width:0}.param-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.param-guide-overlay[hidden]{display:none!important}.param-guide-overlay{position:fixed;inset:0;z-index:1200;background:#10233d9c;display:flex;justify-content:center;align-items:center;padding:18px;overscroll-behavior:contain}.param-guide-open{overflow:hidden}.param-help-dialog{width:min(100%,620px);max-height:min(88vh,760px);overflow:auto;background:#fff;border:1px solid #d0ddeb;border-radius:16px;box-shadow:0 22px 65px #14243e4f;display:flex;flex-direction:column;color:#283b57}.param-help-head{padding:20px 22px 16px;display:flex;gap:12px;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e8eef6}.param-help-head h2{margin:7px 0;font-size:21px;line-height:1.25}.param-help-unit{color:#7488a3;font-size:11px}.param-help-unit b{color:#294b7b}.param-help-close{border:1px solid #d5e0ee;background:#f4f7fb;border-radius:8px;width:34px;height:34px;font-size:24px;color:#496583;cursor:pointer}.param-help-content{padding:16px 22px;overflow:auto}.param-help-content section{margin-bottom:15px}.param-help-content h3{font-size:12px;color:#255a9a;margin:0 0 5px}.param-help-content p{font-size:12px;line-height:1.85;color:#4e6280;margin:0}.param-help-limits{background:#eff5ff;border-left:3px solid #367cd1;border-radius:7px;padding:12px 14px;margin:13px 0}.param-help-limits b{display:block;font-size:12px;color:#1f5293}.param-help-limits small{display:block;font-size:11px;color:#657c9a;margin-top:6px;line-height:1.7}.param-help-sources{font-size:11px;line-height:1.8;padding:9px 0}.param-help-sources a{color:#2368bc;text-decoration:underline}.param-help-disclaimer{font-size:11px;color:#7e8b9d;background:#f8fafc;border:1px solid #e5ebf2;border-radius:7px;padding:10px 12px;line-height:1.7}.param-help-actions{padding:12px 22px 18px;border-top:1px solid #e8eef6;text-align:right}@media(max-width:620px){.param-guide-overlay{padding:8px}.param-help-dialog{max-height:94vh}.param-help-head,.param-help-content{padding-left:15px;padding-right:15px}.paramrow{grid-template-columns:minmax(0,1fr) 105px}}

/* V6.6 parameter diagram learning cards */
.param-help-dialog{width:min(100%,740px);max-height:min(92vh,860px)}
.param-visual-explainer{background:linear-gradient(135deg,#f5f9fe,#eaf2fa);border:1px solid #d7e6f5;border-radius:12px;padding:13px 15px;margin:0 0 18px}
.param-visual-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.param-visual-top strong{font-size:13px;color:#1d528a}.param-visual-top span{font-size:10px;color:#67839f;background:#fff;border:1px solid #d4e1ef;border-radius:20px;padding:4px 8px}
.param-visual-controls{margin-top:10px}.param-diagram-control{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;font-weight:600;color:#3b6087}.param-diagram-control select{border:1px solid #b6cde4;border-radius:7px;padding:5px 10px;background:#fff;color:#1a508c;min-width:115px}.param-diagram-control input[type=range]{width:180px;max-width:100%;accent-color:#236cbe}.param-diagram-control output{font-variant-numeric:tabular-nums;min-width:40px;color:#1a548d}
.param-visual-figure svg{width:100%;height:auto;max-height:220px;display:block;margin:6px auto 0}.param-visual-figure p{font-size:11px;line-height:1.7;color:#58738f;background:#fff;border-radius:8px;margin:0;padding:8px 10px;border:1px solid #dfe8f3}
.param-visual-figure svg text{font-family:Microsoft YaHei,Segoe UI,Arial,sans-serif}
@media(max-width:620px){.param-visual-explainer{padding:10px}.param-visual-figure svg{max-height:180px}.param-help-dialog{width:100%;max-height:95vh}.param-diagram-control input[type=range]{width:150px}}

/* V6.7: detailed engineering theory chapters, formulas and cross-parameter links */
.param-theory-heading{padding:15px 17px;margin:20px 0 12px;border-radius:12px;background:linear-gradient(120deg,#173e6e,#2768a7);color:#fff}
.param-theory-heading h3{margin:7px 0 5px;color:#fff;font-size:16px}.param-theory-heading p{color:#d7eafc;font-size:11px;line-height:1.65}
.param-theory-tag{font-size:10px;font-weight:700;letter-spacing:.05em;color:#cbe5ff}
.param-theory-sections{display:grid;gap:9px;margin-bottom:16px}.param-theory-step{border:1px solid #dce6f2;border-radius:10px;overflow:hidden;background:#fcfdff}
.param-theory-step summary{cursor:pointer;display:flex;gap:10px;align-items:center;list-style:none;color:#284e80;font-size:12px;font-weight:800;padding:12px 14px}
.param-theory-step summary::-webkit-details-marker{display:none}.param-theory-step summary:after{content:'＋';margin-left:auto;color:#6f8caf;font-size:14px}
.param-theory-step[open] summary:after{content:'－'}.param-theory-n{font-size:10px;background:#e3effd;color:#235e9a;border-radius:6px;padding:5px 7px}
.param-theory-step>div{font-size:12px;line-height:1.9;padding:0 14px 15px;color:#425b77}
.param-formula-section{margin:15px 0}.param-formula-card{border-left:3px solid #3589c1;background:#f3f8fc;margin:10px 0;padding:10px 13px;border-radius:5px}
.param-formula-card strong{font-size:12px;color:#234e78;display:block;margin-bottom:6px}.param-formula-card code{font-size:12px;line-height:1.8;white-space:normal;overflow-wrap:anywhere;display:block;background:#e6f0fa;padding:9px;border-radius:6px;color:#19446f}
.param-formula-card p{margin-top:6px!important}.param-theory-example{background:#eef8f2;border:1px solid #c6e6d1;border-radius:9px;padding:13px;margin-top:12px}
.param-theory-example h3{color:#24744a!important}.param-theory-trace{padding:13px;border:1px solid #dce6ef;border-radius:9px;margin:12px 0}
.param-theory-related{margin:14px 0}.param-theory-related-links{display:flex;flex-wrap:wrap;gap:7px}.param-theory-related-links button{font-size:11px}
@media(max-width:620px){.param-theory-heading{padding:13px}.param-theory-step summary{line-height:1.6}.param-formula-card{padding:9px}}

/* V6.9 — one coherent shade workflow across electrical and CAD modules */
.shade-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:17px}.shade-workspace>.panel{min-width:0}.shade-mode{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.shade-quick{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.shade-canvas{border:1px solid #dae7f4;background:#f9fcff;border-radius:14px;padding:12px}.shade-canvas svg{display:block;width:100%;max-height:580px}.shade-legend{display:flex;flex-wrap:wrap;gap:14px;color:#61738b;font-size:12px;margin-top:10px}.shade-legend span{display:flex;align-items:center;gap:6px}.shade-legend i{width:12px;height:12px;border-radius:3px;border:1px solid #cad5e1}.shade-legend .shaded-key{background:#f1a848}.shade-legend .normal-key{background:#3679c1}.shade-stat{background:#f5f9fe;border:1px solid #dae7f4;border-radius:12px;padding:14px;margin-bottom:12px}.shade-stat span,.shade-stat small{display:block;color:#71859d;font-size:12px}.shade-stat strong{display:block;font-size:19px;color:#173e6b;margin:3px 0}.shade-context{display:flex;gap:9px;flex-wrap:wrap;font-size:12px;color:#526e8c;margin:10px 0 15px}.shade-context span{border:1px solid #dee9f2;padding:6px 9px;border-radius:8px;background:#fbfdff}.shade-canvas g[data-shade-cell]:focus-visible rect{stroke:#ffe185;stroke-width:3;outline:none}.shade-canvas g[data-shade-cell]:hover rect{stroke:#ffc453;stroke-width:2}@media(max-width:1100px){.shade-workspace{grid-template-columns:1fr}}

.shade-canvas{overflow-x:auto;overflow-y:auto;max-height:650px}.shade-canvas svg{max-height:none}.shade-zoom{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 13px;color:#4b6481;font-size:12px}.shade-zoom small{flex-basis:100%;color:#8192a7}.shade-zoom strong{margin-right:2px}
/* V7.0 engineering review cockpit */
.qa-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0 22px}.qa-role-card{border:1px solid #d8e4f0;border-radius:13px;background:linear-gradient(145deg,#fff,#f6f9fe);padding:18px;min-width:0}.qa-role-card h3{font-size:14px;color:#284966;margin:0 0 14px}.qa-score{color:#1661a5;font-size:30px;font-weight:800}.qa-score small{font-size:12px;font-weight:600;color:#6e8197}.qa-counts{display:flex;justify-content:space-between;font-size:12px;margin-top:12px;gap:9px;color:#996f31}.qa-counts .qa-danger{color:#b53e3e}.qa-table-wrap{max-height:960px;overflow:auto}.qa-table{min-width:800px}.qa-table th{position:sticky;top:0;background:#f2f7fd;z-index:1}.qa-detail{max-width:470px;min-width:220px;line-height:1.55}.qa-chip{display:inline-block;white-space:nowrap;border-radius:7px;padding:5px 8px;font-size:11px;font-weight:800}.qa-chip.pass{color:#206449;background:#e4f5ec}.qa-chip.review{color:#9b6715;background:#fff2d9}.qa-chip.blocker{color:#a63232;background:#ffebe8}@media(max-width:840px){.qa-role-grid{grid-template-columns:1fr}.qa-role-card{padding:14px}.qa-table-wrap{max-width:100%;overflow-x:auto}}
/* V7.1: accessible visual netlist wizard, dual curve views and environment workbench */
.iv-dual-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.iv-dual-charts>div{border:1px solid #d7e4f1;border-radius:12px;background:#fff;padding:12px;min-width:0}.iv-dual-charts strong{font-size:13px;color:#173f65}.iv-dual-charts small{font-size:11px;color:#647e99;display:block;padding:3px 5px}.curve-svg{width:100%;height:auto;display:block}.net-wizard-grid{display:grid;grid-template-columns:minmax(0,0.92fr) minmax(0,1.08fr);gap:16px;margin:16px 0}.net-wizard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.net-wizard-summary>div{background:#f2f8ff;border:1px solid #d7e6f4;border-radius:12px;padding:13px;min-width:0}.net-wizard-summary span{display:block;color:#69839a;font-size:11px}.net-wizard-summary strong{display:block;color:#184c75;font-size:20px;margin:5px 0}.net-simplified{border:1px dashed #bfcee1;border-radius:13px;background:#fafcff;padding:14px;max-height:570px;overflow:auto}.net-current-entry{background:#e0eeff;color:#245b87;font-weight:750;font-size:12px;padding:9px;border-radius:8px;text-align:center}.net-branch{margin:9px 0;border:1px solid #d7e5f4;border-radius:11px;background:white;padding:10px}.net-branch-header{display:flex;justify-content:space-between;color:#234766;font-size:12px;gap:10px}.net-branch-header span{font-size:11px;color:#7890a6}.net-substrings{display:flex;flex-wrap:wrap;align-items:stretch;gap:4px;margin-top:9px}.net-substring{background:#eff6ff;border:1px solid #dbe9f8;border-radius:9px;padding:8px;flex:1 1 120px;min-width:0}.net-substring strong,.net-substring small,.net-protection{display:block;font-size:10px;color:#43617e;margin-bottom:3px}.net-group-cells{display:flex;gap:4px;flex-wrap:wrap}.net-group-cells span{font-size:9px;background:#fff;border-radius:4px;padding:3px 4px;border:1px solid #e0e9f4;color:#3a5a7b}.net-protection{color:#b36b30;margin-top:6px}.net-arrow{align-self:center;color:#327ec4;font-weight:900}.net-advanced{border:1px solid #d7e4f1;background:#fff;border-radius:12px;margin:15px 0;overflow:hidden}.net-advanced summary{cursor:pointer;padding:16px 20px;font-weight:700;color:#255278;background:#f0f7ff}.net-advanced .panelbody{padding:18px}.performance-panel{margin:18px 0}.performance-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.performance-controls label{font-size:11px;font-weight:750;color:#58718e}.performance-controls label small{font-size:10px;font-weight:400;color:#8595a8}.performance-controls input{display:block;width:100%;min-width:0;min-height:37px;padding:8px;border:1px solid #cbdced;border-radius:8px;background:#fff;color:#284669;margin-top:6px}.performance-stats{margin:16px 0}
@media(max-width:1080px){.net-wizard-grid,.iv-dual-charts{grid-template-columns:1fr}.performance-controls{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:610px){.net-wizard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.net-substrings{flex-direction:column}.net-arrow{align-self:center;transform:rotate(90deg)}}
.performance-analysis{margin:16px 0;border:1px solid #d8e5f2;border-radius:12px;overflow:hidden}.performance-analysis summary{cursor:pointer;background:#eff7ff;color:#244c72;padding:13px 15px;font-weight:750}.performance-analysis .performance-analyses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}.performance-analyses>div{border:1px solid #e3eaf3;border-radius:10px;padding:10px;min-width:0;overflow-x:auto}.performance-analyses b{font-size:12px;display:block;color:#284e76}.performance-analyses table{width:100%;font-size:10px;border-collapse:collapse;margin-top:8px}.performance-analyses td,.performance-analyses th{padding:6px 5px;border-bottom:1px solid #e5edf6;white-space:nowrap}.performance-analysis>.chartfoot{padding:0 15px 14px}@media(max-width:1050px){.performance-analysis .performance-analyses{grid-template-columns:1fr}}

/* V7.5 independent calibration evidence */
.cal-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:11px;margin:14px 0}.cal-stat{border:1px solid #dbe5f2;border-radius:10px;background:#f7fbff;padding:14px}.cal-stat span,.cal-stat small{display:block;color:#60758f;font-size:11px}.cal-stat strong{font-size:19px;display:block;color:#123c69;margin:7px 0}.cal-stat small{line-height:1.5}.table-scroll td{vertical-align:middle}

.cal-plot{padding:14px 12px;margin:16px 0;background:#fbfcfe;border-radius:12px;border:1px solid #dce6f1}.cal-plot label{display:block;font-size:12px;font-weight:700;color:#516985}.cal-plot select{display:block;margin:7px 0 12px;padding:9px;max-width:100%;border-radius:8px;border:1px solid #cbd9e9;background:#fff}.cal-plot .svg-chart{width:100%;max-height:300px}
/* Invisible file pickers remain fully operable from the corresponding import buttons. */
#fileInput,#guidanceFileInput,#ivFileInput,#validationFileInput,#calibrationFileInput{display:none!important}


/* ================= 设计层（覆盖） ================= */
/* ==========================================================================
   PV Module Studio · 设计层（2026-11-03 重做）
   在原始样式之后加载，负责：外壳、配色、排版、组件、响应式、打印
   ========================================================================== */

:root{
  --ink:#0b1220;
  --ink-2:#14243d;
  --ink-3:#33465f;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --line:#e6ecf4;
  --line-2:#eff3f8;
  --canvas:#f6f8fb;
  --surface:#ffffff;
  --primary:#1a56db;
  --primary-600:#1746b4;
  --primary-50:#eff6ff;
  --primary-100:#dbeafe;
  --accent:#f59e0b;
  --success:#059669;
  --success-50:#ecfdf5;
  --warn:#b45309;
  --warn-50:#fffbeb;
  --danger:#b91c1c;
  --danger-50:#fef2f2;
  --radius-sm:8px;
  --radius:12px;
  --radius-lg:16px;
  --shadow-xs:0 1px 2px rgba(16,24,40,.05);
  --shadow-sm:0 1px 3px rgba(16,24,40,.06),0 1px 2px rgba(16,24,40,.04);
  --shadow-md:0 8px 24px -12px rgba(16,24,40,.18),0 2px 6px rgba(16,24,40,.05);
  --rail-w:268px;
  --sitebar-h:44px;
  --topbar-h:62px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --mono:"SF Mono",ui-monospace,"JetBrains Mono","Cascadia Code",Consolas,monospace;

  /* 兼容旧变量名（原样式表内部引用） */
  --navy:#0b1526;
  --blue:#1a56db;
  --teal:#0d9488;
  --surface-old:#fff;
  --shadow-old:0 10px 28px rgba(16,24,40,.06);
}

/* ---------- 基础 ---------- */
body.studio-page{
  margin:0;padding:0;
  font-family:var(--font);
  font-size:14px;
  line-height:1.6;
  color:var(--ink-3);
  background:var(--canvas);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-width:0;
}
body.studio-page *{box-sizing:border-box}
body.studio-page ::selection{background:rgba(26,86,219,.16)}
body.studio-page a{color:var(--primary);text-decoration:none}
body.studio-page a:hover{text-decoration:underline}

/* ---------- 站点栏 ---------- */
.zh-sitebar{
  height:var(--sitebar-h);
  display:flex;align-items:center;gap:14px;
  padding:0 20px;
  background:#0a1220;
  color:rgba(255,255,255,.72);
  font-size:12.5px;
  border-bottom:1px solid rgba(255,255,255,.06);
  position:relative;z-index:60;
}
.zh-sitebar .zb-brand{
  display:flex;align-items:center;gap:9px;
  color:#fff;font-weight:650;font-size:13.5px;letter-spacing:.02em;
}
.zh-sitebar .zb-mark{
  width:22px;height:22px;border-radius:7px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
  color:#fff;font-size:12px;font-weight:800;
}
.zh-sitebar .zb-sep{width:1px;height:16px;background:rgba(255,255,255,.14)}
.zh-sitebar .zb-app{color:rgba(255,255,255,.9);font-weight:600}
.zh-sitebar .zb-tag{
  font-size:10.5px;font-weight:700;letter-spacing:.1em;
  padding:2px 7px;border-radius:999px;
  background:rgba(56,189,248,.14);color:#7dd3fc;
}
.zh-sitebar .zb-spacer{flex:1}
.zh-sitebar a.zb-link{
  color:rgba(255,255,255,.62);font-size:12px;
  padding:5px 10px;border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
}
.zh-sitebar a.zb-link:hover{color:#fff;background:rgba(255,255,255,.07);text-decoration:none}
.zh-sitebar a.zb-link.primary{
  background:linear-gradient(180deg,#2563eb,#1a50cf);
  border-color:#2a5fd6;color:#fff;font-weight:600;
  box-shadow:0 2px 8px -2px rgba(37,99,235,.7);
}
.zh-sitebar a.zb-link.primary:hover{background:linear-gradient(180deg,#2f6ef2,#1c56db);color:#fff}

/* ---------- 更新说明：提示条 + 弹层 ---------- */
.update-banner{
  display:flex;gap:12px;align-items:flex-start;
  padding:13px 15px;margin-bottom:16px;
  background:linear-gradient(180deg,#f6faff,#eef5ff);
  border:1px solid #cfe0fb;border-left:3px solid var(--primary);
  border-radius:var(--radius);
  box-shadow:var(--shadow-xs);
}
.update-banner[hidden]{display:none}
.update-banner .ub-ic{
  flex:0 0 26px;width:26px;height:26px;border-radius:8px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;font-size:13px;
}
.update-banner .ub-body{flex:1;min-width:0}
.update-banner .ub-body strong{
  display:block;font-size:12.5px;font-weight:700;color:#1d3e6f;
  letter-spacing:.01em;margin-bottom:4px;
}
.update-banner .ub-body ul{
  margin:0;padding-left:16px;
  font-size:12px;line-height:1.65;color:#45607f;
}
.update-banner .ub-body li{margin:1px 0}
.update-banner .ub-acts{display:flex;gap:8px;align-items:center;flex:0 0 auto;flex-wrap:wrap}

.rail-changelog{
  margin-top:9px;width:100%;
  display:flex;align-items:center;gap:6px;
  height:29px;padding:0 9px;
  border:1px solid rgba(255,255,255,.14);border-radius:8px;
  background:rgba(255,255,255,.045);
  color:#a8bcd8;font-family:inherit;font-size:11px;font-weight:600;
  cursor:pointer;transition:all .15s ease;
}
.rail-changelog:hover{background:rgba(255,255,255,.1);color:#fff}
.rail-changelog .rc-dot{
  width:5px;height:5px;border-radius:50%;background:#fbbf24;flex:0 0 5px;
}

.pv-modal{
  position:fixed;inset:0;z-index:120;
  display:grid;place-items:center;padding:24px;
  background:rgba(8,16,30,.56);backdrop-filter:blur(3px);
}
.pv-modal[hidden]{display:none}
.pv-modal-box{
  width:min(720px,100%);max-height:86vh;display:flex;flex-direction:column;
  background:#fff;border-radius:16px;
  box-shadow:0 30px 70px -20px rgba(8,18,35,.55);
  overflow:hidden;
}
.pv-modal-head{
  display:flex;align-items:center;gap:12px;
  padding:15px 18px;border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#f9fbfe);
}
.pv-modal-head h3{margin:0;font-size:15px;font-weight:750;color:var(--ink-2)}
.pv-modal-x{
  margin-left:auto;width:30px;height:30px;border-radius:8px;
  border:1px solid #e2e9f3;background:#fff;color:#5b708e;
  font-size:16px;line-height:1;cursor:pointer;
}
.pv-modal-x:hover{background:#f4f8fd;color:var(--ink-2)}
.pv-modal-body{padding:16px 18px 20px;overflow-y:auto}
.veritem{
  padding:13px 0;border-bottom:1px dashed #e6edf6;
}
.veritem:last-child{border-bottom:0;padding-bottom:4px}
.verhead{display:flex;align-items:center;gap:9px;margin-bottom:3px}
.verhead .ver{font-size:13px;font-weight:750;color:var(--primary);letter-spacing:.01em}
.verhead .verdate{font-size:11.5px;color:var(--muted-2);font-variant-numeric:tabular-nums}
.verhead .vernew{
  font-size:10px;font-weight:700;letter-spacing:.06em;
  padding:1px 6px;border-radius:5px;background:#ecfdf5;color:#047857;border:1px solid #b7ebd4;
}
.veritem .vertitle{font-size:12.5px;font-weight:650;color:var(--ink-2);margin-bottom:5px}
.veritem ul{margin:0;padding-left:17px;font-size:12px;line-height:1.7;color:#48607f}
.veritem ul li{margin:1px 0}

@media (max-width:640px){
  .update-banner{flex-wrap:wrap}
  .update-banner .ub-acts{width:100%;justify-content:flex-end}
}
.zh-sitebar .zb-icp{color:rgba(255,255,255,.34);font-size:11.5px}
.zh-sitebar .zb-icp:hover{color:rgba(255,255,255,.6);text-decoration:none}

/* ---------- 主框架 ---------- */
body.studio-page .app{
  display:flex;
  height:calc(100vh - var(--sitebar-h));
  min-height:0;
  background:var(--canvas);
}

/* ---------- 侧栏 ---------- */
body.studio-page .side{
  width:var(--rail-w);flex:0 0 var(--rail-w);
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,#0c1729 0%,#101d31 52%,#0b1526 100%);
  border-right:1px solid rgba(255,255,255,.06);
  box-shadow:none;
  overflow:hidden;
}
body.studio-page .side .brand{
  display:flex;align-items:center;gap:11px;
  padding:18px 18px 16px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
body.studio-page .side .brandicon{
  width:36px;height:36px;border-radius:11px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#2563eb 0%,#0ea5e9 100%);
  color:#fff;font-size:16px;
  box-shadow:0 6px 16px -6px rgba(37,99,235,.85);
}
body.studio-page .side .brand h1{
  margin:0;font-size:14.5px;font-weight:750;color:#fff;letter-spacing:.01em;
  line-height:1.25;
}
body.studio-page .side .brand small{
  display:block;margin-top:2px;
  font-size:9px;font-weight:700;letter-spacing:.16em;
  color:#6f86a8;text-transform:uppercase;
}
body.studio-page .side .navtitle{
  padding:14px 18px 6px;
  font-size:9.5px;font-weight:700;letter-spacing:.18em;
  color:#5b7295;text-transform:uppercase;
}
body.studio-page .side nav{
  flex:1;min-height:0;overflow-y:auto;
  padding:2px 12px 14px;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent;
}
body.studio-page .side nav::-webkit-scrollbar{width:6px}
body.studio-page .side nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:3px}

.rail-group{margin-top:14px}
.rail-group:first-child{margin-top:4px}
.rail-group-label{
  padding:0 8px 7px;
  font-size:9.5px;font-weight:700;letter-spacing:.16em;
  color:#5b7295;text-transform:uppercase;
}
body.studio-page .side .navitem{
  width:100%;
  display:flex;align-items:center;gap:9px;
  height:37px;margin:1px 0;
  padding:0 10px;
  border:0;border-radius:9px;
  background:transparent;
  color:#b7c6dc;
  font-family:inherit;font-size:13px;font-weight:500;
  text-align:left;cursor:pointer;
  position:relative;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
body.studio-page .side .navitem .ic{
  width:16px;flex:0 0 16px;
  display:grid;place-items:center;
  font-size:12.5px;opacity:.62;
  color:#93a9c8;
}
body.studio-page .side .navitem:hover{
  background:rgba(255,255,255,.055);
  color:#fff;
}
body.studio-page .side .navitem:hover .ic{opacity:.92}
body.studio-page .side .navitem.active{
  color:#fff;font-weight:600;
  background:linear-gradient(90deg,rgba(37,99,235,.34),rgba(37,99,235,.10));
  box-shadow:inset 0 0 0 1px rgba(96,165,250,.26);
}
body.studio-page .side .navitem.active::before{
  content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;
  border-radius:0 3px 3px 0;background:#60a5fa;
}
body.studio-page .side .navitem.active .ic{opacity:1;color:#93c5fd}
body.studio-page .side .nav-new{
  margin-left:auto;
  font-size:9px;font-weight:700;letter-spacing:.06em;
  padding:1px 5px;border-radius:5px;
  background:rgba(245,158,11,.16);color:#fbbf24;
  flex:0 0 auto;
}
body.studio-page .side .sidebar-bottom{
  padding:12px 16px 14px;
  border-top:1px solid rgba(255,255,255,.07);
  font-size:10.5px;line-height:1.55;color:#5f7699;
}
body.studio-page .side .sidebar-bottom strong{color:#94a9c8;font-weight:600}
body.studio-page .side .sidebar-bottom a{color:#7dd3fc}

/* 侧栏底部状态点（原 .dot） */
body.studio-page .side .dot{
  display:inline-block;width:6px;height:6px;border-radius:50%;
  background:#34d399;margin-right:5px;
  box-shadow:0 0 0 3px rgba(52,211,153,.16);
}

/* ---------- 右侧主区 ---------- */
body.studio-page .shell{
  flex:1;min-width:0;
  display:flex;flex-direction:column;
  background:var(--canvas);
}

/* 顶栏 */
body.studio-page .topbar{
  height:var(--topbar-h);flex:0 0 var(--topbar-h);
  display:flex;align-items:center;gap:16px;
  padding:0 22px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  box-shadow:none;
  position:relative;z-index:30;
}
body.studio-page .crumb{
  display:flex;align-items:center;gap:8px;
  font-size:11px;font-weight:700;letter-spacing:.14em;
  color:var(--muted-2);text-transform:uppercase;
  white-space:nowrap;
}
body.studio-page .crumb::after{
  content:"";width:1px;height:14px;background:var(--line);margin-left:4px;
}
body.studio-page .top-actions{
  display:flex;align-items:center;gap:9px;margin-left:auto;
  flex-wrap:nowrap;
}
body.studio-page .chip{
  height:30px;display:inline-flex;align-items:center;gap:7px;
  padding:0 11px;border-radius:999px;
  background:#f1f5fb;border:1px solid #e3eaf5;
  color:#37506f;font-size:12px;font-weight:650;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
body.studio-page .global-status{
  height:30px;display:inline-flex;align-items:center;
  padding:0 12px;border-radius:999px;
  font-size:11.5px;font-weight:650;
  background:var(--success-50);color:#047857;
  border:1px solid #b7ebd4;
  white-space:nowrap;
}
body.studio-page .global-status .status-error,
body.studio-page .global-status .status-warn,
body.studio-page .global-status .status-ok{
  font-size:11.5px;font-weight:650;
}

/* 工作区 */
body.studio-page .workspace{
  flex:1;min-height:0;overflow-y:auto;
  width:100%;max-width:none;
  padding:20px 22px 44px;
  scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;
}
body.studio-page .workspace::-webkit-scrollbar{width:10px}
body.studio-page .workspace::-webkit-scrollbar-thumb{background:#d3dce8;border-radius:5px;border:3px solid var(--canvas)}

/* 顶部选择条 */
body.studio-page .selectors{
  display:flex;flex-wrap:wrap;gap:14px 18px;
  padding:13px 16px;
  margin-bottom:16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-xs);
}
body.studio-page .selectors .field{
  display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.studio-page .selectors .field.wide{flex:1 1 220px}
body.studio-page .selectors .field.medium{flex:0 1 200px}
body.studio-page .selectors .field label{
  font-size:9.5px;font-weight:700;letter-spacing:.13em;
  color:var(--muted-2);text-transform:uppercase;
}
body.studio-page .selectors select,
body.studio-page .selectors input[type=text]{
  height:36px;min-width:0;
  padding:0 11px;
  border:1px solid #dfe7f1;border-radius:9px;
  background:#fff;color:var(--ink-2);
  font-family:inherit;font-size:13px;
  box-shadow:inset 0 1px 1px rgba(16,24,40,.03);
}
body.studio-page .selectors select:focus,
body.studio-page .selectors input[type=text]:focus{
  outline:none;border-color:#a9c2ee;
  box-shadow:0 0 0 3px rgba(26,86,219,.12);
}
body.studio-page .seg{
  display:inline-flex;gap:3px;padding:3px;
  background:#f1f5fb;border:1px solid #e6edf7;border-radius:10px;
  height:36px;align-items:center;
}
body.studio-page .seg button{
  height:28px;padding:0 13px;
  border:0;border-radius:7px;background:transparent;
  color:#5b708e;font-family:inherit;font-size:12.5px;font-weight:650;
  cursor:pointer;transition:all .15s ease;
}
body.studio-page .seg button:hover{color:var(--ink-2)}
body.studio-page .seg button.active{
  background:#fff;color:var(--primary);
  box-shadow:0 1px 3px rgba(16,24,40,.12);
}

/* 页脚说明 */
body.studio-page .footerline{
  margin-top:26px;padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted-2);font-size:11.5px;line-height:1.7;
}

/* ---------- 按钮 ---------- */
body.studio-page .btn{
  height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:0 13px;
  border:1px solid #dbe4ef;border-radius:9px;
  background:#fff;color:#33465f;
  font-family:inherit;font-size:12.5px;font-weight:600;
  cursor:pointer;white-space:nowrap;
  transition:all .15s ease;
}
body.studio-page .btn:hover{
  border-color:#c3d3e7;background:#f8fbff;color:var(--ink-2);
  box-shadow:0 1px 2px rgba(16,24,40,.06);
}
body.studio-page .btn:active{transform:translateY(.5px)}
body.studio-page .btn.primary{
  background:linear-gradient(180deg,#2563eb,#1a50cf);
  border-color:#1a4dc4;color:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.12),0 6px 14px -8px rgba(26,86,219,.7);
}
body.studio-page .btn.primary:hover{background:linear-gradient(180deg,#2b6bf3,#1a56db);color:#fff}
body.studio-page .btn.smallbtn{
  height:28px;padding:0 10px;font-size:11.5px;font-weight:600;border-radius:8px;
}
body.studio-page .btn:disabled,
body.studio-page .btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}

/* ---------- 面板 ---------- */
body.studio-page .panel,
body.studio-page .kpi{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-xs);
  transition:box-shadow .18s ease,border-color .18s ease;
}
body.studio-page .panel:hover{border-color:#dde7f3;box-shadow:var(--shadow-sm)}
body.studio-page .panelhead{
  display:flex;align-items:center;gap:10px;
  padding:12px 16px;
  border-bottom:1px solid var(--line-2);
  background:linear-gradient(180deg,#fcfdff,#f9fbfe);
  border-radius:var(--radius) var(--radius) 0 0;
}
body.studio-page .panelhead h3{
  margin:0;font-size:13.5px;font-weight:700;color:var(--ink-2);
  display:flex;align-items:center;gap:8px;letter-spacing:.005em;
}
body.studio-page .panelhead h3::before{
  content:"";width:6px;height:6px;border-radius:2px;
  background:linear-gradient(135deg,#2563eb,#60a5fa);
  flex:0 0 6px;
}
body.studio-page .panelbody{padding:16px}
body.studio-page .panelbody{overflow-x:auto;overflow-y:visible}
body.studio-page .panelbody>p:first-child{margin-top:0}

/* ---------- KPI ---------- */
body.studio-page .grid-kpi{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));
  gap:12px;
}
body.studio-page .kpi{
  position:relative;padding:14px 15px 13px;overflow:hidden;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
}
body.studio-page .kpi .mark{
  position:absolute;left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,#2563eb,#60a5fa 60%,#0ea5e9);
}
body.studio-page .kpi .caption{
  display:flex;align-items:center;justify-content:space-between;
  font-size:10px;font-weight:700;letter-spacing:.1em;
  color:var(--muted-2);text-transform:uppercase;
}
body.studio-page .kpi .caption span:last-child{opacity:.35;font-size:9px}
body.studio-page .kpi .big{
  margin-top:7px;
  font-size:23px;font-weight:800;letter-spacing:-.02em;
  color:var(--ink-2);font-variant-numeric:tabular-nums;
  line-height:1.15;
}
body.studio-page .kpi .big .unit{
  margin-left:3px;font-size:11px;font-weight:600;color:var(--muted-2);
  letter-spacing:0;
}
body.studio-page .kpi .trend{
  margin-top:5px;font-size:11.5px;color:var(--muted);line-height:1.5;
}
body.studio-page .kpi.mint .mark{background:linear-gradient(90deg,#0d9488,#34d399)}
body.studio-page .kpi.warn .mark{background:linear-gradient(90deg,#d97706,#fbbf24)}
body.studio-page .kpi.danger .mark{background:linear-gradient(90deg,#dc2626,#f87171)}

/* ---------- 提示条 ---------- */
body.studio-page .notice{
  display:flex;gap:10px;align-items:flex-start;
  padding:11px 13px;margin:10px 0;
  border-radius:10px;
  border:1px solid #e7eef8;
  border-left:3px solid #93b4e6;
  background:#f7faff;
  font-size:12.5px;color:#3a5374;
}
body.studio-page .notice .sym{
  flex:0 0 auto;width:18px;height:18px;border-radius:50%;
  display:grid;place-items:center;font-size:11px;font-weight:800;
  background:rgba(37,99,235,.12);color:#1d4ed8;
}
body.studio-page .notice strong{display:block;font-size:11px;font-weight:750;letter-spacing:.06em;color:#29456b;margin-bottom:1px}
body.studio-page .notice p{margin:0;line-height:1.6}
body.studio-page .notice.warn{border-left-color:#f0b429;background:#fffcf3;border-color:#f7ecd2;color:#7c5a12}
body.studio-page .notice.warn .sym{background:rgba(217,119,6,.14);color:#b45309}
body.studio-page .notice.warn strong{color:#92500a}
body.studio-page .notice.error{border-left-color:#ef4444;background:#fff7f7;border-color:#f8dcdc;color:#8f2b2b}
body.studio-page .notice.error .sym{background:rgba(220,38,38,.12);color:#b91c1c}
body.studio-page .notice.error strong{color:#a01f1f}
body.studio-page .notice.info{border-left-color:#38bdf8;background:#f6fcff;border-color:#dcf0fb;color:#24546f}
body.studio-page .notice.info .sym{background:rgba(14,165,233,.14);color:#0369a1}

/* ---------- 表格 ---------- */
body.studio-page .table-scroll{
  width:100%;overflow:auto;border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
}
body.studio-page .detailtable,
body.studio-page table{
  width:100%;border-collapse:separate;border-spacing:0;
  font-size:12.5px;
}
body.studio-page .detailtable th,
body.studio-page table th{
  position:sticky;top:0;z-index:1;
  padding:9px 11px;
  background:#f8fafc;
  border-bottom:1px solid var(--line);
  font-size:10.5px;font-weight:700;letter-spacing:.08em;
  color:#7b8ba6;text-transform:uppercase;text-align:left;
  white-space:nowrap;
}
body.studio-page .detailtable td,
body.studio-page table td{
  padding:9px 11px;
  border-bottom:1px solid var(--line-2);
  color:#33465f;vertical-align:top;
}
body.studio-page .detailtable tr:last-child td,
body.studio-page table tr:last-child td{border-bottom:0}
body.studio-page .detailtable tbody tr:hover td,
body.studio-page table tbody tr:hover td{background:#f9fbff}
body.studio-page .detailtable .num,
body.studio-page table .num{
  text-align:right;font-variant-numeric:tabular-nums;
  font-weight:650;color:var(--ink-2);white-space:nowrap;
}
body.studio-page .strong{font-weight:650;color:var(--ink-2)}
body.studio-page .muted{color:var(--muted)}

/* ---------- 标签 ---------- */
body.studio-page .pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 9px;border-radius:999px;
  font-size:11px;font-weight:650;white-space:nowrap;
  background:#f1f5fb;color:#4b6382;border:1px solid #e3eaf5;
}
body.studio-page .pill.mint{background:var(--success-50);color:#047857;border-color:#b7ebd4}
body.studio-page .pill.warn{background:var(--warn-50);color:var(--warn);border-color:#f5e0b7}
body.studio-page .pill.danger{background:var(--danger-50);color:var(--danger);border-color:#f6d0d0}
body.studio-page .pill.safe{background:var(--primary-50);color:var(--primary-600);border-color:#cfe0fb}
body.studio-page .warn-pill{
  display:inline-flex;align-items:center;
  padding:2px 8px;border-radius:999px;
  font-size:10.5px;font-weight:700;
  background:var(--warn-50);color:var(--warn);border:1px solid #f5e0b7;
}

/* ---------- 代码 / 数值 ---------- */
body.studio-page .mono{
  font-family:var(--mono);font-size:11.5px;
  background:#f6f9fd;border:1px solid var(--line);
  padding:1px 6px;border-radius:6px;color:#31496b;
}

/* ---------- 图表 ---------- */
body.studio-page .svg-chart{width:100%;height:auto;display:block}
body.studio-page .chartfoot{
  display:flex;flex-wrap:wrap;gap:8px 14px;
  margin-top:10px;padding-top:9px;
  border-top:1px dashed #e7edf6;
  font-size:11px;color:var(--muted);
}
body.studio-page .curve-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:11.5px;color:var(--muted)}
body.studio-page .curve-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}

/* ---------- 工具条 ---------- */
body.studio-page .toolbar-inline{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  padding:10px 0;
}
body.studio-page .right-actions{margin-left:auto;display:flex;gap:8px}
body.studio-page .mini{font-size:11.5px;color:var(--muted)}

/* ---------- 表单控件 ---------- */
body.studio-page input[type=text],
body.studio-page input[type=number],
body.studio-page select,
body.studio-page textarea{
  font-family:inherit;font-size:13px;color:var(--ink-2);
}
body.studio-page input[type=text]:focus,
body.studio-page input[type=number]:focus,
body.studio-page select:focus,
body.studio-page textarea:focus{
  outline:none;border-color:#a9c2ee;
  box-shadow:0 0 0 3px rgba(26,86,219,.1);
}
body.studio-page input.invalid,
body.studio-page select.invalid{
  border-color:#f0a6a6;background:#fffafa;
}

/* ---------- 提示浮层 ---------- */
body.studio-page .sticky-save{
  position:fixed;right:22px;bottom:22px;z-index:80;
  padding:10px 16px;border-radius:10px;
  background:rgba(12,23,41,.94);color:#fff;
  font-size:12.5px;font-weight:600;
  box-shadow:0 12px 30px -10px rgba(8,18,35,.6);
}

/* 参数帮助浮层 */
body.studio-page .param-guide-overlay{
  position:fixed;inset:0;z-index:90;
  display:grid;place-items:center;
  padding:24px;
  background:rgba(8,16,30,.52);
  backdrop-filter:blur(3px);
}
body.studio-page .param-help-dialog{
  width:min(1040px,100%);max-height:88vh;overflow:auto;
  background:#fff;border-radius:16px;
  box-shadow:0 30px 70px -20px rgba(8,18,35,.55);
}
body.studio-page .param-help-head{
  display:flex;align-items:center;gap:12px;
  padding:16px 20px;border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#f9fbfe);
  position:sticky;top:0;z-index:2;
}
body.studio-page .param-help-close{
  margin-left:auto;width:30px;height:30px;border-radius:8px;
  border:1px solid #e2e9f3;background:#fff;color:#5b708e;
  font-size:16px;line-height:1;cursor:pointer;
}
body.studio-page .param-help-close:hover{background:#f4f8fd;color:var(--ink-2)}

/* ---------- 打印 ---------- */
@media print{
  body.studio-page{background:#fff}
  .zh-sitebar{display:none}
  body.studio-page .side{display:none}
  body.studio-page .app{height:auto;display:block}
  body.studio-page .workspace{overflow:visible;padding:0}
  body.studio-page .topbar{position:static;box-shadow:none;border-bottom:1px solid #ddd}
  body.studio-page .panel,
  body.studio-page .kpi{break-inside:avoid;box-shadow:none}
}

/* ---------- 响应式 ---------- */
@media (max-width:1500px){
  body.studio-page .crumb{display:none}
  body.studio-page .topbar{gap:12px}
  body.studio-page .top-actions{gap:8px;min-width:0}
  body.studio-page .global-status{
    max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
}
@media (max-width:1360px){
  body.studio-page .topbar{padding:0 16px}
  body.studio-page .btn{padding:0 10px;font-size:12px}
  body.studio-page .chip{padding:0 9px}
  body.studio-page .global-status{max-width:186px;font-size:11px}
}
@media (max-width:1240px){
  body.studio-page .topbar{height:auto;min-height:var(--topbar-h);flex-wrap:wrap;padding:9px 16px;gap:8px}
  body.studio-page .top-actions{margin-left:0;width:100%;justify-content:flex-start;flex-wrap:wrap}
  body.studio-page .global-status{max-width:none}
}
@media (max-width:1180px){
  :root{--rail-w:238px}
  body.studio-page .selectors{gap:12px}
  body.studio-page .workspace{padding:16px 16px 36px}
}
@media (max-width:1000px){
  body.studio-page .app{flex-direction:column;height:auto;min-height:calc(100vh - var(--sitebar-h));overflow-x:hidden}
  body.studio-page .side{
    width:100%;max-width:100vw;min-width:0;flex:0 0 auto;
    border-right:0;border-bottom:1px solid rgba(255,255,255,.08);
  }
  body.studio-page .side .brand{padding:12px 16px}
  body.studio-page .side nav{
    display:flex;gap:6px;max-width:100%;
    overflow-x:auto;overflow-y:hidden;
    padding:10px 12px 12px;
  }
  .rail-group{display:flex;gap:6px;margin:0;min-width:0}
  .rail-group-label{display:none}
  body.studio-page .side .navitem{
    width:auto;flex:0 0 auto;height:34px;padding:0 12px;
    background:rgba(255,255,255,.05);white-space:nowrap;
  }
  body.studio-page .side .sidebar-bottom{display:none}
  body.studio-page .shell{min-width:0}
  body.studio-page .workspace{overflow:visible;max-width:100vw;min-width:0}
  body.studio-page #stage{min-width:0}
}
@media (max-width:640px){
  .zh-sitebar{padding:0 12px;gap:8px}
  .zh-sitebar .zb-icp{display:none}
  body.studio-page .workspace{padding:12px 12px 30px}
  body.studio-page .grid-kpi{grid-template-columns:1fr 1fr}
  body.studio-page .selectors{padding:11px 12px}
}
