:root{--teal:#00796b;--teal2:#2f8f83;--navy:#12303a;--bg:#eef3f4;--muted:#7a8b90;--line:#e1e9eb;--rose:#b9605f}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:var(--bg);color:#33474d;font:15px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;padding-bottom:3.6rem}
.bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:.5rem max(.9rem,calc((100vw - 440px)/2))}
.bar img{height:26px;display:block}.bar span{font-size:.8rem;color:var(--muted)}
main{width:min(440px,94vw);margin:.6rem auto 0}
h1{font-size:1.05rem;margin:.2rem 0 .5rem;color:var(--navy);font-weight:650}
.card{background:#fff;border-radius:14px;box-shadow:0 1px 8px rgba(20,60,70,.06);padding:.8rem .95rem;margin:.55rem 0}
.hero{background:linear-gradient(135deg,#00796b,#12525a);color:#fff;border-radius:16px;padding:.9rem 1rem 1rem;margin:.1rem 0 .6rem;box-shadow:0 4px 14px rgba(0,100,90,.25)}
.hero .sp{display:flex;justify-content:space-between;align-items:center}
.hero .hi{font-weight:600;font-size:1rem}.hero .lbl{font-size:.75rem;opacity:.8;margin-top:.5rem}
.hero .amt{font-size:2rem;font-weight:700;line-height:1.1}
.hero .sub{font-size:.78rem;opacity:.85;margin-top:.15rem}
.hero .acts{display:flex;gap:.5rem;margin-top:.7rem}
.hero .acts a{flex:1;text-align:center;padding:.5rem;border-radius:10px;font-weight:600;font-size:.88rem;text-decoration:none;background:#fff;color:var(--teal)}
.hero .acts a.o{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.55)}
.badge{display:inline-block;padding:.08rem .6rem;border-radius:99px;font-size:.75rem;font-weight:600;background:#dff4f0;color:#05544e}
.badge.off{background:#f8e6e6;color:#8a3b3b}.hero .badge{background:rgba(255,255,255,.2);color:#fff}
.chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.1rem 0 .6rem}
.chips span{background:#fff;border-radius:99px;padding:.18rem .65rem;font-size:.76rem;color:var(--navy);box-shadow:0 1px 4px rgba(20,60,70,.06)}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:.2rem 0 .5rem}
.tile{display:flex;flex-direction:column;align-items:center;gap:.1rem;background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(20,60,70,.06);padding:.6rem .2rem;color:var(--navy);text-decoration:none;font-size:.74rem;font-weight:600;text-align:center}
.tile b{font-size:1.25rem;line-height:1.2;color:var(--teal)}
dl{margin:.3rem 0 0;display:grid;grid-template-columns:auto 1fr;gap:.25rem .8rem;font-size:.85rem}
dt{color:var(--muted)}dd{margin:0;font-weight:600;text-align:right;color:var(--navy)}
.btn{display:block;width:100%;margin:.6rem 0 0;padding:.6rem;border:0;border-radius:10px;font:inherit;font-size:.92rem;font-weight:600;color:#fff;background:var(--teal2);text-align:center;text-decoration:none;cursor:pointer}
.btn.stop{background:var(--rose)}.btn.ghost{background:#fff;color:var(--teal);border:1px solid var(--teal)}
label{display:block;font-size:.76rem;color:var(--muted);margin:.55rem 0 0}
input,select,textarea{width:100%;margin:.15rem 0 0;padding:.55rem .65rem;border:1px solid var(--line);border-radius:9px;font:inherit;background:#f8fafa;color:var(--navy)}
input.ctr{text-align:center}
textarea{min-height:4rem;resize:vertical}
.banner{display:block;text-decoration:none;font-size:.8rem;padding:.4rem .7rem;border-radius:10px;margin:.4rem 0}
.flash{padding:.45rem .7rem;border-radius:10px;margin:.4rem 0;font-size:.82rem}.flash.error,.banner.error{background:#f8e6e6;color:#8a3b3b}.flash.ok,.banner.ok{background:#dff4f0;color:#05544e}
.muted{color:var(--muted);font-size:.78rem}.center{text-align:center}.m0{margin:.4rem 0 0}
.amt2{font-size:1.45rem;font-weight:700}.owe{color:var(--rose)}.good{color:var(--teal)}
.sp2{display:flex;justify-content:space-between;align-items:center}
.strong{font-weight:600;color:var(--navy)}
table{width:100%;border-collapse:collapse;font-size:.82rem}th{text-align:left;color:var(--muted);font-weight:600;font-size:.72rem;padding:.15rem .25rem}
td{padding:.4rem .25rem;border-top:1px solid var(--line)}td.r,th.r{text-align:right}
td a{color:var(--teal);font-weight:600;text-decoration:none}
.pager{display:flex;justify-content:space-between;align-items:center;margin-top:.4rem;font-size:.8rem}.pager a{color:var(--teal);text-decoration:none;font-weight:600}
.state{display:inline-flex;align-items:center;gap:.45rem;font-size:1.15rem;font-weight:600;margin:.2rem 0}.state i{width:.65rem;height:.65rem;border-radius:50%;background:var(--teal2)}.state.off i{background:var(--rose)}
.wait{color:#9a7a2e}
nav.tabs{position:fixed;left:0;right:0;bottom:0;display:flex;background:#fff;border-top:1px solid var(--line);padding:.25rem 0 calc(.25rem + env(safe-area-inset-bottom))}
nav.tabs a{flex:1;text-align:center;font-size:.68rem;color:var(--muted);text-decoration:none;font-weight:600}nav.tabs a b{display:block;font-size:1.1rem;line-height:1.2}
nav.tabs a.on{color:var(--teal)}
.foot{text-align:center;font-size:.72rem;color:var(--muted);margin:.7rem 0}.foot a{color:var(--teal);text-decoration:none}
.link{background:none;border:0;color:var(--muted);font:inherit;font-size:.78rem;cursor:pointer;margin:.3rem auto;display:block;text-decoration:underline}
/* usage charts (drawn by usage.js) */
.usage{margin:.4rem 0}
.usage .u-col{background:#fff;border-radius:14px;box-shadow:0 1px 8px rgba(20,60,70,.06);padding:.7rem .85rem;margin:.55rem 0;min-width:0;border-top:3px solid #0f8fd6}
.usage .u-col:nth-child(2){border-top-color:var(--navy)}
.usage .u-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.4rem}
.usage .u-head b{font-size:.95rem;color:var(--navy)}
.usage .u-now{font-size:1.1rem;font-weight:700}.usage .u-c-down{color:#0f8fd6}.usage .u-c-up{color:#12a679}
.usage .u-svg{width:100%;height:auto;display:block;margin:.2rem 0}
.usage .u-grid{stroke:#8884;stroke-width:1}.usage .u-axis{fill:#888;font-size:11px}.usage .u-val{fill:#666;font-size:11px;font-weight:600}
.usage .u-line-down{stroke:#0f8fd6;stroke-width:1.6}.usage .u-line-up{stroke:#12a679;stroke-width:1.2}
.usage rect.u-down,.usage .u-key.u-down{fill:#1ca0e6;background:#1ca0e6}.usage rect.u-up,.usage .u-key.u-up{fill:#1fbf8c;background:#1fbf8c}
.usage .u-key{display:inline-block;width:.75rem;height:.75rem;border-radius:3px;vertical-align:-1px;margin-left:.5rem}
.usage .u-tabs{display:flex;gap:.3rem;flex-wrap:wrap}
.usage .u-tab{border:1px solid #8886;background:transparent;color:inherit;border-radius:99px;padding:.15rem .65rem;cursor:pointer;font:inherit;font-size:.78rem}
.usage .u-tab.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.usage .u-total{margin:.25rem 0;font-weight:600;font-size:.88rem}.usage .small{font-size:.78rem}.usage .u-note{margin:.2rem 0}
@media print{nav.tabs,.bar,.noprint{display:none}body{background:#fff}.card{box-shadow:none}}
