:root {
  --ink:#17191c; --muted:#626870; --line:#bfc4c8; --surface:#fff; --soft:#eef0f2;
  --yellow:#fff25a; --red:#e30613; --blue:#063bd7; --sky:#90c2f0; --dark:#17191c;
  --shadow:0 14px 40px rgba(17,28,38,.10); --radius:16px;
}
*{box-sizing:border-box} html{color-scheme:light;scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:#d9dcdf;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
a{color:inherit} button,input,select{font:inherit} button{cursor:pointer}
.shell{width:min(1420px,calc(100% - 32px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:20;background:rgba(23,25,28,.96);color:#fff;border-bottom:1px solid rgba(255,255,255,.14)}
.header-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:9px;background:#ffef00;color:#111;font-weight:900;font-size:1.25rem}.brand strong,.brand small{display:block}.brand small{margin-top:2px;color:#bac1c7;font-size:.76rem}.version{color:#cfd4d8;font-size:.82rem}
.module-main{padding-top:28px}.breadcrumbs{display:flex;gap:9px;align-items:center;margin:2px 0 22px;color:var(--muted);font-size:.88rem}.breadcrumbs a{text-decoration:none}
.hero{padding:32px 38px;display:flex;align-items:center;justify-content:space-between;gap:30px;background:linear-gradient(120deg,#fff 0%,#f6f7f7 70%,#e5e8e9 100%);border:1px solid #d4d7da;border-radius:var(--radius);box-shadow:var(--shadow)}
.hero h1{margin:0;font-size:clamp(2rem,4vw,3.55rem);line-height:1.02;letter-spacing:-.04em}.hero p:not(.eyebrow){max-width:900px;margin:16px 0 0;color:var(--muted);line-height:1.6}.eyebrow{margin:0 0 8px;color:var(--red);text-transform:uppercase;letter-spacing:.14em;font-size:.76rem;font-weight:850}.hero-badge{min-width:132px;aspect-ratio:1;display:grid;place-content:center;text-align:center;border-radius:50%;background:#ffef00;font-size:1.2rem;font-weight:900;line-height:1.1}.hero-badge small{font-size:.7rem}
.status{min-height:0;margin-top:0;border-radius:8px;font-size:.9rem}.status:not(:empty){min-height:43px;margin-top:16px;padding:11px 13px;background:#fff;border-left:5px solid #2340d0}.status.error{background:#ffd9dc;border-color:#a00009;color:#770007}
.sheet-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;margin-top:22px}.calc-sheet{background:#fff;border:3px solid #2444d6;box-shadow:var(--shadow)}.sheet-title{background:var(--sky);padding:16px;text-align:center;font-weight:900;font-size:1.16rem}.sheet-meta{display:flex;justify-content:space-between;gap:10px;padding:4px 8px;font-size:.67rem;color:#29415e}
.report-table{width:100%;border-collapse:collapse;font-size:.91rem;font-variant-numeric:tabular-nums}.report-table td,.report-table th{border:1px solid #c6c8ca;padding:4px 6px;vertical-align:middle}.report-table .section-head{font-weight:900;text-decoration:underline;background:#f6f6f6}.report-table .label{width:37%}.report-table .formula{width:15%;text-align:right}.report-table .blue{color:var(--blue)}.report-table .strong{font-weight:900}.report-table .area-heading th{text-align:center;background:#f8f8f8}.report-table .area-heading span{color:var(--blue);font-size:.76rem}.report-table input[type="text"],.report-table input[type="number"]{width:100%;min-height:30px;border:1px solid #969ba0;background:#fff;padding:4px 6px}.report-table input[type="number"]{text-align:right}.report-table .area-name{color:#e00000}.area-reduced{text-align:right;color:var(--blue);font-weight:800}.sum-row{font-weight:900;color:var(--blue)}.sum-row td{text-align:right}.sum-row td:first-child{text-align:left}
.mini-btn{width:30px;height:30px;border:1px solid #777;background:#fff;font-weight:900;border-radius:4px}.mini-btn.add{background:#dff5e4;color:#006e24}.mini-btn.remove{background:#ffe0e3;color:#a00009}.row-actions{display:flex;gap:5px;justify-content:center}.water-block td{border-top:0}.water-block.first td{border-top:2px solid #777}.water-label{font-weight:600}.water-value{color:var(--blue);text-align:right;font-weight:800}.water-highlight{background:#fffba7}.water-flow{background:#d8ffd9;color:var(--blue);font-weight:800;text-align:right}.water-volume{color:var(--blue);font-weight:800;text-align:right}
.chart-wrap{padding:12px 8px 8px;background:#fff}.chart-wrap canvas{width:100%;height:auto;display:block;border:1px solid #111;background:#fff}
.sidebar{background:#a5a5a5;padding:8px;box-shadow:var(--shadow);align-self:start;position:sticky;top:90px}.side-card{border:1px dotted #666;background:#bcbcbc;padding:10px;margin-bottom:10px}.side-card h2{margin:0 0 8px;text-align:center;font-size:1rem}.side-card p{margin:0;text-align:center;line-height:1.55}.side-card a{color:#063bd7;text-decoration:underline}.side-card label{display:block;margin:9px 0 4px;font-size:.82rem;font-weight:800}.side-card select{width:100%;min-height:34px;border:1px solid #777;background:#fff;padding:5px}.actions{display:grid;gap:8px}.btn{min-height:44px;border:1px solid #8b9094;background:#fff;padding:9px 12px;font-weight:800;border-radius:6px}.btn.primary{background:#fff25a}.btn.danger{background:#ffe0e3;color:#960008;border-color:#b0000a}.source-card{display:grid;gap:5px}.source-note{margin-top:16px;padding:17px 20px;border-left:5px solid #ffef00;background:#fff;box-shadow:0 5px 16px rgba(0,0,0,.04)}.source-note p{margin:6px 0 0;color:var(--muted);line-height:1.5}.site-footer{margin-top:42px;padding:22px 0;background:#17191c;color:#cfd4d8;font-size:.86rem}.site-footer a{color:#fff}
@media(max-width:1050px){.sheet-layout{grid-template-columns:1fr}.sidebar{position:static}.hero-badge{display:none}}
@media(max-width:680px){.shell{width:min(100% - 18px,1420px)}.header-inner{height:62px}.version{display:none}.hero{padding:25px 20px}.report-table{font-size:.78rem}.report-table td,.report-table th{padding:3px}.sheet-meta{flex-direction:column}.mini-btn{width:26px;height:26px}}
@page{size:A4 landscape;margin:7mm}
@media print{
  .site-header,.site-footer,.breadcrumbs,.hero,.status,.sidebar,.source-note{display:none!important}
  body{background:#fff}.shell{width:100%}.module-main{padding:0}.sheet-layout{display:block;margin:0}.calc-sheet{border:1px solid #000;box-shadow:none}.sheet-title{background:#cfe8ff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-table{font-size:8pt}.report-table input{border:0!important;padding:0!important}.row-actions,.mini-btn{display:none!important}.chart-wrap canvas{max-height:75mm}.calc-sheet{break-inside:avoid}
}
