:root {
  --ink:#172b2a; --muted:#667672; --green:#176b61; --green-dark:#123f39;
  --mint:#e7f5f1; --warm:#f5f5f1; --line:#dde6e2; --white:#fff;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; color:var(--ink); background:var(--warm);
}
* { box-sizing:border-box; }
body { margin:0; min-width:320px; }
.technical-note { margin:6px 0 0; padding:6px 8px; border-left:3px solid #53857a; background:#ffffff73; color:#365e56; font-size:11px; line-height:1.5; }
button,input,select { font:inherit; }
button,a,select { -webkit-tap-highlight-color:transparent; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:240px minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100vh; padding:26px 18px; display:flex; flex-direction:column; color:white; background:var(--green-dark); }
.brand { display:flex; align-items:center; gap:12px; padding:0 8px 26px; border-bottom:1px solid #ffffff24; }
.brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; color:var(--green-dark); background:#d9eee7; font-weight:800; font-size:13px; }
.brand strong,.brand span { display:block; }.brand strong { font-size:15px; }.brand span { margin-top:3px; font-size:11px; color:#b9d1ca; }
.nav-list { display:grid; gap:6px; margin-top:24px; }
.nav-button { width:100%; display:flex; align-items:center; gap:11px; padding:9px 10px; border:0; border-radius:11px; color:#d4e3df; background:transparent; cursor:pointer; text-align:left; font-weight:650; }
.nav-button:hover,.nav-button.active { background:#ffffff18; color:white; }.nav-icon { flex:0 0 auto; display:grid; place-items:center; width:32px; height:32px; border:1px solid #b9d8cf35; border-radius:9px; color:#b9d8cf; background:#ffffff0b; transition:background .16s ease,color .16s ease,border-color .16s ease; }.nav-icon svg { width:22px; height:22px; overflow:visible; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }.nav-icon .icon-fill { fill:currentColor; fill-opacity:.18; stroke:none; }.nav-icon .icon-solid { fill:currentColor; stroke:none; }.nav-button:hover .nav-icon,.nav-button.active .nav-icon { color:#123f39; background:#d9eee7; border-color:#d9eee7; }.nav-button small { margin-left:auto; color:#9ebbb4; font-weight:500; }
.catalog-status { display:flex; gap:10px; margin-top:auto; padding:15px 10px 0; border-top:1px solid #ffffff24; }.status-dot { width:8px; height:8px; margin-top:5px; border-radius:50%; background:#54d39a; box-shadow:0 0 0 4px #54d39a24; }.catalog-status strong { font-size:11px; }.catalog-status p { margin:4px 0 0; color:#a9c2bc; font-size:10px; line-height:1.45; }
main { min-width:0; }.view { display:none; min-height:100vh; }.view.active { display:block; }
.page-header { padding:26px clamp(20px,4vw,44px) 24px; background:white; border-bottom:1px solid var(--line); }.page-header p { margin:0 0 5px; color:var(--green); font-size:11px; font-weight:800; letter-spacing:.08em; }.page-header h1 { margin:0; font-size:clamp(24px,3vw,30px); letter-spacing:-.025em; }.page-header span { display:block; margin-top:7px; color:var(--muted); font-size:13px; }
.workspace { display:grid; grid-template-columns:minmax(310px,380px) minmax(420px,1fr); gap:24px; padding:24px clamp(20px,3vw,34px) 30px; }
.panel { padding:23px; border:1px solid var(--line); border-radius:13px; background:white; box-shadow:0 5px 20px #173b3210; }.panel-heading { margin-bottom:20px; }.panel-heading h2,.results-heading h2 { margin:0; font-size:18px; }.panel-heading p,.results-heading p { margin:5px 0 0; color:var(--muted); font-size:12px; }
label { display:block; margin-top:15px; color:#344945; font-size:12px; font-weight:700; }.field-grid { display:grid; grid-template-columns:1fr 1fr; column-gap:13px; row-gap:0; align-items:start; }.field-grid>label { display:grid; grid-row:span 3; grid-template-rows:subgrid; align-items:start; }
input,select { width:100%; min-height:42px; margin-top:7px; padding:9px 11px; color:var(--ink); border:1px solid #cfdad6; border-radius:8px; background:white; outline:none; }
input:focus,select:focus { border-color:var(--green); box-shadow:0 0 0 3px #176b611c; }.input-with-unit { position:relative; }.input-with-unit input { padding-right:52px; }.input-with-unit span { position:absolute; right:11px; top:50%; transform:translateY(-28%); color:var(--muted); font-size:12px; font-weight:500; pointer-events:none; }.input-panel small { display:block; margin-top:5px; color:var(--muted); font-size:10px; font-weight:500; }
.primary { min-height:43px; margin-top:22px; padding:10px 18px; border:0; border-radius:8px; color:white; background:var(--green); cursor:pointer; font-weight:700; }.primary:hover { background:#11584f; }.input-panel .primary { width:100%; }
.link-button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }.pump-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:14px; }.pump-actions .primary { margin:0; }.secondary-link { padding:10px 13px; color:var(--green-dark); border:1px solid #b9d5ce; border-radius:8px; background:var(--mint); font-size:12px; font-weight:750; text-decoration:none; }
.validation { min-height:0; margin:10px 0 0; color:#b33a2b; font-size:12px; line-height:1.45; }.validation:empty { display:none; }.validation.caution { color:#a65a17; }
.results-area { min-width:0; }.results-heading { min-height:53px; display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }.summary-chip { flex:none; padding:7px 11px; border-radius:20px; background:#e6ece9; font-size:11px; font-weight:700; }
.result-list { display:grid; gap:11px; }.result-card { --card-bg:#fff; --card-border:#dce5e1; --accent:#176b61; position:relative; display:grid; grid-template-columns:45px minmax(0,1fr) auto; gap:14px; padding:17px; border:1px solid var(--card-border); border-left-width:4px; border-radius:11px; background:var(--card-bg); }.rank { display:grid; place-items:center; align-self:start; width:38px; height:38px; border-radius:10px; color:white; background:var(--accent); font-size:17px; font-weight:800; }.product-copy { min-width:0; }.card-topline { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }.manufacturer { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; }.recommendation-status { color:var(--accent); font-size:10px; font-weight:800; }.product-copy h3 { margin:5px 0 3px; font-size:18px; }.article-line,.explanation,.card-warning { margin:0; font-size:11px; line-height:1.5; }.article-line,.explanation { color:var(--muted); }.explanation { margin-top:7px; }.card-warning { margin-top:6px; color:#9b5219; font-weight:650; }.product-numbers { min-width:92px; text-align:right; }.product-numbers strong,.product-numbers span { display:block; }.product-numbers strong { font-size:21px; }.product-numbers span { margin-top:4px; color:var(--muted); font-size:11px; }.source-link { display:inline-block; margin-top:8px; color:var(--green); font-size:11px; font-weight:750; text-decoration:none; }.source-link:hover { text-decoration:underline; }.source-link.disabled { pointer-events:none; opacity:.55; }
.pump-curve-panel { grid-column:2/-1; min-width:0; margin-top:2px; padding:12px 13px 9px; border:1px solid #c9d8d3; border-radius:9px; background:#fffffff0; }.pump-curve-title,.pump-curve-canvas,.pump-curve-panel>p { width:100%; max-width:1000px; margin-left:auto; margin-right:auto; }.pump-curve-title { display:flex; justify-content:space-between; gap:12px; align-items:baseline; margin-bottom:5px; }.pump-curve-title strong { color:#263b36; font-size:12px; }.pump-curve-title span { color:#52645f; font-size:10px; font-weight:700; }.pump-curve-key { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:5px; }.curve-swatch { display:inline-block; width:18px; height:0; border-top:2px solid; }.curve-swatch.muted { border-color:rgba(83,168,132,.48); }.curve-swatch.selected { border-color:#176b61; border-top-width:3px; }.curve-dot { display:inline-block; width:7px; height:7px; margin-left:3px; border-radius:50%; background:#c56b19; }.pump-curve-canvas { display:block; height:190px; }.pump-curve-panel>p { margin-top:5px; margin-bottom:0; color:var(--muted); font-size:9px; line-height:1.4; }
.notice { border:1px solid; border-radius:9px; padding:12px 14px; font-size:11px; line-height:1.5; }.results-area>.notice { margin-top:14px; }.notice .source-link { margin-top:0; }.warning { color:#6f5423; background:#fff7e8; border-color:#f1d8a4; }.info { color:var(--green-dark); background:var(--mint); border-color:#bbddd4; }
.valve-fluid-properties { margin-top:15px; }
.expansion-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; padding:24px; border:2px solid #064e3b; border-radius:13px; background:#d5e9e0; }.expansion-hero>div>span,.metric>span { color:var(--green); font-size:10px; font-weight:800; letter-spacing:.06em; }.expansion-hero h2 { margin:6px 0 4px; font-size:26px; }.expansion-hero p { margin:0; color:var(--muted); font-size:12px; }.size-badge { align-self:center; min-width:150px; padding:17px; border-radius:11px; color:white; background:#064e3b; text-align:center; }.size-badge strong,.size-badge span { display:block; }.size-badge strong { font-size:24px; }.size-badge span { margin-top:4px; color:#cde7dd; font-size:11px; }
.metric-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }.metric { padding:18px; border-radius:10px; background:white; }.metric strong { display:block; margin-top:7px; font-size:21px; }.metric p { margin:6px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
[hidden] { display:none !important; }
.coming-soon { max-width:470px; margin:auto; padding:17vh 25px 40px; text-align:center; }.coming-soon>div { display:grid; place-items:center; width:64px; height:64px; margin:auto; border-radius:18px; color:var(--green); background:var(--mint); font-size:30px; }.coming-soon h1 { margin:20px 0 8px; }.coming-soon p { color:var(--muted); line-height:1.55; }.coming-soon .primary { width:auto; }
@media (max-width:1000px) { .app-shell { grid-template-columns:78px minmax(0,1fr); }.sidebar { padding-inline:10px; }.brand { padding-inline:6px; justify-content:center; }.brand>div:last-child,.nav-button:not(.active) small,.nav-button { font-size:0; }.nav-button { justify-content:center; }.catalog-status>div { display:none; }.catalog-status { justify-content:center; }.workspace { grid-template-columns:minmax(285px,350px) minmax(360px,1fr); gap:18px; padding-inline:20px; } }
@media (max-width:760px) { body { padding-bottom:67px; }.app-shell { display:block; }.sidebar { z-index:20; position:fixed; inset:auto 0 0; width:100%; height:67px; padding:6px 8px; display:block; border-top:1px solid #ffffff22; }.brand,.catalog-status { display:none; }.nav-list { height:100%; grid-template-columns:repeat(4,1fr); gap:3px; margin:0; }.nav-button,.nav-button.active { flex-direction:column; justify-content:center; gap:2px; padding:3px 4px; font-size:9px; }.nav-icon { width:29px; height:29px; border-radius:8px; }.nav-icon svg { width:19px; height:19px; }.nav-button small { display:none; }.workspace { display:block; padding:16px 14px 24px; }.results-area { margin-top:18px; }.page-header { padding:20px 17px; }.page-header h1 { font-size:24px; }.page-header span { display:block; margin-top:7px; color:var(--muted); font-size:12px; }.panel { padding:18px 16px; }.result-card { grid-template-columns:38px minmax(0,1fr); padding:14px; gap:10px; }.rank { width:34px; height:34px; }.product-numbers { grid-column:2; text-align:left; display:flex; flex-wrap:wrap; gap:12px; align-items:baseline; }.product-numbers strong { font-size:18px; }.product-numbers span { margin:0; }.pump-curve-panel { grid-column:1/-1; }.pump-curve-title { display:block; }.pump-curve-title span { display:block; margin-top:3px; }.expansion-hero { grid-template-columns:1fr; padding:19px; }.size-badge { width:100%; } }
@media (max-width:430px) { .field-grid { grid-template-columns:1fr; gap:0; }.results-heading { display:block; }.summary-chip { display:inline-block; margin:9px 0 10px; }.metric-grid { grid-template-columns:1fr; }.expansion-hero h2 { font-size:22px; } }
@media (prefers-reduced-motion:no-preference) { .view.active { animation:fade-in .18s ease-out; } @keyframes fade-in { from { opacity:.5; transform:translateY(3px); } } }
