:root{--ink:#17333e;--muted:#7d929b;--line:#e0e8e6;--bg:#f1f5f3;--teal:#087f80;--light:#e6f4ef;--nav:#142f39;--gas:#309fbe;--liquid:#d39d56;--aqueous:#6aae9e;--purple:#8d7ab5}
*{box-sizing:border-box}body{margin:0;height:100dvh;overflow:hidden;display:grid;grid-template-columns:210px minmax(0,1fr);font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit;color:inherit}button,select{cursor:pointer}button{border:0;background:none}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,a:focus-visible{outline:3px solid #69c5b6;outline-offset:2px}input:focus,select:focus,textarea:focus{outline:2px solid #87c6bb;outline-offset:1px}input,select,textarea{border:1px solid #dce5e2;border-radius:6px;background:#fff;padding:8px 10px;min-width:0;max-width:100%}input[type=number]{font-variant-numeric:tabular-nums;-moz-appearance:textfield}input::-webkit-inner-spin-button{opacity:.3}input[type=checkbox]{accent-color:var(--teal);width:13px;height:13px;padding:0;margin:0}label{font-size:10px;color:#728c94;display:block}label>input,label>select{display:block;margin-top:6px;width:100%;color:var(--ink);font-size:12px}h1,h2,h3,p{margin:0}h2{font-size:13px;font-weight:650}p{line-height:1.7}.icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{width:0;height:0;position:absolute;overflow:hidden}.muted{color:var(--muted)}.small{font-size:10px}.mono,td{font-variant-numeric:tabular-nums}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}[hidden]{display:none!important}.sidebar{background:var(--nav);color:#a5bec6;height:100dvh;display:flex;flex-direction:column;padding:27px 16px 20px}.brand{display:flex;gap:11px;align-items:center;color:#f3ffff;text-decoration:none;letter-spacing:2px;font-size:17px;font-weight:700;padding-left:9px}.brand small{display:block;font-size:8px;letter-spacing:1.6px;font-weight:400;color:#8fadb7;margin-top:6px}.logo{width:30px;height:34px;stroke:#75cfc2;stroke-width:1.6;fill:none}.nav-caption{font-size:8px;letter-spacing:1.4px;color:#7697a3;margin:47px 12px 14px}.sidebar nav{display:flex;flex-direction:column;gap:9px}.sidebar nav button{display:flex;align-items:center;gap:11px;padding:13px 11px;color:#adc3ca;border-radius:7px;font-size:12px;text-align:left}.sidebar nav button:hover{background:#1e3b45}.sidebar nav button.active{background:#254b55;color:#f2ffff}.sidebar nav button.active .icon{color:#85d3c6}.sidebar nav b{margin-left:auto;font-weight:400;font-size:9px;color:#72909c}.sidebar-bottom{margin-top:auto;padding:0 11px;font-size:10px}.sidebar-bottom button{color:#abc1c8;display:flex;gap:10px;align-items:center;font-size:11px;padding:12px 0;margin-bottom:24px}.sidebar-bottom>div{margin-bottom:6px;font-size:10px}.sidebar-bottom i{width:6px;height:6px;background:#a2b0b5;display:inline-block;border-radius:50%;margin-right:7px}.sidebar-bottom i.connected{background:#79cbb9}.sidebar-bottom small{font-size:9px;color:#73949f}.workspace{display:flex;flex-direction:column;min-height:0;min-width:0}.topbar{height:64px;flex-shrink:0;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;font-size:10px}.topbar strong{font-weight:550}.slash{margin:0 13px;color:#a0b0b3}.top-right{display:flex;gap:13px;align-items:center}.local-badge{font-size:8px;letter-spacing:1px;background:#e9f5f0;color:#4b8e7c;padding:5px 8px;border-radius:4px;font-weight:600}.icon-button{width:29px;height:29px;display:inline-flex;align-items:center;justify-content:center;color:#8aa0a7;border-radius:5px;font-size:22px;line-height:1}.icon-button:hover{background:#eaf3ef;color:var(--teal)}main{padding:23px 28px 0;flex:1;min-height:0;min-width:0}.page{height:100%;display:flex;flex-direction:column;min-width:0}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:82px;margin-bottom:19px;flex-shrink:0}.eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:1.5px;font-weight:600;color:var(--teal);display:block;margin-bottom:5px}.page-title h1{font-size:25px;letter-spacing:-.6px;font-weight:650;line-height:1.3;margin-bottom:5px}.page-title p{font-size:11px;color:var(--muted)}.title-actions{display:flex;align-items:center;gap:8px}.title-actions select{font-size:11px;max-width:230px}.page-hint{font-size:10px;color:#82979d}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border:1px solid var(--line);background:white;border-radius:6px;font-size:11px;font-weight:550;white-space:nowrap}.button:hover{background:#f0f6f3}.button.primary{color:#fff;background:var(--teal);border-color:var(--teal)}.button.primary:hover{background:#086d70}.button.subtle{border-color:transparent;background:transparent;color:#6e8b94}.button .icon{height:14px;width:14px}.content-height{flex:1;min-height:0;min-width:0}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;min-height:0;min-width:0;display:flex;flex-direction:column;box-shadow:0 3px 9px #12392c02}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:17px 19px 13px;flex-shrink:0}.counter{font-size:10px;color:#81979e;background:#f2f6f4;padding:3px 7px;border-radius:4px}.panel-tools{display:flex;gap:8px;padding:0 18px 13px;flex-shrink:0;flex-wrap:wrap}.panel-tools select{width:100%;font-size:10px;padding:7px}.search{position:relative;width:100%}.search input{padding-left:30px;width:100%;font-size:11px}.search .icon{position:absolute;top:10px;left:10px;height:13px;width:13px;color:#91a3a8}.scroll-area{flex:1;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#cbdad4 transparent;overscroll-behavior:contain}.editor-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(430px,1.4fr);gap:18px}.list-caption{display:flex;justify-content:space-between;align-items:center;padding:8px 19px;font-size:9px;letter-spacing:.3px;color:#91a3a8;background:#f8faf9;border-top:1px solid #edf2ef;border-bottom:1px solid #e8eeeb;flex-shrink:0}.catalog-list{padding:3px 12px}.catalog-row{display:flex;align-items:center;gap:10px;padding:8px 7px;border-bottom:1px solid #edf2ef;min-height:49px}.catalog-row:hover{background:#f3f8f5;border-radius:5px}.catalog-row.selected{background:#f1f7f3}.catalog-row.unavailable{opacity:.58}.catalog-row>div{min-width:0;flex:1}.catalog-row strong{font-size:11px;font-weight:600;display:block}.catalog-row small{font-size:9px;color:#94a4a9;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.catalog-row .mw{font-size:10px;color:#8da0a7}.catalog-row button{border:1px solid #dce7e2;border-radius:5px;width:23px;height:23px;font-size:16px;color:#4a9183;display:grid;place-items:center;flex-shrink:0}.catalog-row button:hover{background:var(--light)}.catalog-row.selected button{color:#75a792;background:#eff6f1}.panel-foot{padding:12px 18px;border-top:1px solid var(--line);font-size:9px;flex-shrink:0}.fluid-name-row{display:flex;gap:12px;align-items:end;padding:0 20px 14px}.fluid-name-row label{flex:1}.fluid-name-row input{font-size:13px;padding:9px 11px}.fluid-name-row .button{font-size:10px;padding-right:0}.status-chip{font-size:9px;border-radius:15px;padding:4px 8px;background:#eef5f1;color:#6e9a89}.status-chip.dirty{background:#fff4df;color:#a88036}.editor-basis-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf2ef;padding:10px 20px}.editor-basis-row label{display:flex;align-items:center;gap:9px;font-size:10px}.editor-basis-row select{width:auto;margin:0;padding:5px 7px;font-size:10px}.editor-basis-row>span{font-size:9px}table{border-collapse:collapse;width:100%;font-size:11px;text-align:right}thead{color:#91a3a8;background:#f8faf9;font-size:9px}th{font-weight:500}th,td{padding:10px 17px;border-bottom:1px solid #edf2ef;white-space:nowrap}th:first-child,td:first-child{text-align:left}thead th{position:sticky;top:0;background:#f8faf9;z-index:1}tbody th{font-weight:550;color:#4e6a73}tbody th small{font-size:9px;color:#96a8ac;margin-left:6px;font-weight:400}.builder-table{position:relative}.builder-table input{width:88px;text-align:right;padding:5px 7px;font-size:11px}.builder-table td{padding-top:5px;padding-bottom:5px}.builder-table td:last-child{padding-left:0;width:30px}.builder-table td:last-child button{color:#a0afb4;font-size:17px}.builder-table td:last-child button:hover{color:#bd6956}.editor-total{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:12px 20px;flex-shrink:0}.editor-total span{font-size:10px;color:#799199}.editor-total strong{font-size:12px;color:var(--teal);margin-left:13px}.editor-total strong.invalid{color:#ad7831}.editor-total .button{padding:7px 10px;font-size:10px}.description-row{padding:0 20px 13px}.description-row label{display:flex;align-items:center;gap:10px}.description-row input{margin:0;flex:1;font-size:10px;border-color:transparent;background:#f8faf9}.editor-actions{display:flex;align-items:center;gap:8px;padding:15px 20px;border-top:1px solid var(--line);flex-shrink:0}.editor-actions .small{margin-right:auto}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;text-align:center;min-height:220px;height:100%;padding:24px;color:#8b9fa6}.empty>.icon{height:36px;width:36px;stroke-width:1.15;color:#8db7ae;margin-bottom:5px}.empty strong{font-size:14px;color:#5d7a83;font-weight:550}.empty span{font-size:11px;line-height:1.9}.calculation-layout{display:grid;grid-template-columns:252px minmax(0,1fr);gap:18px}.calculation-main{display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0}.fluid-panel .panel-heading{padding-bottom:8px}.fluid-picker{padding:0 18px 13px}.fluid-picker select{width:100%;font-size:11px;background:#f5f8f6;padding:9px}.fluid-picker p{font-size:9px;margin-top:8px;min-height:14px}.composition-mini td{padding:7px 19px;font-size:10px}.composition-mini td:first-child{color:#57717a}.basis-toggle{display:flex;gap:7px}.basis-toggle button{font-size:9px;color:#91a6ac;padding:0}.basis-toggle button[aria-pressed=true]{color:var(--teal);font-weight:650}.history-area{border-top:1px solid var(--line);padding:13px 17px;flex-shrink:0}.history-area label{font-size:9px;margin-bottom:7px}.history-area select{width:100%;font-size:10px;background:#f8faf9}.conditions-panel{flex-shrink:0}.conditions-main{display:flex;gap:16px;align-items:center;padding:16px 18px}.conditions-main>label{flex:1;max-width:200px}.input-unit{display:flex;align-items:center;border:1px solid #dce5e2;border-radius:6px;overflow:hidden;margin-top:6px;height:40px}.input-unit input{width:100%;height:100%;border:0;border-radius:0;font-size:17px;font-weight:550;padding:7px 11px}.input-unit select{border:0;border-left:1px solid var(--line);border-radius:0;background:#f5f8f6;padding:7px 5px;font-size:10px;height:100%;max-width:64px}.hydrate-field{margin:15px 0 0 auto;min-width:130px}.check{display:flex;align-items:center;gap:7px;font-size:10px;color:#55747d}.hydrate-field .small{font-size:8px;margin-top:6px;display:block;max-width:195px}.conditions-main>.button{margin-top:16px;height:38px}.model-settings{border-top:1px solid #edf2ef;padding:0 18px}.model-settings summary{cursor:pointer;font-size:9px;color:#7d949b;padding:9px 0;list-style:none;display:flex;justify-content:space-between}.model-settings summary:before{content:'›';font-size:12px;margin-right:6px}.model-settings summary>span{margin-left:auto;color:#98a9ad;font-size:9px}.model-settings[open] summary:before{transform:rotate(90deg)}.model-settings summary::-webkit-details-marker{display:none}.model-fields{display:flex;flex-wrap:wrap;gap:12px;padding:4px 0 13px}.model-fields>label{flex:1;min-width:85px;font-size:9px}.model-fields select{font-size:10px;padding:6px;min-width:85px}.model-fields label.check{flex:0 0 auto;margin-top:20px}.model-fields input[type=checkbox]{width:12px;margin:0}.stale{padding:7px 11px;border:1px solid #eedca8;border-radius:6px;color:#a48239;background:#fff9e9;font-size:9px;flex-shrink:0}.result-panel{flex:1}.result-heading{display:flex;justify-content:space-between;align-items:center;padding:0 15px;border-bottom:1px solid var(--line);gap:8px;flex-shrink:0}.tabs{display:flex;gap:22px;min-width:0}.tabs button{padding:13px 0 11px;font-size:11px;color:#8b9fa6;border-bottom:2px solid transparent;white-space:nowrap}.tabs button[aria-selected=true]{color:var(--teal);border-color:var(--teal);font-weight:600}.result-heading>.button{font-size:10px;padding:6px 0}.result-body{padding:0}.result-footer{padding:9px 15px;border-top:1px solid var(--line);font-size:8px;color:#8fa2a8;flex-shrink:0;line-height:1.7}.result-summary{padding:15px 17px;display:grid;grid-template-columns:repeat(var(--count),minmax(0,1fr));gap:10px}.phase-card{border:1px solid var(--line);border-radius:7px;position:relative;overflow:hidden;padding:10px 12px}.phase-card:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--color)}.phase-card label{font-size:10px;margin-bottom:4px;color:#749099}.phase-card strong{font-size:23px;font-weight:550;letter-spacing:-.5px}.phase-card strong small{font-size:11px;color:#a0afb4;margin-left:3px;font-weight:400}.phase-card p{font-size:9px;color:#91a4aa}.run-meta{padding:9px 17px;display:flex;justify-content:space-between;font-size:9px;color:#79949c;background:#f8fbf9;border-bottom:1px solid #edf2ef;gap:8px}.inline-note{font-size:10px;padding:13px 17px;color:#78919a;line-height:1.8}.result-body table{font-size:10px}.result-body th,.result-body td{padding:9px 17px}.null{color:#a8b6b9;cursor:help}.hydrate-badge{display:inline-flex;align-items:center;gap:6px;border-radius:4px;padding:4px 8px;font-size:9px;background:#eff5f2;color:#698a7c}.hydrate-badge.favorable{background:#f1eaf6;color:#9264a4}.diagnostics-block{padding:16px}.diagnostic-items{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.diagnostic-items>div{border:1px solid var(--line);border-radius:7px;padding:10px;font-size:10px;overflow-wrap:anywhere}.diagnostic-items span{display:block;font-size:9px;color:#8ba1a9;margin-bottom:4px}.diagnostics-block details{font-size:10px;margin-top:15px;color:#6f8b94}.diagnostics-block summary{cursor:pointer}.diagnostics-block pre{background:#f7faf8;border-radius:6px;padding:12px;overflow:auto;white-space:pre-wrap;font-size:9px;line-height:1.8}.table-switch{display:flex;justify-content:flex-end;gap:8px;padding:8px 17px;font-size:9px}.table-switch select{padding:4px 8px;font-size:9px}.segmented{display:flex;background:#eaf0ec;border:1px solid #e2eae5;border-radius:7px;padding:3px;gap:3px;flex-shrink:0}.segmented button{padding:7px 11px;font-size:10px;border-radius:5px;color:#81989f;white-space:nowrap}.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #12392c12;color:var(--teal);font-weight:550}.pt-ranges{display:flex;align-items:end;gap:12px;padding:15px 18px 12px}.range-field{flex:1;min-width:0}.range-field>label{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:9px}.range-field select{width:auto;margin:0;padding:2px 4px;font-size:9px;border:0;background:#f3f8f5;color:#66888f}.range-inputs{display:flex;align-items:center;border:1px solid #dce5e2;border-radius:6px;overflow:hidden;height:37px}.range-inputs input{width:100%;min-width:0;border:0;font-size:12px;padding:7px 8px;border-radius:0;background:none}.range-inputs span{font-size:9px;color:#a1b2b5}.range-field.resolution{max-width:125px}.resolution label>span{font-size:8px;color:#97a9ae;background:#f2f7f4;padding:1px 5px;border-radius:3px}.pt-ranges>.button{height:37px;font-size:10px;padding:8px 11px}.pt-options{display:flex;gap:19px;padding:0 18px 11px;flex-wrap:wrap;align-items:center}.pt-options .small{font-size:8px;margin-left:auto}.chart-panel{flex:1}.chart-toolbar{display:flex;align-items:center;gap:13px;padding:11px 16px;border-bottom:1px solid var(--line);flex-shrink:0}.chart-toolbar>label{font-size:9px}.chart-toolbar select{font-size:10px;padding:6px 8px;margin-top:4px;max-width:220px}.chart-actions{margin-left:auto;display:flex;gap:5px;align-items:center}.chart-actions .button{font-size:9px;padding:7px 9px}.chart-area{flex:1;position:relative;min-height:230px;min-width:0;display:flex;align-items:center;justify-content:center;padding:7px 12px}.chart-area>svg{width:100%;height:100%;max-height:100%;overflow:visible}.chart-area>.empty{position:absolute;inset:0}.plot-tooltip{position:absolute;pointer-events:none;background:#183b48ef;color:#fff;font-size:10px;padding:9px 12px;border-radius:6px;max-width:250px;box-shadow:0 5px 20px #12392c25;z-index:3;line-height:1.7;white-space:pre-line}.plot-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;max-height:54px;overflow:auto;padding:4px 16px 9px;font-size:9px;color:#8099a0;flex-shrink:0}.plot-legend i{display:inline-block;height:7px;width:10px;border-radius:2px;margin-right:5px}.plot-legend .line{height:2px;vertical-align:middle;width:16px}.app-footer{display:flex;justify-content:space-between;gap:10px;padding:12px 29px;font-size:8px;color:#91a5ab;flex-shrink:0}.job-strip{position:fixed;bottom:18px;left:calc(50% + 105px);transform:translateX(-50%);width:min(780px,calc(100vw - 250px));background:#183b47;color:#e5f6f3;box-shadow:0 10px 35px #0d303d33;border-radius:9px;border:1px solid #36535c;padding:13px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px 16px;align-items:center;z-index:20}.job-strip>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap;grid-column:1/-1;font-size:11px}.job-strip strong{font-weight:550}.job-strip #job-description{color:#9cbbc2;font-size:10px;margin-left:auto}.job-strip progress{height:5px;width:100%;accent-color:#80c9b7;border-radius:5px;overflow:hidden}.job-strip .button{background:transparent;border-color:#47636a;color:#d1e5e5;padding:5px 10px;font-size:10px}.job-strip .mono{font-size:10px;color:#a5c2c7}.spinner{width:12px;height:12px;border:2px solid #486d74;border-top-color:#7ad2bf;border-radius:50%;animation:spin .9s linear infinite}.app-footer.busy{visibility:hidden}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:1px solid #dbe8e2;border-radius:13px;padding:22px;width:490px;max-width:calc(100vw - 28px);max-height:85dvh;overflow:auto;color:var(--ink);box-shadow:0 15px 100px #132f3d33}dialog::backdrop{background:#16333f66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:15px}.dialog-heading h2{font-size:19px;font-weight:600;letter-spacing:-.5px}dialog p{font-size:12px;color:#779099;line-height:1.9;margin:13px 0}dialog strong{color:#4c707a;font-weight:600}dialog label{font-size:10px}dialog textarea{width:100%;min-height:185px;font:12px/1.9 ui-monospace,monospace;resize:vertical;margin-top:15px}dialog .error{color:#b26750;font-size:11px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.export-options{display:flex;flex-direction:column;gap:9px}.export-options button{padding:14px;border:1px solid var(--line);border-radius:7px;text-align:left;font-size:12px}.export-options button:hover{border-color:#81bfaf;background:#f4faf6}.export-options small{display:block;font-size:10px;color:#8da3aa;margin-top:4px}.wide-dialog{width:880px}.wide-dialog table{font-size:10px}.wide-dialog #cell-result{overflow:auto}.toast{position:fixed;left:calc(50% + 105px);transform:translateX(-50%);bottom:22px;background:#244653;color:#fff;padding:12px 20px;border-radius:8px;font-size:11px;box-shadow:0 5px 30px #173c3d20;z-index:100;max-width:calc(100vw - 40px);text-align:center}.toast.error{background:#8f5144}
@media(min-width:1550px){body{grid-template-columns:225px minmax(0,1fr)}main{padding:30px 36px 0}.topbar{padding:0 36px;height:70px}.page-title{margin-bottom:25px}.page-title h1{font-size:28px}.editor-layout{grid-template-columns:minmax(300px,.8fr) minmax(500px,1.4fr);gap:25px}.calculation-layout{grid-template-columns:286px minmax(0,1fr);gap:24px}.conditions-main{gap:24px;padding:21px}.result-summary{padding:20px;gap:16px}.phase-card strong{font-size:30px}.catalog-row{padding:10px}.composition-mini td{padding:9px 20px}.result-body th,.result-body td{padding:11px 21px}}
@media(max-width:1250px){body{grid-template-columns:175px minmax(0,1fr)}.sidebar{padding-left:10px;padding-right:10px}.brand{font-size:14px;gap:8px;letter-spacing:1.3px}.brand .logo{width:25px}.brand small{font-size:7px;letter-spacing:1px}.sidebar nav button{font-size:11px;gap:9px}.sidebar nav b{display:none}.nav-caption{font-size:7px;letter-spacing:1px;margin-left:10px}main{padding:20px 22px 0}.topbar{padding:0 22px}.page-title h1{font-size:23px}.page-title p{font-size:10px}.page-title{gap:15px}.editor-layout{grid-template-columns:minmax(230px,.7fr) minmax(390px,1.2fr);gap:14px}.fluid-name-row{padding:0 16px 12px}.editor-basis-row{padding:9px 16px}.editor-actions{padding:13px 16px;flex-wrap:wrap}.editor-actions .small{font-size:9px}.builder-table th,.builder-table td{padding-left:12px;padding-right:12px}.builder-table input{width:75px}.calculation-layout{grid-template-columns:220px minmax(0,1fr);gap:14px}.conditions-main{gap:11px;padding:14px}.conditions-main>.button{font-size:10px;padding:9px 11px}.hydrate-field{min-width:110px}.check{font-size:9px}.hydrate-field .small{font-size:7px}.result-heading{padding:0 12px}.tabs{gap:17px}.tabs button{font-size:10px}.result-heading>.button{font-size:9px}.pt-ranges{gap:9px;padding:14px 14px 10px}.range-inputs input{font-size:11px;padding:6px}.range-field.resolution{max-width:105px}.pt-options{padding-left:14px;gap:12px}.chart-toolbar{gap:8px;padding:10px 12px;flex-wrap:wrap}.chart-toolbar select{max-width:190px}.chart-actions .button{padding:6px;font-size:9px}.job-strip{left:calc(50% + 88px)}.toast{left:calc(50% + 88px)}.app-footer{padding-left:23px;padding-right:23px}.app-footer span:last-child{display:none}}
@media(max-width:1050px){body{grid-template-columns:67px minmax(0,1fr)}.sidebar{align-items:center;padding:22px 8px}.brand{padding:0}.brand span,.nav-caption,.sidebar nav span,.sidebar-bottom span,.sidebar-bottom small{display:none}.sidebar nav{margin-top:45px}.sidebar nav button{padding:13px}.sidebar-bottom{padding:0}.sidebar-bottom button{margin:0}.sidebar-bottom>div{margin:14px 0 0 7px}.editor-layout{grid-template-columns:minmax(235px,.75fr) minmax(390px,1.3fr)}.page-hint{display:none}.page-title p{font-size:10px}.conditions-main>label{min-width:110px}.hydrate-field{display:none}.conditions-main{flex-wrap:wrap}.hydrate-field{display:block;order:5;margin:0;flex:1 0 100%}.hydrate-field .small{display:none}.hydrate-field .check{font-size:9px}.conditions-main>.button{margin-left:auto}.conditions-main>label{max-width:none}.title-actions select{max-width:190px}.page-title h1{font-size:23px}.fluid-name-row{flex-wrap:wrap;gap:3px}.fluid-name-row label{flex:1 0 100%}.fluid-name-row .button{padding:7px 0 0;font-size:9px}.editor-actions .small{display:none}.editor-actions>.button.primary{margin-left:auto}.result-summary{gap:8px;padding:12px}.phase-card{padding:9px 10px}.phase-card strong{font-size:23px}.phase-card label{font-size:9px}.phase-card p{font-size:8px}.job-strip{left:calc(50% + 34px);width:calc(100vw - 110px)}.toast{left:calc(50% + 34px)}.pt-ranges{flex-wrap:wrap}.range-field{flex-basis:30%}.pt-ranges>.button{flex:1}.chart-toolbar{gap:9px}.chart-toolbar>label{flex:1;min-width:90px}.chart-toolbar select{max-width:100%;width:100%}.chart-actions{margin-left:0}.chart-actions .button{font-size:8px}}
@media(max-width:760px){body{height:auto;min-height:100dvh;overflow:auto;grid-template-columns:1fr}.sidebar{height:59px;flex-direction:row;padding:9px 16px;align-items:center;position:sticky;top:0;z-index:15}.brand span{display:block;font-size:13px;letter-spacing:1.6px}.brand small{display:none}.brand .logo{height:28px}.sidebar nav{margin:0;flex-direction:row;gap:3px}.sidebar nav button{padding:9px}.sidebar nav span{display:none}.sidebar-bottom{display:none}.workspace{min-height:calc(100dvh - 59px)}.topbar{height:48px;padding:0 18px;font-size:9px}main{padding:20px 16px 0}.page-title{align-items:flex-start;margin-bottom:17px;min-height:76px;flex-wrap:wrap;gap:13px}.page-title h1{font-size:24px}.page-title p{font-size:10px}.title-actions{width:100%}.title-actions select{flex:1;max-width:none}.editor-layout{grid-template-columns:1fr;gap:15px}.catalog-panel{max-height:340px;min-height:300px}.catalog-list{height:190px;flex:auto}.panel-tools{flex-wrap:nowrap}.panel-tools select{max-width:150px}.builder-panel{min-height:470px;max-height:720px}.builder-table{min-height:200px;max-height:400px}.catalog-row small{max-width:260px}.fluid-name-row{flex-wrap:nowrap;gap:10px}.fluid-name-row label{flex:1 1 auto}.fluid-name-row .button{padding:7px 0}.editor-actions{flex-wrap:nowrap}.calculation-layout{grid-template-columns:1fr;gap:15px}.fluid-panel{max-height:250px;min-height:170px}.fluid-panel .scroll-area{min-height:70px;max-height:130px}.fluid-panel .panel-heading{padding-top:12px;padding-bottom:3px}.fluid-picker{display:flex;align-items:center;gap:12px;padding-bottom:10px}.fluid-picker select{flex:1}.fluid-picker p{font-size:8px;margin:0;max-width:40%}.history-area{padding:10px 16px;display:flex;align-items:center;gap:12px}.history-area label{margin:0;white-space:nowrap}.history-area select{flex:1;width:100%}.calculation-main{gap:13px}.conditions-main{flex-wrap:nowrap}.conditions-main>label{min-width:75px}.conditions-main>.button{font-size:10px;padding:9px}.hydrate-field{display:none}.conditions-main{position:relative;padding-bottom:40px}.hydrate-field{display:block;position:absolute;bottom:13px;left:15px}.result-panel{min-height:450px;max-height:760px}.result-body{min-height:250px;max-height:620px}.chart-panel{height:570px;min-height:490px}.chart-area{min-height:250px}.pt-ranges{flex-wrap:nowrap}.pt-ranges>.button{flex:0 0 auto}.range-field.resolution{max-width:100px}.range-field{flex-basis:auto}.page-title .segmented{margin-top:2px}.pt-options .small{display:none}.pt-options .check{font-size:9px}.chart-toolbar{flex-wrap:nowrap}.chart-toolbar>label{min-width:90px}.chart-actions{margin-left:auto}.chart-actions .button{font-size:0;gap:0;padding:6px}.chart-actions #refine-existing{font-size:8px;max-width:90px;white-space:normal}.app-footer{padding:18px;font-size:8px;line-height:1.8}.job-strip{left:50%;width:calc(100vw - 24px);bottom:12px;gap:8px;font-size:10px}.job-strip #job-description{margin-left:0;font-size:9px}.toast{left:50%;bottom:15px}.job-strip .mono{font-size:9px}.content-height{flex:1 0 auto}.page{height:auto}.empty{min-height:190px}.chart-panel .empty{min-height:250px}.model-fields{gap:9px}.model-fields>label{min-width:90px}.chart-area>svg{max-height:400px}.diagnostic-items{grid-template-columns:1fr 1fr}}
@media(max-width:440px){main{padding:19px 12px 0}.page-title h1{font-size:23px}.page-title p{font-size:9px}.topbar{padding:0 13px}.local-badge{font-size:7px}.panel-heading{padding:15px}.panel-tools{padding:0 14px 10px;gap:6px}.panel-tools select{max-width:130px;font-size:9px}.search input{font-size:10px}.catalog-row small{max-width:190px}.fluid-name-row{flex-wrap:wrap}.fluid-name-row label{flex:1 0 100%}.fluid-name-row input{font-size:12px}.editor-basis-row{padding:8px 13px}.editor-basis-row label{font-size:9px;gap:5px}.editor-basis-row>span{font-size:8px}.builder-table input{width:70px}.builder-table th,.builder-table td{padding-left:9px;padding-right:9px;font-size:10px}.builder-table thead th{font-size:8px}.editor-actions{padding:12px}.editor-actions>.button{font-size:10px}.conditions-main{gap:9px;padding:13px 12px 39px}.conditions-main>.button{padding:9px;font-size:9px}.conditions-main>.button .icon{display:none}.input-unit input{font-size:15px;padding:6px 9px}.input-unit select{font-size:9px;padding:4px;max-width:53px}.conditions-main>label{font-size:9px}.result-heading{padding:0 11px;gap:6px}.tabs{gap:15px}.tabs button{font-size:9px}.result-heading>.button{font-size:0;gap:0}.result-heading>.button .icon{width:15px;height:15px}.result-summary{gap:6px;padding:13px 10px}.phase-card{padding:9px}.phase-card strong{font-size:21px}.phase-card label{font-size:8px}.phase-card p{font-size:7px}.result-body th,.result-body td{padding:9px 12px}.run-meta{padding:8px 12px;font-size:8px}.pt-ranges{flex-wrap:wrap;padding:13px 12px 10px}.range-field{flex-basis:40%}.range-field.resolution{max-width:145px;flex-basis:45%}.pt-ranges>.button{margin-left:auto;flex:1;max-width:165px}.pt-options{padding-left:12px;gap:12px}.chart-toolbar{flex-wrap:wrap;gap:8px;padding:10px 12px}.chart-toolbar>label{min-width:110px}.chart-actions{flex:1;justify-content:flex-end}.chart-actions .button{font-size:9px;gap:5px}.chart-actions #refine-existing{font-size:9px;max-width:none}.chart-panel{height:530px}.chart-area{padding:0 5px}.chart-area>svg{max-height:330px}.plot-legend{font-size:8px;gap:7px 11px}.fluid-picker{gap:7px}.fluid-picker p{max-width:35%;font-size:7px}.history-area{gap:9px;padding:9px 14px}.history-area label{font-size:8px}.history-area select{font-size:9px}.result-footer{font-size:7px}.dialog-heading h2{font-size:17px}dialog{padding:18px}.app-footer{font-size:7px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

/* Unit labels remain readable when the condition row shrinks. */
.input-unit select{flex:0 0 61px;width:61px;max-width:none}.input-unit input{flex:1;min-width:0}
@media(max-width:440px){.input-unit select{flex-basis:54px;width:54px;max-width:none}}

@media(min-width:761px){.chart-area{min-height:150px}}
@media(min-width:761px) and (max-height:780px){main{padding-top:13px}.page-title{min-height:68px;margin-bottom:12px}.page-title h1{font-size:23px}.topbar{height:55px}.panel-heading{padding-top:13px}.app-footer{padding-top:9px;padding-bottom:9px}.conditions-main{padding-top:12px;padding-bottom:12px}.pt-ranges{padding-top:11px}.chart-toolbar{padding-top:8px;padding-bottom:8px}}

.chart-toolbar>#plot-hydrate-toggle{flex:0 0 auto;min-width:0;align-self:end;margin-bottom:7px;font-size:9px}

/* Compact workspace: controls stay above the data, without hero sections. */
.topbar{height:40px;padding:0 20px;font-size:10px}
main{padding:10px 18px 12px}
.page-title{min-height:30px;margin-bottom:9px;gap:12px;align-items:center;flex-wrap:nowrap}
.page-title .eyebrow,.page-title p,.page-hint{display:none}
.page-title h1{font-size:17px;letter-spacing:-.2px;margin:0;line-height:1.3}
.page-title .title-actions{width:auto}
.page-title .title-actions select{padding:5px 9px;font-size:11px;max-width:240px;height:30px}
.page-title .button{padding:5px 10px;height:30px}
.page-title .segmented button{padding:4px 9px}
.panel{border-radius:8px}.panel-heading{padding:10px 15px 9px}
.panel-heading h2{font-size:12px}.panel-foot{padding:7px 14px;font-size:9px}
.fluid-name-row{padding:0 15px 10px;align-items:center}.fluid-name-row input{padding:7px 9px;font-size:12px}
.editor-basis-row{padding:7px 15px}.editor-basis-row select{height:27px}
.grid-tools{display:flex;align-items:center;gap:12px;font-size:9px}.grid-tools .button{padding:4px 0;font-size:10px}
.editor-total{padding:7px 15px}.description-row{padding:0 15px 8px}.editor-actions{padding:9px 15px}
.editor-actions .button{padding:7px 11px}.editor-actions .small{font-size:9px}
.model-settings{padding:0 13px;border-top:1px solid #e8eeea}
.model-fields{padding:7px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.model-fields>label{display:flex;align-items:center;gap:5px;flex:0 1 auto;min-width:0;font-size:9px;white-space:nowrap}
.model-fields select{width:auto;min-width:58px;padding:4px 5px;height:26px;margin:0;font-size:10px}
.model-fields label.check{margin-top:0;flex:0 0 auto}
.conditions-main{padding:11px 14px;gap:12px}.conditions-main>.button{height:35px}
.conditions-main .input-unit{height:35px;margin-top:4px}.conditions-main .input-unit input{font-size:16px}
.calculation-main{gap:8px}.pt-ranges{padding:10px 14px 8px}.pt-options{padding-bottom:8px}
.run-meta{display:flex;align-items:center;justify-content:flex-start;gap:15px;min-height:31px;padding:4px 13px;font-size:10px;flex-wrap:wrap}
.run-meta strong{font-size:10px;font-weight:550}.run-meta>label{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:10px}
.run-meta select{display:inline-block;margin:0;width:auto;height:23px;padding:2px 6px;font-size:10px}
.run-meta .hydrate-inline{margin-left:auto}.hydrate-badge{font-size:9px;padding:2px 6px}
.result-heading{padding:0 13px}.tabs button{padding:9px 0 7px}.result-body th,.result-body td{padding:6px 13px}
.result-body .result-summary,.diagnostics-block{display:none}
#flash-result-footer,.app-footer{display:none}
.result-panel .result-body{min-height:0}
.excel-grid{table-layout:fixed;border-collapse:separate;border-spacing:0;user-select:none;outline:none}
.excel-grid thead th{height:29px;border-right:1px solid #dce5e2;border-bottom:1px solid #d5dfdb;cursor:default;padding:5px 7px}
.excel-grid thead th:first-child{width:30px;text-align:center}.excel-grid thead th:last-child{width:28px}
.excel-grid thead th[data-col="0"]{width:27%}.excel-grid thead th[data-col="1"]{width:25%}
.excel-grid tbody th{position:sticky;left:0;padding:0;text-align:center;background:#f5f8f6;color:#8fa19f;font-size:9px;border-right:1px solid #e0e7e4;font-weight:400;cursor:default}
.excel-grid td[data-col]{position:relative;border-right:1px solid #e4eae7;border-bottom:1px solid #e4eae7;padding:5px 8px;height:29px;cursor:cell;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.excel-grid td.input-cell{background:#fcfefd}
.excel-grid td.cell-selected{background:#e5f1ee;color:#244f54}
.excel-grid td.cell-active{box-shadow:inset 0 0 0 2px #198c80;z-index:1;background:#f0faf6}
.excel-grid td[data-col="0"]{text-align:left}
.excel-grid td>input{position:absolute;inset:0;width:100%;height:100%;padding:3px 7px;border:0;border-radius:0;background:#fff;outline:2px solid #198c80;outline-offset:-2px;text-align:right;font-size:11px;user-select:text}
.excel-grid td[data-col="0"]>input{text-align:left}
.excel-grid .remove-cell{padding:0 3px;text-align:center}.excel-grid .remove-cell button{width:22px;height:23px}
.builder-table:focus-within .excel-grid thead th{background:#f0f6f2}
@media(min-width:1051px){.catalog-panel .panel-tools{flex-wrap:nowrap;padding:0 14px 10px;gap:7px}.catalog-panel .panel-tools>.search{flex:1;min-width:100px}.catalog-panel .panel-tools>select{width:132px;font-size:9px}}
@media(min-width:761px) and (max-height:780px){main{padding-top:8px}.page-title{min-height:28px;margin-bottom:7px}.page-title h1{font-size:17px}.topbar{height:37px}.panel-heading{padding-top:9px}.conditions-main{padding-top:9px;padding-bottom:9px}}
@media(max-width:1050px) and (min-width:761px){.fluid-name-row{flex-wrap:nowrap}.fluid-name-row label{flex:1}.fluid-name-row .button{padding:6px 0}.model-fields{gap:6px}.model-fields>label{font-size:8px}.model-fields select{min-width:54px;font-size:9px}.hydrate-field{order:initial;flex:0 1 auto;margin-top:13px}.conditions-main{flex-wrap:wrap}}
@media(max-width:760px){main{padding:11px 12px}.page-title{min-height:30px;gap:8px;flex-wrap:wrap}.page-title h1{font-size:17px}.title-actions{width:100%}.page-title .title-actions{width:auto;flex:1}.page-title .title-actions select{max-width:none}.model-fields{gap:7px 10px}.conditions-main{padding-bottom:34px}.hydrate-field{margin:0;bottom:10px}.result-panel{min-height:360px}.result-panel .result-body{min-height:200px}.fluid-name-row{flex-wrap:nowrap}.fluid-name-row label{flex:1}.builder-panel{min-height:420px}.builder-table{min-height:180px}.run-meta{gap:7px 12px;font-size:9px}.run-meta strong{font-size:9px}.editor-layout{gap:12px}.catalog-panel{min-height:235px;max-height:290px}.catalog-list{height:150px}}
@media(max-width:440px){.page-title h1{font-size:16px}.page-title .title-actions{flex-basis:100%}.fluid-name-row{flex-wrap:wrap}.fluid-name-row label{flex-basis:100%}.grid-tools{gap:7px}.editor-basis-row{padding:7px 10px}.editor-basis-row>label{font-size:0}.editor-basis-row select{font-size:10px}.grid-tools>span{font-size:8px}.excel-grid td[data-col]{padding:5px;font-size:10px}.excel-grid thead th{font-size:8px}.excel-grid thead th:first-child{width:24px}.excel-grid thead th:last-child{width:23px}.model-fields>label{font-size:8px}.model-fields select{font-size:9px}.run-meta{padding:5px 10px}.tabs{gap:17px}.tabs button{font-size:10px}}
