/* EV log: one stylesheet, no framework. Dark first; teal = electric, amber = gas. */
@font-face {
  font-family: "Atkinson Next";
  src: url("fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-2: #e7edf0;
  --ink: #142029;
  --ink-2: #44535e;
  --ink-3: #66757f;
  --line: #d5dee3;
  --primary: #0f6e57;
  --on-primary: #ffffff;
  --volt: #0f8f6f;
  --gas: #c26a12;
  --over: #c4352f;
  --over-bg: #fbe9e7;
  --good: #187a4a;
  --focus: #2a78d6;
  --radius: 16px;
  --shadow-sheet: 0 -12px 40px rgb(16 24 30 / .18);
  --tabbar-h: 66px;
}
/* Dark is the default; Light sticks when picked on More, Auto follows the phone */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1418; --surface: #182027; --surface-2: #222c35; --ink: #edf3f6; --ink-2: #b4c1ca; --ink-3: #8795a0;
  --line: #2b3640; --primary: #46d3a6; --on-primary: #05261b; --volt: #46d3a6; --gas: #f0a54a;
  --over: #ef6b62; --over-bg: #3a1f1d; --good: #5fd39a; --focus: #6aa8f0;
  --shadow-sheet: 0 -12px 40px rgb(0 0 0 / .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0f1418; --surface: #182027; --surface-2: #222c35; --ink: #edf3f6; --ink-2: #b4c1ca; --ink-3: #8795a0;
    --line: #2b3640; --primary: #46d3a6; --on-primary: #05261b; --volt: #46d3a6; --gas: #f0a54a;
    --over: #ef6b62; --over-bg: #3a1f1d; --good: #5fd39a; --focus: #6aa8f0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.45 "Atkinson Next", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px);
}
main { max-width: 560px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stat-val, .now-big, .trow, .table, .pv b, .saved-num, .facts-list dd { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 6px) 8px 6px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.navbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); }
.navbtn svg { width: 24px; height: 24px; }
.navbtn:active { background: var(--surface-2); }
.topbar-title { text-align: center; font-weight: 700; font-size: 19px; }
.pagetitle { font-size: 26px; font-weight: 700; padding: 18px 0 10px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- home: where the trip stands ---------- */
.now, .trip-hero { padding: 22px 0 18px; }
.now-kicker { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.now-big { font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 8px 0 4px; }
.now-big span { font-size: 30px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.now-line { margin: 0 0 18px; color: var(--ink-2); }
.now-ready .now-big, .now-out .now-big { color: var(--volt); }
.trip-hero .now-big { font-size: 60px; }
.trip-hero .now-line { margin-bottom: 0; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 0 color-mix(in srgb, var(--volt) 60%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.now-alt { display: block; width: 100%; margin-top: 12px; padding: 8px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.now-alt-form { margin: 0; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0;
  background: var(--surface-2); color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-danger { background: transparent; color: var(--over); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--over) 45%, transparent); }
.btn-wide { width: 100%; }
.btn-big { min-height: 58px; font-size: 19px; border-radius: 14px; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: 10px; }

.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend, .chips legend { font-size: 15px; color: var(--ink-2); font-weight: 600; padding: 0; }
.field small { color: var(--ink-3); font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 18px;
}
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.stack { display: grid; gap: 16px; }
.alert { background: var(--over-bg); color: var(--ink); border-left: 4px solid var(--over); padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.notice { background: var(--surface); border-left: 4px solid var(--good); padding: 12px 14px; border-radius: 8px; }
.hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formgrid .full { grid-column: 1 / -1; }
.formsection { font-size: 16px; font-weight: 700; margin: 8px 0 -4px; grid-column: 1 / -1; }

/* Step forms: big and roomy, one thing per line */
.stepform { display: grid; gap: 16px; padding: 4px 0 8px; }
.step-lead { margin: 0; color: var(--ink-2); }
.step-h { font-size: 18px; margin-top: 6px; }
.step-h + .field { margin-top: -6px; }
input.odo { font-size: 26px; font-weight: 700; letter-spacing: .04em; text-align: center; min-height: 58px; }
.odo-miles { text-align: center; font-size: 16px !important; font-weight: 700; color: var(--volt) !important; min-height: 1.2em; }
.odo-miles.is-bad { color: var(--over) !important; }

/* Number boxes that have a roller: the box stays for typing, small, above the wheels */
.has-roller { text-align: center; font-weight: 700; font-size: 20px; }

/* segmented control */
.seg { border: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; min-inline-size: 0; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; text-align: center; min-height: 44px; border-radius: 9px; font-size: 17px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); }
.seg-field legend { margin-bottom: 6px; }

/* chips: one-tap choices; tap again to clear */
.chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { margin-bottom: 8px; }
.chips > div { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; }
.chips input:checked + span { background: var(--primary); color: var(--on-primary); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); }

/* optional details, folded away */
.extras { background: var(--surface); border-radius: var(--radius); }
.extras summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.extras summary::-webkit-details-marker { display: none; }
.extras summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.extras[open] summary::after { transform: rotate(-135deg); }
.extras summary small { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.extras-body { display: grid; gap: 18px; padding: 0 16px 16px; }

/* Roller: scroll-snap number wheels like Android's picker - 3 rows, the middle one picked between two lines */
.roller { display: flex; justify-content: center; align-items: center; gap: 6px; }
.wheel-box { position: relative; flex: 0 1 120px; min-width: 0; }
.wheel-box.narrow { flex-basis: 76px; }
.wheel-box::before, .wheel-box::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; border-radius: 1px; background: var(--ink-3); opacity: .55; pointer-events: none; }
.wheel-box::before { top: 47px; }
.wheel-box::after { top: 95px; }
.wheel {
  height: 144px; padding-block: 48px; box-sizing: border-box;
  overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none;
  touch-action: pan-y; -webkit-tap-highlight-color: transparent; outline-offset: -2px;
  mask-image: linear-gradient(rgb(0 0 0 / .45), #000 30%, #000 70%, rgb(0 0 0 / .45));
}
.wheel::-webkit-scrollbar { display: none; }
.wheel > div { height: 48px; display: grid; place-items: center; scroll-snap-align: center; font-size: 21px; font-variant-numeric: tabular-nums; color: var(--ink-3); cursor: pointer; user-select: none; }
.wheel > div.on { font-size: 26px; font-weight: 700; color: var(--ink); }
.roller-sep { font-size: 26px; font-weight: 700; color: var(--ink-2); }
.roller-unit { flex: 0 1 auto; min-width: 0; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink-2); }
/* With a roller the typed box shrinks to a small strip; tap it to type an exact number */
.field-rolled { grid-template-columns: 1fr 110px; align-items: center; }
.field-rolled > span { grid-column: 1; }
.field-rolled > input { grid-column: 2; grid-row: 1; min-height: 40px; padding: 4px 8px; font-size: 17px; text-align: center; }
.field-rolled > .roller { grid-column: 1 / -1; }

.preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 12px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv { display: grid; text-align: center; }
.pv b { font-size: 22px; }
.pv span { font-size: 13px; color: var(--ink-3); }
.pv:last-child b { color: var(--good); }

/* ---------- cards ---------- */
.block { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.block h2 { font-size: 18px; margin-bottom: 4px; }
.block .sub, .sub { color: var(--ink-3); font-size: 14px; margin: 0 0 12px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.block-head h2 { margin: 0; }
.more-link { font-size: 15px; font-weight: 700; color: var(--volt); text-decoration: none; }
.block-sum { font-size: 14px; color: var(--ink-3); text-align: right; }
.block-list { padding-bottom: 6px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.stat-label { font-size: 14px; color: var(--ink-2); }
.stat-val { font-size: 26px; font-weight: 700; line-height: 1.15; }
.stat-val small { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-left: 1px; }
.stat-note { font-size: 13px; color: var(--ink-3); }
.stat-good .stat-val { color: var(--good); }
.saved-hero { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.saved-num { font-size: 54px; font-weight: 800; line-height: 1; color: var(--good); letter-spacing: -.02em; }
.saved-hero p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.facts-list { margin: 8px 0 0; display: grid; }
.facts-list > div { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.facts-list > div:first-child { border-top: 0; }
.facts-list dt { color: var(--ink-3); font-size: 15px; }
.facts-list dd { margin: 0; }
.facts-list small { color: var(--ink-3); }
.foot-note { text-align: center; font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }

/* trip rows */
.trows { list-style: none; margin: 0; padding: 0; }
.trows li + li { border-top: 1px solid var(--line); }
.trow { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; }
.trow-date { display: grid; justify-items: center; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; line-height: 1.1; }
.trow-date b { font-size: 21px; color: var(--ink); }
.trow-main { display: grid; min-width: 0; }
.trow-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.trow-sub { font-size: 14px; color: var(--ink-3); }
.trow-miles { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.trow-miles b { font-size: 19px; color: var(--ink); }
.trow.is-open .trow-sub { color: var(--volt); font-weight: 600; }

/* trip edit */
details.edit > summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
details.edit[open] > summary::after { transform: rotate(-135deg); }
details.edit > summary h2 { margin: 0; }
.edit-form { margin-top: 14px; }
.delete-form { margin-top: 20px; }

/* ---------- charts ---------- */
.chart { position: relative; margin-top: 6px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); stroke: none; font-size: 11px; }
.chart .bar-miles, .chart .bar-eff, .chart .bar-a { fill: var(--volt); stroke: none; }
.chart .bar-b { fill: var(--gas); stroke: none; }
.chart .trend { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .dot-trip { fill: var(--volt); stroke: var(--surface); stroke-width: 1.5; opacity: .85; }
.chart .dot-trip.on { fill: var(--ink); opacity: 1; }
.chart .hit { fill: transparent; stroke: none; cursor: pointer; }
.chart .hover-col { fill: var(--ink); opacity: 0; }
.chart .hover-col.on { opacity: .07; }
.chart-scrub svg { touch-action: pan-y; }
.chart-key { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.chart-key .key + .key, .chart-key .key-b { margin-left: 8px; }
.key-a, .key-miles, .key-eff { background: var(--volt); }
.key-b { background: var(--gas); }
.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 140px;
  background: var(--ink); color: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 14px;
  box-shadow: 0 6px 18px rgb(0 0 0 / .3); transform: translate(-50%, calc(-100% - 10px));
}
.tip b { display: block; margin-bottom: 2px; }
.tip span { display: flex; align-items: center; gap: 6px; }
.rangepick { margin: 0 0 14px; grid-template-columns: repeat(4, 1fr); }
.rangepick a { display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-size: 15px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.rangepick a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .2); }

/* ---------- menu (More) ---------- */
.menu { list-style: none; margin: 0 0 12px; padding: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu form { margin: 0; }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.menu svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.menu small { display: block; color: var(--ink-3); font-size: 14px; }
.appearance { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; }
.appearance > span { flex: 1 1 auto; font-weight: 600; }
.appearance .seg { flex: 1 1 230px; }
.appearance .seg span { min-height: 38px; font-size: 15px; }
.place-form { margin-top: 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px); z-index: 60;
  transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px rgb(0 0 0 / .3);
}
.toast.is-error { background: var(--over); color: #fff; }
.toast.show { animation: toast-in .22s ease-out; }
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current=page] { color: var(--ink); }
.tab-step svg { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--primary); color: var(--on-primary); stroke-width: 2.4; margin-top: -12px; fill: var(--on-primary); }
.tab-step span { margin-top: -2px; color: var(--ink-2); }
@media (min-width: 600px) { .tabbar { max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; } }

/* ---------- sign in ---------- */
.login-body { padding-bottom: 0; display: grid; min-height: 100dvh; place-items: center; }
.login { width: 100%; max-width: 400px; padding: 32px 20px; }
.login-mark { width: 56px; height: 56px; }
.login h1 { font-size: 30px; margin: 12px 0 4px; }
.login-sub { color: var(--ink-2); }
.login-note { font-size: 14px; color: var(--ink-3); margin-top: 16px; }
.login-note a { color: var(--ink-2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 360px) {
  .now-big { font-size: 62px; }
  .stat-val { font-size: 22px; }
  .facts-list > div { grid-template-columns: 6.5em 1fr; }
}
.note-balance { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.quick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick button { min-height: 42px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; }
.quick button:active { background: var(--primary); color: var(--on-primary); }
.field-rolled > small { grid-column: 1 / -1; }
details.gas-months > summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
details.gas-months > summary::-webkit-details-marker { display: none; }
details.gas-months > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
details.gas-months[open] > summary::after { transform: rotate(-135deg); }
details.gas-months > summary h2 { margin: 0; }
details.gas-months[open] > summary { margin-bottom: 6px; }
.gm-list { list-style: none; margin: 0 0 12px; padding: 0; }
.gm-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.gm-list li:first-child { border-top: 0; }
.gm-list label { display: grid; }
.gm-list small { font-size: 13px; color: var(--ink-3); }
.gm-input { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink-2); }
.gm-input input { width: 92px; min-height: 42px; padding: 4px 8px; text-align: center; font-size: 17px; }
.hint a { color: var(--ink-2); font-weight: 600; }

/* ---------- planner, places, car care, screenshot ---------- */
.now-links { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 10px; }
.now-links a { padding: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-underline-offset: 3px; }
.now-links a:first-child { color: var(--volt); }
.plan-form .formgrid { gap: 12px; }
.plan-result h2 { font-size: 20px; }
.plan-levels { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.plan-levels li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "start verdict" "left left"; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 5px solid var(--ink-3); }
.pl-start { grid-area: start; color: var(--ink-2); }
.pl-start b { color: var(--ink); }
.pl-left { grid-area: left; font-size: 15px; color: var(--ink-2); }
.pl-left b { font-size: 22px; color: var(--ink); }
.pl-left small { display: block; color: var(--ink-3); font-size: 13px; }
.pl-verdict { grid-area: verdict; font-weight: 800; font-size: 15px; }
.pl-good { border-left-color: var(--good); } .pl-good .pl-verdict { color: var(--good); }
.pl-tight { border-left-color: var(--gas); } .pl-tight .pl-verdict { color: var(--gas); }
.pl-no { border-left-color: var(--over); } .pl-no .pl-verdict { color: var(--over); }

.plist, .care { list-style: none; margin: 0; padding: 0; }
.plist li + li, .care li + li { border-top: 1px solid var(--line); }
.plist summary, .care summary { list-style: none; cursor: pointer; padding: 11px 0; display: flex; gap: 12px; align-items: center; }
.plist summary::-webkit-details-marker, .care summary::-webkit-details-marker { display: none; }
.plist summary { justify-content: space-between; }
.plist summary span { font-size: 14px; color: var(--ink-3); text-align: right; }
.pform { padding: 0 0 14px; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sugg form { margin: 0; }
.chipbtn { border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 700; padding: 8px 14px; cursor: pointer; }
.chipbtn small { font-weight: 400; color: var(--ink-3); }

.care-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); }
.care-due .care-dot { background: var(--over); }
.care-soon .care-dot { background: var(--gas); }
.care-ok .care-dot { background: var(--good); }
.care-main { display: grid; min-width: 0; }
.care-main span { font-size: 14px; color: var(--ink-3); }
.care-due .care-main span { color: var(--over); font-weight: 600; }
.care-soon .care-main span { color: var(--gas); font-weight: 600; }
.care-body { display: grid; gap: 10px; padding: 0 0 14px; }
.care-edit summary { padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; }
.care-edit form { margin-top: 10px; }
a.care-card { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.shot-btn { gap: 10px; }
.shot-btn svg { width: 22px; height: 22px; }
[data-same] { justify-self: start; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 14px; min-height: 44px; }
.same-what { font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* stats: battery health and what changes efficiency */
.factor { display: grid; grid-template-columns: 9em 1fr auto; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; }
.factor-bar { height: 10px; border-radius: 5px; background: var(--surface-2); position: relative; overflow: hidden; }
.factor-bar i { position: absolute; top: 0; bottom: 0; background: var(--volt); border-radius: 5px; }
.factor-bar i.neg { background: var(--gas); }
.factor-val { font-weight: 700; white-space: nowrap; text-align: right; min-width: 4.5em; }
.factor-val small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.factor-group { font-size: 15px; font-weight: 700; margin: 12px 0 2px; color: var(--ink-2); }
.chart .line-health { stroke: var(--volt); stroke-width: 2.5; fill: none; }
.chart .dot-health { fill: var(--volt); stroke: var(--surface); stroke-width: 2; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 16px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--primary); }
.email-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.road-list { list-style: none; margin: 0; padding: 0; }
.road-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.road-list li:first-child { border-top: 0; }
.road-list span { display: grid; }
.road-list small { color: var(--ink-3); font-size: 13px; }
.road-list form { margin: 0; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); border-radius: 10px; cursor: pointer; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:active { color: var(--over); background: var(--over-bg); }
.now-links .hint { font-size: 13px; }

/* weather: chip on Home, block on More */
.wx-chip { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 -8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.wx-chip span { color: var(--ink); font-weight: 800; }
.wx-chip b { font-weight: 600; }
.wx-chip.wx-off { color: var(--volt); }
.wx-now { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.wx-temp { font-size: 44px; font-weight: 800; line-height: 1; color: var(--volt); }
.wx-what { display: grid; }
.wx-what small { color: var(--ink-3); font-size: 14px; }
.change-v { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.change-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 5px; color: var(--ink-2); font-size: 15px; }
.foot-note a { color: var(--ink-2); }
