:root{--sidebar:246px;--accent:#286b93;--ink:#283f45;--muted:#6b7f84;--line:#dfe7e8;--wash:#edf4f7;background:#f5f8f9}
.workspace .sidebar{padding:0;background:#203d3b;color:#eaf2f2;border:0}
#sidebar-close{display:none}
#document-tabs:not([hidden])~#frame-host .resource-frame{height:calc(100dvh - 106px)}
.workspace .brand{padding:22px 18px;border-bottom:1px solid #ffffff16;min-height:90px;flex-shrink:0}
.workspace .brand strong{font-size:21px}.workspace .brand small{color:#adcbc6;font-size:12px}
.sidebar-scroll{overflow:auto;min-height:0;padding:12px 8px 20px;scrollbar-width:thin;scrollbar-color:#647e79 transparent}
.workspace .primary-nav{gap:3px}.workspace .primary-nav a{color:#d0e0dd;font-size:15px;padding:12px 14px}
.workspace .primary-nav a.active{color:#fff;background:#34769a}.workspace .primary-nav a:hover{background:#315651}
.workspace .primary-nav a.active:hover{background:#34769a}.workspace .primary-nav b{color:#d7e9f1}
.specialty-nav>button{border:0;background:none;color:#d0e0dd;display:flex;align-items:center;gap:11px;width:100%;padding:13px 14px;text-align:left;font-size:15px}
.specialty-nav>button>span{flex:1;min-width:0}.specialty-nav>button>svg:last-child{width:13px;height:13px}
.specialty-nav>button:hover,.specialty-nav.selected>button{background:#315651;color:#fff}
.specialty-children{margin:0 9px 8px 20px;border-left:1px solid #57716b;padding:3px 0 3px 10px}
.specialty-children>a{display:block;padding:8px 9px;font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:#bdd1cd;border-radius:3px}
.specialty-children>a:hover,.specialty-children>a.active{background:#37695f;color:#fff}
.specialty-children>a.specialty-all{display:flex;gap:8px;color:#fff;border-bottom:1px solid #ffffff16;margin-bottom:4px}
.specialty-all small{color:#acd0c5;white-space:nowrap;margin-left:auto}
.auxiliary-nav{border-top:1px solid #ffffff20;padding-top:9px;margin-top:10px}
.recent-section{margin:14px 12px 0;color:#b7ceca;font-size:12px}.recent-section>summary{cursor:pointer;padding:8px 0}
.workspace .recent-nav a{color:#b7ceca;padding:8px 4px}.workspace .recent-nav a:hover{background:#315651}
.workspace .sidebar-bottom{padding:15px 20px;border-top:1px solid #ffffff16;color:#91b7ae;font-size:12px}
.workspace-topbar{gap:12px;padding:0 22px;height:66px}.breadcrumb{flex:1}.breadcrumb strong{font-size:15px;max-width:300px}
.breadcrumb #app-version{font-size:12px;white-space:nowrap}.top-search{margin-left:0}.top-search span{display:none}
.top-project{display:flex;align-items:center;gap:8px;color:#477969;min-width:0;max-width:200px}
.top-project select{width:155px;padding:6px 8px;background:#f5faf8;border-color:#d5e5de;font-size:13px}
.connection-status{font-size:11px;color:#477969;white-space:nowrap}.account-summary{max-width:145px}
.workspace .view-page{padding:26px 28px 50px;max-width:1800px}.view-heading{margin-bottom:14px}.view-heading h1{font-size:26px}
.library-intro{padding-bottom:18px;margin-bottom:18px;gap:27px}.library-stat{font-size:12px}.library-stat strong{font-size:23px;color:#286b93}
.library-layout{display:block}.library-layout.is-list{display:grid;grid-template-columns:minmax(0,1fr) 260px}
.specialty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 26px;align-items:start}
.specialty-section{min-width:0;border-top:3px solid #588b9e;background:transparent}
.specialty-section:nth-child(3n+2){border-color:#5a8b75}.specialty-section:nth-child(3n){border-color:#b19a66}
.specialty-section>header{padding:17px 0 13px;border-bottom:1px solid var(--line);display:grid;gap:8px}
.specialty-section>header>div{display:flex;gap:9px;align-items:center}.specialty-section h2{font-size:17px;line-height:1.6}
.specialty-section>header svg{color:#467f94}.specialty-section>header>span{font-size:12px;color:var(--muted)}
.specialty-section ul{list-style:none;margin:0;padding:0}.specialty-subheading{font-size:12px;color:#397f94;padding:17px 0 5px;font-weight:normal}
.program-entry{display:flex;border-bottom:1px solid var(--line);gap:5px;align-items:center;min-height:88px}
.program-entry>a{display:block;min-width:0;flex:1;position:relative;padding:15px 23px 15px 0}
.program-entry strong{display:block;font-size:15px;line-height:1.65;font-weight:600;overflow-wrap:anywhere}
.program-entry a>span{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-top:5px;overflow-wrap:anywhere}
.program-entry a>svg{position:absolute;right:0;top:calc(50% - 8px);width:15px;color:#829c9e}
.program-entry:hover{background:#eaf3f5}.program-entry>.star-button{flex:0 0 25px}
.compact .program-entry{min-height:66px}.compact .program-entry>a{padding-top:9px;padding-bottom:9px}
.specialty-grid:has(>.specialty-section:only-child){display:block}.specialty-section:only-child ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px}
.nav-collapsed{--sidebar:68px}.nav-collapsed .brand{padding:21px 16px}.nav-collapsed .brand span,.nav-collapsed .primary-nav span,.nav-collapsed .primary-nav b,.nav-collapsed .specialty-nav>button>span,.nav-collapsed .specialty-nav>button>svg:last-child,.nav-collapsed .specialty-children,.nav-collapsed .recent-section,.nav-collapsed .sidebar-bottom{display:none}
.nav-collapsed .primary-nav a,.nav-collapsed .specialty-nav>button{justify-content:center;padding:13px 8px}
body.calculation-page{background:#f5f8f9;font-size:14px}.calculation-page .calc-header{padding:18px 28px;position:sticky;top:0;z-index:10}
.calculation-page .calc-header h1{font-size:22px}.calculation-page .calculation-layout{display:block;max-width:1480px;margin:auto}
.calculation-page .input-card,.calculation-page .result-card-wrap{border:0;max-height:none;overflow:visible;padding:22px 28px 28px;background:#fff;scroll-margin-top:125px}
.calculation-page .input-card{border-bottom:8px solid #f5f8f9}.calculation-page .input-head{position:static;background:none;padding:0 0 18px}
.calculation-page .input-head h2,.calculation-page .results-head h2{font-size:17px}.calculation-page .group-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 26px}
.calculation-page .param-group-header h3{font-size:14px;margin-bottom:17px}.calculation-page .field-item>span{font-size:13px}.calculation-page .field-help{font-size:12px}
.calculation-page .field-control input,.calculation-page .field-control select{font-size:14px;padding:10px}.calculation-page .field-unit{font-size:12px}
.calculation-page .field-item textarea{font-size:13px;min-height:100px}.calculation-page .parameter-tools{max-width:980px;gap:12px;margin-bottom:24px}
.calculation-page .parameter-tools>label{font-size:12px}.calculation-page .parameter-tools>label:has([data-source-note]){flex-basis:45%}
.calculation-page .parameter-tools input{font-size:13px}.calculation-page .input-footer{position:static;background:none;margin-top:24px;padding:16px 0 0}
.calculation-page .actions{justify-content:flex-start}.calculation-page .actions .primary{flex:0 0 auto;min-width:160px}.calculation-page .actions button{font-size:14px;padding:10px 18px}
.calculation-page .mobile-calc-switch{display:flex;gap:18px;padding:0 28px;background:white;border-bottom:1px solid var(--line)}
.calculation-page .mobile-calc-switch{position:sticky;top:var(--calc-header-height,90px);z-index:9}
.calculation-page .input-card,.calculation-page .result-card-wrap{scroll-margin-top:calc(var(--calc-header-height,90px) + 49px)}
.calculation-page .calculation-mode{scroll-margin-top:var(--calc-header-height,90px)}
.calculation-page .mobile-calc-switch button{border:0;border-radius:0;background:none;padding:11px 5px;color:var(--muted);border-bottom:2px solid transparent}
.calculation-page .mobile-calc-switch button.active{color:var(--accent);border-color:var(--accent)}
.calculation-page .results-head{position:static;background:none;padding:0 0 18px}.calculation-page .result-tabs{position:static;gap:25px}.calculation-page .result-tabs button{font-size:14px}
.calculation-page .result table{font-size:13px}.calculation-page .result h3{font-size:16px}.calculation-page .result pre{font-size:14px}.calculation-page .result p{font-size:13px}
.calculation-page .calculation-mode{margin:0;padding:14px 28px;background:#fff}.calculation-page .kpi-card strong,.calculation-page .water-kpi-card strong,.calculation-page .outcome-summary strong{font-size:24px}
@media(max-width:1250px){.specialty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.connection-status{display:none}.breadcrumb #app-version{display:none}.specialty-section:only-child ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.calculation-page .group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-summary span{display:none}.top-project select{width:135px}.library-layout.is-list{display:block}.catalog-aside{position:static;border:0;padding:24px 0}.workspace .view-page{padding:22px}.workspace-topbar{padding:0 16px;gap:8px}.breadcrumb strong{max-width:210px}}
@media(max-width:759px){:root{--sidebar:0px}.workspace .sidebar{width:246px;transform:translateX(-100%)}.sidebar-open .sidebar{transform:translateX(0);box-shadow:0 0 0 100vw #102b304d}.workspace-topbar{height:56px;padding:0 10px}.breadcrumb strong{max-width:130px;font-size:13px}.top-project{max-width:120px}.top-project>svg{display:none}.top-project select{width:116px;font-size:12px}.workspace-topbar>#project-switch,.workspace-topbar>.account{display:none}.workspace .view-page{padding:20px 16px 35px}.view-heading h1{font-size:23px}.specialty-grid{grid-template-columns:1fr}.specialty-section:only-child ul{display:block}.library-intro{gap:20px}.library-stat{font-size:11px}.document-tabs{top:56px}.calculation-frame{height:calc(100dvh - 97px)}.resource-frame{height:calc(100dvh - 56px)}.calculation-page .calc-header{padding:15px 16px}.calculation-page .calc-header h1{font-size:19px}.calculation-page .input-card,.calculation-page .result-card-wrap{padding:20px 16px}.calculation-page .mobile-calc-switch{padding:0 16px}.calculation-page .calculation-mode{padding:12px 16px}.calculation-page .parameter-tools>label:has([data-source-note]){flex-basis:100%}.calculation-page .result-tabs{gap:15px}.calculation-page .result-tabs button{font-size:13px}}
@media(max-width:520px){.calculation-page .group-grid{grid-template-columns:1fr}.calculation-page .calc-status{font-size:10px}.calculation-page .actions button{padding:9px 12px}.calculation-page .actions .primary{min-width:125px}.program-entry strong{font-size:16px}.top-project{margin-left:auto}.top-search{padding:5px}.breadcrumb{max-width:120px}}
@media(max-width:759px){#sidebar-close{display:flex;position:absolute;right:6px;top:8px;background:transparent;border:0;color:white}.workspace-topbar>.account{display:block}.account-summary{padding:3px}.account-summary svg{padding:3px;width:16px;height:16px}.workspace-topbar{gap:6px}.breadcrumb{flex:1;max-width:none}.top-project{max-width:100px}.top-project select{width:100px}.workspace.nav-collapsed{--sidebar:0px}#document-tabs:not([hidden])~#frame-host .resource-frame{height:calc(100dvh - 96px)}}
