:root{--sn:#071d31;--sa:#06bfa3;--sp:#eaf3f6}body{background:#f3f7fa;color:#112c40}.studio-header{background:#071c2a;color:#fff;box-shadow:0 12px 30px #0b344126;position:sticky;z-index:20;top:0}.studio-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:75px}.studio-brand{font-family:Inter,Cairo,sans-serif;display:flex;align-items:center;gap:12px;font-weight:850;font-size:17px;letter-spacing:.5px}.studio-brand b{color:#59e7cf}.studio-brand small{font-size:10px;letter-spacing:0;display:block;color:#a9c5cc;font-weight:500}.brandmark{width:45px;height:45px;display:grid;place-items:center;background:#0cc7af;border-radius:15px;color:#06323d;font-size:33px}.studio-header nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.studio-header nav a{color:#d3eaf1;font-size:12px;font-weight:750}.studio-header nav a:hover{color:#3dffdd}.studio-space{padding:55px 0 90px}.studio-head{margin-bottom:36px;max-width:920px}.studio-head h1{font-size:clamp(30px,4vw,56px);letter-spacing:-1px}.studio-head p{font-size:14px;color:#597487}.tax-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:25px 0 65px}.tax-card{background:#fff;border:1px solid #e0eaee;border-radius:25px;padding:29px;box-shadow:0 18px 42px #0e46500b}.tax-icon{display:grid;place-items:center;width:55px;height:55px;border-radius:16px;background:#e6faf6;color:#078f84;font-size:28px;margin-bottom:15px}.tax-card h2{font-size:20px}.tax-tags{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}.tax-tags span{font:600 11px Inter,Cairo,sans-serif;padding:6px 9px;border-radius:100px;background:#f0f6f8;color:#3c5f70}.tax-card small{color:#69818a}.equipment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.equipment-card{background:#fff;border:1px solid #e1eaed;border-radius:22px;padding:24px;min-width:0;box-shadow:0 10px 25px #153b460a}.equipment-card-header{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;color:#4f7285}.badge-source{font-size:10px;padding:5px 8px;border-radius:20px;background:#fff2d9;color:#8c6014}.equipment-card h3{margin:13px 0 5px;overflow-wrap:anywhere}.equipment-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0}.equipment-specs span{padding:6px 8px;background:#f4f8f9;font:11px Inter,Cairo,sans-serif;border-radius:9px;overflow-wrap:anywhere}.equipment-specs b{display:block;color:#106d69}.equipment-card a{color:#047e80;font-weight:800;font-size:11px}.studio-split{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start}.studio-split .panel{padding:31px}.studio-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.step-header{display:flex;align-items:center;gap:13px;margin:8px 0 20px}.step-header b{display:grid;place-items:center;width:39px;height:39px;background:#dcf9f2;border-radius:12px;color:#007e6e;font:800 17px Inter}.step-header h2{margin:0;font-size:19px}.step-header:not(:first-child){margin-top:36px}.studio-split label{display:block;font-size:12px;color:#4b6572;font-weight:750;margin-bottom:15px}.studio-split input,.studio-split select,.studio-split textarea{background:#fff;border:1px solid #d7e4e8;border-radius:11px;padding:11px 12px;width:100%;margin-top:5px;min-width:0}.studio-split input:focus,.studio-split select:focus{outline:2px solid #a6e9dc}.study-loads{border-collapse:collapse;width:100%;min-width:500px}.study-loads th,.study-loads td{padding:7px 5px;border-bottom:1px solid #e8eef2;font-size:10px}.study-loads input{min-width:0;width:100%;padding:9px 5px;font-size:11px}.study-loads td:first-child{width:35%}.study-loads td:last-child{width:30px}.remove-load{border:0;background:#ffedef;color:#c12842;width:25px;height:28px;border-radius:7px;font-size:19px}.stats-line{margin:15px 0 0;background:#e8f9f4;border-radius:12px;padding:13px;font:700 12px Inter;color:#087c72}.studio-split .note{margin:20px 0}.studio-split .btn.full{margin-top:20px}
.report-sheet{max-width:210mm;min-height:297mm;margin:35px auto;background:#fff;padding:16mm 16mm 18mm;box-shadow:0 18px 50px #15374625;font-size:11px;line-height:1.7}.report-top{display:flex;justify-content:space-between;gap:18px;align-items:start;border-bottom:3px solid #087e76;padding-bottom:15px}.report-logo{font-size:18px;color:#073047;font-weight:900;letter-spacing:.6px}.report-top p{color:#649095;font:700 10px Inter;margin:5px 0}.report-meta{text-align:end;display:flex;flex-direction:column;gap:4px;color:#4b697b}.report-banner{background:linear-gradient(120deg,#071f36,#0e4c53);border-radius:15px;padding:25px;color:#fff;margin:24px 0}.report-banner span{color:#70edce;font:800 10px Inter,Cairo}.report-banner h1{font-size:25px;margin:10px 0}.report-banner p{color:#bfe0df}.report-banner strong{font-size:11px;background:#ffffff15;padding:5px 10px;border:1px solid #ffffff50;border-radius:10px}.report-section{margin-top:29px;break-inside:avoid-page}.report-section h2{font-size:14px;color:#075f68;border-bottom:1px solid #dbe8e9;padding-bottom:7px;margin-bottom:12px}.report-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.report-metrics>div{background:#edf8f6;border:1px solid #daece7;padding:12px;border-radius:10px}.report-metrics small{display:block;color:#53727a;font-size:9px}.report-metrics strong{font:800 19px Inter,Cairo;color:#06383d}.report-sheet table{border-collapse:collapse;width:100%;font-size:10px}.report-sheet th{background:#eaf3f5;font-weight:800}.report-sheet td,.report-sheet th{border:1px solid #d9e6e8;padding:7px;text-align:start}.report-equipment{padding:11px;border:1px solid #e2edef;border-radius:10px;margin-bottom:9px;break-inside:avoid}.report-equipment>strong,.report-equipment>small{display:block}.report-equipment>small{color:#73858e}.report-mini{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.report-mini span{padding:3px 6px;background:#f1f6f7;font:10px Inter,Cairo;border-radius:5px}.concept-diagram{display:flex;align-items:center;justify-content:center;gap:5px;margin:15px 0;flex-wrap:wrap}.concept-diagram>div{min-width:98px;max-width:175px;flex:1;background:#f0f8f7;border:1px solid #bfdddd;border-radius:9px;padding:11px 5px;text-align:center;color:#064852}.concept-diagram b,.concept-diagram small{display:block;font:800 9px Inter,Cairo}.concept-diagram small{font-size:8px;font-weight:500;color:#678489}.concept-diagram>span{font-size:23px;color:#049785}.concept-diagram.second{margin:0 0 15px}.report-note{font-size:10px;color:#8b5b1c;background:#fff5e5;padding:9px}.report-warning{background:#fff9eb;color:#7f5b26;border-inline-start:3px solid #d9a636;padding:6px 10px;margin:7px 0}.report-error{background:#ffecec;color:#a42a3a;border-inline-start:3px solid #c43745;padding:6px 10px;margin:7px 0}.report-signoff{display:flex;justify-content:space-between;gap:20px;margin-top:45px}.report-signoff>div{flex:1;text-align:center}.report-signoff hr{width:80%;border:0;border-bottom:1px solid #8ea5ab;margin:26px auto 8px}.report-footer{border-top:1px solid #c8dbdd;margin-top:35px;padding-top:12px;color:#628188;text-align:center;font-size:9px}.printbar{text-align:center;display:flex;justify-content:center;gap:10px;margin:20px auto 50px}
@media(max-width:1000px){.tax-grid,.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-header-inner{flex-wrap:wrap;padding:12px 0}.studio-header nav{gap:12px}.studio-split{grid-template-columns:1fr}}@media(max-width:620px){.tax-grid,.equipment-grid,.studio-two{grid-template-columns:1fr}.studio-space{padding-top:28px}.studio-split .panel{padding:20px}.report-sheet{margin:0;box-shadow:none;padding:17px}.report-metrics{grid-template-columns:repeat(2,1fr)}}
@media print{@page{size:A4;margin:10mm}body{background:white!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.studio-header,.printbar,.toast{display:none!important}.report-sheet{box-shadow:none!important;margin:0!important;max-width:none!important;padding:0!important;font-size:10px}.report-section{break-inside:auto}.report-equipment,.report-metrics>div,.concept-diagram,.report-signoff{break-inside:avoid}.report-banner{background:#0d3844!important;color:white!important}.report-footer{break-inside:avoid}}

/* v0.4 refinement */
.studio-header nav{display:flex;gap:1rem;flex-wrap:wrap}.studio-header nav a{white-space:nowrap}.studio-space .panel form label{min-width:0}.report-sheet .report-section table{width:100%;border-collapse:collapse}.report-sheet .report-section td{padding:8px;border-bottom:1px solid #e4eaf0}
@media(max-width:680px){.studio-header-inner{flex-wrap:wrap;gap:12px}.studio-header nav{overflow-x:auto;flex-wrap:nowrap;width:100%;padding-bottom:8px}.report-sheet{overflow-wrap:anywhere}}

/* v0.5: studies workspace */
.study-list-panel{padding:24px!important}.study-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:12px}.study-filters label{display:flex;flex-direction:column;gap:7px;color:#425d6b;font-weight:700;font-size:12px;flex:1;min-width:170px}.study-filters input,.study-filters select{min-height:43px;padding:9px 12px;border:1px solid #d5e2e8;border-radius:12px;background:#fff;color:#163446;width:100%;max-width:100%}.study-filters .btn{min-height:43px;display:inline-flex;align-items:center;justify-content:center}.study-result-count{color:#4a6575;font-size:13px;margin:12px 0 18px}.study-register{width:100%;border-collapse:collapse;min-width:660px}.study-register th,.study-register td{padding:13px 12px;text-align:start;border-bottom:1px solid #e5edf0;font-size:12px}.study-register th{background:#f0f7f8;color:#3b5769}.study-register tr:hover td{background:#f7fbfc}.study-status{display:inline-block;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.study-status-blocked{background:#fff0ee;color:#b02a29}.study-status-preliminary{background:#e7f8f2;color:#126b53}@media(max-width:680px){.study-list-panel{padding:13px!important}.study-filters{align-items:stretch}.study-filters label{flex-basis:100%}.study-filters .btn{flex:1}}

/* v0.6 unified revisions + diagrams */
.inline-edit{display:inline-flex;margin-inline-start:12px;color:#087c72;font-weight:800}.revision-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px;margin:25px auto 0;padding:16px 22px;background:#f4fbfa;border:1px solid #d5e9e7;border-radius:18px}.revision-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.revision-link{border-radius:9px;padding:7px 11px;background:white;border:1px solid #cddfe1;text-decoration:none;color:#123b4a;font-size:12px}.revision-link.active{background:#095e63;color:white}.system-block-diagram{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin:18px 0}.system-block-diagram>div{background:#eaf6f5;border:1px solid #b5d8d4;border-radius:10px;padding:11px;min-width:115px;flex:1;text-align:center;font-weight:800;color:#0e4950;font-size:11px}.system-block-diagram small{display:block;font-weight:400;font-size:9px;color:#587880}.system-block-diagram>b{color:#158c7c;font-size:20px}.battery-flow>div{background:#f4f8fa}.revision-tools .btn{padding:9px 12px}@media(max-width:680px){.revision-tools{margin:12px;padding:12px}.system-block-diagram{gap:4px}.system-block-diagram>div{min-width:110px;flex:1 1 40%}.system-block-diagram>b{font-size:12px}}@media print{.revision-tools{display:none!important}.system-block-diagram>div{break-inside:avoid}}
