.water-history-trigger{cursor:pointer;border-radius:12px;outline-offset:4px}.water-history-trigger:hover{background:#8bc9e609}.water-history-trigger:focus-visible{outline:2px solid #79c5e9}
.water-history-dialog[hidden]{display:none}.water-history-dialog{position:fixed;z-index:1300;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:#061019cc;backdrop-filter:blur(5px)}
.water-history-panel{box-sizing:border-box;width:100%;max-width:880px;max-height:calc(100vh - 36px);overflow:auto;border:1px solid #385267;border-radius:24px;background:linear-gradient(140deg,#192b3b,#101f2c);box-shadow:0 28px 90px #0008;padding:25px 27px 16px;color:#edf5fb}.water-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.water-history-eyebrow{display:block;margin-bottom:7px;color:#81c6e7;font-size:11px;letter-spacing:.13em;text-transform:uppercase}.water-history-heading h2{margin:0;font-size:25px;line-height:1.25}.water-history-heading p{margin:9px 0 0;color:#a3b8c9;font-size:12px;line-height:1.5}.water-history-close{flex:none;width:42px;height:42px;padding:0;border:1px solid #3a5367;border-radius:12px;background:#0d1c29;color:#d8eaf5;font-size:27px;line-height:1;cursor:pointer}.water-history-close:hover{background:#203c50}
.water-history-metrics{display:flex;gap:20px;margin:24px 0 10px;padding:17px 0;border-top:1px solid #ffffff0d;border-bottom:1px solid #ffffff0d}.water-history-metrics>div{flex:1;min-width:0}.water-history-metrics span{display:block;margin-bottom:6px;color:#a3b8c9;font-size:12px}.water-history-metrics strong{display:flex;align-items:baseline;gap:5px;color:#c6d7e3;font-weight:500}.water-history-metrics b{font-size:25px;font-weight:600;font-variant-numeric:tabular-nums}.water-history-metrics small{font-size:12px;font-weight:400;color:#9cb0c1}.water-history-metrics>div:first-child b{color:#8dd0ed}
.water-history-plot{position:relative;min-width:0}#water-history-chart{height:300px;width:100%}#water-history-empty{position:absolute;left:48px;right:18px;top:42%;margin:0;color:#a9bdcb;text-align:center;font-size:13px;pointer-events:none}#water-history-empty[hidden]{display:none}.water-history-footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-height:44px;margin-top:3px}.water-history-footer p{margin:0;flex:1;color:#a3b8c9;font-size:11px;line-height:1.5}.water-history-footer button{flex:none;min-height:36px;padding:7px 13px;border:1px solid #3a5367;border-radius:10px;background:#0d1c29;color:#bfd7e7;font:inherit;font-size:12px;cursor:pointer}.water-history-footer button:disabled{opacity:.5;cursor:wait}body.water-history-open{overflow:hidden}
@media(max-width:760px){.water-history-dialog{padding:10px}.water-history-panel{max-height:calc(100vh - 20px);padding:20px 14px 12px;border-radius:20px}.water-history-heading h2{font-size:22px}.water-history-heading p{font-size:11px}.water-history-close{width:40px;height:40px}.water-history-metrics{gap:12px;margin-top:20px;padding:14px 2px}.water-history-metrics b{font-size:23px}.water-history-metrics span{font-size:11px}#water-history-chart{height:270px}.water-history-footer{gap:10px}.water-history-footer button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.water-history-dialog{backdrop-filter:none}}
