:root {
  color-scheme: light dark;
  --bg: #f7f8f7;
  --surface: #fff;
  --text: #111814;
  --muted: #65706a;
  --line: #dce2de;
  --green: #079447;
  --green-deep: #057b3b;
  --green-soft: #e5f6ec;
  --price-selection-orange: #d97706;
  --price-selection-orange-strong: #b45309;
  --red: #ba2d38;
  --amber: #9b650b;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(11, 32, 21, .07), 0 2px 6px rgba(11, 32, 21, .04);
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Tamil Sangam MN is present on iOS. Its glyphs need a little more room than the Latin UI face. */
html:lang(ta) {
  font-family: "Tamil Sangam MN", "Noto Sans Tamil", "Nirmala UI", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 112.5%;
}

/* Preserve the Tamil scale for native editable controls on iOS. */
html:lang(ta) input,
html:lang(ta) select,
html:lang(ta) textarea {
  font-size: 1rem;
}
:root[data-theme="dark"] {
  --bg: #101511; --surface: #171d19; --text: #f3f7f4; --muted: #a7b1ab;
  --line: #303a34; --green: #25b968; --green-deep: #078542; --green-soft: #173b28;
  --price-selection-orange: #f59e0b;
  --price-selection-orange-strong: #d97706;
  --shadow: 0 16px 38px rgba(0,0,0,.28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101511; --surface: #171d19; --text: #f3f7f4; --muted: #a7b1ab;
    --line: #303a34; --green: #25b968; --green-deep: #078542; --green-soft: #173b28;
    --price-selection-orange: #f59e0b;
    --price-selection-orange-strong: #d97706;
    --shadow: 0 16px 38px rgba(0,0,0,.28);
  }
}
* { box-sizing: border-box; }
html { min-width: 320px; height: 100%; overflow: hidden; background: var(--bg); -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; }
body { min-width: 320px; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overscroll-behavior: none; touch-action: pan-x pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
input, textarea, select, [contenteditable="true"], [contenteditable="plaintext-only"] { -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }
button, input, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 38%, transparent); outline-offset: 3px; }
::selection { color: #fff; background: var(--green); }
.auth-page { min-height: 100dvh; overflow: auto; background: var(--surface); }
.auth-shell { display: grid; width: min(100%, 520px); min-height: 100dvh; grid-template-rows: auto 1fr; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); overflow: visible; background: var(--surface); }
.auth-brand { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.auth-brand-mark svg { width: 23px; fill: currentColor; }
.auth-brand > strong { font-size: 1.45rem; letter-spacing: -.03em; }
.auth-brand select { min-width: 64px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font-size: .8rem; font-weight: 750; }
.auth-content { align-self: center; padding: 42px 0 28px; }
.auth-status { position: relative; display: grid; width: 64px; height: 64px; margin-bottom: 28px; place-items: center; border: 2px solid color-mix(in srgb, var(--green) 34%, var(--line)); border-radius: 50%; color: var(--green); background: var(--green-soft); }
.auth-status span { position: absolute; width: 10px; height: 10px; top: 4px; right: 2px; border: 2px solid var(--surface); border-radius: 50%; background: var(--green); }
.auth-status svg { width: 31px; fill: currentColor; }
.auth-kicker { margin: 0 0 8px; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.auth-content h1 { margin: 0; font-size: clamp(2.25rem, 12vw, 3.6rem); line-height: .98; letter-spacing: -.045em; }
.auth-copy { max-width: 35ch; margin: 16px 0 28px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.auth-notice { margin: -8px 0 20px; padding: 12px 14px; border-left: 4px solid var(--green); color: var(--text); background: var(--green-soft); font-size: .86rem; line-height: 1.45; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { color: var(--text); font-size: .82rem; font-weight: 720; }
.auth-form input { width: 100%; min-height: 58px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--bg); font-size: 1.1rem; }
.auth-form .primary-action { margin-top: 7px; }
.auth-form .primary-action.pending > span:first-child { visibility: hidden; }
.auth-error { min-height: 18px; margin: 0; }
.auth-reassurance { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.auth-reassurance svg { width: 18px; flex: 0 0 auto; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
/* Keep the app surface clean while preserving native touch/trackpad scrolling. */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.app-shell { --shell-left-gutter: max(16px, env(safe-area-inset-left)); --shell-right-gutter: max(16px, env(safe-area-inset-right)); display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; width: min(100%, 820px); height: 100vh; height: 100dvh; margin: 0 auto; padding: 0 var(--shell-right-gutter) 0 var(--shell-left-gutter); overflow: hidden; background: var(--surface); }
.app-header { grid-row: 2; display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 4px 18px; border-bottom: 1px solid var(--line); }
.brand-area { display: grid; min-width: 0; grid-template-columns: 44px minmax(0,1fr); grid-template-rows: 26px 30px; column-gap: 12px; }
.brand-mark { display: grid; width: 44px; height: 44px; grid-row: 1 / span 2; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--green); cursor: pointer; }
.brand-mark svg { width: 23px; fill: currentColor; }
.brand-title { min-width: 0; padding: 0; border: 0; color: var(--text); background: transparent; text-align: left; font-size: clamp(1.25rem, 5vw, 1.65rem); font-weight: 700; letter-spacing: -.03em; cursor: pointer; }
.header-freshness { display: flex; min-width: 0; align-items: center; align-self: end; gap: 5px; }
.header-freshness small { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.header-refresh { display: grid; width: 28px; height: 28px; flex: 0 0 auto; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); cursor: pointer; transition: color .16s ease, border-color .16s ease, transform .16s ease; }
.header-refresh svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.header-refresh:active { color: var(--green); border-color: var(--green); transform: rotate(-40deg); }
.header-refresh[aria-busy="true"] svg { animation: spin .7s linear infinite; }
.connection-health { display: grid; flex: 0 0 116px; gap: 5px; }
.connection-link { display: grid; grid-template-columns: 15px minmax(0,1fr); align-items: center; column-gap: 5px; color: var(--muted); }
.connection-link > svg { width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.connection-link > span { display: block; min-width: 0; line-height: 1.08; }
.connection-link b { display: block; overflow: hidden; color: var(--text); font-size: .61rem; font-weight: 740; letter-spacing: .018em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.connection-link small { display: block; margin-top: 2px; overflow: hidden; color: inherit; font-size: .66rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.connection-ticker-track { display: inline-flex; width: max-content; align-items: center; transform: translate3d(var(--connection-ticker-start, 100%), 0, 0); }
.connection-ticker-message { display: inline-block; white-space: nowrap; }
.connection-ticker-track { -webkit-animation: connection-ticker var(--connection-ticker-duration, 7s) linear infinite; animation: connection-ticker var(--connection-ticker-duration, 7s) linear infinite; will-change: transform; }
@-webkit-keyframes connection-ticker { 0%, 8% { -webkit-transform: translate3d(var(--connection-ticker-start, 100%), 0, 0); } 92%, 100% { -webkit-transform: translate3d(calc(-1 * var(--connection-ticker-distance)), 0, 0); } }
@keyframes connection-ticker { 0%, 8% { transform: translate3d(var(--connection-ticker-start, 100%), 0, 0); } 92%, 100% { transform: translate3d(calc(-1 * var(--connection-ticker-distance)), 0, 0); } }
.connection-link.connected { color: var(--green); }
.connection-link.fault { color: var(--red); }
.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; }
.offline-banner { grid-row: 1; position: relative; z-index: 20; display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; margin: 0 calc(-1 * var(--shell-right-gutter)) 0 calc(-1 * var(--shell-left-gutter)); padding: max(8px, env(safe-area-inset-top)) 16px 8px; color: #332206; background: #efc36d; font-size: .78rem; font-weight: 730; }
main { grid-row: 3; min-width: 0; min-height: 0; padding: 28px 0 24px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.view { min-height: calc(100dvh - 210px); }
.idle-state, .charging-state { display: grid; gap: 20px; padding-bottom: 12px; }
.home-view { margin-top: -8px; }
.charging-state { gap: 12px; }
.ready-copy { padding: 24px 8px 12px; text-align: center; }
.ready-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 18px; place-items: center; border: 3px solid var(--green); border-radius: 50%; color: var(--green); }
.ready-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.ready-copy h1 { margin: 0; color: var(--green); font-size: clamp(1.7rem, 7vw, 2.5rem); letter-spacing: -.03em; text-transform: uppercase; }
.ready-copy p { margin: 9px 0 0; color: var(--muted); font-size: 1rem; }
.charge-panel { padding: 26px 20px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.charge-values { display: grid; grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr) 44px; align-items: center; gap: 16px; }
.charge-values > div { min-width: 0; }
.charge-values span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.charge-values strong { display: block; color: var(--green); font-size: clamp(2.3rem, 11vw, 4rem); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.03em; }
.charge-values strong b { font-weight: 660; }
.charge-values strong small { font-size: .5em; font-weight: 600; }
.value-divider { width: 1px; height: 62px; background: var(--line); }
.edit-button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--bg); cursor: pointer; }
.edit-button svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.battery { position: relative; height: 98px; margin: 28px 12px 0 0; overflow: visible; border: 6px solid currentColor; border-radius: 18px; color: var(--green); background: color-mix(in srgb, var(--line) 75%, transparent); }
.battery::after { position: absolute; width: 12px; height: 42%; top: 29%; right: -18px; border-radius: 0 7px 7px 0; background: currentColor; content: ""; }
.battery-level { position: absolute; inset: 0 auto 0 0; width: 20%; overflow: hidden; border-radius: 10px 0 0 10px; background: var(--green); }
.battery-target { position: absolute; z-index: 2; top: 0; bottom: 0; left: 80%; width: 0; border-left: 4px dashed currentColor; transform: translateX(-2px); transition: left .3s ease; }
.battery-adjustable { touch-action: none; cursor: ew-resize; }
.battery-adjustable:focus-within { outline: 3px solid color-mix(in srgb, var(--green) 38%, transparent); outline-offset: 4px; }
.battery-slider { position: absolute; z-index: 4; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; appearance: none; -webkit-appearance: none; pointer-events: none; background: transparent; }
.battery-slider::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.battery-slider::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: calc((98px - 28px) / 2); appearance: none; -webkit-appearance: none; border: 3px solid var(--surface); border-radius: 50%; background: var(--green); box-shadow: 0 1px 4px rgba(0,0,0,.24); pointer-events: auto; }
.battery-slider::-moz-range-track { height: 100%; background: transparent; }
.battery-slider::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid var(--surface); border-radius: 50%; background: var(--green); box-shadow: 0 1px 4px rgba(0,0,0,.24); pointer-events: auto; }
.battery-limit-slider::-webkit-slider-thumb { border-radius: 7px; background: var(--text); }
.battery-limit-slider::-moz-range-thumb { border-radius: 7px; background: var(--text); }
.home-control-deck { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.control-key { position: relative; display: grid; min-width: 0; min-height: 154px; align-content: center; justify-items: center; gap: 12px; padding: 16px 12px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--green) 72%,var(--line)); border-radius: var(--radius); color: #fff; text-align: center; cursor: pointer; box-shadow: 0 10px 22px rgba(3,90,42,.18); transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s ease, filter .12s ease; }
.control-key:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 6px 14px rgba(3,90,42,.16); }
.smart-key { background: var(--green); }
.start-key { background: var(--green-deep); }
.control-key-icon { display: grid; width: 54px; height: 54px; place-items: center; }
.control-key-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.start-key .control-key-icon svg { width: 43px; fill: currentColor; stroke: none; }
.control-key-copy { min-width: 0; }
.control-key-copy strong, .control-key-copy small { display: block; }
.control-key-copy strong { font-size: .88rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.control-key-copy small { margin-top: 5px; color: rgba(255,255,255,.78); font-size: .7rem; line-height: 1.3; }
.control-key:disabled { cursor: not-allowed; filter: saturate(.55); opacity: .58; }
.control-key.pending .control-key-icon, .control-key.pending .control-key-copy { visibility: hidden; }
.control-key.pending .spinner { position: absolute; display: block; align-self: center; justify-self: center; }
.future-row { display: grid; min-height: 76px; grid-template-columns: 34px minmax(0,1fr) 20px; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; background: var(--surface); cursor: pointer; }
.home-plan-banner { display: grid; min-height: 70px; grid-template-columns: 30px minmax(0,1fr) 18px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb,var(--green) 44%,var(--line)); border-radius: var(--radius); color: var(--text); background: var(--green-soft); text-align: left; cursor: pointer; }
.home-plan-banner > svg:first-child { width: 27px; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.home-plan-banner > span { min-width: 0; }
.home-plan-banner strong, .home-plan-banner small { display: block; }
.home-plan-banner strong { color: var(--green); font-size: .84rem; font-weight: 800; letter-spacing: .015em; text-transform: uppercase; }
.home-plan-banner small { margin-top: 4px; overflow: hidden; color: var(--text); font-size: .75rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.future-row > svg:first-child, .energy-detail > svg { width: 28px; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.future-row span { min-width: 0; }
.future-row strong, .future-row small { display: block; }
.future-row strong { font-size: .87rem; text-transform: uppercase; }
.future-row small { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
em, .soon-label, .nav-soon { border-radius: 5px; color: var(--muted); background: color-mix(in srgb, var(--line) 70%, transparent); font-size: .62rem; font-style: normal; font-weight: 760; letter-spacing: .03em; text-transform: uppercase; }
.future-row em { padding: 4px 7px; }
.chevron { width: 18px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.primary-action, .secondary-action { display: flex; width: 100%; min-height: 66px; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; border: 0; border-radius: var(--radius); color: #fff; background: var(--green); font-size: .95rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; cursor: pointer; }
.home-view .primary-action { box-shadow: 0 12px 26px rgba(3,90,42,.2); }
.home-cancel-plan { display: flex; width: fit-content; min-height: 42px; align-items: center; justify-self: center; gap: 7px; padding: 0 8px; border: 0; color: var(--red); background: transparent; font-size: .76rem; font-weight: 750; cursor: pointer; }
.home-cancel-plan svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.active-plan-cancel { margin: -4px auto 0; }
.primary-action > svg { width: 24px; fill: currentColor; }
.primary-action:disabled { color: rgba(255,255,255,.58); background: color-mix(in srgb, var(--green) 72%, var(--muted)); cursor: not-allowed; }
.primary-action.pending > svg { display: none; }
.spinner { display: none; width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.pending .spinner { display: block; }
.charging-panel { padding: 18px 16px; border-radius: var(--radius); color: #fff; background: var(--green-deep); box-shadow: 0 14px 32px rgba(4, 100, 47, .18); }
.charging-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; }
.charging-title .dot { color: #fff; }
.charging-panel.is-flowing .live-charge-dot { animation: charge-live-pulse 1.25s ease-in-out infinite; }
.charging-panel.is-starting .live-charge-dot { opacity: .6; }
.charging-values span, .charging-values strong { color: #fff; }
.charging-values .value-divider { background: rgba(255,255,255,.55); }
.charging-edit { border-color: rgba(255,255,255,.82); color: #fff; background: rgba(0,80,37,.2); }
.charging-battery { height: 100px; margin-top: 18px; border-width: 10px; border-radius: 25px; color: #fff; background: rgba(255,255,255,.1); }
.charging-battery::after { width: 17px; right: -26px; border-radius: 0 9px 9px 0; }
.charging-battery .battery-level { border-radius: 14px 0 0 14px; background: rgba(238,255,245,.92); }
.charging-battery .battery-target { border-left-width: 5px; }
.power-metric { margin-top: 14px; text-align: center; }
.power-metric > span { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.power-metric strong { display: flex; align-items: center; justify-content: center; gap: 10px; font-variant-numeric: tabular-nums; line-height: 1; }
.power-metric svg { width: 31px; fill: currentColor; }
.power-metric b { font-size: clamp(2.7rem, 13vw, 5rem); font-weight: 650; letter-spacing: -.035em; }
.power-metric small { align-self: flex-end; padding-bottom: 8px; font-size: 1.2rem; font-weight: 500; }
.power-starting { display: grid; width: min(100%, 248px); gap: 9px; text-align: left; font-size: 1rem; font-weight: 620; }
.power-starting-label { display: block; }
.power-progress { display: block; height: 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.54); border-radius: 4px; background: rgba(0,45,23,.22); }
.power-progress i { display: block; width: var(--power-probe-progress, 0%); height: 100%; background: #fff; transition: width 280ms cubic-bezier(.16,1,.3,1); }
.time-metrics { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.7); }
.time-metrics > div { padding: 0 14px; }
.time-metrics > div + div { border-left: 1px solid rgba(255,255,255,.6); }
.time-metrics span, .time-metrics strong { display: block; }
.time-metrics span { margin-bottom: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.time-metrics strong { font-size: clamp(1.3rem, 6vw, 2rem); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.energy-detail { display: flex; align-items: center; gap: 14px; padding: 4px 18px; }
.energy-detail > svg { width: 34px; }
.energy-detail span { display: flex; align-items: baseline; gap: 9px; }
.energy-detail small, .energy-detail strong { display: block; }
.energy-detail small { color: var(--muted); font-size: .78rem; }
.energy-detail strong { font-size: 1.2rem; font-weight: 520; font-variant-numeric: tabular-nums; }
.stop-action { min-height: 76px; }
.stop-action > svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
.stop-action .filled { fill: currentColor; stroke: none; }
.charge-editor { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-fields label > span:first-child { display: block; margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 650; }
.editor-fields label > span:last-child { display: flex; min-height: 52px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.editor-fields input { width: 100%; min-width: 0; padding: 0 4px 0 13px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 1.1rem; font-weight: 700; }
.editor-fields b { padding-right: 12px; color: var(--muted); }
.editor-help, .form-error { margin: 10px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.form-error { color: var(--red); font-weight: 700; }
.form-error:empty { display: none; }
.editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.editor-actions button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-weight: 700; }
.editor-actions button[type="submit"] { border-color: var(--green); color: #fff; background: var(--green); }
.start-confirm-dialog { width: min(calc(100% - 32px), 480px); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.24), 0 4px 12px rgba(0,0,0,.08); }
.start-confirm-dialog::backdrop { background: rgba(7, 16, 11, .58); }
.start-confirm-form { padding: 24px; }
.start-confirm-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.start-confirm-header h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.start-confirm-header p { max-width: 35ch; margin: 7px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.dialog-close { display: grid; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.dialog-close svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.password-fields { display: grid; gap: 14px; }
.password-fields label { display: grid; gap: 7px; color: var(--text); font-size: .8rem; font-weight: 680; }
.password-fields input { width: 100%; min-height: 54px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--bg); }
.settings-row .chevron { justify-self: end; }
.confirm-fields label > span:first-child { color: var(--text); font-size: .8rem; font-weight: 680; }
.confirm-fields label > span:last-child { min-height: 60px; border-color: color-mix(in srgb, var(--green) 34%, var(--line)); }
.confirm-fields input { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.confirm-actions { display: grid; grid-template-columns: .72fr 1.28fr; gap: 10px; margin-top: 20px; }
.confirm-actions button { min-height: 54px; padding: 0 15px; border-radius: 10px; font-weight: 760; cursor: pointer; }
.confirm-cancel { border: 1px solid var(--line); background: var(--surface); }
.confirm-start { display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--green); color: #fff; background: var(--green); }
.confirm-start svg { width: 20px; fill: currentColor; }
.feasibility-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feasibility-metrics > div { min-width: 0; padding: 13px 0; }
.feasibility-metrics > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.feasibility-metrics dt { color: var(--muted); font-size: .72rem; font-weight: 650; }
.feasibility-metrics dd { margin: 5px 0 0; color: var(--text); font-size: 1.25rem; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.feasibility-fastest-copy { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.feasibility-actions { display: grid; gap: 10px; margin-top: 20px; }
.feasibility-actions .confirm-start, .feasibility-actions .secondary-action { width: 100%; min-height: 54px; }
.feasibility-actions .secondary-action { min-width: 0; }
.feasibility-actions .text-button { justify-self: center; min-height: 40px; padding: 0 12px; color: var(--muted); }
.feasibility-actions .feasibility-cancel-plan { color: var(--red); }
.settings-view { margin-top: -8px; }
.insights-view { max-width: 680px; margin: -8px auto 0; }
.insights-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 0 20px; border-bottom: 1px solid var(--line); }
.insights-heading h1 { margin: 0; font-size: clamp(2rem, 9vw, 2.7rem); letter-spacing: -.04em; }
.insights-heading p, .insight-pane-heading p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.insights-display-button { display: inline-flex; min-height: 46px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--green); border-radius: 10px; color: var(--green); background: transparent; font-weight: 760; cursor: pointer; }
.insights-display-button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.9; }
.insights-display-menu { margin: 16px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.insights-display-menu > p { margin: 0 0 12px; color: var(--text); font-size: .92rem; font-weight: 720; }
.insights-view-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.insights-view-options button { min-height: 52px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); font-size: .76rem; font-weight: 720; line-height: 1.18; cursor: pointer; }
.insights-view-options button.active { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.insight-pane { padding-top: 26px; }
.insight-pane-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.insight-pane-heading h2, .insight-recent h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.insight-day-select select { min-height: 44px; max-width: 174px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font-size: .82rem; font-weight: 700; }
.insight-price-chart { position: relative; display: flex; height: 232px; align-items: end; gap: 3px; margin: 24px 0 0; padding: 0 2px 26px; overflow: hidden; border-bottom: 1px solid var(--line); touch-action: none; user-select: none; }
.insight-price-hour { position: relative; display: grid; min-width: 0; flex: 1 1 0; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 1px; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.insight-price-hour::after { position: absolute; top: calc(100% + 7px); left: 50%; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; transform: translateX(-50%); content: attr(data-label); }
.insight-price-bar { position: relative; min-width: 1px; flex: 1 1 0; height: var(--bar-height); border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.insight-price-bar.cheapest { background: var(--green); }
.insight-price-bar.selected { background-color: color-mix(in srgb, var(--price-selection-orange) 20%, var(--surface)); background-image: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--price-selection-orange-strong) 82%, var(--surface)) 0 2px, transparent 2px 6px); outline: 2px solid var(--price-selection-orange); outline-offset: 2px; box-shadow: 0 0 0 1px var(--surface); }
.insight-price-hour:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 2px; }
.insight-price-tooltip { position: absolute; z-index: 2; display: grid; width: max-content; min-width: 92px; gap: 1px; padding: 6px 8px; border-radius: 7px; color: var(--surface); background: var(--text); box-shadow: 0 7px 16px color-mix(in srgb, var(--text) 22%, transparent); font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transform: translate(-50%, 4px) scale(.97); transition: opacity 120ms ease-out, transform 120ms ease-out; visibility: hidden; }
.insight-price-chart.is-touching .insight-price-tooltip { opacity: 1; transform: translate(-50%, 0) scale(1); visibility: visible; }
.insight-price-tooltip small { color: color-mix(in srgb, var(--surface) 68%, transparent); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.insight-price-tooltip strong { color: var(--surface); font-size: .9rem; font-weight: 760; letter-spacing: -.01em; white-space: nowrap; }
.insight-price-touch { margin: 12px 0 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--green) 48%, var(--line)); border-radius: 10px; color: var(--text); background: var(--green-soft); font-variant-numeric: tabular-nums; }
.insight-price-touch-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid color-mix(in srgb, var(--green) 26%, var(--line)); }
.insight-price-touch-context span:first-child { min-width: 0; overflow: hidden; color: var(--green); font-size: .82rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.insight-price-touch-context span:last-child { flex: 0 0 auto; color: var(--muted); font-size: .72rem; font-weight: 650; }
.insight-price-touch-values { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; padding-top: 12px; }
.insight-price-touch-values > span + span { padding-left: 14px; border-left: 1px solid color-mix(in srgb, var(--green) 26%, var(--line)); }
.insight-price-touch-values small, .insight-price-touch-values strong { display: block; }
.insight-price-touch-values small { color: var(--muted); font-size: .68rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.insight-price-touch-values strong { margin-top: 4px; color: var(--text); font-size: 1.05rem; font-weight: 740; letter-spacing: -.01em; white-space: nowrap; }
.insight-price-touch-values > span:last-child strong { color: var(--green); font-size: 1.18rem; }
.insight-empty { margin: 28px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.insight-highlight { display: flex; align-items: center; gap: 14px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.insight-highlight > svg { width: 34px; fill: var(--green); }
.insight-highlight span { display: grid; gap: 3px; }
.insight-highlight small, .insight-price-stats small { color: var(--muted); font-size: .78rem; }
.insight-highlight strong { color: var(--green); font-size: 1.48rem; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.insight-highlight em { color: var(--text); font-size: .88rem; font-style: normal; font-weight: 650; }
.insight-price-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.insight-price-stats > div { min-width: 0; padding: 0 10px 16px; }
.insight-price-stats > div + div { border-left: 1px solid var(--line); }
.insight-price-stats strong { display: block; margin-top: 6px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.insight-link { display: flex; width: 100%; min-height: 58px; align-items: center; justify-content: space-between; padding: 0; border: 0; border-bottom: 1px solid var(--line); color: var(--green); background: transparent; font-size: 1rem; font-weight: 760; text-align: left; cursor: pointer; }
.insight-link svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.insight-month-spend { display: grid; width: 100%; min-height: 74px; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; margin: 22px 0 0; padding: 12px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.insight-month-spend > span, .insight-month-spend small { display: block; min-width: 0; }
.insight-month-spend > span { color: var(--muted); font-size: .87rem; }
.insight-month-spend small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.insight-month-spend strong { color: var(--green); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.insight-month-spend svg { width: 20px; fill: none; stroke: var(--green); stroke-width: 2; }
.insight-history-cta { display: grid; width: 100%; min-height: 76px; grid-template-columns: minmax(0,1fr) 24px; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--green-deep); border-radius: var(--radius); color: #fff; background: var(--green-deep); text-align: left; cursor: pointer; }
.insight-history-cta span { min-width: 0; }
.insight-history-cta strong, .insight-history-cta small { display: block; }
.insight-history-cta strong { font-size: 1rem; }
.insight-history-cta small { margin-top: 4px; color: color-mix(in srgb, #fff 76%, transparent); font-size: .78rem; }
.insight-history-cta svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.insight-recent { margin-top: 28px; }
.insight-recent h2 { margin-bottom: 8px; }
.insight-session-row { display: grid; min-height: 72px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.insight-session-row > span { min-width: 0; }
.insight-session-row strong, .insight-session-row small { display: block; }
.insight-session-row strong { font-size: .98rem; font-variant-numeric: tabular-nums; }
.insight-session-row small { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.insight-session-row > b { color: var(--green); font-size: .95rem; font-variant-numeric: tabular-nums; }
.insight-session-row.empty { display: block; min-height: auto; padding: 20px 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.last-charge { margin: 28px 0 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.last-charge > small { color: var(--green); font-size: .85rem; font-weight: 760; }
.last-charge > strong { display: block; margin-top: 8px; font-size: clamp(2.15rem, 11vw, 3.7rem); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.last-charge > span { display:block; margin-top: 8px; color: var(--muted); font-size: .98rem; }
.insight-history-list { border-top: 1px solid var(--line); }
.insight-history-list details { border-bottom: 1px solid var(--line); }
.insight-history-list summary { display: grid; min-height: 74px; grid-template-columns: minmax(0,1fr) auto 16px; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.insight-history-list summary::-webkit-details-marker { display: none; }
.insight-history-list summary > span { min-width: 0; }
.insight-history-list summary strong, .insight-history-list summary small { display: block; }
.insight-history-list summary small { margin-top: 4px; color: var(--muted); font-size: .79rem; }
.insight-history-list summary > b { color: var(--green); font-variant-numeric: tabular-nums; }
.insight-history-list summary::after { color: var(--green); font-size: 1.25rem; content: "›"; }
.insight-history-list details[open] summary::after { transform: rotate(90deg); }
.insight-session-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 0 18px; color: var(--muted); font-size: .86rem; }
.insight-session-detail b { display: block; margin-top: 4px; color: var(--text); font-variant-numeric: tabular-nums; }
.insight-cost-note { margin: 16px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.insight-period-control { display: flex; gap: 8px; margin: 22px 0 14px; }
.insight-period-control button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; font-weight: 720; cursor: pointer; }
.insight-period-control button.active { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.insight-month-rail, .insight-calendar-rail { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scroll-snap-type: x proximity; }
.insight-month-button, .insight-calendar-month { min-width: 122px; min-height: 62px; flex: 0 0 auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); text-align: left; scroll-snap-align: start; cursor: pointer; }
.insight-month-button span, .insight-month-button strong { display: block; }
.insight-month-button span { overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.insight-month-button strong { margin-top: 5px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.insight-month-button.active, .insight-calendar-month.active { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.insight-period-total { display: grid; gap: 5px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.insight-period-total small, .insight-period-total span { color: var(--muted); font-size: .84rem; }
.insight-period-total strong { color: var(--green); font-size: clamp(2rem, 10vw, 3rem); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.insight-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; }
.insight-calendar-weekday { padding: 4px 0; color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; }
.insight-calendar > i { min-height: 40px; }
.insight-calendar-day { min-height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: transparent; font-variant-numeric: tabular-nums; cursor: pointer; }
.insight-calendar-day.charged { border-color: var(--green); color: #fff; background: var(--green); }
.insight-calendar-day.active { outline: 3px solid color-mix(in srgb, var(--green) 45%, transparent); outline-offset: 2px; }
.insight-calendar-detail { min-height: 64px; margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--bg); font-size: .92rem; line-height: 1.5; }
.insight-calendar-detail strong, .insight-calendar-detail span { display: block; }
.insight-calendar-detail strong { font-size: 1rem; }
.insight-calendar-detail span { margin-top: 5px; color: var(--muted); font-size: .84rem; }
.charger-insight { margin: 28px 0; padding: 24px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.charger-insight small { color: var(--muted); font-size: .9rem; }
.charger-insight strong { display: block; margin-top: 8px; font-size: clamp(2.6rem, 14vw, 4.8rem); color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.charger-insight p { margin: 20px 0 0; color: var(--text); font-size: 1rem; line-height: 1.45; }
@media (max-width: 380px) { .insights-view-options { gap: 6px; } .insights-view-options button { font-size: .69rem; } .insight-price-chart { height: 205px; } }
.settings-view > h1 { margin: 0 0 28px; font-size: 2rem; letter-spacing: -.03em; }
.settings-section { margin-bottom: 24px; }
.settings-section h2 { margin: 0 0 6px; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.settings-row { display: grid; width: 100%; min-height: 60px; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; }
button.settings-row { cursor: pointer; }
.row-icon { display: grid; width: 34px; height: 44px; place-items: center; color: var(--green); }
.row-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.row-icon.bolt svg { fill: currentColor; stroke: none; }
.settings-row > span:nth-child(2) { min-width: 0; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { font-size: .94rem; font-weight: 560; }
.settings-row small { margin-top: 4px; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.settings-row select { width: min(112px, 34vw); max-width: 112px; min-height: 44px; padding: 0 5px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-align: right; }
.settings-row select:focus { outline: 2px solid var(--green); outline-offset: -2px; }
.settings-row select:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.settings-row em { max-width: 92px; overflow: hidden; padding: 4px 7px; text-overflow: ellipsis; white-space: nowrap; }
.settings-row[aria-busy="true"] .row-icon svg { animation: spin .7s linear infinite; }
.notification-test { display: grid; width: 100%; min-height: 64px; grid-template-columns: 28px minmax(0,1fr) 20px; align-items: center; gap: 10px; margin: 10px 0 2px; padding: 10px 12px; border: 1px solid var(--green); border-radius: 10px; color: var(--green); background: var(--green-soft); text-align: left; cursor: pointer; }
.notification-test > svg:first-child { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.notification-test > span { min-width: 0; }
.notification-test strong, .notification-test small { display: block; }
.notification-test strong { font-size: .84rem; font-weight: 720; }
.notification-test small { margin-top: 3px; color: var(--text); font-size: .72rem; line-height: 1.35; }
.notification-test .chevron { color: var(--green); }
.notification-test:disabled { border-color: var(--line); color: var(--muted); background: var(--bg); cursor: not-allowed; }
.notification-test:disabled small { color: var(--muted); }
.settings-number { display: flex; width: 100px; min-width: 100px; min-height: 44px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.settings-number input { width: 100%; min-width: 0; padding: 0 2px 0 10px; border: 0; outline: 0; color: var(--text); background: transparent; text-align: right; font-weight: 700; }
.settings-number b { padding-right: 8px; color: var(--muted); font-size: .72rem; }
.developer-banner { position: relative; display: grid; grid-template-columns: 8px minmax(0,1fr); column-gap: 9px; align-items: center; margin: -3px 0 16px; padding: 9px 50px 9px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--green-soft); }
.developer-banner > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: developer-pulse 1.5s ease-in-out infinite; }
.developer-banner strong { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.developer-banner small { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.developer-banner-close { position: absolute; top: 8px; right: 8px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); cursor: pointer; }
.developer-banner-close svg { width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.developer-banner-close:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 32%, transparent); outline-offset: 2px; }
.developer-settings { padding-top: 2px; }
.developer-settings.is-open .developer-toggle { border-bottom-color: color-mix(in srgb, var(--green) 18%, var(--line)); }
.developer-toggle input, .developer-controls input[type="checkbox"] { width: 44px; height: 26px; margin: 0; appearance: none; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; }
.developer-toggle input::after, .developer-controls input[type="checkbox"]::after { display: block; width: 20px; height: 20px; margin: 2px; border-radius: 50%; background: var(--muted); content: ""; transition: transform .16s ease, background .16s ease; }
.developer-toggle input:checked, .developer-controls input[type="checkbox"]:checked { border-color: var(--green); background: var(--green); }
.developer-toggle input:checked::after, .developer-controls input[type="checkbox"]:checked::after { transform: translateX(18px); background: #fff; }
.developer-controls { display: grid; gap: 10px; margin: 10px 0 3px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.developer-controls > p { margin: 0 0 2px; color: var(--muted); font-size: .78rem; line-height: 1.42; }
.developer-controls > label { display: grid; min-height: 46px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; color: var(--text); font-size: .9rem; font-weight: 600; }
.developer-controls .developer-clock { grid-template-columns: 1fr; align-items: start; }
.developer-clock input { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font: inherit; }
.developer-time-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.developer-time-actions button { min-height: 44px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--green); background: var(--surface); font: inherit; font-size: .76rem; font-weight: 700; line-height: 1.15; cursor: pointer; }
.developer-time-actions button:focus-visible, .developer-toggle input:focus-visible, .developer-controls input:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 32%, transparent); outline-offset: 2px; }
@keyframes developer-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .developer-banner > span { animation: none; } .developer-toggle input::after, .developer-controls input[type="checkbox"]::after { transition: none; } }
@media (max-width: 480px) {
  .developer-banner { margin-bottom: 12px; padding-right: 46px; }
  .developer-controls { padding: 10px; }
  .developer-controls > label { gap: 10px; }
  .developer-time-actions { gap: 6px; }
}
.check { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-style: normal; }
.reset-button { min-height: 44px; margin-top: 8px; padding: 0; border: 0; color: var(--red); background: transparent; cursor: pointer; }
.version { color: var(--muted); font-size: .72rem; }
.soon-view { display: grid; align-content: center; justify-items: center; padding: 40px 20px; text-align: center; }
.soon-illustration { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.soon-illustration svg { width: 36px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.soon-view h1 { margin: 24px 0 8px; font-size: 2rem; letter-spacing: -.03em; }
.soon-view p { max-width: 35ch; margin: 0; color: var(--muted); line-height: 1.55; }
.soon-label { margin: 18px 0 30px; padding: 6px 9px; }
.secondary-action { width: auto; min-width: 180px; color: var(--green); border: 1px solid var(--green); background: transparent; }
.schedule-view { max-width: 680px; margin: -8px auto 0; padding-bottom: 20px; }
.schedule-view.planner-active > .view-heading { display: none; }
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.view-heading h1 { margin: 2px 0 0; font-size: 2rem; letter-spacing: -.035em; }
.view-heading > p { margin: 0 0 4px; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.view-heading > p strong { display: block; margin-top: 2px; color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums; }
.schedule-empty { display: grid; min-height: min(570px,calc(100dvh - 290px)); align-content: center; gap: 28px; }
.plan-list { margin: 0 0 16px; border-top: 1px solid var(--line); }
.plan-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 14px 0 9px; }
.plan-list-heading h2 { margin: 0; font-size: 1.08rem; }
.plan-list-heading p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.plan-list-item { display: flex; width: 100%; min-height: 58px; align-items: center; gap: 9px; padding: 11px 0; border: 0; border-top: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.plan-list-item i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.plan-list-item strong, .plan-list-item small { display:block; }
.plan-list-item strong { font-size: .9rem; }
.plan-list-item small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.plan-list-item svg { width: 18px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; }
.schedule-intro { max-width: 420px; margin: 0 auto; text-align: center; }
.schedule-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 18px; place-items: center; border: 2px solid var(--green); border-radius: 50%; color: var(--green); background: var(--green-soft); }
.schedule-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.schedule-intro h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.schedule-intro p { margin: 9px auto 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.schedule-entry-actions { display: grid; gap: 10px; }
.schedule-entry-actions .secondary-action { min-height: 58px; min-width: 0; border-color: var(--line); color: var(--text); }
.schedule-view button:disabled { cursor: not-allowed; opacity: 1; }
.schedule-view .primary-action:disabled { border: 1px solid color-mix(in srgb,var(--green) 45%,var(--line)); color: color-mix(in srgb,var(--text) 68%,var(--surface)); background: color-mix(in srgb,var(--green) 32%,var(--surface)); }
.schedule-view .secondary-action:disabled, .schedule-view .text-button:disabled { color: var(--muted); background: var(--bg); }
.schedule-offline-note { margin: -16px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }
.schedule-form { min-width: 0; padding: 0; background: var(--surface); }
.form-heading, .plan-status-header, .timeline-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.form-heading { min-height: 52px; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-title-row { display: flex; min-width: 0; align-items: center; gap: 10px; }
.form-heading h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.025em; }
.step-indicator { display: block; margin-bottom: 2px; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.step-back { display: grid; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); cursor: pointer; }
.step-back svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.text-button { min-height: 44px; padding: 0 4px; border: 0; color: var(--green); background: transparent; font-size: .8rem; font-weight: 750; cursor: pointer; }
.text-button.danger { color: var(--red); }
.smart-fields { min-width: 0; }
.manual-fields { display: grid; grid-template-columns: 1fr; gap: 10px; }
.smart-step { display: grid; min-width: 0; gap: 14px; animation: smart-step-in .18s cubic-bezier(.2,.8,.2,1); }
.mode-step { align-content: start; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.field.wide, .mode-fieldset.wide { grid-column: 1/-1; }
.field input { width: 100%; min-height: 50px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--bg); font-variant-numeric: tabular-nums; }
.manual-time-dock { position: relative; display: grid; min-height: 92px; align-content: center; padding: 12px 54px 12px 15px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: var(--bg); cursor: pointer; }
.manual-time-dock > span { color: var(--muted); font-size: .68rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.manual-time-dock strong { margin-top: 2px; color: var(--green); font-size: 1.85rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.manual-time-dock small { margin-top: 4px; color: var(--muted); font-size: .74rem; }
.manual-time-dock > svg { position: absolute; top: 50%; right: 17px; width: 22px; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transform: translateY(-50%); }
.manual-time-dock input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.manual-stop-toggle { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: var(--surface); cursor: pointer; }
.manual-stop-toggle > span { display: grid; gap: 4px; min-width: 0; }
.manual-stop-toggle strong { font-size: .98rem; line-height: 1.2; }
.manual-stop-toggle small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.manual-stop-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.manual-stop-toggle i { position: relative; width: 46px; height: 28px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .15s ease, background .15s ease; }
.manual-stop-toggle i::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); content: ""; transition: transform .15s ease, background .15s ease; }
.manual-stop-toggle input:checked + i { border-color: var(--green); background: var(--green-soft); }
.manual-stop-toggle:has(input:checked) { border-color: color-mix(in srgb,var(--green) 52%,var(--line)); background: color-mix(in srgb,var(--green-soft) 42%,var(--surface)); }
.manual-stop-toggle input:checked + i::after { background: var(--green); transform: translateX(18px); }
.manual-stop-toggle input:focus-visible + i { outline: 3px solid color-mix(in srgb,var(--green) 38%,transparent); outline-offset: 3px; }
.manual-time-note { margin: 1px 2px 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.mode-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.mode-fieldset legend { margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.mode-key-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-key { position: relative; min-width: 0; }
.mode-key input { position: absolute; opacity: 0; }
.mode-key > span { display: grid; min-height: 190px; align-content: start; gap: 7px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; box-shadow: 0 5px 12px rgba(11,32,21,.04); transition: transform .12s cubic-bezier(.2,.8,.2,1), border-color .12s ease, background .12s ease; }
.mode-key > span:active { transform: translateY(2px); }
.mode-key input:checked + span { border-color: var(--green); color: var(--green); background: var(--green-soft); box-shadow: 0 6px 16px rgba(3,90,42,.11); }
.mode-key input:focus-visible + span { outline: 3px solid color-mix(in srgb,var(--green) 38%,transparent); outline-offset: 3px; }
.mode-key svg { width: 34px; height: 34px; margin-bottom: 3px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.mode-key b, .mode-key small, .mode-key i { display: block; }
.mode-key b { color: var(--text); font-size: .95rem; }
.mode-key small { min-height: 45px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.mode-key i { align-self: end; margin-top: 4px; color: var(--green); font-size: .62rem; font-style: normal; font-weight: 760; text-transform: uppercase; }
.interval-note { display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 2px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.interval-note svg { width: 22px; flex: 0 0 auto; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.schedule-next { margin-top: 2px; }
.schedule-next svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.departure-dock { position: relative; display: grid; min-height: 128px; align-content: center; justify-items: center; padding: 14px 56px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--green) 40%,var(--line)); border-radius: var(--radius); color: var(--green); background: var(--green-soft); cursor: pointer; }
.departure-dock > span { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.departure-dock strong { margin-top: 2px; font-size: clamp(2.8rem,14vw,4.6rem); font-weight: 690; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1; }
.departure-dock small { margin-top: 5px; color: var(--muted); font-size: .78rem; }
.departure-dock > svg { position: absolute; top: 50%; right: 18px; width: 23px; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transform: translateY(-50%); }
.departure-dock input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.time-adjustments { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.time-adjustments button, .day-shortcuts button { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); font-weight: 680; cursor: pointer; }
.time-adjustments button { font-variant-numeric: tabular-nums; }
.time-adjustments button span { margin-right: 4px; color: var(--green); font-size: 1.25rem; line-height: 0; }
.day-shortcuts { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.day-shortcuts button { min-width: 0; min-height: 44px; padding: 6px 7px; color: var(--muted); font-size: .7rem; }
.day-shortcuts button.active { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.price-preview { min-width: 0; padding: 13px 13px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.price-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.price-preview-heading h3 { margin: 0; font-size: .85rem; }
.price-preview-heading p { margin: 3px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.3; }
.price-preview-heading > span { color: var(--muted); font-size: .6rem; font-weight: 720; text-transform: uppercase; }
.price-preview-axis { display: flex; justify-content: space-between; margin-top: 11px; color: var(--muted); font-size: .6rem; font-variant-numeric: tabular-nums; }
.price-rail { display: flex; height: 62px; align-items: flex-end; gap: 2px; margin-top: 5px; overflow: hidden; border-bottom: 1px solid var(--line); }
.price-bar { min-width: 2px; flex: 1 1 0; height: var(--bar-height,28%); border-radius: 2px 2px 0 0; background: color-mix(in srgb,var(--muted) 48%,var(--line)); }
.price-bar.selected { background: var(--green); }
.price-bar.loading { height: var(--bar-height,35%); animation: price-loading 1.2s ease-in-out infinite alternate; }
.schedule-context-line { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; padding: 8px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.repeat-plan { margin: 12px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.repeat-plan summary { display:flex; min-height:48px; align-items:center; justify-content:space-between; list-style:none; cursor:pointer; font-size:.82rem; font-weight:750; }
.repeat-plan summary::-webkit-details-marker { display:none; }
.repeat-plan summary small { color:var(--muted); font-size:.7rem; font-weight:500; }
.repeat-plan fieldset { display:flex; flex-wrap:wrap; gap:5px; margin:0; padding:0 0 12px; border:0; }
.repeat-plan label { position:relative; min-width:38px; text-align:center; }
.repeat-plan input { position:absolute; opacity:0; inset:0; }
.repeat-plan span { display:block; padding:8px 4px; border:1px solid var(--line); border-radius:6px; color:var(--muted); font-size:.68rem; }
.repeat-plan input:checked + span { border-color:var(--green); color:var(--green); background:var(--green-soft); }
.reuse-plan { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px; align-items:start; margin:0 0 14px; padding:12px; border:1px solid color-mix(in srgb,var(--green) 45%,var(--line)); border-radius:10px; background:var(--green-soft); }
.reuse-plan-icon { color:var(--green); font-size:1.45rem; line-height:1; }
.reuse-plan p { margin:0; color:var(--muted); font-size:.73rem; line-height:1.35; }
.reuse-plan h3 { margin:2px 0 4px; font-size:.94rem; }
.reuse-plan .primary-action, .reuse-plan .text-button { grid-column:2; width:100%; min-height:42px; }
.schedule-context-line b { color: var(--text); }
.schedule-context-line i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.segmented-control label { position: relative; min-width: 0; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { display: grid; min-height: 60px; align-content: center; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.segmented-control input:checked + span { border-color: color-mix(in srgb,var(--green) 45%,var(--line)); color: var(--green); background: var(--surface); box-shadow: 0 2px 7px rgba(0,0,0,.05); }
.segmented-control input:focus-visible + span { outline: 3px solid color-mix(in srgb,var(--green) 38%,transparent); }
.segmented-control b, .segmented-control small { display: block; }
.segmented-control b { font-size: .82rem; }
.segmented-control small { margin-top: 3px; color: var(--muted); font-size: .65rem; line-height: 1.25; }
.schedule-manual-context { margin-top: 4px; }
.schedule-submit { min-height: 58px; margin-top: 12px; }
.active-plan { display: grid; min-width: 0; max-width: 100%; gap: 14px; }
.plan-status-header { padding: 18px; border: 1px solid color-mix(in srgb,var(--green) 32%,var(--line)); border-radius: var(--radius); background: var(--green-soft); }
.plan-status { display: inline-block; margin-bottom: 5px; color: var(--green); font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.plan-status-header h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.03em; }
.plan-status-header p { margin: 6px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.icon-button { display: grid; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; place-items: center; border: 1px solid color-mix(in srgb,var(--green) 35%,var(--line)); border-radius: 9px; color: var(--green); background: var(--surface); cursor: pointer; }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.plan-waiting { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; padding: 15px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-waiting-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.plan-waiting-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.plan-waiting h3 { margin: 0; font-size: .92rem; }
.plan-waiting p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.plan-metrics { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-metrics > div { padding: 13px 10px; }
.plan-metrics > div + div { border-left: 1px solid var(--line); }
.plan-metrics small, .plan-metrics strong { display: block; }
.plan-metrics small { color: var(--muted); font-size: .62rem; line-height: 1.25; }
.plan-metrics strong { margin-top: 4px; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cost-note { margin: -9px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.4; }
.timeline-section { width: 100%; min-width: 0; max-width: 100%; padding: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.timeline-heading h3 { margin: 0; font-size: .95rem; }
.timeline-heading p { margin: 4px 0 0; color: var(--muted); font-size: .66rem; }
.timeline-legend { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .62rem; }
.timeline-legend i { width: 9px; height: 9px; background: var(--green); }
.price-timeline { display: grid; width: 100%; min-width: 0; max-width: 100%; grid-auto-columns: 42px; grid-auto-flow: column; gap: 3px; margin-top: 11px; padding-bottom: 5px; overflow-x: auto; overscroll-behavior-x: contain; }
.price-timeline.timeline-compact { grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); grid-auto-columns: auto; grid-auto-flow: row; overflow: visible; }
.timeline-slot { display: grid; min-height: 58px; align-content: end; gap: 3px; padding: 5px 2px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--bg); text-align: center; font-size: .54rem; cursor: pointer; }
.timeline-slot.selected { border-color: var(--green); color: #fff; background: var(--green); }
.timeline-slot.pinned { outline: 2px solid color-mix(in srgb,var(--green) 38%,transparent); outline-offset: 1px; }
.timeline-slot:disabled { cursor: default; opacity: .64; }
.timeline-slot b { font-size: .65rem; font-variant-numeric: tabular-nums; }
.charging-windows { display: grid; gap: 6px; margin-top: 12px; }
.charging-window { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid color-mix(in srgb,var(--green) 28%,var(--line)); border-radius: 9px; color: var(--text); background: var(--green-soft); font-size: .74rem; }
.charging-window b { font-variant-numeric: tabular-nums; }
.fixed-time-plan { padding: 0; border: 0; border-radius: 0; overflow: visible; }
.fixed-time-plan .timeline-heading { display: none; }
.fixed-time-plan .charging-windows { margin: 0; }
.fixed-time-plan .charging-window { min-height: 58px; padding: 14px 15px; border-color: color-mix(in srgb,var(--green) 42%,var(--line)); border-radius: var(--radius); font-size: .88rem; }
.plan-warning { margin: 0; padding: 11px 13px; border: 1px solid color-mix(in srgb,var(--amber) 55%,var(--line)); border-radius: var(--radius); color: var(--text); background: color-mix(in srgb,var(--amber) 12%,transparent); font-size: .72rem; line-height: 1.45; }
.plan-adaptation { margin: -4px 0 16px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line)); border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: .8rem; font-weight: 650; line-height: 1.4; }
.plan-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.plan-actions .secondary-action { min-width: 0; min-height: 50px; }
@media (max-width: 420px) {
  .field.wide, .mode-fieldset.wide { grid-column: auto; }
}
@keyframes smart-step-in { from { transform: translateX(12px); opacity: .35; } }
@keyframes price-loading { from { opacity: .35; } to { opacity: .85; } }
@keyframes charge-live-pulse { 0%,100% { opacity: .45; transform: scale(.76); } 50% { opacity: 1; transform: scale(1.1); } }
.bottom-nav { grid-row: 4; position: relative; z-index: 10; display: grid; grid-template-columns: repeat(4,1fr); min-width: 0; min-height: calc(76px + env(safe-area-inset-bottom)); margin: 0 calc(-1 * var(--shell-right-gutter)) 0 calc(-1 * var(--shell-left-gutter)); padding: 9px max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--surface); }
.bottom-nav button { position: relative; display: grid; min-width: 0; min-height: 56px; place-content: center; justify-items: center; gap: 4px; padding: 3px; border: 0; color: #8a938e; background: transparent; font-size: .66rem; cursor: pointer; }
.bottom-nav button.active { color: var(--green); }
.bottom-nav svg { width: 25px; height: 25px; fill: currentColor; stroke: currentColor; stroke-width: 1.4; }
.bottom-nav .nav-soon { position: absolute; top: 0; right: 5%; padding: 2px 4px; font-size: .48rem; }
.toast-region { position: fixed; z-index: 30; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); left: 16px; display: grid; justify-items: center; pointer-events: none; }
.toast { width: min(100%,420px); padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); box-shadow: 0 16px 40px rgba(0,0,0,.16); font-size: .8rem; font-weight: 650; animation: toast-in .2s cubic-bezier(.2,.8,.2,1); }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { transform: translateY(8px); opacity: .2; } }
@media (min-width: 700px) {
  .app-shell { --shell-left-gutter: 40px; --shell-right-gutter: 40px; padding-right: 40px; padding-left: 40px; box-shadow: 0 0 50px rgba(0,0,0,.06); }
  .idle-state { grid-template-columns: 1fr 1fr; align-items: start; }
  .ready-copy, .idle-charge-panel, .idle-state [data-charge-editor], .home-control-deck { grid-column: 1/-1; }
  .home-control-deck { max-width: 620px; width: 100%; justify-self: center; }
  .home-view { margin-top: 0; }
  .charging-state { gap: 20px; }
  .charging-panel { padding: 30px 34px; }
  .charging-title { margin-bottom: 28px; }
  .charging-battery { height: 142px; margin-top: 30px; }
  .power-metric { margin-top: 26px; }
  .time-metrics { margin-top: 24px; padding-top: 22px; }
  .settings-view { max-width: 680px; margin: 0 auto; }
}
@media (max-width: 390px) {
  .app-shell { --shell-left-gutter: 13px; --shell-right-gutter: 13px; padding-right: 13px; padding-left: 13px; }
  .charge-panel, .charging-panel { padding-right: 16px; padding-left: 16px; }
  .charge-values { grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr) 40px; gap: 10px; }
  .charge-values span { font-size: .62rem; }
  .charging-battery { height: 125px; }
  .future-row { padding-right: 12px; padding-left: 12px; }
  .control-key { min-height: 144px; padding-right: 9px; padding-left: 9px; }
  .control-key-copy strong { font-size: .8rem; }
  .mode-key > span { min-height: 184px; padding-right: 12px; padding-left: 12px; }
  .schedule-context-line { gap: 7px; padding-right: 4px; padding-left: 4px; font-size: .64rem; }
}
@media (max-width: 520px) {
  .start-confirm-dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: calc(100dvh - max(24px, env(safe-area-inset-top))); margin: 0; border-radius: 16px 16px 0 0; }
  .start-confirm-form { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) and (max-height: 900px) {
  .app-header { min-height: 58px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark svg { width: 21px; }
  main { padding-top: 14px; }
  .home-view { margin-top: 0; }
  .idle-state, .charging-state { gap: 12px; padding-bottom: 0; }
  .ready-copy { padding: 12px 8px 6px; }
  .ready-icon { width: 42px; height: 42px; margin-bottom: 10px; }
  .ready-copy h1 { font-size: 1.55rem; }
  .ready-copy p { margin-top: 5px; font-size: .9rem; }
  .idle-charge-panel { padding: 20px 16px 22px; }
  .idle-battery { height: 82px; margin-top: 18px; }
  .home-control-deck { gap: 8px; }
  .control-key { min-height: 126px; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .control-key-icon { width: 42px; height: 42px; }
  .control-key-icon svg { width: 38px; height: 38px; }
  .start-key .control-key-icon svg { width: 35px; }
  .control-key-copy small { margin-top: 3px; font-size: .65rem; }
  .charging-state { gap: 10px; }
  .charging-panel { padding: 16px 15px; }
  .charging-title { margin-bottom: 12px; font-size: .9rem; }
  .charging-values { gap: 10px; }
  .charging-values span { margin-bottom: 5px; font-size: .66rem; }
  .charging-values strong { font-size: clamp(2rem, 10vw, 2.7rem); }
  .charging-values .value-divider { height: 50px; }
  .charging-battery { height: 90px; margin: 14px 18px 0 0; border-width: 8px; border-radius: 21px; }
  .charging-battery::after { width: 14px; right: -22px; }
  .power-metric { margin-top: 10px; }
  .power-metric > span { margin-bottom: 3px; font-size: .64rem; }
  .power-metric svg { width: 25px; }
  .power-metric b { font-size: 2.7rem; }
  .power-metric small { padding-bottom: 4px; font-size: 1rem; }
  .time-metrics { margin-top: 10px; padding-top: 10px; }
  .time-metrics > div { padding: 0 10px; }
  .time-metrics span { margin-bottom: 4px; font-size: .65rem; }
  .time-metrics strong { font-size: 1.45rem; }
  .energy-detail { min-height: 40px; padding: 0 14px; }
  .energy-detail > svg { width: 28px; }
  .energy-detail small { font-size: .7rem; }
  .energy-detail strong { font-size: 1rem; }
  .future-row { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .future-row > svg:first-child { width: 25px; }
  .future-row small { margin-top: 3px; font-size: .7rem; }
  .stop-action { min-height: 66px; }
  .schedule-view.planner-active { margin-top: 0; }
  .form-heading { min-height: 46px; margin-bottom: 10px; padding-bottom: 8px; }
  .form-heading h2 { font-size: 1.2rem; }
  .smart-step { gap: 10px; }
  .mode-key > span { min-height: 170px; padding-top: 14px; padding-bottom: 14px; }
  .departure-dock { min-height: 104px; padding-top: 9px; padding-bottom: 9px; }
  .departure-dock strong { font-size: 2.85rem; }
  .time-adjustments button { min-height: 44px; }
  .price-preview { padding-top: 10px; padding-bottom: 8px; }
  .price-rail { height: 50px; }
  .manual-time-dock { min-height: 78px; padding-top: 9px; padding-bottom: 9px; }
  .manual-time-dock strong { font-size: 1.6rem; }
  .manual-time-note { font-size: .68rem; }
  .schedule-submit { min-height: 54px; margin-top: 8px; }
  .bottom-nav { min-height: calc(70px + env(safe-area-inset-bottom)); padding-top: 6px; }
  .bottom-nav button { min-height: 50px; }
  .bottom-nav svg { width: 23px; height: 23px; }
}
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px; }
}

/* Tamil stays at the larger reading scale without truncating household controls. */
html:lang(ta) :is(button, label, p, small, strong, b, em, span, h1, h2, h3) {
  min-width: 0;
  overflow-wrap: anywhere;
}
html:lang(ta) :is(.home-plan-banner small, .future-row small, .insight-price-touch-context span:first-child, .insight-month-button span, .view-heading > p, .schedule-context-line) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
html:lang(ta) .auth-brand select { min-width: 84px; }
html:lang(ta) .app-header { flex-wrap: nowrap; gap: 8px; }
html:lang(ta) .brand-area { flex: 1 1 0; grid-template-rows: 26px 28px; }
html:lang(ta) .connection-health { flex: 0 0 112px; min-width: 112px; gap: 4px; }
html:lang(ta) .header-freshness { min-height: 28px; align-items: center; }
html:lang(ta) .header-freshness small { overflow: hidden; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
html:lang(ta) .connection-link { grid-template-columns: 14px minmax(0, 1fr); column-gap: 4px; }
html:lang(ta) .connection-link > svg { width: 14px; }
html:lang(ta) .connection-link b { overflow: hidden; font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
html:lang(ta) .connection-link small { overflow: hidden; margin-top: 1px; font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
html:lang(ta) .connection-link b,
html:lang(ta) .charge-values span,
html:lang(ta) .control-key-copy strong,
html:lang(ta) .charging-title,
html:lang(ta) .power-metric > span,
html:lang(ta) .time-metrics span,
html:lang(ta) .settings-section h2,
html:lang(ta) .step-indicator,
html:lang(ta) .departure-dock > span,
html:lang(ta) .plan-status,
html:lang(ta) .insight-price-touch-values small {
  letter-spacing: normal;
  text-transform: none;
}
html:lang(ta) .insights-heading,
html:lang(ta) .insight-pane-heading,
html:lang(ta) .view-heading,
html:lang(ta) .form-heading,
html:lang(ta) .plan-status-header,
html:lang(ta) .timeline-heading,
html:lang(ta) .price-preview-heading,
html:lang(ta) .charging-window,
html:lang(ta) .plan-actions {
  flex-wrap: wrap;
}
html:lang(ta) .insights-display-button {
  max-width: 48%;
  min-height: 52px;
  justify-content: center;
  line-height: 1.25;
  text-align: center;
}
html:lang(ta) .insight-price-touch-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
html:lang(ta) .insight-price-touch-values,
html:lang(ta) .confirm-actions,
html:lang(ta) .plan-actions {
  grid-template-columns: 1fr;
}
html:lang(ta) .insight-price-touch-values > span + span {
  padding-top: 12px;
  padding-left: 0;
  border-top: 1px solid color-mix(in srgb, var(--green) 26%, var(--line));
  border-left: 0;
}
html:lang(ta) .schedule-context-line {
  flex-wrap: wrap;
  row-gap: 3px;
  line-height: 1.35;
  text-align: center;
}
html:lang(ta) .repeat-plan label {
  flex: 1 1 42px;
  min-width: 42px;
}
html:lang(ta) .settings-row em {
  width: auto;
  max-width: min(112px, 30vw);
  justify-self: end;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  text-align: right;
}
html:lang(ta) .price-preview-heading > span {
  flex: 0 0 auto;
  max-width: 42%;
  line-height: 1.3;
  text-align: right;
}
html:lang(ta) .mode-key > span,
html:lang(ta) .control-key,
html:lang(ta) .future-row,
html:lang(ta) .home-plan-banner,
html:lang(ta) .notification-test,
html:lang(ta) .insight-history-cta,
html:lang(ta) .plan-list-item,
html:lang(ta) .plan-waiting,
html:lang(ta) .charging-window {
  height: auto;
}
@media (max-width: 390px) {
  html:lang(ta) .connection-health { flex-basis: 104px; min-width: 104px; }
  html:lang(ta) .control-key,
  html:lang(ta) .mode-key > span { padding-right: 8px; padding-left: 8px; }
  html:lang(ta) .time-adjustments,
  html:lang(ta) .day-shortcuts { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .connection-ticker-track { animation: none; transform: none; }
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
