.brand-photo{width:44px;height:44px;object-fit:cover;border-radius:10px;flex:none}.brand small{white-space:normal;font-size:11px;line-height:1.5;letter-spacing:0}.sidebar .brand{font-size:21px;align-items:start}.sidebar .account{margin-top:auto}.sidebar .brand small{margin-top:5px}.sidebar{gap:0}.admin-address{font-size:13px}
.auth-intro{padding:28px;display:flex;flex-direction:column;gap:22px;min-width:0}.auth-intro .brand{font-size:26px}.auth-intro .brand small{font-size:13px;line-height:1.6;color:#fff}.auth-photo{width:100%;height:390px;object-fit:cover;border-radius:14px;object-position:60% center}.auth-intro .help-control{margin:0}.auth-intro .help-button{background:#fff;color:#25583f}.auth-panel h1{font-size:30px}.auth-panel{padding:48px 40px}.auth-layout{min-height:590px}.auth-intro .help-dialog{color:#25362e}.auth-footnote{font-size:11px}
.help-control{display:inline-flex;vertical-align:middle;margin:5px 4px 5px 0}.help-button{width:36px;height:36px;min-width:36px;border-radius:50%;border:1px solid #bcccb6;background:#f6f9f3;color:#315b40;font:600 17px/1 Arial,sans-serif;cursor:pointer}.help-button:focus-visible,.help-close:focus-visible{outline:3px solid #678da5;outline-offset:3px}.help-dialog{border:1px solid #d4decf;border-radius:16px;padding:24px;color:#25362e;background:white;width:min(680px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:85dvh;overflow:auto;box-shadow:0 15px 65px #142a3440;box-sizing:border-box}.help-dialog:not([open]){display:none}.help-dialog::backdrop{background:#182a2466}.help-heading{display:flex;gap:16px;align-items:start;justify-content:space-between;margin-bottom:18px}.help-heading h2{font:600 20px/1.35 'Segoe UI',Arial,sans-serif;color:#25362e;margin:0}.help-close{flex:none;padding:10px 12px;border:1px solid #cad5c7;border-radius:8px;background:#f4f7f0;color:#25362e;min-height:44px;font:14px 'Segoe UI',Arial,sans-serif;cursor:pointer}.help-body,.help-dialog p,.help-dialog li,.help-dialog .flow-note,.help-dialog .report-explanation,.help-dialog .allocation-explanation,.help-dialog .chart-note{font:14px/1.65 'Segoe UI',Arial,sans-serif;color:#42554a;max-width:none}.help-dialog p{margin:10px 0}.help-dialog [hidden]{display:none!important}.help-dialog table{font-size:12px;min-width:0;width:100%;table-layout:fixed}.help-dialog td,.help-dialog th{overflow-wrap:anywhere;text-align:left;padding:8px 5px}.help-dialog .bottom-grid{display:block;margin:0}.help-dialog .info-card{margin:10px 0}.help-dialog .bill-notes{padding-left:20px}.help-dialog .flow-note{display:block}.help-dialog .help-body{margin:0}.help-dialog .notice{background:transparent;padding:0}
/* Fixed reference-style diagram: compact objects at the edges, values on the paths. */
#flow-canvas{height:430px;max-width:1000px;margin:16px auto;--tile:clamp(64px,20%,118px)}
#flow-canvas .flow-node{width:var(--tile);height:96px;min-height:96px;padding:7px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:12px;box-shadow:none;line-height:1.2}
#flow-canvas .flow-node h3{font-size:13px;line-height:1.15;margin:0;font-weight:600;overflow-wrap:normal;text-align:center}
#flow-canvas .flow-icon svg{height:38px;width:42px;margin:0 auto}
#flow-canvas .flow-node .flow-value,#flow-canvas .flow-node .flow-detail,#flow-canvas .flow-node .flow-time{display:none!important}
#flow-canvas .flow-battery{gap:1px}#flow-canvas .flow-battery>.flow-icon{flex:none}#flow-canvas .flow-battery .flow-icon svg{height:38px;width:25px}
#flow-canvas .flow-battery-text{display:flex;flex-direction:column;align-items:center;gap:3px}#flow-canvas .flow-soc{font-size:13px;margin:0;white-space:nowrap}
#flow-canvas .flow-pv{left:13%;top:15%}#flow-canvas .flow-grid{left:13%;top:50%}#flow-canvas .flow-battery{left:13%;top:85%}
#flow-canvas .flow-house{left:87%;top:23%}#flow-canvas .flow-ev{left:87%;top:80%}
#flow-canvas .flow-hub{left:50%;top:53%;width:54px;height:54px;font-size:9px;gap:0;box-shadow:0 0 0 4px #fbfcf8}#flow-canvas .flow-hub span{font-size:23px}
.flow-line-label{position:absolute;z-index:1;color:#314733;background:#fbfcf8e8;padding:1px 3px;transform:translateY(-100%);max-width:30%;pointer-events:none;text-align:left;line-height:1.2}
.flow-line-label[data-side=right]{transform:translate(-100%,-100%);text-align:right}.flow-line-power{display:block;font-size:22px;font-weight:600;white-space:nowrap}.flow-line-direction{display:block;font-size:12px;color:#63735e;margin-top:2px}.flow-line-label[hidden]{display:none}.flow-line-label[data-status=stale],.flow-line-label[data-status=missing]{color:#8c6f39}
.flow-timestamp{font-size:14px;margin:8px 0 0;color:#485e43;line-height:1.5}.flow-state{display:inline-block;font-size:13px;margin:6px 12px 0 0}.flow-context{font-size:13px}.energy-flow>.help-control{margin:4px 0}.help-dialog #flow-quality-details{font-size:13px}.auth-intro>.help-control{align-self:flex-end}
@media(max-width:760px){
 .brand-photo{width:38px;height:38px}.sidebar .brand{font-size:20px;gap:8px;padding-right:85px;max-width:100%}.sidebar .brand small{font-size:10px;line-height:1.4}.sidebar .brand>span{min-width:0}.sidebar .account{margin-top:0}
 .auth-layout{display:block;min-height:0}.auth-body{padding:12px}.auth-intro{padding:20px;gap:14px}.auth-intro .brand{font-size:23px}.auth-intro .brand small{font-size:12px}.auth-photo{height:180px;object-position:center 50%;border-radius:10px}.auth-panel{padding:24px 22px}.auth-intro>.help-control{position:absolute;bottom:27px;right:25px}.auth-intro .help-button{opacity:.95}.auth-footnote{margin-top:25px}
 .help-button{width:42px;height:42px}.help-dialog{padding:18px;max-height:88dvh}.help-heading{gap:8px}.help-heading h2{font-size:18px}.help-close{font-size:12px;padding:8px}.flow-timestamp{font-size:12px}
}
#flow-canvas[data-compact=true]{height:360px;--tile:clamp(62px,21%,96px)}
#flow-canvas[data-compact=true] .flow-node{height:84px;min-height:84px;padding:5px 2px}
#flow-canvas[data-compact=true] .flow-node h3{font-size:11px}
#flow-canvas[data-compact=true] .flow-icon svg{width:32px;height:32px}
#flow-canvas[data-compact=true] .flow-battery .flow-icon svg{width:22px;height:34px}
#flow-canvas[data-compact=true] .flow-soc{font-size:12px}
#flow-canvas[data-compact=true] .flow-hub{width:46px;height:46px;font-size:8px}
#flow-canvas[data-compact=true] .flow-line-power{font-size:16px}
#flow-canvas[data-compact=true] .flow-line-direction{font-size:10px}
@media print{.help-control{display:none!important}}

#flow-canvas .flow-node[hidden]{display:none}

.period-picker{display:flex;gap:12px;flex-wrap:wrap;min-width:0}.period-picker label{display:flex;flex-direction:column;gap:7px;min-width:0}.period-picker label[hidden]{display:none!important}.period-picker select{min-width:140px;max-width:100%}.period-picker option{padding:6px;scroll-snap-align:center}.period-picker select:focus{outline:3px solid #8aaa77;outline-offset:2px}
@media(max-width:640px){.period-picker{width:100%}.period-picker:not([data-kind="day"]) label{width:100%}.period-picker select{width:100%}}
select:disabled,input:disabled,button:disabled{background:#e9ece8!important;color:#858d86!important;border-color:#d9ddd8!important;cursor:not-allowed;opacity:1}.report-controls label:has(:disabled){color:#899188}

.period-picker[hidden],.period-calendar[hidden]{display:none!important}.period-calendar input[type=date]{min-width:160px;min-height:44px;max-width:100%;cursor:pointer} @media(max-width:640px){.period-calendar{width:100%}.period-calendar input[type=date]{width:100%;box-sizing:border-box}}

#flow-canvas .flow-hub{top:50%}
.sidebar .brand{font-size:18px;gap:10px}

.nav-admin-divider{height:1px;background:#d5dfd1;margin:14px 12px 8px}.brand>span{min-width:0}.brand small{line-height:1.5}.admin-portal-brand{display:flex;align-items:center;gap:14px;font-size:20px;color:inherit!important;text-decoration:none}.admin-portal-brand img{width:54px;height:54px;object-fit:cover;border-radius:12px}.admin-portal-brand small{display:block;font-size:12px;line-height:1.45}.auth-intro .brand{align-items:center}@media(max-width:640px){.admin-portal-brand{font-size:17px;max-width:100%}.brand small{font-size:11px}.nav-admin-divider{width:100%;margin:10px 0}}

.help-button.help-info,.auth-intro .help-button.help-info{background:#1671b9;border-color:#1671b9;color:#fff;font-family:Georgia,serif;font-size:22px;font-weight:bold}
.help-button.help-info:focus-visible{outline:3px solid #8cbce8;outline-offset:3px}

/* Readable help dialogs, including Django admin field help and module headings. */
.help-dialog .help-heading h2,#content .help-dialog .help-heading h2{font:600 16px/1.4 'Segoe UI',Arial,sans-serif;background:transparent;color:#25362e;padding:0;margin:0;letter-spacing:normal;text-transform:none;border:0}
.help-dialog .help-body,#content .help-dialog .help-body{display:block;font:400 16px/1.6 'Segoe UI',Arial,sans-serif;color:#25362e;text-align:left;margin:0;padding:0;width:auto;max-width:100%;min-width:0;overflow-wrap:anywhere}
.help-dialog .help-body p,.help-dialog .help-body li,.help-dialog .help-body div,#content .help-dialog .help-body p,#content .help-dialog .help-body li,#content .help-dialog .help-body div{font-size:16px;line-height:1.6;color:inherit;text-align:left;margin-left:0;padding-left:0;max-width:100%}
.help-dialog .help-body ul,.help-dialog .help-body ol,#content .help-dialog .help-body ul,#content .help-dialog .help-body ol{margin-left:0;padding-left:1.4em}
.help-dialog .help-body a,#content .help-dialog .help-body a{font-size:inherit;line-height:inherit}
.help-dialog .help-heading,#content .help-dialog .help-heading{margin-bottom:16px;align-items:center}
@media(max-width:480px){.help-dialog .help-heading,#content .help-dialog .help-heading{flex-wrap:wrap}.help-dialog .help-close,#content .help-dialog .help-close{font-size:14px}}

/* Form button padding must not displace the information glyph. */
.help-button.help-info,.auth-intro .help-button.help-info{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;border-radius:50%;vertical-align:middle;flex-shrink:0}
