:root{color-scheme:light;--ink:#203e2b;--muted:#63715d;--paper:#fbf7ec;--green:#3f7046;--line:#dedcc9;--sage:#e8efdc;--coral:#c45138}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 system-ui,-apple-system,sans-serif}body:before{content:'';position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 0 0,#d7e3c44d,transparent 50%),radial-gradient(ellipse at 100% 100%,#f6cfab40,transparent 45%);z-index:-1}main{max-width:520px;margin:auto;padding:16px 18px 96px}header.brand{display:flex;gap:12px;align-items:center;margin-bottom:8px}.brand-mark{font-size:34px;line-height:1;color:var(--green);transform:rotate(-8deg)}h1,h2,h3{font-family:Georgia,serif;line-height:1.15}h1{font-size:30px;margin:0}h2{font-size:25px;margin:0 0 12px}h3{font-size:21px;margin:0 0 10px}p{margin:8px 0 14px}.tagline{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.avatar{margin-left:auto;display:grid;place-items:center;background:#dce6c8;color:var(--ink);border-radius:50%;height:42px;min-width:42px;font-weight:750;text-decoration:none}.greeting{display:flex;align-items:center;justify-content:space-between;height:94px}.greeting h2{margin:0;font-size:28px}.greeting p{font-size:13px;color:var(--muted);margin:3px 0}.mascot{height:100px;width:100px;object-fit:contain;mix-blend-mode:multiply}.card{border:1px solid var(--line);border-radius:22px;background:#fffdf6;box-shadow:0 3px 0 #244b2510;padding:17px;margin-bottom:12px}.status-card{background:var(--green);color:#fffdf3;border-color:#385f3b;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.status-card h3{font:700 18px system-ui;margin:0 0 6px}.badge{display:inline-block;padding:3px 10px;background:#e7efd9;color:#28432a;border-radius:30px;font-size:12px;font-weight:700}.power{font-size:36px;font-weight:750;letter-spacing:-1px;line-height:1.1}.power small{font-size:16px;letter-spacing:0}.energy-line{display:flex;justify-content:space-between;grid-column:1/-1;border-top:1px solid #ffffff40;margin-top:5px;padding-top:9px;font-size:14px}.battery{display:flex;width:100%;align-items:center;justify-content:space-between;background:var(--sage);border:1px solid #c8d6b8;border-radius:16px;color:var(--ink);padding:12px 15px;text-align:left;margin:0 0 12px;font-weight:600;font-size:13px}.battery span:first-child{font-size:15px}.control-title{font:700 20px Georgia;margin-bottom:12px}.field-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.field-row label{font-size:14px;margin:0}.field-row select{width:66%;margin:0}.current-row{margin:0;font-size:14px}.current-row output{font-size:19px;font-weight:750}input,select,textarea,button{font:inherit}input:not([type=range]),select,textarea{width:100%;border:1px solid #aebaa4;border-radius:12px;padding:11px 12px;background:#fffef9;color:var(--ink);min-height:44px}input[type=range]{width:100%;accent-color:var(--green);margin:0;min-height:36px;cursor:pointer}.range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:-4px}.buttons{display:flex;gap:10px;margin-top:12px}button,.button{border:0;border-radius:13px;min-height:46px;padding:11px 15px;background:var(--green);color:white;font-weight:700;cursor:pointer;text-align:center;text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}.buttons button{flex:1}.stop{background:var(--coral)}.secondary{background:var(--sage);color:var(--ink)}.observation{text-align:center;font-size:12px;color:var(--muted);margin:9px 0 0}.connection{font-size:12px;color:var(--muted);text-align:center}.online{color:#356737}.notice{background:#fff0da;border:1px solid #e2ccaa;border-radius:12px;padding:10px 12px;font-size:13px;margin:0 0 10px;overflow-wrap:anywhere}.error{color:#963b27}.success{color:#356737}.muted,small{color:var(--muted)}label{display:block;margin:14px 0 6px;font-size:14px;font-weight:600}form>button{width:100%;margin-top:18px}a{color:var(--green)}:focus-visible{outline:3px solid #c56a35;outline-offset:3px}[hidden]{display:none!important}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:9px 10px max(10px,env(safe-area-inset-bottom));background:#fffdf6f5;border-top:1px solid var(--line);backdrop-filter:blur(12px);z-index:5}.nav a{display:flex;flex-direction:column;align-items:center;text-decoration:none;font-size:12px;padding:4px 0;color:var(--muted);border-radius:10px}.nav svg{width:23px;height:23px;margin-bottom:3px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav a[aria-current=page]{background:var(--sage);color:var(--ink);font-weight:750}.login-hero{text-align:center;margin:8px 0}.login-hero .mascot{width:168px;height:168px}.login-hero h2{margin:0}.login-hero p{font-size:14px;color:var(--muted)}.page-heading{margin:28px 0 16px}.page-heading h2{margin-bottom:5px}.page-heading p{font-size:14px;color:var(--muted)}.history-item{display:flex;justify-content:space-between;gap:12px}.history-item h3{font:700 16px system-ui;margin-bottom:3px}.history-item p{margin:3px 0;font-size:13px;color:var(--muted)}.history-kwh{text-align:right;white-space:nowrap;font-size:22px;font-weight:700}.history-kwh small{display:block;font-size:12px;font-weight:400}.empty{text-align:center;padding:30px 20px}.empty .mascot{height:110px;width:110px}.detail-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:12px 0}.detail-row:last-child{border:0}.detail-row span{color:var(--muted)}.detail-row strong{text-align:right;overflow-wrap:anywhere}dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:24px;width:min(90%,430px);max-height:85dvh;overflow:auto}dialog::backdrop{background:#18322280}dialog button{width:100%;margin-top:18px}.footer{text-align:center;font-size:12px;color:var(--muted);margin-top:18px}.account-section{margin:14px 0}summary{cursor:pointer;font-weight:700;padding:5px 0}#message:empty{display:none}#message{font-size:14px;overflow-wrap:anywhere}li{overflow-wrap:anywhere;margin:16px 0}li button{display:block;margin-top:8px}textarea{min-height:110px}.wide{width:100%}.account-actions{display:flex;gap:10px;margin:16px 0}.account-actions>*{flex:1}.account-meta{font-size:14px}.account-meta strong{font-size:16px}.register-intro{font-size:14px;color:var(--muted)}@media(min-width:760px){main{padding-top:28px}body{background-color:#f3f1e5}main{background:var(--paper);min-height:100dvh;border-inline:1px solid var(--line)}.nav{border-inline:1px solid var(--line)}}@media(max-height:740px){main{padding-top:10px}.greeting{height:69px}.greeting .mascot{width:75px;height:75px}.greeting h2{font-size:24px}.card{padding:13px;margin-bottom:9px}.battery{padding:10px 13px;margin-bottom:9px}.brand h1{font-size:27px}.control-title{margin-bottom:8px}.field-row{margin-bottom:8px}.observation{margin-top:6px}.buttons{margin-top:8px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Keep the everyday charging view compact; expanded details may scroll. */
body:has(#portal-screen:not([hidden])) main{padding-top:10px;padding-bottom:80px}
body:has(#portal-screen:not([hidden])) .brand h1{font-size:27px}
body:has(#portal-screen:not([hidden])) .brand{margin-bottom:2px}
#portal-screen .greeting{height:66px}#portal-screen .greeting h2{font-size:25px}#portal-screen .greeting .mascot{width:76px;height:76px}
#portal-screen .card{padding:13px;margin-bottom:9px}#portal-screen .status-card h3{font-size:16px}#portal-screen .badge{font-size:11px;padding:2px 8px}#portal-screen .energy-line{padding-top:7px;margin-top:2px;font-size:13px}
#portal-screen .battery{padding:10px 12px;min-height:42px;margin-bottom:9px}#portal-screen .control-title{font-size:19px;margin-bottom:8px}#portal-screen .field-row{margin-bottom:7px}#portal-screen .current-row{margin-bottom:0}#portal-screen select{padding:8px;min-height:42px;font-size:14px}#portal-screen input[type=range]{min-height:30px}#portal-screen .buttons{margin-top:8px}#portal-screen .buttons button{min-height:44px;padding:9px 12px}#portal-screen .observation{margin-top:7px;font-size:11px}#portal-screen #notice-button{border:0;background:none;min-height:28px;padding:2px;text-align:center;display:block;font-size:12px;margin:0}#portal-screen .connection{font-size:11px;margin-top:3px}
.status-card .power small{color:#eef4e6}
.greeting .mascot{border-radius:50%;mask-image:radial-gradient(ellipse,black 52%,transparent 73%)}
