:root {
  color-scheme:light;
  --ink:#153937; --muted:#4d6762; --paper:#f5f5eb; --panel:#fffef7;
  --line:#b7c9bb; --deep:#123d3b; --mint:#bdeab6; --water:#61c9b5;
  font: 16px/1.48 'Source Sans 3', 'Segoe UI', sans-serif;
}
*{box-sizing:border-box} [hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink)}
h1,h2,h3,p,dl,dd{margin:0}
h1,h2,h3{line-height:1.12;text-wrap:balance}
button,input,select{font:inherit;color:inherit} button,select{min-height:42px;border:1px solid #78968a;border-radius:5px;background:var(--panel);padding:.45rem .88rem;font-weight:650;cursor:pointer}
button:hover,select:hover{background:#e3efdb}button:disabled{opacity:.5;cursor:default}
:focus-visible{outline:3px solid #a55311;outline-offset:3px}::selection{color:white;background:#24675b}
.wrap{width:min(1140px,calc(100% - 5rem));margin:auto}
header{border-bottom:1px solid var(--line)}
.top,.brand,.intro,.report-head,.panel-head,.tank-caption,.button-group{display:flex;align-items:center}
.top,.intro,.report-head,.panel-head,.tank-caption{justify-content:space-between;gap:1rem}
.top{height:58px}.top>span{font-size:.82rem;color:var(--muted)}.brand{gap:.68rem;font-size:1.14rem;font-weight:750;color:var(--ink);text-decoration:none}
.mark{width:22px;height:25px;border:3px solid #266c62;border-radius:95% 0 58% 58%;transform:rotate(-44deg);background:linear-gradient(42deg,#5dc1a6 0 43%,transparent 44%)}
.intro{padding:2.9rem 0 2.2rem;border-bottom:1px solid var(--line);align-items:flex-end}.section-label{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:730;color:var(--muted)}
h1{font:normal clamp(2.7rem,5.1vw,4.8rem)/1.02 'STIX Two Text',Georgia,serif;letter-spacing:-.036em;margin:.26rem 0 .65rem}
.intro div>p:last-child{color:var(--muted);max-width:63ch}
h2{font:normal 2.05rem/1.15 'STIX Two Text',Georgia,serif}
h3{font-size:1.07rem;font-weight:700}.intro>button,.primary{background:var(--deep);color:white;border-color:var(--deep)}.intro>button:hover,.primary:hover{background:#245952}
.report-head{margin:1.45rem 0 .95rem}.report-head h2{margin-top:.23rem}
.dashboard{display:grid;grid-template-columns:1.25fr 1fr;gap:1.25rem}
.reservoir,.period{border-radius:12px;padding:1.4rem 1.55rem;min-width:0}
.reservoir{background:var(--deep);color:#eff9ed}.period{background:var(--panel);border:1px solid var(--line)}
.reservoir select{background:#224f4c;color:white;border-color:#75978e}.panel-head>span,.tank-caption,.reservoir>p{font-size:.87rem}
.panel-head>span{color:var(--muted)}
.diagram{padding:1.15rem .1rem .8rem}.reservoir-volume{font:normal 3.25rem/1 Georgia,serif;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.reservoir-volume small{font:normal 1.4rem Georgia,serif}
.tank{height:43px;border:1px solid #93bbb0;border-radius:4px 4px 11px 11px;position:relative;overflow:hidden;margin:.75rem 0 .32rem;background:#204e49}
.fill{height:100%;transform:scaleX(0);transform-origin:left;background:var(--water);transition:transform .16s ease-out}
.marks{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),rgba(18,61,59,.56) calc(10% - 1px) 10%);pointer-events:none}
.tank-caption{color:#c4e1d4}.reservoir>p{border-top:1px solid #537872;padding-top:.68rem;color:#def0df}
#totals{margin-top:.7rem}#totals div{display:flex;justify-content:space-between;gap:.65rem;align-items:baseline;padding:.45rem 0;border-bottom:1px solid #d9e1d5}
#totals div:last-child{border:0}dt{color:var(--muted)}dd{font-weight:680;font-variant-numeric:tabular-nums}
.ledger{margin:1.6rem 0 2rem}.ledger h3{font:normal 1.65rem/1.2 Georgia,serif;margin-bottom:.75rem}
.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem;font-variant-numeric:tabular-nums;white-space:nowrap}
th,td{text-align:right;padding:.58rem .6rem;border-bottom:1px solid #cbd8c9}th:first-child,td:first-child{text-align:left}
thead{background:#e5eddf;color:var(--muted)}thead small{font-weight:400}tbody tr.selected{background:#e9f2e3}tbody th{font-weight:650}
.editor{padding:1.3rem 0;border-bottom:1px solid var(--line)}.editor h2{margin-bottom:1.1rem}fieldset{border:0;margin:0 0 1rem;padding:0}legend{font-weight:730;margin:0 0 .55rem;padding:0}
#parameters{display:grid;grid-template-columns:repeat(4,1fr);gap:.55rem}
.editor label{display:grid;gap:.25rem;font-size:.83rem;font-weight:600}input{border:1px solid #93a99c;background:var(--panel);border-radius:4px;padding:.45rem .55rem;width:100%;min-height:42px}
#days{display:grid;gap:.55rem;max-height:290px;overflow:auto;padding:.2rem .3rem .55rem}
.edit-day{display:grid;grid-template-columns:4.6rem repeat(2,minmax(70px,145px)) auto;align-items:end;gap:.5rem}.edit-day>strong{align-self:center}.edit-day button{justify-self:start}.button-group{gap:.5rem;flex-wrap:wrap}
#status:not(:empty){margin:1.1rem 0;padding:.72rem .85rem;border-radius:5px;background:#e7efde;color:var(--ink)}
footer{padding:1rem 0 1.5rem;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem}
.sr{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
@media(max-width:720px){.wrap{width:calc(100% - 2rem)}.intro{padding:1.75rem 0 1.3rem;align-items:flex-start;flex-direction:column;gap:.8rem}.dashboard{grid-template-columns:1fr;gap:.7rem}.reservoir,.period{padding:1.08rem 1.15rem}.report-head{margin:1.2rem 0 .8rem}.report-head h2{font-size:1.65rem}.report-head button{font-size:.82rem}.top{height:50px}.top>span{font-size:.73rem}.diagram{padding:.8rem 0}.ledger{margin:1.35rem 0}.edit-day{grid-template-columns:3rem 1fr 1fr auto;font-size:.8rem}.edit-day button{padding:.4rem}#parameters{grid-template-columns:1fr 1fr}.edit-day label{font-size:.72rem}}
@media(prefers-reduced-motion:reduce){.fill{transition:none}}
