/* WiFiHuset Energi AI · WiFiHuset. A shared visual system for every dashboard view. */
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #0c1117;
  --panel: #141d26;
  --panel2: #18232d;
  --stroke: #2a3742;
  --muted: #a2b0bd;
  --text: #f1f5f7;
  --mint: #83e6c4;
  --aqua: #8cc9e9;
  --violet: #baa9e7;
  --amber: #e8c081;
  --radius: 18px;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { background: var(--bg); color: var(--text); font-size: 14px; letter-spacing: -.012em; }
::selection { background: #83e6c43d; color: #fff; }
.app-shell { background: radial-gradient(ellipse at 85% 0, #17272c66, transparent 42%), var(--bg); }
.workspace { display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1700px; margin: 0 auto; padding: 40px clamp(28px, 3.3vw, 56px) 46px; }
.page { animation: page-arrive .25s ease both; }
@keyframes page-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.ui-icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon.external-icon { display: inline-block; vertical-align: -.15em; width: 14px; height: 14px; }
.brand-bolt { display: block; width: 24px; height: 24px; fill: currentColor; }
.login-logo .brand-bolt { width: 32px; height: 32px; }
.hub-icon .brand-bolt { width: 30px; height: 30px; }

/* An understated frame keeps the application, rather than decoration, central. */
.sidebar { width: 250px; background: #10171f; border-right: 1px solid #26313c; padding: 30px 18px 22px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3d585d transparent; }
.brand { margin: 0 10px 42px; gap: 13px; }
.brand-mark { width: 43px; height: 43px; border-radius: 12px; background: var(--mint); box-shadow: none; color: #103b30; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-title { font-size: 19px; letter-spacing: -.055em; line-height: 1.25; font-weight: 800; color: #f1f5f7; }
.brand-title > span { color: var(--mint); margin-left: 3px; }
.brand-title small { color: #90a2af; font-size: 10px; letter-spacing: .01em; font-weight: 500; margin-top: 3px; }
.nav-caption { color: #7f929f; font-size: 10px; letter-spacing: .13em; font-weight: 700; margin-left: 14px; margin-bottom: 12px; }
.sidebar nav { gap: 6px; }
.nav-link { position: relative; font-size: 13px; font-weight: 600; min-height: 48px; padding: 12px 14px; gap: 13px; border-radius: 10px; color: #a1b0bd; }
.nav-link:hover { background: #1a2630; color: #e9f2f4; }
.nav-link.active { background: #203730; border-color: #355c4d; color: #b6f3db; }
.nav-icon { display: grid; place-items: center; width: 22px; font-size: 19px; color: #91a2af; }
.nav-link.active .nav-icon { color: #a6efd3; }
.active-dot { width: 5px; height: 5px; }
.nav-badge { font-size: 9px; border: 1px solid #34434f; background: #1a2730; color: #a5b7c2; font-weight: 600; }
.bottom-caption { margin-top: 29px; }
.sidebar-bottom { padding-top: 28px; }
.system-card { background: transparent; border: 1px solid #2c3945; border-radius: 11px; padding: 13px 12px; gap: 10px; }
.system-card strong { font-size: 11px; font-weight: 700; }
.system-card small { font-size: 10px; line-height: 1.6; color: #8fa1af; }
.pulse-dot { width: 7px; height: 7px; box-shadow: none; }
.pulse-dot.ok { box-shadow: 0 0 0 3px #83e6c412; }
.maker-signature { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 4px 11px; align-items: start; margin: 21px 5px 0; padding-top: 20px; border-top: 1px solid #2a3641; }
.maker-signature .maker-mark { grid-column: 1; grid-row: 1 / 4; }
.maker-signature .maker-label, .maker-signature .maker-link, .maker-signature .maker-name { grid-column: 2; }
.maker-label { color: #8499a7; font-size: 9px; letter-spacing: .04em; }
.maker-name { color: #90a4b1; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.maker-mark { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border: 1px solid #48635b; border-radius: 8px; color: var(--mint); font-size: 15px; font-weight: 800; }
.maker-signature > div, .maker-signature > span:not(.maker-mark) { min-width: 0; }
.maker-signature small { display: block; color: #8499a7; font-size: 9px; letter-spacing: .055em; margin-bottom: 5px; }
.maker-signature a { display: inline-block; color: #dce9e9; font-size: 12px; font-weight: 750; }
.maker-signature a:hover, .footer-maker a:hover, .login-maker a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.maker-signature p { margin: 5px 0 0; max-width: 154px; color: #90a4b1; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.sidebar-foot { display: none; }

.topbar { min-height: 78px; height: 78px; background: #10171fd9; border-bottom: 1px solid #26313c; padding: 0 clamp(28px, 3.3vw, 56px); }
.top-title { font-size: 12px; letter-spacing: -.01em; color: #b6c5d0; gap: 17px; font-weight: 600; }
.top-title b { font-weight: 800; color: #e3edea; }
.top-subtitle { font-size: 11px; color: #8599a7; }
.top-separator { background: #35434e; }
.top-actions { gap: 13px; }
.clock { color: #8c9eab; font-size: 12px; }
.live-pill { font-size: 11px; color: #acbec8; gap: 8px; }
.live-pill i.ok { box-shadow: 0 0 0 3px #83e6c410; background: var(--mint); }
.icon-button, .avatar-button { width: 40px; height: 40px; border-radius: 10px; background: #17222c; color: #b1c2cd; border-color: #34434f; }
.icon-button:hover, .avatar-button:hover { background: #23323d; border-color: #68897e; color: #e5f6ee; }
.auto-top-status { border-radius: 8px; font-size: 10px; letter-spacing: .02em; min-height: 34px; padding: 7px 10px; }
.auto-top-status.state-off { background: #1d2832; border-color: #3c4b58; color: #b8c6d0; }
.auto-top-status.state-off .auto-top-dot { background: #9aabb6; }
.auto-top-status.state-on { background: #203c32; border-color: #4b7f69; color: #b6f4d9; }
.auto-top-status.state-unknown { background: #282a2b; border-color: #5b5749; color: #dacbad; }

/* Typography and surfaces are shared by the overview, bank and AI studio. */
.page-heading, .ai-headline { margin-bottom: 30px; gap: 24px; }
.page-heading h1, .ai-headline h1 { color: #f1f5f7; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.2; letter-spacing: -.055em; font-weight: 750; margin: 0 0 12px; }
.gradient-text { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.heading-muted { color: #90a2b1; }
.accent-period { color: var(--mint); }
.overline, .ai-eyebrow { color: #86bca9; font-size: 10px; letter-spacing: .12em; font-weight: 700; margin: 0 0 12px; }
.green-star { display: none; }
.intro, .ai-headline p:not(.overline) { font-size: 14px; color: #a2b3c0; line-height: 1.8; margin: 0; max-width: 720px; }
.date-block { font-size: 12px; color: #c0ced6; line-height: 1.8; text-transform: capitalize; }
.date-block span:last-child { font-size: 11px; color: #8da1b0; }
.glass, .ai-glow-card, .bank-metric { background: #141e28; border: 1px solid #2b3945; border-radius: var(--radius); box-shadow: 0 1px 0 #ffffff04 inset, 0 8px 24px #02070b12; }
.content-card { padding: 25px; }
.card-header { gap: 14px; align-items: flex-start; }
.card-header h3, .section-title-row h2 { font-size: 19px; color: #e8f0f4; letter-spacing: -.035em; font-weight: 700; }
.card-header .overline { margin-bottom: 7px; }
.section-title-row { margin: 29px 0 16px; }
.section-title-row p { font-size: 12px; color: #91a5b3; margin-top: 6px; }
.content-grid { gap: 20px; margin-top: 20px; }
.soft-pill, .info-chip, .update-badge, .status-outline, .ai-cloud-pill { background: #1c2a34; border: 1px solid #384c58; border-radius: 7px; color: #b3c6d0; font-weight: 600; font-size: 10px; line-height: 1.5; }
.status-outline { padding: 8px 11px; }
.primary-btn { background: var(--mint); color: #103b2e; border: 1px solid transparent; border-radius: 9px; padding: 12px 18px; font-weight: 800; font-size: 12px; box-shadow: 0 1px 0 #ffffff24 inset; min-height: 44px; gap: 15px; }
.primary-btn:hover:not(:disabled) { background: #a1f0d5; box-shadow: 0 3px 16px #83e6c412; }
.secondary-btn, .ai-outline-btn { background: #1c2b35; border: 1px solid #3a4e5c; border-radius: 9px; color: #c0d3dc; font-weight: 650; font-size: 12px; padding: 11px 15px; }
.secondary-btn:hover:not(:disabled), .ai-outline-btn:hover:not(:disabled) { background: #263a45; border-color: #60877a; color: #e1f4ed; }
.text-link, .ai-text-link { color: #a2e5ce; font-size: 12px; font-weight: 700; }
.text-link:hover, .ai-text-link:hover { color: #d1f8ea; text-decoration: underline; text-underline-offset: 4px; }
.hint { border-color: #3b5060; background: #1e2c37; color: #a4bdcb; font-weight: 600; }
.footnote, .charge-hint, .chart-note, .settings-context { color: #99aebb; line-height: 1.8; font-size: 12px; }
.muted, .small { color: #9fb2bf; }

/* The price and saved setup are the two calm entry points on the home screen. */
.hero-grid { gap: 20px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
.setup-overview { margin: 0; background: #14242a; border-color: #3a5b52; padding: 26px; gap: 18px; align-content: center; }
.setup-overview-copy { flex-basis: 100%; }
.setup-overview-copy h2 { font-size: clamp(22px, 2.2vw, 27px); letter-spacing: -.045em; font-weight: 750; }
.setup-overview-copy p { color: #a4c0c3; font-size: 13px; margin-top: 10px; max-width: 460px; }
.setup-overview-copy .overline { color: #99d4bd; margin: 0 0 10px; }
.setup-progress { flex: 1 1 160px; color: #c1dcd1; font-size: 11px; }
.setup-overview progress { width: min(190px, 100%); height: 5px; margin-top: 9px; }
.setup-overview .text-link { margin-right: auto; }
.setup-overview > .settings-context { font-size: 10px; color: #8caaa9; }
.price-teaser { position: relative; padding: 26px; min-height: 270px; background: #17232d; overflow: hidden; }
.price-teaser::before { content: ""; position: absolute; top: 0; right: 0; width: 90px; height: 3px; background: var(--mint); border-radius: 0 18px 0 4px; }
.card-topline .subtle-label { font-size: 10px; color: #a0b5c3; letter-spacing: .09em; }
.price-big { margin: 17px 0 7px; gap: 10px; }
.price-big span { font-size: clamp(42px, 4vw, 60px); letter-spacing: -.065em; font-weight: 750; color: #f1f8f8; }
.price-big small { font-size: 12px; color: #91aab8; }
.price-teaser .small { font-size: 11px; line-height: 1.8; }
.teaser-bars { height: 35px; opacity: .75; margin-top: 14px; }
.teaser-bars span { border-radius: 3px 3px 0 0; background: #83e6c45c; }
.auto-overview-banner { margin: 0 0 20px; padding: 14px 17px; border-radius: 11px; box-shadow: none; background: #17262d; border-color: #354c51; }
.auto-overview-description strong { font-size: 12px; letter-spacing: -.005em; }
.auto-overview-description small { font-size: 11px; line-height: 1.65; color: #9db6bf; }
.auto-overview-symbol { width: 32px; height: 32px; font-size: 18px; background: #28443b; border-radius: 9px; color: #a5e7cf; box-shadow: none; }
.auto-overview-banner.state-off { background: #19232d; border-color: #344552; }
.auto-overview-banner.state-off .auto-overview-symbol { background: #2a3641; color: #b2c4cc; }
.auto-overview-banner.state-off strong { color: #d6e1e6; }
.auto-overview-banner.state-on { background: #18312a; border-color: #426c59; }
.auto-overview-banner.state-unknown { background: #242728; border-color: #575345; }
.metrics-grid { gap: 16px; }
.metric-card { padding: 20px; min-height: 174px; }
.metric-top { gap: 9px; }
.metric-icon { width: 31px; height: 31px; border-radius: 9px; }
.metric-icon .ui-icon { width: 18px; height: 18px; }
.metric-unit { font-size: 11px; color: #b8c9d3; font-weight: 600; }
.metric-value { margin: 18px 0 14px; gap: 7px; }
.metric-value span { font-size: clamp(31px, 3vw, 41px); color: #f1f6f7; font-weight: 750; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 12px; color: #8aa2b2; font-weight: 500; }
.metric-footer { font-size: 10px; color: #98aebb; }
.metric-icon.amber { background: #3b3327; color: #e9c78c; }
.metric-icon.violet { background: #322d40; color: #c0b0e5; }
.metric-icon.aqua { background: #233746; color: #9dcee7; }
.metric-icon.lime { background: #203c33; color: #9ae6c7; }
.energy-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(148px, auto) 106px minmax(148px, auto);
  column-gap: clamp(14px, 6%, 54px);
  row-gap: 16px;
  max-width: 550px;
  min-height: 0;
  height: auto;
  margin: 26px auto 20px;
  padding: 0;
}
.energy-flow .flow-node {
  width: 100%; max-width: 184px; min-height: 148px;
  align-self: stretch; padding: 15px 10px 12px; gap: 7px;
  background: #1a2933; border: 1px solid #394e5b;
  box-shadow: 0 3px 12px #030a0f16; border-radius: 15px;
}
.energy-flow .node-icon {
  width: 37px; height: 37px; margin: 0 0 1px;
  box-shadow: none; border-radius: 11px;
}
.energy-flow .flow-node strong {
  color: #edf5f5; font-size: 21px; line-height: 1.2;
  font-weight: 750; letter-spacing: -.04em;
}
.energy-flow .flow-node small { color: #b3c7d2; font-size: 11px; line-height: 1.4; }
.energy-flow .node-icon .ui-icon { width: 22px; height: 22px; }
.energy-flow .flow-direction {
  min-height: 27px; margin-top: 3px; padding: 5px 7px;
  font-size: 10px; line-height: 1.45; border-radius: 7px;
  background: #1e303c; border-color: #3b5363; color: #a8bfcc;
}
.energy-flow .flow-direction.flow-in { background: #203c33; border-color: #3e6956; color: #ade6cb; }
.energy-flow .flow-direction.flow-out { background: #213946; border-color: #426577; color: #b2d9e8; }
.energy-flow .node-hub {
  width: 162px; max-width: 162px; height: 55px; min-height: 55px;
  align-self: center; flex-direction: row; gap: 9px; padding: 9px 12px;
  border: 1px solid #4e7364; border-radius: 14px;
  background: #203b32; box-shadow: 0 0 0 5px #83e6c406;
}
.energy-flow .node-hub .node-icon {
  width: 28px; height: 30px; margin: 0; border: 0;
  border-radius: 0; background: transparent; color: #ace9cc;
}
.energy-flow .node-hub .brand-bolt { width: 26px; height: 26px; }
.energy-flow .node-hub small { font-size: 10px; font-weight: 700; color: #d0eade; white-space: nowrap; }
.energy-flow .flow-lines { overflow: hidden; }
.energy-flow .flow-track { stroke: #3c5361; stroke-width: 1.3; stroke-dasharray: 3 6; opacity: .65; }
.energy-flow .flow-active { stroke-width: 2.3; stroke-dasharray: 6 10; opacity: .9; }
.energy-flow .flow-particle { filter: none; }
.energy-flow[data-stale="true"] .flow-active { animation: none; opacity: .55; }
.flow-summary {
  background: #2d3027; border-color: #6c6041; color: #daccaa;
  font-size: 11px; margin: 12px 0 0; padding: 11px 13px;
}
.flow-card > .footnote { border-top: 1px solid #304450; padding-top: 15px; margin-top: 16px; }
.insight { background: transparent; border: 0; border-bottom: 1px solid #30424f; border-radius: 0; padding: 15px 0; }
.insight:last-child { border-bottom: 0; }
.insight strong { font-size: 12px; color: #dbe8ed; }
.insight p { color: #9cb1c0; font-size: 12px; }
.insight-icon { background: #243a3b; color: #a6dccc; border: 1px solid #3a5853; }
.slot { background: #1b2a34; border-color: #304552; border-radius: 9px; }
.slot-time { background: #28483c; color: #c2eed9; border-radius: 6px; font-size: 11px; }
.slot-main strong { color: #dae8eb; }
.slot-main small { color: #92aab8; }
.slot-price { color: #c2eadb; }
.large-figure strong { font-size: 42px; font-weight: 750; letter-spacing: -.06em; }
.mini-facts strong { font-weight: 700; }
.divider-line, .detail-row { border-color: #30424f; }
.divider-line { background: #30424f; }
.solar-day { background: #1b2933; border-color: #354b57; border-radius: 11px; }
.solar-day-number { color: #e5cb96; font-weight: 750; }
.solar-day-rail { background: #34434c; height: 5px; }
.solar-day-rail span { background: #d6b577; }
.solar-forecast-address { color: #b6d0c6; font-size: 13px; }

/* Price and bank figures share the same numerical hierarchy. */
.stat-tile, .bank-metric { padding: 22px; }
.stat-tile strong { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 33px; }
.stat-tile > span { color: #b1c3cf; font-size: 11px; }
.stat-tile small { color: #93a9b9; }
.bank-metric span { color: #b2c7d1; font-size: 12px; }
.bank-metric strong { font-weight: 750; letter-spacing: -.05em; }
.bank-metric.emphasis { background: #1c382e; border-color: #476e58; }
.bank-metric.emphasis strong { color: #b5f0d5; }
.bank-quality { background: #1c2b35; border-color: #3a505e; color: #b9ccd6; font-size: 12px; border-radius: 10px; }
.bank-range-buttons { gap: 6px; padding: 5px; border: 1px solid #354652; border-radius: 11px; background: #101b25; }
.bank-range-buttons button { border-color: transparent; background: transparent; color: #a5bcc9; border-radius: 7px; font-size: 11px; }
.bank-range-buttons button.active { background: #2e4d40; border-color: #4f7963; color: #d7f7e5; }
.price-row { border-color: #2e414f; padding: 13px 2px; }
.price-row .bar-track { background: #283a47; }
.price-row .bar-track i { background: #6cbdac; }
.chart-note { line-height: 1.8; }
.legend { font-size: 11px; }
.soc-fill { stroke: #83e6c4; }
.soc-bg { stroke: #2a3d48; }
.battery-details > div { background: #1b2a34; border-color: #344b58; border-radius: 9px; }
.strategy-banner { background: #203b32; border-color: #416858; border-radius: 11px; }
.strategy-icon { background: #315746; color: #b3f0d2; border-radius: 11px; }
.security-note, .charge-state { border-radius: 10px; }
.wide-note { background: #192731; }
.explain-grid > div { background: #1b2c38; border-color: #354d5c; border-radius: 12px; }

/* A restrained, consistent AI workspace; colours still distinguish plan states. */
.ai-headline-actions .secondary-btn { margin-top: 0; }
.ai-cloud-pill { padding: 8px 11px; }
.ai-studio-hero { gap: 20px; }
.ai-glow-primary { background: linear-gradient(120deg, #19352f, #172a30); border-color: #3c6658; padding: 28px; }
.ai-glow-primary::after { display: none; }
.ai-hero-copy h2 { color: #eff8f3; font-weight: 750; font-size: clamp(26px, 2.9vw, 36px); line-height: 1.25; letter-spacing: -.045em; }
.ai-hero-copy p { color: #abc9c3; font-size: 13px; }
.ai-hero-footer { color: #97b5ad; font-size: 10px; line-height: 1.8; border-color: #35564f; letter-spacing: .02em; }
.ai-live-status { border-radius: 7px; font-size: 9px; padding: 7px 10px; letter-spacing: .04em; }
.ai-live-status.state-off { color: #c1cfd4; background: #26363b; border-color: #4a6064; }
.ai-live-status.state-on { background: #2c503f; border-color: #5d8c6e; color: #c4f3d7; }
.ai-soc-circle { background: #1c3e35; border-color: #679f85; box-shadow: 0 0 0 9px #8bd1b309; width: 126px; height: 126px; }
.ai-soc-circle span { font-weight: 750; color: #dcf6e8; font-size: 44px; }
.ai-soc-circle small { color: #acccb8; font-size: 9px; }
.ai-soc-caption { font-size: 10px; color: #99b9af; }
.ai-glow-numbers { background: #16232e; padding: 25px; }
.ai-mini-metric > span { font-size: 10px; color: #96b0c0; letter-spacing: .08em; }
.ai-mini-metric strong { font-size: clamp(23px, 2.6vw, 32px); font-weight: 750; color: #edf5f3; }
.ai-mini-metric small { color: #9bb0bc; font-size: 11px; }
.ai-plan-top h2 { font-weight: 750; font-size: 27px; letter-spacing: -.04em; }
.ai-price-info { border-radius: 7px; border-color: #39505e; color: #acc2ce; background: #1d2e3a; font-size: 10px; }
.ai-planner-scroll { border-color: #334a58; border-radius: 12px; background: #101d28; }
.ai-time-bar { background: linear-gradient(#7fa3b5, #3f657d); border-color: #7fa3b533; }
.ai-time-slot.ai-planned .ai-time-bar { background: linear-gradient(#a2e5c5, #438c71); box-shadow: none; }
.ai-time-slot.ai-prefer .ai-time-bar { border-color: #a0d0f1; background: #4f8ca7; }
.ai-time-slot.ai-planned.ai-prefer .ai-time-bar { background: linear-gradient(#a2e5c5, #3b8a8f); }
.ai-edit-panel { background: #1a2b37; border-color: #3b5362; border-radius: 12px; }
.ai-edit-indicator { background: #2b5044; color: #a6e7cd; border-radius: 10px; }
.ai-edit-option { border-radius: 8px; font-size: 11px; font-weight: 650; background: #203541; border-color: #426174; }
.ai-edit-option.prefer { background: #294b3c; border-color: #537a60; color: #c3ecd3; }
.ai-edit-option.block { background: #43313c; border-color: #785766; color: #edc8d0; }
.ai-edit-option.reset { background: #293b51; border-color: #4e6683; color: #c1d5f0; }
.ai-studio-settings { background: #16242f; border-color: #3a5261; border-radius: 14px; }
.ai-studio-settings > summary { padding: 22px 8px; }
.autopilot-mode { background: #1b2b37; border-color: #3a5261; border-radius: 11px; }
.autopilot-mode:has(input:checked) { background: #244437; border-color: #628c71; box-shadow: none; }
.autopilot-status-block { background: #1b3235; border-color: #3d5a5d; border-radius: 11px; }
.autopilot-setup-help { background: #3a3022; border-color: #7d6341; border-radius: 11px; }
.autopilot-export-lock { border-radius: 11px; background: #302a23; border-color: #655541; }

/* Quiet forms: a clear border, comfortable spacing and visible saved states. */
.setup-center { background: #16232d; border-color: #364c59; border-radius: 17px; padding: 27px; }
.setup-center-heading { margin-bottom: 21px; }
.setup-center-heading h2 { font-size: 22px; font-weight: 750; letter-spacing: -.035em; }
.setup-center-heading p { color: #a1b8c7; font-size: 12px; }
.setup-checklist { gap: 9px; }
.setup-item { background: #1a2b37; border-color: #3a5261; border-radius: 10px; padding: 15px; gap: 12px; }
.setup-item:hover { background: #243a42; border-color: #719789; }
.setup-item-icon { background: #2c4353; color: #c2d5dc; border-radius: 9px; font-size: 15px; }
.setup-item-copy strong { font-size: 13px; font-weight: 700; }
.setup-item-copy small { color: #a6bfcc; font-size: 12px; }
.setup-item-state, .section-status { border-radius: 6px; font-size: 11px; font-weight: 750; padding: 5px 8px; background: #3a3326; border-color: #766647; color: #e5d09f; }
.setup-item[data-state="complete"] .setup-item-state, .section-status[data-state="complete"] { background: #294b3c; border-color: #577b63; color: #c6f0d5; }
.setup-item[data-state="review"] .setup-item-state, .section-status[data-state="review"] { background: #493829; border-color: #9e7950; color: #f1d3a6; }
.setup-center > .settings-context { font-size: 11px; margin-top: 17px; margin-bottom: 0; }
.settings-section-nav { gap: 6px; margin: 22px 0; }
.settings-section-nav [data-settings-target] { border-color: #3b5261; background: #1b2b38; color: #bad0dc; border-radius: 8px; font-weight: 650; font-size: 11px; padding: 9px 15px; }
.settings-section-nav [data-settings-target]:hover { background: #294039; border-color: #6c9a83; }
.settings-grid { gap: 20px; margin-top: 0; }
.settings-grid label, .auto-tariff-fields label, .tariff-intro-grid label, .bank-config-grid label, .charge-controls label, .autopilot-settings label { color: #bbced9; font-size: 12px; font-weight: 600; }
.settings-grid input:not([type="checkbox"]), .settings-grid select, .auto-tariff-fields input, .auto-tariff-fields select, .tariff-intro-grid input, .tariff-intro-grid select, .bank-config-grid input, .charge-controls input, .charge-controls select, .autopilot-settings input, .autopilot-settings select, #solar-address-search, .bank-custom-dates input, .tariff-row input, .tariff-row select, .tariff-source-review textarea { background: #101d28; border: 1px solid #415967; border-radius: 9px; color: #e3eff2; box-shadow: none; font-weight: 500; }
input::placeholder, textarea::placeholder { color: #839eaf; font-weight: 400; }
.settings-grid input:focus, .settings-grid select:focus, #solar-address-search:focus { border-color: #96cdb6; box-shadow: 0 0 0 3px #83e6c40e; }
.settings-grid .check-row { font-size: 12px; }
.settings-advanced, .settings-help, .solar-manual-coordinates, .tariff-manual-details, .tariff-source-review { border-top-color: #344b59; }
.settings-advanced > summary, .settings-help > summary, .solar-manual-coordinates > summary, .tariff-manual-details > summary, .tariff-source-review > summary { color: #adc8d6; font-size: 11px; font-weight: 600; }
.settings-save-bar { background: #25483d; border-color: #557966; box-shadow: 0 7px 24px #02070b55; border-radius: 11px; padding: 14px 16px; }
.settings-save-bar #save-status { color: #c1e6d3; font-size: 11px; }
.solar-address-status { color: #acd1c1; font-size: 12px; }
.solar-address-results { background: #1c2e3a; border-color: #577b75; }
.solar-address-option:hover, .solar-address-option[aria-selected="true"] { background: #335748; }
.tariff-card .auto-tariff-panel { background: transparent; border: 0; border-top: 1px solid #344b59; padding: 23px 0 0; border-radius: 0; margin-top: 23px; }
.auto-tariff-panel h4, .tariff-costs h4 { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.auto-tariff-panel > p { color: #a1bdcc; font-size: 12px; }
.auto-tariff-preview, .tariff-saved-status { background: #1e3736; color: #badbd1; border-color: #42635a; border-radius: 9px; font-size: 12px; }
.tariff-saved-status.error { background: #3a2929; color: #f1c4bd; border-color: #8c5a50; }
.official-price-backup { display: block; background: #1a2b36; border: 1px solid #3b5362; border-radius: 9px; padding: 10px 14px; }
.official-price-backup:not([open]) > :not(summary) { display: none; }
.official-price-backup p { margin: 10px 0; font-size: 12px; }
.tariff-costs { background: transparent; border: 0; border-top: 1px solid #344b59; border-radius: 0; padding: 23px 0 0; margin: 25px 0; }
.tariff-row { background: #1b2d3a; border-color: #3a5365; border-radius: 9px; }
.tariff-drop { border-color: #4b6c71; border-radius: 12px; background: #1b3038; }

/* Visible authorship has its own small, consistent typographic signature. */
.main-footer { width: 100%; max-width: 1700px; margin: 0 auto; border-top: 1px solid #293c48; padding: 25px clamp(28px, 3.3vw, 56px) 30px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #91a8b7; }
.footer-brand strong { display: block; color: #cddde3; font-size: 12px; font-weight: 750; letter-spacing: -.02em; }
.footer-brand strong > span { display: inline; color: var(--mint); }
.footer-brand > span, .footer-brand small { display: block; color: #8fa5b4; font-size: 10px; margin-top: 5px; }
.footer-maker { text-align: right; font-size: 11px; line-height: 1.8; }
.footer-maker > span, .footer-maker small { display: block; color: #94acba; font-size: 10px; }
.footer-maker a { color: #bbdfcf; font-weight: 750; font-size: 12px; }
.footer-maker a > span { display: inline; }
.footer-maker p { margin: 3px 0 0; font-size: 10px; color: #9eb3c0; }
.footer-maker .footer-maker-name { font-size: 11px; }
.lock-overlay { background: #091117f2; backdrop-filter: blur(12px); overflow: auto; }
.login-panel { width: min(470px, 100%); padding: 38px; border-color: #3d5663; background: #14232e; border-radius: 22px; box-shadow: 0 28px 100px #0006; }
.login-logo { background: var(--mint); border: 1px solid #a6efd2; color: #1b4a36; border-radius: 17px; width: 57px; height: 57px; font-size: 34px; box-shadow: none; margin-bottom: 22px; }
.login-panel h2 { color: #edf5f6; font-size: 33px; line-height: 1.2; letter-spacing: -.05em; font-weight: 750; }
.login-panel p:not(.overline):not(.login-error) { color: #a5bfce; font-size: 13px; line-height: 1.8; }
.login-panel input { background: #101d28; border-color: #4a6575; border-radius: 9px; min-height: 49px; font-size: 16px; }
.login-panel small { color: #94aebb; font-size: 10px; line-height: 1.7; }
.login-maker { margin-top: 25px; border-top: 1px solid #344c5c; padding-top: 20px; font-size: 11px; line-height: 1.8; color: #9ab0bd; }
.login-maker a { color: #b9e5d1; font-weight: 750; }
.login-maker > span, .login-maker small { display: block; font-size: 10px; color: #91aab8; }
.login-maker .login-maker-name { font-size: 11px; }
.charge-dialog { background: #162630; border-color: #536b77; border-radius: 17px; }
.tooltip { background: #233945; border-color: #577b81; color: #deefed; }

@media (min-width: 1500px) {
  .content-grid.lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1250px) and (min-width: 981px) {
  .sidebar { width: 224px; padding-left: 13px; padding-right: 13px; }
  .brand { gap: 9px; margin-left: 9px; }
  .brand-title { font-size: 18px; }
  main { padding-left: 28px; padding-right: 28px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .setup-overview, .price-teaser { padding: 22px; }
  .setup-overview [data-setup-next] { width: auto; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .ai-studio-hero { grid-template-columns: minmax(0, 1fr); }
  .ai-glow-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .ai-mini-metric { padding: 0 12px 0 0; border: 0; border-right: 1px solid #344b59; }
  .ai-mini-metric:last-child { border: 0; }
}
@media (max-height: 800px) and (min-width: 981px) {
  .sidebar { padding-top: 23px; padding-bottom: 17px; }
  .brand { margin-bottom: 24px; }
  .nav-link { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .bottom-caption { margin-top: 20px; }
  .sidebar-bottom { padding-top: 18px; }
  .maker-signature { margin-top: 14px; padding-top: 14px; }
}
@media (max-height: 650px) and (min-width: 981px) { .sidebar { overflow-y: auto; } .sidebar-bottom { margin-top: 20px; } }
@media (max-width: 980px) {
  .topbar { padding-left: 26px; padding-right: 26px; }
  main { padding: 30px 26px 37px; }
  .bottom-nav { background: #121e27f7; border-color: #3a4c58; box-shadow: 0 -7px 24px #02060933; padding-top: 7px; }
  .bottom-nav > button { font-size: 10px; gap: 6px; color: #91aab9; border-radius: 10px; margin: 0 3px; }
  .bottom-nav > button.active { color: #afeed3; background: #264136; }
  .bottom-nav b { display: grid; place-items: center; width: 22px; height: 22px; }
  .bottom-nav .ui-icon { width: 20px; height: 20px; }
  .mobile-mark { background: var(--mint); color: #1a4a37; border-radius: 9px; width: 30px; height: 30px; }
  .mobile-more-menu { background: #1a2b37; border-color: #4a6675; border-radius: 15px; box-shadow: 0 18px 50px #0007; }
  .mobile-more-menu > button { background: #233a47; border-color: #435f6e; border-radius: 9px; font-size: 13px; }
  .mobile-more-menu > button.active { background: #2e5342; color: #d5f6e3; border-color: #678c75; }
  .main-footer { padding: 24px 26px calc(108px + env(safe-area-inset-bottom)); }
}
@media (max-width: 730px) {
  main { padding: 26px 18px 34px; }
  .topbar { min-height: 68px; height: 68px; padding-left: 18px; padding-right: 18px; }
  .page-heading, .ai-headline { margin-bottom: 24px; gap: 15px; }
  .page-heading h1, .ai-headline h1 { font-size: 32px; letter-spacing: -.055em; margin-bottom: 10px; }
  .intro, .ai-headline p:not(.overline) { font-size: 13px; line-height: 1.85; }
  .overline { font-size: 9px; margin-bottom: 10px; }
  .content-card { padding: 21px; border-radius: 15px; }
  .content-grid { gap: 16px; margin-top: 16px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .setup-overview { padding: 23px; gap: 16px; border-radius: 15px; }
  .setup-overview-copy h2 { font-size: 25px; }
  .setup-overview-copy p { font-size: 12px; margin-top: 8px; }
  .setup-overview [data-setup-next] { width: auto; margin: 0; padding-left: 15px; padding-right: 15px; }
  .setup-overview > .settings-context { font-size: 10px; }
  .setup-overview[data-state="complete"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px; }
  .setup-overview[data-state="complete"] .setup-overview-copy, .setup-overview[data-state="complete"] > .settings-context { grid-column: 1 / -1; }
  .setup-overview[data-state="complete"] .setup-overview-copy h2 { font-size: 22px; }
  .setup-overview[data-state="complete"] [data-setup-next] { width: auto; font-size: 11px; padding: 11px 13px; }
  .price-teaser { min-height: 250px; padding: 23px; border-radius: 15px; }
  .price-big span { font-size: 50px; }
  .auto-overview-banner { padding: 13px; margin-bottom: 16px; }
  .auto-overview-description small { font-size: 10px; }
  .section-title-row { margin-top: 26px; margin-bottom: 15px; }
  .section-title-row h2 { font-size: 18px; }
  .section-title-row p { font-size: 11px; }
  .metrics-grid { gap: 12px; }
  .metric-card { padding: 16px; min-height: 168px; border-radius: 14px; }
  .metric-top { gap: 7px; flex-wrap: nowrap; }
  .metric-unit { font-size: 10px; }
  .metric-icon { display: grid; width: 27px; height: 27px; }
  .metric-icon .ui-icon { width: 16px; height: 16px; }
  .metric-top .hint { display: grid; place-items: center; min-width: 28px; min-height: 28px; width: 28px; height: 28px; font-size: 11px; }
  .metric-value { margin: 20px 0 13px; }
  .metric-value span { font-size: 34px; }
  .metric-footer { font-size: 10px; }
  .setup-center { padding: 21px; border-radius: 15px; }
  .setup-checklist { gap: 8px; }
  .setup-item { padding: 13px; }
  .setup-item-copy strong { font-size: 12px; }
  .setup-item-copy small { font-size: 12px; }
  .setup-center > .settings-context { font-size: 10px; }
  .settings-section-nav { margin: 18px 0; }
  .settings-section-nav [data-settings-target] { padding: 9px 12px; }
  .settings-grid { margin-top: 0; }
  .settings-save-bar { padding: 13px; }
  .settings-grid input:not([type="checkbox"]), .settings-grid select, #solar-address-search { font-size: 16px; }
  .bank-metric { padding: 18px 14px; min-height: 143px; }
  .bank-metric strong { font-size: 25px; }
  .bank-metric small { font-size: 10px; }
  .bank-range-buttons button { font-size: 10px; }
  .ai-glow-primary { padding: 23px; border-radius: 15px; }
  .ai-hero-inner { flex-wrap: wrap; gap: 24px; }
  .ai-hero-copy { max-width: none; flex: 1 1 220px; }
  .ai-hero-copy h2 { font-size: 27px; }
  .ai-hero-copy p { font-size: 12px; }
  .ai-hero-cta > button { width: auto; }
  .ai-soc-visual { flex-direction: row; gap: 20px; }
  .ai-soc-circle { width: 84px; height: 84px; }
  .ai-soc-circle span { font-size: 31px; }
  .ai-soc-circle small { font-size: 8px; }
  .ai-glow-numbers { padding: 23px; gap: 18px; }
  .ai-mini-metric strong { font-size: 25px; }
  .ai-plan-top h2 { font-size: 24px; }
  .ai-planner-card { padding: 21px 15px; }
  .ai-edit-panel { padding: 16px; }
  .ai-studio-settings { padding: 0 13px; }
  .ai-studio-settings > summary { padding: 20px 0; }
  .main-footer { flex-direction: column; align-items: flex-start; gap: 21px; padding-left: 20px; padding-right: 20px; text-align: left; }
  .main-footer span { margin: 0; }
  .footer-maker { text-align: left; }
  .footer-brand > span, .footer-maker > span { margin-top: 4px; }
  .footer-maker p { margin-top: 4px; font-size: 11px; }
  .footer-maker a { font-size: 13px; }
  .login-panel { padding: 32px 26px; border-radius: 19px; }
  .login-panel h2 { font-size: 31px; }
}
@media (max-width: 450px) {
  .topbar { height: auto; min-height: 100px; padding-top: 13px; padding-bottom: 13px; gap: 9px; }
  .top-title { font-size: 12px; gap: 9px; }
  .top-actions { gap: 9px; justify-content: space-between; }
  .top-actions .live-pill { font-size: 10px; max-width: 125px; }
  .top-actions .icon-button { width: 36px; height: 36px; min-height: 36px; }
  .auto-top-status { font-size: 10px; min-height: 34px; padding: 7px 9px; }
  .setup-overview [data-setup-next] { width: 100%; }
  .setup-progress { flex-basis: 100%; }
  .setup-overview progress { width: 100%; }
  .setup-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .setup-item-state { max-width: 68px; }
  .metric-icon { display: none; }
  .metric-card { padding: 16px 13px; }
  .metric-value span { font-size: 32px; }
  .stat-tile { padding: 18px 13px; }
  .stat-tile strong { font-size: 29px; }
  .stat-tile > span { font-size: 10px; }
  .card-header h3 { font-size: 18px; }
  .solar-day-number { font-size: 15px; }
  .ai-glow-numbers { grid-template-columns: minmax(0, 1fr); }
  .ai-mini-metric { border: 0; padding: 0 0 17px; border-bottom: 1px solid #344b59; }
  .ai-mini-metric:last-child { border: 0; padding-bottom: 0; }
  .ai-mini-metric > span { font-size: 10px; }
  .ai-mini-metric small { font-size: 11px; }
  .ai-hero-cta > button { width: 100%; }
  .login-panel { padding: 28px 23px; }
  .login-panel h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }

/* Private, household-wide push setup. Credentials are never stored locally. */
.push-settings { margin-top: 20px; scroll-margin-top: 24px; }
.push-settings a { color: #b7ebd6; text-decoration: underline; text-underline-offset: 3px; }
.push-guide ol { padding-left: 22px; color: #b0c5d1; font-size: 13px; line-height: 1.9; }
.push-guide li { padding: 5px 0; }
#push-form { margin-top: 22px; }
#push-form label { display: block; color: #bbced9; font-size: 12px; font-weight: 600; margin: 15px 0 8px; }
#push-form input:not([type=checkbox]) { width: 100%; min-height: 48px; padding: 12px 14px; background: #101d28; border: 1px solid #415967; border-radius: 9px; color: #e3eff2; font: inherit; font-size: 16px; }
#push-form .check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.7; }
#push-form input[type=checkbox] { accent-color: var(--mint); width: 18px; height: 18px; flex: none; }
.push-recipients { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 24px 0; }
.push-recipients fieldset { min-width: 0; border: 1px solid #3a5261; padding: 15px 18px; border-radius: 12px; }
.push-recipients legend { font-size: 13px; color: #bde4d4; font-weight: 700; padding: 0 8px; }
.push-schedule { border-top: 1px solid #344b59; padding-top: 10px; }
#push-form #push-time { max-width: 200px; }
.push-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.push-actions .secondary-btn { margin-top: 0; }
#push-feedback.error,.push-warning { color: #efc294; }
.push-success { color: #b7e6cf; }
#push-deliveries { font-size: 12px; line-height: 1.8; }
@media(max-width:730px){.push-recipients { grid-template-columns: minmax(0,1fr); }.push-actions { align-items: stretch; flex-direction: column; }.push-actions button { width: 100%; }}
.web-push-guide { border: 1px solid #3b5362; border-radius: 11px; padding: 18px; margin-top: 20px; color: #afc5d1; font-size: 13px; line-height: 1.9; }
.web-push-guide ol { padding-left: 20px; margin-bottom: 0; }
.web-push-guide li { padding: 5px 0; }
#web-push-form { margin-top: 24px; }
#web-push-form label { display: block; color: #bbced9; font-size: 12px; font-weight: 600; margin: 15px 0 8px; }
#web-push-form input:not([type=checkbox]) { width: 100%; min-height: 48px; padding: 12px 14px; background: #101d28; border: 1px solid #415967; border-radius: 9px; color: #e3eff2; font: inherit; font-size: 16px; }
#web-push-form .check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.7; }
#web-push-form input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--mint); }
#web-push-time { max-width: 200px; }
#web-push-feedback.error { color: #efc294; }
.web-push-device { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #344b59; padding: 14px 0; }
.web-push-device strong { display: block; font-size: 13px; color: #d3e8e0; overflow-wrap: anywhere; }
.web-push-device small { display: block; font-size: 11px; color: #adc2ce; margin-top: 5px; }

.login-panel label.remember-login { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.8; color: #b7ced9; margin: 15px 0 20px; }
.login-panel .remember-login input { display: block; flex: none; width: 18px; height: 18px; min-height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--mint); }
.lock-overlay { align-items: flex-start; }
.login-panel { margin-block: auto; flex-shrink: 0; }

.notification-options { margin-top: 24px; scroll-margin-top: 24px; }
.notification-options h2 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.035em; }
.notification-option-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.notification-option { display: grid; grid-template-columns: 24px minmax(0,1fr) 16px; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 20px; color: #b9e9d5; background: #1c3038; border: 1px solid #48665e; border-radius: 11px; }
.notification-option:hover { background: #29463e; border-color: #8cc5ac; }
.notification-option strong { display: block; font-size: 14px; color: #e0f1eb; }
.notification-option small { display: block; margin-top: 7px; font-size: 12px; line-height: 1.7; color: #b2c9d3; }
@media(max-width:730px) { .notification-option-grid { grid-template-columns: minmax(0,1fr); }.notification-option { padding: 17px; } }

/* Relative price levels: colour, words and bar length carry the same meaning. */
.price-level-cheap{--price-colour:#7ce8b3;--price-tint:rgba(91,217,153,.07);--price-border:rgba(91,217,153,.28)}
.price-level-mid{--price-colour:#f3cf79;--price-tint:rgba(243,207,121,.06);--price-border:rgba(243,207,121,.25)}
.price-level-expensive{--price-colour:#ffa0a5;--price-tint:rgba(255,126,139,.07);--price-border:rgba(255,126,139,.28)}
.price-colour-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:20px}
.price-colour-legend>span{display:inline-flex;align-items:center;gap:7px;color:var(--price-colour);font-size:12px;font-weight:750}
.price-colour-legend i{display:block;width:9px;height:9px;border-radius:50%;background:var(--price-colour)}
.price-colour-help{font-size:11px;line-height:1.7;color:var(--muted);margin:12px 0 4px;max-width:52ch}
.price-interval-card .price-table{max-height:640px;margin-top:16px;padding-right:5px;scrollbar-color:#425a66 transparent;overscroll-behavior-y:contain}
.price-day{margin:20px 0 12px;font-size:11px;font-weight:750;letter-spacing:.03em;color:var(--muted)}
.price-day:first-child{margin-top:0}
.price-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:14px 12px;margin-bottom:7px;
  border:1px solid var(--price-border);border-left:3px solid var(--price-colour);border-radius:11px;background:var(--price-tint)}
.price-when{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.price-when time{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--text)}
.price-level-label{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:6px;border:1px solid var(--price-border);
  background:var(--price-tint);color:var(--price-colour);font-size:10px;font-weight:800;white-space:nowrap}
.price-now-label{font-size:10px;font-weight:750;color:var(--text)}
.price-row.current{outline:1px solid #82979f;outline-offset:1px}
.price-row .price-num{grid-column:2;grid-row:1;align-self:center;min-width:0;color:var(--price-colour);font-size:13px;white-space:nowrap}
.price-row .bar-track{grid-column:1/-1;grid-row:2;width:100%;height:6px;background:rgba(139,168,180,.13)}
.price-row .bar-track i{background:var(--price-colour)}
#price-min{color:#7ce8b3}
#price-max{color:#ffa0a5}
@media(max-width:400px){
  .price-row{padding:12px 9px;column-gap:8px}
  .price-when{gap:5px}
  .price-level-label{padding-inline:5px}
}

/* Small, touch-friendly help controls open an accessible explanation. */
button.field-help-button[aria-haspopup]{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;flex:none;width:28px;min-width:28px;height:28px;
  min-height:28px;padding:0;margin:0 0 0 6px;border:1px solid #526d77;border-radius:50%;background:#20343c;color:#bdebdc;font-size:13px;font-weight:800;line-height:1;letter-spacing:0}
button.field-help-button:hover{background:#315448;border-color:#83e6c4;color:#fff}
.field-help-dialog{width:min(500px,calc(100% - 28px));max-height:85dvh;overflow:auto;padding:30px;border:1px solid #4c6c70;border-radius:18px;background:#17252e;color:var(--text);box-shadow:0 24px 100px #0008}
.field-help-dialog::backdrop{background:#060d15b8;backdrop-filter:blur(5px)}
.field-help-dialog h2{font-size:23px;letter-spacing:-.03em;margin:0 20px 15px 0}
.field-help-dialog #field-help-copy{white-space:pre-line;font-size:14px;line-height:1.9;color:#bfd0da}
.field-help-dialog .primary-btn{margin-top:10px}
.field-help-dialog>form:first-child{position:absolute;right:14px;top:12px;margin:0}
.field-help-close{width:36px;height:36px;border:1px solid #45616a;border-radius:9px;background:#233940;color:#e1f8f0;font-size:25px}
.account-settings{padding:28px;margin-bottom:24px}
.account-settings h2{font-size:24px;letter-spacing:-.04em;margin:0}
.account-settings #account-owner{color:#b3d5c8;overflow-wrap:anywhere}
.account-settings #account-plant{font-size:14px;line-height:1.8;color:#c2d1d9}
.account-steps{display:flex;flex-wrap:wrap;gap:10px 30px;padding-left:20px;margin:22px 0;font-size:12px;color:#aebfca;line-height:1.8}
#account-growatt-form label{display:block;font-size:13px;font-weight:650;color:#c3d4dd}
#account-growatt-token{display:block;width:100%;max-width:600px;margin:9px 0;padding:14px;border:1px solid #49646c;border-radius:10px;background:#10212b;color:#edf8f4;font-size:16px}
.account-settings .error{color:#ffb8b3}
#account-disconnect{margin:12px 0}
.google-login{margin:24px 0}
.login-panel .google-login .check-row{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.8;text-align:left;flex-wrap:wrap}
.login-panel .google-login input{display:inline-block;flex:none;width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--mint)}
.google-button{width:100%;min-height:50px;margin-top:18px;display:flex;align-items:center;justify-content:center;gap:12px;background:#f8fafc;color:#172b39;border:1px solid #c9d4dc;border-radius:10px;font-size:15px;font-weight:750}
.google-button>span{font-weight:800;font-size:20px;color:#356dd2}
.google-login #google-login-status{font-size:12px;line-height:1.8;color:#b0c4cc;margin:16px 0 0;text-align:left}
@media(max-width:730px){.account-settings{padding:22px}.account-settings .card-header{align-items:flex-start;flex-wrap:wrap}.account-steps{display:block}.account-steps li{margin:8px 0}.field-help-dialog{padding:27px 22px}}

.firebase-admin{padding:22px 26px;margin:0 0 24px;border-color:#3e565f}
.daily-energy{padding:26px;margin:24px 0;background:linear-gradient(120deg,#182b2c,#15212d)}
.daily-energy h2{font-size:24px;margin:0;letter-spacing:-.04em}.daily-energy-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:25px}
.energy-trend{padding:28px;margin:24px 0;background:radial-gradient(ellipse at 0 0,#243b3b66,transparent 60%),#14212b;border-color:#354b56}
.trend-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.energy-trend h2{font-size:29px;letter-spacing:-.045em;margin:0}.trend-intro{font-size:13px;line-height:1.8;color:#a7bdc7;margin:9px 0 0}.trend-heading .soft-pill{white-space:nowrap}
.trend-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:22px 0}
.trend-mode{display:flex;gap:4px;padding:4px;border:1px solid #344c58;background:#0f1b24;border-radius:12px}.trend-mode button{padding:9px 15px;background:transparent;color:#a9bfc9;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:700}.trend-mode button[aria-pressed=true]{background:#27483d;color:#c1f4dc;border-color:#4e7a65}
.trend-date-nav{display:flex;align-items:flex-end;gap:8px}.trend-date-nav>button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #3b5662;border-radius:10px;background:#1c303a;color:#c6dfdf}.trend-date-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.trend-date-field label{display:block;font-size:11px;color:#a3bec8;margin:0 0 5px}.trend-date-field input{height:44px;max-width:190px;background:#10222d;color:#dcebe9;border:1px solid #46616a;border-radius:9px;padding:8px 10px;font-size:16px}
.trend-legend-help{font-size:11px;color:#9cb7c3;line-height:1.7;margin:0 0 12px}.trend-series{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.trend-solar{--trend-colour:#f3cf79}.trend-home{--trend-colour:#c6aff5}.trend-import{--trend-colour:#8cc9f5}.trend-export{--trend-colour:#50d9d0}.trend-charge{--trend-colour:#83e6b0}.trend-discharge{--trend-colour:#ffa0a5}
.trend-series-button{min-width:0;padding:14px 11px;border:1px solid #3c5260;border-top:2px solid var(--trend-colour);border-radius:12px;background:#1d303b;text-align:left;color:#dceae9;transition:background .15s,border-color .15s}.trend-series-button:hover{background:#2a3d48}.trend-series-button[aria-pressed=false]{background:#101e28;border-top-color:#42535d;color:#9aaeb9}.trend-series-button[aria-pressed=false] .trend-series-name i{background:transparent;box-shadow:inset 0 0 0 1px #6f8793}.trend-series-button[aria-pressed=false] .trend-series-energy{opacity:.6}
.trend-series-name{display:flex;align-items:center;gap:6px;min-height:32px;font-size:11px;font-weight:700;line-height:1.5}.trend-series-name i{width:7px;height:7px;flex:none;border-radius:50%;background:var(--trend-colour)}.trend-series-energy{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;margin-top:9px;color:var(--trend-colour)}.trend-series-energy strong{font-size:23px;font-weight:800;letter-spacing:-.035em;font-variant-numeric:tabular-nums}.trend-series-energy small{font-size:10px}.trend-series-coverage{display:block;font-size:10px;color:#a4bac5;margin-top:6px}
.energy-trend-plot{width:100%;height:310px;margin-top:22px;border-radius:12px;touch-action:pan-y;outline-offset:4px;position:relative}.energy-trend-plot:focus-visible{outline:2px solid #a5e3d3}.energy-trend-plot svg{display:block;width:100%;height:100%;overflow:hidden;cursor:crosshair}.energy-trend-plot[aria-busy=true]{opacity:.65}
.trend-inspector{padding:16px 18px;border:1px solid #354e5b;border-radius:12px;background:#10212b}.trend-inspector-heading{display:flex;align-items:center;gap:14px;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}.trend-inspector-heading>span{font-size:9px;letter-spacing:.15em;color:#8eaab9;font-weight:750}.trend-inspector-heading time{font-size:12px;font-weight:700;color:#d2e7e4}.trend-readout{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.trend-readout-item{min-width:0}.trend-readout-item>span{display:block;font-size:10px;color:#a7bdc7;line-height:1.6}.trend-readout-item strong{display:block;font-size:15px;color:var(--trend-colour);font-variant-numeric:tabular-nums;margin-top:5px;white-space:nowrap}
.trend-status{font-size:12px;line-height:1.8;color:#b8d6cb;margin:17px 0 7px}.trend-note{font-size:11px;line-height:1.8;color:#9cb2be;margin:0}.trend-table-details{margin-top:20px;border-top:1px solid #304b57;padding-top:10px}.trend-table-details summary{font-size:12px;color:#b5d9cd;cursor:pointer;display:flex;align-items:center;gap:9px}.trend-table-details summary::before{content:'+';font-size:20px}.trend-table-details[open] summary::before{content:'−'}.trend-table-scroll{width:100%;max-height:330px;overflow:auto;margin-top:10px;scrollbar-width:thin}.trend-table-scroll table{border-collapse:collapse;width:100%;min-width:700px;font-size:11px;font-variant-numeric:tabular-nums}.trend-table-scroll caption{text-align:left;padding:10px 0;color:#adbfca}.trend-table-scroll th,.trend-table-scroll td{padding:11px 10px;border-bottom:1px solid #2c424e;text-align:right;white-space:nowrap}.trend-table-scroll th:first-child{text-align:left}.trend-table-scroll thead th{position:sticky;top:0;background:#1d303a;color:#d2e2e4;z-index:1}.trend-table-scroll tbody th{font-weight:500;color:#acc4ce}
@media(max-width:1150px){.trend-series{grid-template-columns:repeat(3,minmax(0,1fr))}.trend-readout{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:730px){.energy-trend{padding:21px}.trend-heading{flex-wrap:wrap;gap:12px}.energy-trend h2{font-size:25px}.trend-toolbar{align-items:stretch;gap:15px}.trend-date-nav{width:100%}.trend-date-field{flex:1;min-width:0}.trend-date-field input{width:100%;max-width:none}.trend-mode{width:100%}.trend-mode button{flex:1;padding-inline:9px}.trend-series{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.trend-series-button{padding:11px}.trend-series-name{min-height:18px}.trend-series-energy strong{font-size:22px}.trend-readout{gap:15px 8px}.trend-readout-item strong{font-size:13px}.trend-inspector{padding:14px 12px}}
.daily-energy-columns article{min-width:0;padding:22px;border:1px solid #36505a;border-radius:14px;background:#10202b88}.daily-energy h3{font-size:15px;margin-bottom:12px}
.daily-energy-total{font-size:32px;font-weight:800;letter-spacing:-.04em;margin:0 0 20px}.daily-energy-row{display:grid;grid-template-columns:1fr auto;gap:9px;margin:17px 0;font-size:13px;--source:#8cc9e9}.daily-energy-row.solar{--source:#f3cf79}.daily-energy-row.battery{--source:#83e6c4}.daily-energy-row strong{color:var(--source);font-variant-numeric:tabular-nums}.daily-energy-track{grid-column:1/-1;height:7px;background:#30434b;border-radius:8px;overflow:hidden}.daily-energy-track i{display:block;height:100%;background:var(--source);border-radius:8px}
@media(max-width:730px){.daily-energy{padding:21px}.daily-energy .card-header{flex-wrap:wrap}.daily-energy-columns{grid-template-columns:1fr;gap:14px}.daily-energy-columns article{padding:18px}}
.firebase-admin summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}
.firebase-admin summary::-webkit-details-marker{display:none}
.firebase-admin summary>span:first-child{display:grid;gap:7px}
.firebase-admin summary .overline{margin:0}
.firebase-admin summary strong{font-size:17px;color:#dcece5}
.firebase-admin .settings-context{margin-top:22px}
.firebase-setup-steps{padding-left:21px;font-size:13px;line-height:1.9;color:#b6cbd4}
.firebase-setup-steps li{margin:12px 0;overflow-wrap:anywhere}
.firebase-setup-steps a{color:#a8e5ce;text-decoration:underline;text-underline-offset:3px}
#firebase-admin-form label{display:block;font-size:13px;font-weight:650;margin-top:23px}
#firebase-config-input{display:block;width:100%;margin:10px 0;border:1px solid #496772;border-radius:10px;background:#10212b;color:#e0f3ec;padding:14px;font:16px/1.6 ui-monospace,monospace;resize:vertical;overflow-wrap:anywhere}
.firebase-admin>.text-link,.firebase-admin details>.text-link{display:inline-block;margin-top:12px}
@media(max-width:730px){.firebase-admin{padding:20px}.firebase-admin summary{align-items:flex-start;flex-wrap:wrap}}
.migration-card{padding:clamp(20px,4vw,32px);margin-bottom:24px;border:1px solid rgba(126,224,188,.4);background:linear-gradient(135deg,rgba(38,77,68,.38),var(--panel,#14202a))}.migration-card h2{margin:8px 0 12px}.migration-card p{line-height:1.65}.migration-destination{font-weight:700;overflow-wrap:anywhere;color:#9de4c9}.migration-actions{display:flex;gap:12px;flex-wrap:wrap}.migration-card button{white-space:normal}.migration-card [role=status]:empty{display:none}

#beta-admin{margin-bottom:24px}#beta-admin input,.beta-gate input{display:block;width:100%;max-width:100%;margin:12px 0;padding:12px;background:#14242d;color:#e4f0ef;border:1px solid #3b5964;border-radius:10px}.beta-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #30424d;padding:12px 0}.beta-row p{flex:1;min-width:180px;overflow-wrap:anywhere}.beta-generated{display:block;overflow-wrap:anywhere;color:#98edc8;margin:16px 0}.beta-gate p{overflow-wrap:anywhere}

.layout-handle{display:flex;gap:8px;justify-content:flex-end;margin-bottom:12px}.layout-handle[hidden]{display:none}.layout-handle button{padding:8px 12px;border:1px solid #476272;border-radius:8px;background:#213744;color:#d9efea;min-height:40px}.layout-editor{margin:12px 0 24px}.layout-editor summary{cursor:pointer}.page[data-view=overview]>.glass{margin-bottom:24px}.card-layout-status:empty{display:none}

@media(min-width:901px){.page[data-view=overview].active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.page[data-view=overview]>:not(.glass){grid-column:1 / -1}.page[data-view=overview]>.glass{grid-column:span 1;margin:0}.page[data-view=overview]>.energy-trend,.page[data-view=overview]>.daily-energy{grid-column:1 / -1}}

.weather-now{display:flex;gap:24px;align-items:center;margin:20px 0}.weather-now>strong{font-size:clamp(42px,7vw,64px);letter-spacing:-.06em;color:#b4ead2}.weather-now p{color:#a9bec7;line-height:1.6;margin-bottom:0}.weather-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.weather-days>div{display:flex;flex-direction:column;gap:7px;padding:13px;background:#172c35;border:1px solid #304853;border-radius:12px}.weather-days small{color:#a9bec7;line-height:1.5}.launch-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.launch-check{padding:14px;border-radius:12px;border:1px solid #3b505b;display:flex;flex-direction:column;gap:8px}.launch-check span{color:#a9bec7;font-size:13px;line-height:1.6}.launch-check[data-ready=true]{border-color:#3b7963;background:#18372e}.beta-launch-guide details{line-height:1.7}.beta-launch-guide li{margin:12px 0}.launch-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.beta-launch-guide summary{cursor:pointer;font-weight:600}@media(max-width:550px){.launch-checks{grid-template-columns:1fr}.weather-now{gap:15px}.weather-days{grid-template-columns:1fr}.weather-days>div{display:grid;grid-template-columns:1fr 1fr}.weather-days small{grid-column:1/-1}}

.beta-launch-guide[data-complete=true] #launch-checks{display:none}.page[data-view=overview]>.beta-launch-guide{grid-column:1 / -1}

.brand-title{font-size:clamp(18px,2.1vw,24px)}@media(max-width:420px){.brand-title{font-size:18px}.brand-title small{font-size:10px}}

.weekly-charge-plan{margin:24px 0}.weekly-charge-plan h2{font-size:clamp(25px,4vw,34px);letter-spacing:-.04em}.weekly-charge-plan .card-header p{line-height:1.6;color:#a9c0c8}.weekly-toggle{display:flex;align-items:center;gap:14px;padding:18px;background:#19372f;border:1px solid #376b58;border-radius:15px;margin:20px 0}.weekly-toggle input{width:24px;height:24px;accent-color:#7be5b7;flex-shrink:0}.weekly-toggle span{display:flex;flex-direction:column;gap:7px}.weekly-toggle small{font-size:13px;color:#abc5bc}.weekly-presets,.weekly-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.weekly-presets button{border:1px solid #3b5964;border-radius:999px;background:#1e3540;color:#deefed;padding:12px 18px;cursor:pointer;min-height:44px}.weekly-period{margin:18px 0;padding:20px;border:1px solid #38535f;border-radius:16px;min-width:0;background:#142630}.weekly-period legend{font-weight:700;padding:0 8px;color:#a6e8cb}.weekly-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:4px 0 20px}.weekly-days button{min-width:0;min-height:46px;border:1px solid #3b5964;border-radius:10px;background:#203742;color:#cee1e7;cursor:pointer;font-weight:600}.weekly-days button[aria-pressed=true]{background:#8ae4be;border-color:#8ae4be;color:#113a2b}.weekly-times{display:flex;align-items:end;gap:18px;flex-wrap:wrap}.weekly-times label{display:flex;flex-direction:column;gap:9px;flex:1;min-width:120px;font-weight:600}.weekly-times input{width:100%;min-width:0;padding:14px;border:1px solid #47616b;border-radius:12px;font-size:22px;font-weight:700;color:#e6f1ef;background:#1c333e;color-scheme:dark}.weekly-summary{border:1px solid #335d50;border-radius:16px;background:#163129;padding:20px;margin:20px 0}.weekly-summary>strong{display:block;margin-bottom:12px}.weekly-summary #weekly-summary>div{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #2d4d42;padding:11px 0;font-size:14px}.weekly-summary span{text-align:right;color:#b8d6c9}.weekly-actions button{min-height:48px}@media(max-width:450px){.weekly-period{padding:14px}.weekly-days{gap:4px}.weekly-days button{font-size:12px;padding:4px}.weekly-times{gap:12px}.weekly-times input{font-size:20px}.weekly-summary{padding:16px}.weekly-summary #weekly-summary>div{font-size:13px}}

/* A single update action, above the mobile navigation and visible before login. */
.app-update-banner{position:fixed;z-index:12000;right:max(20px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));display:flex;align-items:flex-start;gap:14px;width:min(560px,calc(100vw - 40px));padding:22px;border:1px solid #528a79;border-radius:20px;background:#172b31;box-shadow:0 18px 70px #0009;color:#e8f4ef;box-sizing:border-box}.app-update-banner[hidden]{display:none}.app-update-symbol{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:#9ce8cb;color:#173b31;font-size:28px}.app-update-copy{flex:1;min-width:0}.app-update-copy strong{font-size:18px}.app-update-copy p{font-size:13px;line-height:1.6;margin:5px 0 0;color:#bdcfce}.app-update-copy #app-update-feedback:empty{display:none}.app-update-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}.app-update-actions .primary-btn{white-space:normal;min-height:44px;padding:11px 15px}.app-update-actions .text-link{min-height:36px}.app-version-card{margin-top:24px}.app-version-card .card-header{margin-bottom:12px}.app-update-banner.required{border-color:#dec589}.app-update-required{padding:0;border:0;background:transparent;color:inherit;width:min(580px,calc(100vw - 32px));max-width:none;overflow:visible}.app-update-required::backdrop{background:#050d15d9;backdrop-filter:blur(6px)}.app-update-required .app-update-banner{position:static;width:100%;box-shadow:0 20px 80px #0008}
@media(max-width:760px){.app-update-banner{left:12px;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));width:auto;padding:18px;gap:10px;flex-wrap:wrap;border-radius:18px}.app-update-copy{flex-basis:calc(100% - 54px)}.app-update-actions{flex-direction:row;width:100%;padding-left:48px;box-sizing:border-box}.app-update-actions .primary-btn{flex:1}.app-update-actions .text-link{padding:8px 12px}.app-update-required .app-update-banner{left:auto;right:auto;bottom:auto}.app-update-required .app-update-actions{padding-left:0}}

.charge-quick-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #3a6558;background:linear-gradient(120deg,#19392f,#172a31);border-radius:20px;padding:22px 24px;margin:0 0 18px;color:#e2f2eb}.charge-quick-actions strong{font-size:18px}.charge-quick-actions p{color:#b4ccc2;font-size:13px;line-height:1.6;margin:6px 0 0;max-width:540px}.charge-quick-buttons{display:flex;gap:10px;flex-shrink:0}.charge-quick-buttons button{min-height:46px}.ai-charge-shortcut{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;margin-bottom:20px;border:1px solid #325047;border-radius:16px;background:#182e2a;color:#c6dfd3}.charge-dialog-actions .primary-btn:disabled{opacity:.45;cursor:not-allowed}@media(max-width:900px){.charge-quick-actions{align-items:stretch;flex-direction:column;padding:20px}.charge-quick-buttons{flex-wrap:wrap}.charge-quick-buttons .primary-btn{flex:1}.charge-quick-buttons .secondary-btn{flex:1}.ai-charge-shortcut{font-size:13px;padding:14px}.ai-charge-shortcut .primary-btn{flex-shrink:0;padding:12px}}
#charge-dialog-readiness{padding:14px 16px;border:1px solid #345260;border-radius:12px;background:#142630;color:#dfebef;line-height:1.65}#charge-dialog-readiness[data-state=ready]{border-color:#39785f;background:#163a2b;color:#bcf1d5}#charge-dialog-readiness[data-state=blocked]{border-color:#865d44;background:#382a22;color:#f2c7a5}.charge-dialog-help{margin:16px 0}.charge-dialog-help summary{cursor:pointer;color:#c9dfd6;padding:10px 0;font-weight:600}
.auto-top-status.state-warning,.auto-overview-banner.state-warning{border-color:#aa7a46;background:#382c1e;color:#f5d4a0}.auto-overview-banner.state-warning .auto-overview-dot{background:#e8b66a}
.charge-recovery{border:1px solid #688b76;background:#1b3329;border-radius:14px;padding:18px;margin:14px 0}.charge-recovery[hidden]{display:none}.charge-recovery strong{font-size:17px;color:#d7f4e4}.charge-recovery p{line-height:1.65;color:#c5dacf;font-size:14px}.charge-recovery button{width:100%;margin-top:10px;min-height:46px}.charge-recovery .primary-btn:disabled{opacity:.45}
.charge-dialog [hidden]{display:none!important}
