/* Easy setup dialog and the simple front page.
   Aimed at first-time and occasional users: large type, strong contrast,
   one clear action per screen, 48px touch targets. */

/* ---------- Simple front page ---------- */
.simple-home{display:grid;gap:14px;margin:6px 0 16px}
.simple-price{border-radius:24px;padding:24px 22px;background:#16242f;border:1px solid #2f4654;color:#f5f8fd}
.simple-price[data-level="cheap"]{background:#0f3a2d;border-color:#2f8f6c}
.simple-price[data-level="expensive"]{background:#43261f;border-color:#b0613f}
.simple-level{margin:0;font-size:clamp(21px,5.6vw,26px);font-weight:700;line-height:1.25;letter-spacing:-.01em}
.simple-price[data-level="cheap"] .simple-level{color:#8ff0c8}
.simple-price[data-level="expensive"] .simple-level{color:#ffc29c}
.simple-amount{margin:14px 0 2px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.simple-amount strong{font-size:clamp(52px,15vw,68px);font-weight:750;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.simple-amount span{font-size:18px;color:#c9d8e0}
.simple-note{margin:6px 0 0;font-size:15px;line-height:1.5;color:#b9cad3}
.simple-note:empty,.simple-advice:empty{display:none}
.simple-advice{margin:16px 0 0;padding-top:16px;border-top:1px solid #ffffff24;font-size:18px;line-height:1.5;font-weight:550;color:#f5f8fd}
.simple-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.simple-tile{display:grid;gap:3px;padding:16px;border-radius:20px;background:#131e2b;border:1px solid #2a394b;min-width:0}
.simple-tile-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#22313f;color:#8fe6c6;margin-bottom:6px}
.simple-tile[data-kind="solar"] .simple-tile-icon{color:#ffcf8a}
.simple-tile[data-kind="home"] .simple-tile-icon{color:#bdb2ff}
.simple-tile[data-kind="grid"] .simple-tile-icon{color:#8fdcf0}
.simple-tile-icon .ui-icon{width:20px;height:20px}
.simple-tile-label{font-size:15px;color:#b9cad3}
.simple-tile strong{font-size:30px;font-weight:700;line-height:1.15;color:#f5f8fd;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.simple-tile small{font-size:15px;line-height:1.4;color:#d5e2e8}
.simple-auto{display:flex;align-items:center;gap:12px;min-height:60px;width:100%;padding:12px 16px;border-radius:16px;border:1px solid #3a5063;background:#172330;color:#f5f8fd;font:inherit;font-size:16px;font-weight:600;line-height:1.3;text-align:left;cursor:pointer}
.simple-auto[hidden]{display:none}
.simple-auto-dot{flex:none;width:12px;height:12px;border-radius:50%;background:#7c8a96}
.simple-auto[data-state="on"] .simple-auto-dot{background:#7fe7c0}
.simple-auto[data-state="warning"] .simple-auto-dot{background:#ffbd71}
.simple-auto-go{margin-left:auto;flex:none;color:#8fe6c6;font-size:15px;text-decoration:underline}
.simple-auto:focus-visible{outline:3px solid #fff;outline-offset:2px}
.simple-setup{display:grid;gap:14px;padding:20px;border-radius:20px;background:#1b2a1f;border:1px solid #4f8a58}
.simple-setup strong{font-size:19px;color:#f5f8fd}
.simple-setup p{margin:6px 0 0;font-size:16px;line-height:1.5;color:#cfe0d3}
.simple-setup[hidden]{display:none}
.simple-main-btn{min-height:56px;border:0;border-radius:16px;background:#7fe7c0;color:#062019;font:inherit;font-size:18px;font-weight:700;padding:14px 18px;cursor:pointer}
.simple-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.simple-action{min-height:64px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:16px;border:1px solid #3a5063;background:#172330;color:#f5f8fd;font:inherit;font-size:16px;font-weight:650;line-height:1.25;padding:12px;cursor:pointer;text-align:left}
.simple-action .ui-icon{width:22px;height:22px;flex:none;color:#7fe7c0}
.simple-toggle{display:block;width:100%;min-height:52px;margin:0 0 22px;border-radius:14px;border:1px solid #3a5063;background:transparent;color:#d5e2e8;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.simple-main-btn:focus-visible,.simple-action:focus-visible,.simple-toggle:focus-visible{outline:3px solid #fff;outline-offset:2px}
/* In simple mode the front page is only the heading, the summary and the toggle. */
[data-view="overview"].is-simple>:not(.page-heading):not(.simple-home):not(.simple-toggle):not(#simple-auto){display:none!important}
[data-view="overview"].is-simple .page-heading .intro{display:none}
@media (min-width:760px){
  .simple-home{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}
  .simple-price{grid-row:span 2}
  .simple-auto,.simple-setup,.simple-actions{grid-column:2}
}

/* ---------- Entry point in settings ---------- */
.easy-entry{display:grid;gap:14px;margin:16px 0 4px;padding:18px;border-radius:18px;background:#1b2a1f;border:1px solid #4f8a58}
.easy-entry strong{font-size:18px;color:#f5f8fd}
.easy-entry p{margin:6px 0 0;font-size:15px;line-height:1.55;color:#cfe0d3}
.easy-entry .primary-btn{min-height:52px;font-size:16px}
@media (min-width:760px){.easy-entry{grid-template-columns:1fr auto;align-items:center}}

/* ---------- Easy setup dialog ---------- */
.easy-dialog{width:min(560px,100%);max-width:100%;max-height:100dvh;margin:auto;padding:0;border:1px solid #3d5362;border-radius:24px;background:#111c27;color:#f5f8fd;box-shadow:0 24px 100px #000a}
.easy-dialog::backdrop{background:#04080dcc}
.easy-inner{display:flex;flex-direction:column;gap:14px;max-height:100dvh;overflow:auto;padding:22px 20px 20px}
.easy-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.easy-step-label{margin:0 0 4px;font-size:14px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:#8fe6c6}
.easy-head h2{margin:0;font-size:clamp(26px,7vw,32px);line-height:1.15;letter-spacing:-.02em}
.easy-close{flex:none;width:48px;height:48px;border-radius:50%;border:1px solid #3d5362;background:#1b2a37;color:#f5f8fd;font-size:28px;line-height:1;cursor:pointer}
.easy-progress{height:8px;border-radius:99px;background:#22313f;overflow:hidden}
.easy-progress span{display:block;height:100%;width:33.3%;border-radius:99px;background:#7fe7c0;transition:width .25s ease}
.easy-dialog[data-step="2"] .easy-progress span{width:66.6%}
.easy-dialog[data-step="3"] .easy-progress span,.easy-dialog[data-step="4"] .easy-progress span{width:100%}
.easy-dialog section{display:grid;gap:10px}
.easy-dialog section[hidden],.easy-dialog [hidden]{display:none}
.easy-lead{margin:0 0 6px;font-size:18px;line-height:1.5;color:#d5e2e8}
.easy-label{margin-top:8px;font-size:16px;font-weight:650;color:#f5f8fd}
.easy-input{width:100%;min-height:56px;border-radius:14px;border:2px solid #3d5362;background:#0b141d;color:#f5f8fd;font:inherit;font-size:18px;padding:12px 14px}
.easy-input:focus{outline:0;border-color:#7fe7c0}
.easy-hint{margin:0;font-size:15px;line-height:1.5;color:#b9cad3}
.easy-status{margin:0;min-height:22px;font-size:16px;line-height:1.45;color:#b9e9d6}
.easy-status.is-error{color:#ffc29c}
.easy-status:empty{display:none}
.easy-results{display:grid;gap:8px}
.easy-result{min-height:54px;text-align:left;border-radius:14px;border:1px solid #3d5362;background:#172330;color:#f5f8fd;font:inherit;font-size:17px;line-height:1.35;padding:12px 14px;cursor:pointer}
.easy-result:hover,.easy-result:focus-visible{border-color:#7fe7c0;outline:0}
.easy-found{display:grid;gap:0;border-radius:16px;border:1px solid #2f8f6c;background:#0f2e25;padding:4px 16px}
.easy-found-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:12px 0;font-size:16px}
.easy-found-row+.easy-found-row{border-top:1px solid #ffffff1f}
.easy-found-row span{color:#b9e9d6}
.easy-found-row strong{text-align:right;font-size:17px}
.easy-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.easy-chip{min-height:56px;border-radius:14px;border:2px solid #3d5362;background:#172330;color:#f5f8fd;font:inherit;font-size:18px;font-weight:650;cursor:pointer}
.easy-chip[aria-pressed="true"]{border-color:#7fe7c0;background:#0f3a2d}
.easy-summary{list-style:none;margin:0;padding:4px 16px;border-radius:16px;border:1px solid #2f8f6c;background:#0f2e25}
.easy-summary li{display:flex;justify-content:space-between;gap:14px;padding:12px 0;font-size:16px}
.easy-summary li+li{border-top:1px solid #ffffff1f}
.easy-summary span{color:#b9e9d6;flex:none}
.easy-summary strong{text-align:right;overflow-wrap:anywhere}
.easy-credit{margin:6px 0 0;font-size:14px;line-height:1.5;color:#9fb3be}
.easy-credit a{color:#8fe6c6;text-decoration:underline}
.easy-actions{display:flex;gap:12px;margin-top:8px;position:sticky;bottom:-20px;padding:12px 0 20px;background:linear-gradient(#111c2700,#111c27 26%)}
.easy-primary,.easy-secondary{min-height:58px;border-radius:16px;font:inherit;font-size:18px;font-weight:700;padding:12px 18px;cursor:pointer}
.easy-primary{flex:1;border:0;background:#7fe7c0;color:#062019}
.easy-primary:disabled{background:#2a3a45;color:#8fa2ad;cursor:not-allowed}
.easy-secondary{border:1px solid #3d5362;background:transparent;color:#f5f8fd}
.easy-primary:focus-visible,.easy-secondary:focus-visible,.easy-close:focus-visible,.easy-chip:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media (max-width:600px){
  .easy-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}
  .easy-inner{min-height:100dvh}
  .easy-actions{margin-top:auto}
}
@media (prefers-reduced-motion:reduce){.easy-progress span{transition:none}}

/* ---------- Charge now: duration and amount sliders ---------- */
.charge-amount{display:grid;gap:18px;margin:14px 0 6px;padding:18px 16px;border-radius:18px;border:1px solid #2f4654;background:#101b26}
.charge-amount[hidden]{display:none}
.charge-slider{display:grid;gap:8px}
.charge-slider-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.charge-slider-head label{font-size:17px;font-weight:650;color:#f5f8fd}
.charge-slider-head output{font-size:22px;font-weight:750;color:#8ff0c8;font-variant-numeric:tabular-nums;white-space:nowrap}
.charge-slider input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:44px;margin:0;background:transparent;cursor:pointer}
.charge-slider input[type=range]::-webkit-slider-runnable-track{height:10px;border-radius:99px;background:#2a3b49}
.charge-slider input[type=range]::-moz-range-track{height:10px;border-radius:99px;background:#2a3b49}
.charge-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:34px;height:34px;margin-top:-12px;border-radius:50%;background:#7fe7c0;border:3px solid #062019;box-shadow:0 2px 10px #0008}
.charge-slider input[type=range]::-moz-range-thumb{width:30px;height:30px;border-radius:50%;background:#7fe7c0;border:3px solid #062019}
.charge-slider input[type=range]:focus-visible{outline:3px solid #fff;outline-offset:2px;border-radius:12px}
.charge-slider input[type=range]:disabled{opacity:.5;cursor:not-allowed}
.charge-slider-scale{display:flex;justify-content:space-between;font-size:14px;color:#9fb3be}
.charge-amount-summary{margin:0;font-size:17px;line-height:1.5;font-weight:600;color:#f5f8fd}
.charge-amount .charge-hint{margin:0;font-size:14px;line-height:1.5;color:#b9cad3}
.charge-dialog-consent{font-size:16px!important}

/* ---------- Smart planning toggle ---------- */
.smart-toggle{display:flex;gap:12px;align-items:flex-start;grid-column:1/-1;padding:14px;border-radius:14px;border:1px solid #2f8f6c;background:#0f2e25;cursor:pointer}
.smart-toggle input{flex:none;width:24px;height:24px;margin-top:2px;accent-color:#7fe7c0}
.smart-toggle strong{display:block;font-size:16px;color:#f5f8fd}
.smart-toggle small{display:block;margin-top:4px;font-size:14px;line-height:1.5;color:#cfe0d3}

/* ---------- Readability on every page: no body text below 14px on phones ---------- */
@media (max-width:760px){
  .charge-hint,.charge-copy,.charge-state,.settings-context,.muted.small,.metric-footer,.card-layout-status,.field-help,
  .content-card p,.content-card small,.content-card li,.stat-tile small,.stat-tile span{font-size:14px;line-height:1.55}
  .content-card h3{font-size:20px;line-height:1.3}
  .overline,.subtle-label{font-size:12px}
  .primary-btn,.secondary-btn{min-height:48px;font-size:16px}
  .content-card label{font-size:15px}
  .content-card input:not([type=checkbox]):not([type=radio]):not([type=range]),.content-card select{min-height:48px;font-size:16px}
}

.charge-max{min-height:40px;padding:6px 18px;border-radius:99px;border:2px solid #7fe7c0;background:transparent;color:#8ff0c8;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.charge-max:focus-visible{outline:3px solid #fff;outline-offset:2px}
.charge-slider-scale{align-items:center}

/* ---------- Simple AI page ---------- */
.ai-simple{display:grid;gap:14px;margin:6px 0 16px}
.ai-simple-heading{margin:0;font-size:clamp(30px,8vw,40px);line-height:1.1;letter-spacing:-.02em;color:#f5f8fd}
.ai-simple-card{display:grid;gap:12px;padding:24px 22px;border-radius:24px;background:#16242f;border:1px solid #2f4654}
.ai-simple[data-state="on"] .ai-simple-card{background:#0f3a2d;border-color:#2f8f6c}
.ai-simple-title{margin:0;font-size:clamp(22px,6vw,28px);font-weight:750;line-height:1.2;color:#f5f8fd}
.ai-simple[data-state="on"] .ai-simple-title{color:#8ff0c8}
.ai-simple-lead{margin:0;font-size:17px;line-height:1.5;color:#d5e2e8}
.ai-simple-button{min-height:64px;margin-top:6px;border:0;border-radius:18px;background:#7fe7c0;color:#062019;font:inherit;font-size:22px;font-weight:800;cursor:pointer}
.ai-simple[data-state="on"] .ai-simple-button{background:transparent;border:2px solid #ffc29c;color:#ffc29c}
.ai-simple-button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ai-simple-message{margin:0;font-size:15px;line-height:1.5;color:#b9e9d6}
.ai-simple-message.is-error{color:#ffc29c}
.ai-simple-message:empty,.ai-simple-why:empty{display:none}
.ai-simple-sub{margin:10px 0 0;font-size:20px;color:#f5f8fd}
.ai-simple-days{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ai-simple-days li{display:grid;gap:4px;padding:16px 18px;border-radius:18px;background:#131e2b;border:1px solid #2a394b}
.ai-simple-days li[data-charge="true"]{border-color:#2f8f6c;background:#0f2e25}
.ai-simple-days strong{font-size:15px;letter-spacing:.03em;text-transform:uppercase;color:#8fe6c6}
.ai-simple-days span{font-size:18px;line-height:1.45;font-weight:600;color:#f5f8fd}
.ai-simple-why{margin:0;font-size:15px;line-height:1.55;color:#b9cad3}
[data-view="ai"].is-simple>:not(.ai-simple):not(#ai-simple-toggle){display:none!important}
[data-view="ai"]:not(.is-simple) .ai-simple-heading{display:none}

/* ---------- Unmistakable AI on/off ---------- */
.ai-simple-badge{display:inline-flex;align-items:center;gap:10px;justify-self:start;margin:0;padding:8px 16px;border-radius:99px;background:#2a3642;color:#d5e2e8;font-size:16px;font-weight:800;letter-spacing:.06em}
.ai-simple-badge span{width:14px;height:14px;border-radius:50%;background:#7c8a96}
.ai-simple[data-state="on"] .ai-simple-badge{background:#7fe7c0;color:#062019}
.ai-simple[data-state="on"] .ai-simple-badge span{background:#0b5c43;animation:ai-pulse 1.6s ease-in-out infinite}
@keyframes ai-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.5);opacity:.55}}
@media (prefers-reduced-motion:reduce){.ai-simple[data-state="on"] .ai-simple-badge span{animation:none}}
.simple-auto[data-state="on"]{background:#0f3a2d;border-color:#2f8f6c;font-size:18px;font-weight:750;color:#8ff0c8}
.simple-auto[data-state="on"] .simple-auto-dot{width:14px;height:14px;animation:ai-pulse 1.6s ease-in-out infinite}
.autopilot-confirm[hidden]{display:none}

.charge-delay-note{margin:12px 0 0;padding:12px 14px;border-radius:14px;background:#1b2a37;border:1px solid #33495a;font-size:15px;line-height:1.5;color:#d5e2e8}

/* Oplad elbil */
.simple-action-ev{grid-column:1/-1;border-color:#5a7fb0;background:#18283c}
.simple-action-ev.is-active{background:#7fe7c0;border-color:#7fe7c0;color:#062019}
.ev-status-line{margin:0;padding:12px 14px;border-radius:14px;background:#16302a;border:1px solid #3f7d68;font-size:16px;line-height:1.5;color:#dff5ec}
.ev-status-line[hidden]{display:none}
.ev-explain{font-size:17px;line-height:1.55;color:#e4edf2;margin:8px 0 16px}
.ev-label{font-size:16px;font-weight:700;margin:0 0 8px;color:#f5f8fd}
.ev-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px;margin-bottom:16px}
.ev-choice{min-height:52px;border-radius:14px;border:1px solid #3a5063;background:#172330;color:#f5f8fd;font:inherit;font-size:16px;font-weight:650;cursor:pointer}
.ev-choice[aria-pressed="true"]{background:#7fe7c0;border-color:#7fe7c0;color:#062019}
.ev-choice:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ev-main{width:100%;min-height:56px;font-size:17px}
.ev-message{min-height:1.5em;margin:12px 0 0;font-size:16px;line-height:1.5;color:#ffe2a8}

/* Anlægsinfo for inverters the app does not support yet */
.inverter-help{display:grid;gap:12px;padding:20px;border-radius:20px;background:#2a2414;border:2px solid #e8b74a;grid-column:1/-1;margin-bottom:14px}
.inverter-help[hidden]{display:none}
.inverter-help strong{font-size:20px;color:#fff3d6}
.inverter-help p{margin:0;font-size:16px;line-height:1.5;color:#f1e4c4}
.inverter-help .simple-main-btn{background:#e8b74a;color:#231a05}
.inverter-help-status:empty{display:none}
.inverter-help-text{width:100%;min-height:160px;font:13px/1.4 ui-monospace,monospace;background:#11161c;color:#e4edf2;border-radius:12px;border:1px solid #3a5063;padding:10px}
.inverter-help-text[hidden]{display:none}

/* Inverters the app cannot control yet: no buttons that would only fail */
.inverter-unsupported [data-charge-now],.inverter-unsupported #charge-now-btn,.inverter-unsupported #ai-manual-charge-open,
.inverter-unsupported [data-ev-hold],.inverter-unsupported #ai-simple-button,.inverter-unsupported #autopilot-activate,
.inverter-unsupported .charge-quick-actions,.inverter-unsupported #ev-status-line{display:none!important}
.inverter-unsupported-only{display:none}
.inverter-unsupported .inverter-unsupported-only{display:block}

/* One front page: the energy picture replaces the four tiles; duplicates are retired. */
.retired{display:none!important}
.simple-flow{padding:20px 14px 16px}
.simple-flow-title{font-size:22px;letter-spacing:-.02em;margin:0;color:#f5f8fd}
.simple-flow .card-header{align-items:center;flex-wrap:wrap}
.simple-flow .flow-summary{font-size:16px;line-height:1.5;color:#d5e2e8;margin:12px 4px 0}
.simple-alert{margin:0;padding:14px 16px;border-radius:16px;background:#3a2c14;border:1px solid #e8b74a;color:#ffe9bd;font-size:16px;line-height:1.5}
.simple-alert[hidden]{display:none}
[data-view="overview"] .layout-editor{display:none!important}

/* Elpriser: one row per hour */
.price-list-card{padding:18px 14px 16px}
.pl-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border-radius:16px;background:#0f1822;border:1px solid #263646;margin-bottom:16px}
.pl-tabs button{min-height:44px;border:0;border-radius:12px;background:transparent;color:#9fb2c2;font:inherit;font-size:16px;font-weight:650;cursor:pointer}
.pl-tabs button[aria-selected="true"]{background:#223241;color:#fff}
.pl-tabs button:disabled{opacity:.5;cursor:default;font-size:14px}
.pl-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.pl-tile{padding:12px 8px;border-radius:14px;background:#13202b;text-align:center}
.pl-tile strong{display:block;font-size:20px;letter-spacing:-.02em;color:#f5f8fd}
.pl-tile span{display:block;margin-top:2px;font-size:13px;color:#9fb2c2}
.pl-tile.now strong{color:#ffd65a}.pl-tile.low strong{color:#7fe7c0}.pl-tile.high strong{color:#ff9f7a}
.pl-rows{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.pl-row{display:grid;grid-template-columns:62px 52px 1fr 62px;align-items:center;gap:10px;min-height:38px;padding:0 8px;border-radius:10px}
.pl-time{font-size:15px;color:#c9d6e0;font-variant-numeric:tabular-nums}
.pl-price{font-size:15px;font-weight:650;color:#f5f8fd;text-align:right;font-variant-numeric:tabular-nums}
.pl-bar{height:12px;border-radius:999px;background:#1a2733;overflow:hidden}
.pl-bar i{display:block;height:100%;width:var(--w);border-radius:999px;background:#e8c547}
.pl-cheap .pl-bar i{background:#5fd3a5}.pl-dear .pl-bar i{background:#ff8a65}
.pl-mark{font-size:12px;font-weight:700;color:#9fb2c2;text-align:right}
.pl-mark.low{color:#7fe7c0}.pl-mark.high{color:#ff9f7a}
.pl-row.is-past{opacity:.45}
.pl-row.is-now{background:#1d2e3d;outline:1px solid #3d5a73}
.pl-row.is-now .pl-mark{color:#ffd65a}
.pl-empty{padding:18px;text-align:center;color:#9fb2c2}
.pl-quarters{margin-top:12px;width:100%;min-height:44px;border-radius:12px;border:1px solid #2c3e4f;background:transparent;color:#cfe0ea;font:inherit;font-size:15px;cursor:pointer}
.pl-quarters[hidden]{display:none}
.pl-note{margin:10px 2px 0;font-size:13px;line-height:1.5;color:#8ea2b3}
[data-view="prices"] .layout-editor,[data-view="prices"] .page-heading .status-outline{display:none!important}

/* Følg strømmen: animated nodes */
.energy-orbit{position:relative;margin:4px -6px 0}
.orbit-svg{display:block;width:100%;height:auto;max-width:440px;margin:0 auto;overflow:visible}
/* The old picture stays for its text and the screen reader label, but is not shown. */
.energy-flow.orbit-replaced{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;opacity:0;pointer-events:none}
.orbit-track{fill:none;stroke:#2a3a4a;stroke-width:2;stroke-dasharray:2 6;stroke-linecap:round}
.orbit-flow{fill:none;stroke-width:3;stroke-linecap:round;opacity:.85;stroke-dasharray:10 14;animation:orbit-dash var(--dur,2.5s) linear infinite}
@keyframes orbit-dash{to{stroke-dashoffset:-48}}
.orbit-disc{fill:#132230}
.orbit-ring{fill:none;stroke-width:2.5;opacity:.35;transition:opacity .4s}
.orbit-node[data-flow="in"] .orbit-ring,.orbit-node[data-flow="out"] .orbit-ring{opacity:1;animation:orbit-breathe 2.8s ease-in-out infinite}
.orbit-battery .orbit-ring{opacity:1!important;animation:none!important;stroke-width:5}
.orbit-level{fill:none;stroke-width:5;stroke-linecap:round;transition:stroke-dasharray .8s ease}
.orbit-battery[data-flow="out"] .orbit-level{animation:orbit-charge 1.6s ease-in-out infinite}
@keyframes orbit-breathe{0%,100%{stroke-width:2.5}50%{stroke-width:4.5}}
@keyframes orbit-charge{0%,100%{opacity:1}50%{opacity:.55}}
.orbit-icon{fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.orbit-battery .orbit-icon{fill:none}
.orbit-rays line{stroke:#ffd65a;stroke-width:2;stroke-linecap:round;opacity:0}
.orbit-solar[data-flow="in"] .orbit-rays line{opacity:.7}
.orbit-solar[data-flow="in"] .orbit-rays{animation:orbit-spin 24s linear infinite;transform-origin:0 0}
@keyframes orbit-spin{to{transform:rotate(360deg)}}
.orbit-value{fill:#f5f8fd;font-size:17px;font-weight:700;letter-spacing:-.02em}
.orbit-extra{fill:#9fb2c2;font-size:11px}
.orbit-label{fill:#e7eef5;font-size:15px;font-weight:650}
.orbit-status{fill:#8ea2b3;font-size:12px}
.orbit-node[data-flow="in"] .orbit-status,.orbit-node[data-flow="out"] .orbit-status{fill:#cfe0ea}
.orbit-hub-halo{fill:#7fe7c0;opacity:.12}
.orbit-hub-core{fill:#1f3d36;stroke:#7fe7c0;stroke-width:1.5}
.orbit-hub-icon{fill:#7fe7c0}
.energy-orbit[data-active="true"] .orbit-hub-halo{animation:orbit-pulse 2.4s ease-out infinite;transform-origin:0 0}
@keyframes orbit-pulse{0%{opacity:.35;transform:scale(.7)}100%{opacity:0;transform:scale(1.6)}}
.energy-orbit[data-still="true"] *{animation:none!important}
.energy-orbit[data-stale="true"] .orbit-flow{opacity:.35}
@media (prefers-reduced-motion:reduce){.energy-orbit *{animation:none!important}}

/* Calm motion: weather, charts, prices */
.weather-now{display:flex;align-items:center;gap:12px}
.weather-icon{display:inline-flex;flex:0 0 auto}
.weather-days>div{display:grid;justify-items:start;gap:2px}
.wx{overflow:visible}
.wx-sun-core{fill:#ffd65a}
.wx-rays line{stroke:#ffd65a;stroke-width:2.4;stroke-linecap:round}
.wx-rays{transform-origin:24px 24px;animation:wx-spin 18s linear infinite}
.wx-sun-core{transform-origin:24px 24px;animation:wx-glow 4s ease-in-out infinite}
.wx-moon{fill:#dfe8ff;opacity:.9}
.wx-cloud{fill:#d9e4ee}
.wx-cloud-back{fill:#9fb2c2;opacity:.8}
.wx-drift{animation:wx-drift 6s ease-in-out infinite}
.wx-drift-slow{animation:wx-drift 9s ease-in-out infinite reverse}
.wx-rain .wx-drop{stroke:#7cc4ff;stroke-width:2;stroke-linecap:round;animation:wx-fall 1.1s linear infinite}
.wx-snow .wx-drop{fill:#ffffff;animation:wx-snow 2.4s linear infinite}
.wx-drop-1{animation-delay:-.3s!important}.wx-drop-2{animation-delay:-.6s!important}.wx-drop-3{animation-delay:-.85s!important}
.wx-bolt{fill:#ffd65a;animation:wx-flash 3.2s ease-in-out infinite}
.wx-fog{stroke:#c3d0db;stroke-width:3;stroke-linecap:round;animation:wx-drift 5s ease-in-out infinite}
.wx-fog-1{animation-delay:-1.5s}.wx-fog-2{animation-delay:-3s}
@keyframes wx-spin{to{transform:rotate(360deg)}}
@keyframes wx-glow{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes wx-drift{0%,100%{transform:translateX(-2px)}50%{transform:translateX(3px)}}
@keyframes wx-fall{0%{transform:translateY(-4px);opacity:0}20%{opacity:1}100%{transform:translateY(8px);opacity:0}}
@keyframes wx-snow{0%{transform:translate(0,-4px);opacity:0}20%{opacity:1}100%{transform:translate(2px,9px);opacity:0}}
@keyframes wx-flash{0%,86%,100%{opacity:0}88%,92%{opacity:1}}
/* Energy day: curves draw themselves, areas fade in */
.trend-animate .trend-curve{stroke-dasharray:1;stroke-dashoffset:1;animation:trend-draw 1.2s cubic-bezier(.4,0,.2,1) forwards}
.trend-animate .trend-area{opacity:0;animation:trend-fade .9s .5s ease forwards}
@keyframes trend-draw{to{stroke-dashoffset:0}}
@keyframes trend-fade{to{opacity:1}}
/* Bars grow in */
.daily-energy-track i,.solar-day-rail span{transform-origin:left center;animation:bar-grow .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes bar-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.price-list-card [data-anim="1"] .pl-row{animation:pl-in .45s ease both;animation-delay:calc(var(--i,0) * 22ms)}
.price-list-card [data-anim="1"] .pl-bar i{transform-origin:left center;animation:bar-grow .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(120ms + var(--i,0) * 22ms)}
.price-list-card [data-anim="1"] .pl-tile{animation:pl-in .5s ease both}
@keyframes pl-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.pl-row.is-now{animation:pl-now 2.6s ease-in-out infinite}
.price-list-card [data-anim="1"] .pl-row.is-now{animation:pl-in .45s ease both,pl-now 2.6s ease-in-out .6s infinite;animation-delay:calc(var(--i,0) * 22ms),.6s}
@keyframes pl-now{0%,100%{box-shadow:0 0 0 0 rgba(255,214,90,0)}50%{box-shadow:0 0 0 3px rgba(255,214,90,.18)}}
@media (prefers-reduced-motion:reduce){.wx *,.trend-animate *,.daily-energy-track i,.solar-day-rail span,.price-list-card *{animation:none!important;stroke-dashoffset:0!important;opacity:1}}

.wit-test{display:grid;gap:8px;margin-top:6px;padding-top:14px;border-top:1px solid rgba(232,183,74,.35)}
.wit-test strong{font-size:17px}
.wit-test-buttons{display:grid;grid-template-columns:1fr auto;gap:8px}
.wit-test-status:empty{display:none}

/* Vælg selv hvornår batteriet lader */
.dp-open{width:100%;min-height:54px;margin-top:6px;border-radius:16px;border:1px solid #3d6b5c;background:#16302a;color:#dff5ec;font:inherit;font-size:17px;font-weight:650;cursor:pointer}
.day-plan{margin-top:12px;padding:16px 12px;border-radius:20px;background:#101b25;border:1px solid #243444}
.day-plan[hidden]{display:none}
.dp-lead{margin:0 0 12px;font-size:16px;line-height:1.5;color:#dbe6ee}
.dp-summary{margin:0 0 10px;font-size:16px;font-weight:650;color:#7fe7c0;min-height:1.4em}
.dp-rows{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.dp-row{width:100%;display:grid;grid-template-columns:62px 52px 1fr 64px;align-items:center;gap:10px;min-height:46px;padding:0 10px;border-radius:12px;border:1px solid transparent;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background .2s,border-color .2s}
.dp-row:active{transform:scale(.99)}
.dp-row.is-on{background:#173a30;border-color:#3f9a7c}
.dp-row.is-now{outline:1px dashed #3d5a73}
.dp-chip{font-size:13px;font-weight:700;color:#7fe7c0;text-align:right}
.dp-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.dp-note{margin:10px 2px 0;font-size:13px;line-height:1.5;color:#8ea2b3}
/* Energiflod */
.river-band{transition:opacity .3s}
.river-in .river-band{animation:river-rise 1.1s cubic-bezier(.2,.7,.2,1) both}
@keyframes river-rise{from{opacity:0}to{opacity:1}}
.river-now-halo{transform-box:fill-box;transform-origin:center;animation:river-breathe 2.4s ease-in-out infinite}
@keyframes river-breathe{0%,100%{transform:scale(.6);opacity:.9}50%{transform:scale(1.5);opacity:.15}}
@media (prefers-reduced-motion:reduce){.river-in .river-band,.river-now-halo{animation:none!important}}
.river-key{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 2px 0;font-size:12px;color:#9bb1bd}
.river-key b{color:#dce9ee;font-weight:600;margin-right:4px}
/* Elbil-tilstand: impossible to miss while it is on */
.ev-banner{order:-10;grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:16px 16px 16px 14px;border-radius:20px;background:linear-gradient(135deg,#1d3b58,#173049);border:1.5px solid #6fb4ff;box-shadow:0 0 0 0 rgba(111,180,255,.5);animation:ev-glow 2.6s ease-in-out infinite;color:#eaf4ff}
.ev-banner[hidden]{display:none}
.ev-banner-icon{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#6fb4ff;color:#0b1d30;position:relative}
.ev-banner-icon::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid #6fb4ff;animation:ev-ring 2s ease-out infinite}
.ev-banner-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ev-banner-body{display:grid;gap:4px;min-width:0;flex:1}
.ev-banner-body strong{font-size:17px}
.ev-banner-body span{font-size:14px;line-height:1.4;color:#c9dcf0}
.ev-banner-bar{display:block;height:6px;border-radius:6px;background:rgba(255,255,255,.12);overflow:hidden;margin-top:4px}
.ev-banner-bar i{display:block;height:100%;width:calc(var(--p,0)*100%);background:linear-gradient(90deg,#6fb4ff,#9fe2ff);border-radius:6px;transition:width .8s ease}
.ev-banner-btn{flex:none;border:1px solid #6fb4ff;background:transparent;color:#eaf4ff;border-radius:12px;padding:10px 12px;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.simple-action-ev.is-active{background:#6fb4ff;border-color:#6fb4ff;color:#0b1d30}
@keyframes ev-glow{0%,100%{box-shadow:0 0 0 0 rgba(111,180,255,.0)}50%{box-shadow:0 0 22px 2px rgba(111,180,255,.35)}}
@keyframes ev-ring{from{transform:scale(.85);opacity:.9}to{transform:scale(1.35);opacity:0}}
@media (max-width:420px){.ev-banner{flex-wrap:wrap}.ev-banner-btn{width:100%}}
@media (prefers-reduced-motion:reduce){.ev-banner,.ev-banner-icon::after{animation:none!important}}
/* Forbind din Tesla */
.tesla-card{padding:22px;border-radius:22px;margin:0 0 18px;display:grid;gap:10px}
.tesla-card[hidden]{display:none}
.tesla-card h2{margin:0}
.tesla-lead{margin:0;color:#c9d8e0}
.tesla-steps{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:12px;counter-reset:t}
.tesla-steps>li{counter-increment:t;display:grid;gap:6px;padding:14px 14px 14px 52px;border-radius:16px;background:#14212b;border:1px solid #2c4150;position:relative}
.tesla-steps>li::before{content:counter(t);position:absolute;left:14px;top:14px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#2c4150;color:#e6f1f5;font-weight:700;font-size:14px}
.tesla-steps>li[data-done="true"]::before{content:"✓";background:#7fe7c0;color:#062019}
.tesla-steps span{color:#a9bcc6;font-size:14px;line-height:1.45}
.tesla-row{display:flex;gap:8px}
.tesla-row input{flex:1;min-width:0;min-height:46px;border-radius:12px;border:1px solid #3a5063;background:#0f1a22;color:#f5f8fd;padding:0 12px;font:inherit}
.tesla-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:46px}
.tesla-message{margin:0;font-size:14px;color:#dff5ec;min-height:1em}
.tesla-card,.tesla-card *{box-sizing:border-box}
.tesla-card{min-width:0;max-width:100%;width:100%}
.tesla-steps,.tesla-steps li{min-width:0}
.tesla-steps>li{grid-template-columns:minmax(0,1fr)}
.tesla-steps span,.tesla-lead{overflow-wrap:anywhere}
.tesla-row input{width:100%}
.tesla-row .primary-btn{flex:none;padding:0 18px}
.tesla-link{width:100%}
/* Oplad Tesla */
.tesla-hero{grid-column:1/-1;display:flex;align-items:center;gap:14px;width:100%;padding:18px 18px;border-radius:22px;border:1.5px solid #e8434a;background:linear-gradient(135deg,#3a1418,#1d1416 60%,#141c22);color:#fff3f3;font:inherit;text-align:left;cursor:pointer;box-shadow:0 10px 30px -14px rgba(232,67,74,.6)}
.tesla-hero[hidden]{display:none}
.tesla-hero-icon{flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e8434a;color:#fff;position:relative}
.tesla-hero-icon svg{width:24px;height:24px;fill:currentColor}
.tesla-hero-text{display:grid;gap:3px;flex:1;min-width:0}
.tesla-hero-text strong{font-size:19px}
.tesla-hero-text small{font-size:14px;color:#f1c9cb}
.tesla-hero-arrow{font-size:22px;color:#f1c9cb}
.tesla-hero.is-active{border-color:#7fe7c0;background:linear-gradient(135deg,#12382c,#13261f 60%,#141c22);box-shadow:0 0 0 0 rgba(127,231,192,.4);animation:ev-glow 2.6s ease-in-out infinite}
.tesla-hero.is-active .tesla-hero-icon{background:#7fe7c0;color:#062019}
.tesla-hero.is-active .tesla-hero-icon::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid #7fe7c0;animation:ev-ring 2s ease-out infinite}
.tesla-hero.is-active small{color:#bfeedd}
html.tesla-linked .simple-action-ev{display:none}
.tesla-options{display:grid;gap:14px}
.tesla-option{padding:16px;border-radius:18px;background:#14212b;border:1px solid #2c4150;display:grid;gap:10px}
.tesla-option h3{margin:0;font-size:18px}
.tesla-option p{margin:0;color:#b5c7d0;font-size:14px;line-height:1.45}
@media (prefers-reduced-motion:reduce){.tesla-hero.is-active,.tesla-hero.is-active .tesla-hero-icon::after{animation:none!important}}
html.tesla-linked .simple-actions{grid-template-columns:1fr}
/* With a Tesla linked, the glowing Tesla button tells the story instead of the battery-pause banner. */
html.tesla-linked .ev-banner{display:none!important}
#tesla-window{grid-template-columns:repeat(4,1fr)}
/* Forbrugsdetektiv */
.ld-card{padding:22px;border-radius:22px;margin:0 0 18px;display:grid;gap:12px;min-width:0}
.ld-card h2{margin:0}
.ld-base{display:grid;gap:6px;padding:16px;border-radius:16px;background:#14212b;border:1px solid #2c4150}
.ld-big{font-size:34px;line-height:1}
.ld-sub,.ld-note,.ld-meta{color:#a9bcc6;font-size:14px;line-height:1.45;margin:0}
.ld-hint{margin:0;padding:12px 14px;border-radius:14px;background:#3a2b12;color:#ffe2a8;font-size:14px;line-height:1.45}
.ld-bar,.ld-meter{height:8px;border-radius:8px;background:rgba(255,255,255,.08);overflow:hidden}
.ld-bar i,.ld-meter i{display:block;height:100%;width:calc(var(--p,0)*100%);border-radius:8px;background:linear-gradient(90deg,#f3cf79,#ffa0a5);transition:width .9s ease}
.ld-meter i{background:linear-gradient(90deg,#8cc9f5,#c6aff5)}
.ld-h{margin:6px 0 0;font-size:16px}
.ld-item{display:grid;gap:6px;padding:14px;border-radius:16px;background:#14212b;border:1px solid #2c4150}
.ld-item-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.ld-kwh{color:#dce9ee;font-weight:650;white-space:nowrap}
.ld-name{justify-self:start;background:none;border:0;color:#7fe7c0;font:inherit;font-size:14px;font-weight:650;padding:4px 0;cursor:pointer}
.ld-label-row{display:flex;gap:8px}
.ld-label-row input{flex:1;min-width:0;min-height:42px;border-radius:12px;border:1px solid #3a5063;background:#0f1a22;color:#f5f8fd;padding:0 12px;font:inherit}
.elo-bars{display:flex;align-items:flex-end;gap:2px;height:64px;margin-top:6px}
.elo-bars i{flex:1;height:calc(var(--h,0)*100%);min-height:2px;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#8cc9f5,#4b8fbf)}
.elo-bill{gap:8px}
.elo-line{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#c9d8e0;border-bottom:1px solid rgba(255,255,255,.06);padding:4px 0}
.elo-line strong{color:#f5f8fd}
/* "Kun synlig for dig": things only this account sees (owner tools, own car, personal help) */
.owner-only{position:relative;outline:1.5px dashed rgba(243,207,121,.55);outline-offset:-1.5px}
.owner-only::before{content:"🔒 Kun synlig for dig";position:absolute;top:12px;right:12px;z-index:2;padding:4px 10px;border-radius:999px;
  font-size:11.5px;font-weight:700;letter-spacing:.02em;color:#2a1f05;background:linear-gradient(135deg,#f6d98a,#e9b949);box-shadow:0 4px 14px -6px rgba(233,185,73,.8);pointer-events:none}
.owner-only>.overline:first-child,.owner-only>details>summary{padding-right:150px}
.owner-only-nav{border-color:rgba(243,207,121,.7)!important;color:#f6d98a!important}
.owner-only-nav::after{content:" 🔒";font-size:.85em}
.owner-only-mini{position:relative}
.owner-only-mini::before{content:"🔒 Kun dig";position:absolute;top:-9px;right:14px;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:700;color:#2a1f05;background:linear-gradient(135deg,#f6d98a,#e9b949)}
/* The login screen only appears if signing in really is needed: a remembered session normally
   unlocks within a second, so the overlay waits before it shows instead of flashing every launch. */
.lock-overlay:not(.unlocked){animation:lock-reveal .25s ease 1.8s both}
@keyframes lock-reveal{from{opacity:0;visibility:hidden}to{opacity:1;visibility:visible}}
.ev-select{width:100%;min-height:44px;border-radius:12px;border:1px solid #3a5063;background:#0f1a22;color:#f5f8fd;padding:0 12px;font:inherit}
.tesla-chips{grid-template-columns:repeat(6,1fr)}
.tesla-option[hidden]{display:none}
/* Easee card: even spacing between the fields */
#easee-card [data-easee-form]{display:grid;gap:10px;margin-top:4px}
#easee-card [data-easee-form] .tesla-row input{min-height:50px}
#easee-card [data-easee-form] .tesla-row .primary-btn{min-height:50px}
#easee-card .ld-note{margin:2px 2px 0;font-size:13px}
#easee-card .tesla-message:empty{display:none}
#easee-card [data-easee-linked]{display:grid;gap:6px}
#easee-card [data-easee-linked][hidden]{display:none}
.spar-card{background:linear-gradient(140deg,#123a2e,#132a26 55%,#14212b);border-color:#3f8f72}
.spar-text{color:#a9bcc6;margin:6px 0 0}
.spar-link{display:flex;align-items:center;justify-content:center;text-decoration:none;margin-top:14px}
/* Charger brand picker */
.charger-brands{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 12px}
.charger-brands button{flex:1 1 auto;min-height:42px;padding:0 14px;border-radius:12px;border:1px solid #2c4150;background:#0f1a22;color:#c9d8e0;font:inherit;font-weight:700;cursor:pointer}
.charger-brands button[aria-selected="true"]{background:#7fe7c0;border-color:#7fe7c0;color:#062019}
.charger-guide{margin:4px 0 12px;padding-left:20px;color:#a9bcc6;line-height:1.5}
.charger-guide li{margin:5px 0}.charger-guide b{color:#eef5f7}.charger-guide a{color:#7fe7c0}
.charger-connect{width:100%;margin-top:6px}
.tesla-guide{margin-top:10px}
.tesla-guide summary{cursor:pointer;color:#7fe7c0;font-weight:700}
.tesla-guide ol{padding-left:20px;color:#a9bcc6;line-height:1.55}
.tesla-guide li{margin:6px 0}.tesla-guide b{color:#eef5f7}.tesla-guide a{color:#7fe7c0}
.tesla-guide code{display:inline-block;max-width:100%;overflow-wrap:anywhere;background:#0f1a22;border:1px solid #2c4150;border-radius:8px;padding:2px 6px;font-size:12.5px;color:#dff5ec;cursor:pointer}
.tesla-guide ol{list-style:decimal;margin:8px 0 0;display:block}
.tesla-guide ol li{display:list-item;padding:0;background:none;border:0;margin:7px 0;font-size:14px}
/* Min batteriplan */
.bp-card{margin-top:18px;padding:20px;border-radius:22px;background:linear-gradient(160deg,#182834,#14212b);border:1px solid #2c4150}
.bp-modes{display:grid;gap:10px;margin:14px 0}
.bp-mode{text-align:left;padding:14px 16px;border-radius:16px;border:1px solid #2c4150;background:#0f1a22;color:#eef5f7;font:inherit;font-weight:800;cursor:pointer}
.bp-mode small{display:block;font-weight:500;color:#93a7b1;margin-top:3px}
.bp-mode[aria-checked="true"]{border-color:#7fe7c0;background:linear-gradient(140deg,#123a2e,#132a26)}
.bp-windows{display:grid;gap:10px;margin-bottom:6px}
.bp-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;color:#a9bcc6;font-weight:700}
.bp-time{flex:1 1 0;min-width:0;min-height:44px;border-radius:12px;background:#0f1a22;border:1px solid #3a5063;color:#f5f8fd;font:inherit;padding:0 10px}
.bp-x{flex:none;width:40px;height:40px;border-radius:12px;border:1px solid #2c4150;background:none;color:#ff9b8a;font-size:20px;cursor:pointer}
.bp-status{margin:10px 0 0;font-weight:700;color:#dff5ec}
.bp-card[data-allowed="false"] .bp-status{color:#f3cf79}
.bp-save{width:100%;margin-top:12px}
/* Family */
.fam-list{list-style:none;margin:8px 0 14px;padding:0;display:grid;gap:8px}
.fam-list li{display:flex;align-items:center;gap:8px}
.fam-name{flex:1 1 auto;font-weight:800;color:#eef5f7;min-width:0;overflow:hidden;text-overflow:ellipsis}
.fam-list .bp-time{flex:0 0 140px}
.fam-empty{color:#93a7b1}
.fam-label{margin:6px 0 0;font-weight:800;color:#c9d8e0}
.fam-btn{width:100%;margin-top:4px}
.fam-link{margin-top:12px}
.fam-link code{display:block;overflow-wrap:anywhere;background:#0f1a22;border:1px solid #2c4150;border-radius:10px;padding:8px 10px;font-size:12.5px;color:#dff5ec;margin-bottom:8px}
.fam-dialog{max-width:420px;border:1px solid #3f8f72;border-radius:22px;background:#14212b;color:#eef5f7;padding:22px}
.fam-dialog::backdrop{background:rgba(3,8,12,.7)}
.fam-dialog p{color:#a9bcc6}
.fam-banner{margin:0;padding:8px 16px;text-align:center;font-weight:800;font-size:13px;color:#062019;background:#7fe7c0}
html.family-member #family-owner{display:none}
html[data-family-role="view"] .simple-action-ev,html[data-family-role="view"] #tesla-open,html[data-family-role="view"] #bp-save{display:none!important}
html.family-member #easee-card,html.family-member #tesla-card{display:none!important}
.charger-brands button[aria-checked="true"]{background:#7fe7c0;border-color:#7fe7c0;color:#062019}
.simple-alert{display:flex;flex-direction:column;gap:12px}
.simple-alert[hidden]{display:none}
.simple-alert-btn{align-self:flex-start;min-height:44px;padding:0 18px;border-radius:12px;border:0;background:#f3cf79;color:#2a1d00;font:inherit;font-weight:800;cursor:pointer}
.simple-alert-btn[hidden]{display:none}
/* AI hero: glass card with a running LED light around the edge, first on the front page while AI is on */
@property --ai-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
.simple-auto .ai-led,.simple-auto .ai-hero-icon,.simple-auto .ai-hero-text{display:none}
.simple-auto[data-state="on"]{order:-1;position:relative;isolation:isolate;overflow:hidden;min-height:112px;padding:20px 20px 20px 18px;gap:16px;border-radius:24px;border:0;
  background:linear-gradient(140deg,rgba(23,52,44,.72),rgba(14,28,36,.82));backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);
  box-shadow:0 18px 50px -24px rgba(127,231,192,.65),inset 0 1px 0 rgba(255,255,255,.08);color:#eef5f7;font-size:16px}
.simple-auto[data-state="on"] .ai-led{display:block;position:absolute;inset:0;z-index:-1;border-radius:inherit;padding:2px;
  background:conic-gradient(from var(--ai-angle),rgba(127,231,192,0) 0deg,rgba(127,231,192,.0) 210deg,#7fe7c0 290deg,#d9fff0 320deg,#8cc9f5 345deg,rgba(127,231,192,0) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  animation:ai-led-run 4.5s linear infinite;filter:drop-shadow(0 0 6px rgba(127,231,192,.9))}
.simple-auto[data-state="on"]::after{content:"";position:absolute;inset:2px;z-index:-2;border-radius:22px;background:radial-gradient(120% 90% at 0% 0%,rgba(127,231,192,.16),transparent 60%),radial-gradient(90% 80% at 100% 100%,rgba(140,201,245,.12),transparent 60%)}
.simple-auto[data-state="on"] .simple-auto-dot,.simple-auto[data-state="on"] #simple-auto-text{display:none}
.simple-auto[data-state="on"] .ai-hero-icon{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:18px;background:radial-gradient(circle at 35% 30%,#b9ffe3,#7fe7c0 45%,#3cc79a);box-shadow:0 0 0 6px rgba(127,231,192,.12),0 0 28px rgba(127,231,192,.55);animation:ai-breathe 3.2s ease-in-out infinite}
.simple-auto[data-state="on"] .ai-hero-icon svg{width:30px;height:30px;fill:#06261c}
.simple-auto[data-state="on"] .ai-hero-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.ai-hero-kicker{font-size:11px;font-weight:800;letter-spacing:.16em;color:#7fe7c0}
.ai-hero-kicker::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#7fe7c0;box-shadow:0 0 8px #7fe7c0;vertical-align:1px;animation:ai-pulse 1.6s ease-in-out infinite}
#simple-auto-title{font-size:21px;line-height:1.2;font-weight:800;letter-spacing:-.02em;color:#f5fafc}
#simple-auto-sub{font-size:14px;color:#a9cfc1;font-weight:600}
.simple-auto[data-state="on"] .simple-auto-go{align-self:center;padding:8px 12px;border-radius:12px;background:rgba(127,231,192,.14);color:#bff5df;text-decoration:none;font-size:14px;font-weight:800}
.simple-auto[data-state="on"][data-mood="charging"] .ai-led{animation-duration:2.2s}
.simple-auto[data-state="on"][data-mood="charging"] .ai-hero-icon{animation-duration:1.6s}
@keyframes ai-led-run{to{--ai-angle:360deg}}
@keyframes ai-breathe{0%,100%{transform:scale(1);box-shadow:0 0 0 6px rgba(127,231,192,.12),0 0 24px rgba(127,231,192,.45)}50%{transform:scale(1.05);box-shadow:0 0 0 9px rgba(127,231,192,.08),0 0 36px rgba(127,231,192,.7)}}
@media (max-width:420px){.simple-auto[data-state="on"] .simple-auto-go{display:none}#simple-auto-title{font-size:19px}}
@media (prefers-reduced-motion:reduce){.simple-auto[data-state="on"] .ai-led,.simple-auto[data-state="on"] .ai-hero-icon,.ai-hero-kicker::before{animation:none}}
#simple-auto{margin:0 0 14px}
.ocpp-box{margin:6px 0 10px}
.ocpp-box code{display:block;overflow-wrap:anywhere;background:#0f1a22;border:1px solid #2c4150;border-radius:10px;padding:10px;font-size:12.5px;color:#dff5ec;margin:6px 0 8px}
.ocpp-live{margin:10px 0 0;font-weight:800;color:#f3cf79}
.ocpp-live[data-ok="true"]{color:#7fe7c0}
.charger-guide li{overflow-wrap:anywhere}
.fam-join{margin-top:14px;border-top:1px solid rgba(255,255,255,.08);padding-top:10px}
.fam-join summary{cursor:pointer;font-weight:800;color:#bfe9d8}
.fam-join input{width:100%;box-sizing:border-box;margin:8px 0;padding:11px;border-radius:10px;border:1px solid #2c4150;background:#0f1a22;color:#eaf6f1;font-size:15px}
.inapp-warning{background:rgba(243,207,121,.12);border:1px solid rgba(243,207,121,.45);border-radius:14px;padding:12px 14px;margin:0 0 12px;text-align:left}
.inapp-warning strong{color:#f3cf79;display:block;margin-bottom:4px}
.inapp-warning p{margin:0 0 10px;font-size:14px}
.inapp-warning small{display:block;margin-top:6px;overflow-wrap:anywhere}
.inapp-warning .primary-btn{text-decoration:none;display:inline-flex;align-items:center}
.fuse-switch{display:flex;align-items:center;gap:10px;font-weight:800;margin:10px 0}
.fuse-switch input{width:22px;height:22px;accent-color:#7fe7c0}
.fuse-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fuse-grid label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:#a9c3b8;font-weight:700}
.fuse-grid.is-off{opacity:.45}
.fuse-result{font-weight:800;color:#7fe7c0;margin:10px 0}
.fuse-help{margin-top:12px}.fuse-help summary{cursor:pointer;font-weight:800;color:#bfe9d8}
.fuse-help ol{padding-left:20px;margin:8px 0}.fuse-help li{margin:6px 0;font-size:14px}
.ev-profiles{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 10px}
.ev-profiles button{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #2c4150;background:#0f1a22;color:#dff5ec;font:inherit;font-weight:800;cursor:pointer}
.ev-profiles button[aria-selected="true"]{background:#7fe7c0;border-color:#7fe7c0;color:#062019}
.ev-profiles-box{margin:4px 0 14px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px}
html[data-ev-profile="p2"] #tesla-card{display:none!important}
.fuse-input{width:100%;box-sizing:border-box;margin:8px 0;padding:11px;border-radius:10px;border:1px solid #2c4150;background:#0f1a22;color:#eaf6f1;font-size:15px}
#ocpp-host{overflow-wrap:anywhere}
