/* Tesla-like dark UI. Brand hex #6B3FD9 stays in the file and is not used as a fill.
   Satoshi is loaded from Fontshare (weights 300 and 400). system-ui is the fallback. */
:root {
  --bg: #000;
  --bg-raised: #171A20;
  --card: #1F2228;
  --ink: #F4F4F4;
  --text: #E6E6E6;
  --muted: #8E8E93;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --brand: #6B3FD9;
  --danger: #ff6b61;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 "Satoshi", system-ui, sans-serif;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #000;
  position: sticky;
  top: 0;
  z-index: 40;
}

body.auth .top { display: none; }
body.auth main { padding-top: 2.75rem; }

.brand-row { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-icon { width: 28px; height: 28px; flex: none; }
.brand-word { height: 22px; width: auto; max-width: 42vw; }
.tag {
  display: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
  white-space: nowrap;
}

.lockup {
  display: block;
  width: min(100%, 15rem);
  height: auto;
  margin: 0.25rem 0 1.75rem;
}

.icon, .icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon { width: 22px; height: 22px; flex: none; display: block; }
.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.with-icon .icon { width: 18px; height: 18px; }

nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 0;
  margin: 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  padding: 0.3rem 0.2rem calc(0.4rem + env(safe-area-inset-bottom));
}
nav form { margin: 0; display: flex; }
nav a, nav button.linkish {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.2rem 0.15rem;
  font: inherit;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-width: 4.4rem;
  min-height: 48px;
}
nav a.active { color: var(--ink); }
nav a:hover, nav button.linkish:hover { color: var(--ink); text-decoration: none; }

body:has(nav) .foot { padding-bottom: 5.6rem; }

main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.5rem;
}

h1, h2, legend { font-weight: 300; color: #fff; letter-spacing: -0.03em; }
h1 { font-size: 2.125rem; line-height: 1.12; margin: 0 0 0.7rem; }
h2 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 0.7rem; }
strong { font-weight: 400; }
p { margin: 0 0 1rem; }
.lede {
  margin: 0 0 1.6rem;
  color: #A7A8AB;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.45;
}

form { margin: 0; }
fieldset {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  margin: 0 0 1.5rem;
  padding: 0 0 0.35rem;
  min-inline-size: 0;
}
legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.choice {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  margin: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}
.choice > span { flex: 1; min-width: 0; order: 1; }
.choice input { order: 2; }
.choice input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0 0 0 auto;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: transparent;
  cursor: pointer;
}
.choice input[type="radio"]:checked {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 0 5px, transparent 5.5px);
}
.choice:has(input:checked) strong { color: #fff; }

fieldset .choice,
section .choice {
  margin-left: -1.1rem;
  margin-right: -1.1rem;
  border-top: 1px solid var(--line);
}
fieldset .choice:last-of-type { margin-bottom: -0.15rem; }

/* Onboarding pickers sit directly in the form, so the form is the card. */
form:not(section form):has(> .choice) {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 1rem;
  margin: 0 0 1rem;
}
form:not(section form):has(> .choice) .choice {
  margin: 0;
  border-top: 1px solid var(--line);
}
form:not(section form):has(> .choice) .choice:first-of-type { border-top: 0; }
form:not(section form):has(> .choice) button[type="submit"] {
  width: calc(100% - 2.2rem);
  margin-left: 1.1rem;
  margin-right: 1.1rem;
}

/* Operating mode is the one purple switch. */
.mode .choice input[type="radio"] {
  position: relative;
  width: 51px;
  height: 31px;
  border: 0;
  border-radius: 999px;
  background: #393C41;
}
.mode .choice input[type="radio"]::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.18s ease;
}
.mode .choice input[type="radio"]:checked {
  background: #F4F4F4;
}
.mode .choice input[type="radio"]:checked::after {
  background: #171A20;
}
.mode .choice input[type="radio"]:checked::after { transform: translateX(20px); }

.hint, .meta { display: block; color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.meta { margin-top: 0.35rem; font-size: 0.82rem; }
.pill {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #C6C6C8;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.15rem;
}

label.stack {
  display: block;
  margin: 0 0 0.35rem;
  color: #A7A8AB;
  font-size: 0.82rem;
  font-weight: 400;
}

input[type="email"],
input[type="text"],
input[type="tel"],
input[type="time"],
input[type="password"],
input[type="number"] {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0.2rem 0 0.95rem;
  padding: 0.85rem 0.9rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--bg-raised) inset;
  caret-color: var(--ink);
}
::placeholder { color: #6f7278; }

.threshold label.stack,
.threshold .pending { text-align: center; }
.threshold input[type="number"] {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.045em;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0.1rem 0 0.15rem;
  padding: 0;
  min-height: 0;
  line-height: 1;
}
.threshold input[type="number"]:focus { outline: none; }
.threshold-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 2px;
  margin: 1.1rem 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4f4f4 var(--pct, 55%), #3a3d44 var(--pct, 55%));
  cursor: pointer;
}
.threshold-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}
.threshold-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.threshold-slider::-moz-range-track {
  height: 2px;
  background: transparent;
}

button[type="submit"]:not(.linkish),
a.button {
  display: block;
  width: 100%;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  min-height: 48px;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button[type="submit"]:not(.linkish):hover,
a.button:hover { background: #E8E8E8; color: #000; }

button[type="submit"].ghost:not(.linkish),
a.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
button[type="submit"].ghost:not(.linkish):hover,
a.button.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

button[type="submit"].danger:not(.linkish) {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(255, 107, 97, 0.45);
}
button[type="submit"].danger:not(.linkish):hover {
  background: rgba(255, 107, 97, 0.08);
  color: var(--danger);
}

.follow, .oauth, section { margin-top: 0; }
.follow {
  margin-top: 1.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.oauth {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

main > section,
.danger-zone,
.preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
  margin: 0 0 1.15rem;
}
.preview { margin-top: 1.75rem; }
.preview h2 {
  font-size: 1.35rem;
  font-weight: 300;
}
.danger-zone { background: var(--card); }

.error, .saved, .lock, .pending, .readonly, .mock-line {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}
.error, .saved, .lock, .pending {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
}
.error { border-color: rgba(255, 107, 97, 0.45); color: #ffb4ab; }
.saved { color: var(--ink); }
.lock { color: #d7c4a3; }
.pending { color: var(--muted); }
fieldset .pending,
fieldset .hint,
fieldset .lock,
section .hint {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.2rem 0 0.55rem;
  margin: 0;
}
.readonly {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: #fff;
  padding: 0.15rem 0 0.35rem;
  margin: 0 0 0.35rem;
}
.mock-line {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 0.9rem 0 0.2rem;
  margin: 0.4rem 0 0.8rem;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--ink);
}

.table-wrap {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.preview .table-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0.2rem -1.1rem -0.35rem;
}
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}
th {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }
code { font-family: ui-monospace, "SF Mono", monospace; font-size: 0.82em; color: #d5d6d8; }

a { color: var(--ink); }
main a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
:focus-visible { outline: 2px solid #F4F4F4; outline-offset: 2px; }
input:focus-visible,
.threshold-slider:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--brand);
}

.progress-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  margin: 0 0 1.35rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #2A2D33;
  color: #f4f4f4;
}
progress::-webkit-progress-bar { background: #2A2D33; border-radius: 999px; }
progress::-webkit-progress-value { background: #f4f4f4; border-radius: 999px; }
progress::-moz-progress-bar { background: #f4f4f4; border-radius: 999px; }

.plain, .steps {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0.15rem 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plain li, .steps li {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.plain li:last-child, .steps li:last-child { border-bottom: 0; }
section .plain {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 -1.1rem 0.8rem;
}
ol.steps { counter-reset: item; }
ol.steps li {
  counter-increment: item;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
ol.steps li::before {
  content: counter(item);
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #d0d1d4;
}

.map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  height: 16rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 0.35rem 0 0.45rem;
  background: var(--bg-raised);
  overflow: hidden;
}
.map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.88) contrast(0.92);
}
.leaflet-bar a,
.leaflet-bar a:hover {
  background-color: #1F2228 !important;
  color: #f4f4f4 !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.55) !important;
  color: #c8c9cd !important;
}
.leaflet-control-attribution a { color: #e8eaed !important; }

.qr {
  display: inline-block;
  margin: 0.35rem 0 1rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 16px;
}
.qr svg { width: min(100%, 12rem); height: auto; display: block; }

.draft {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #C6C6C8;
  font-weight: 400;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.foot {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.25rem 1.25rem 2rem;
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }

@media (max-width: 719px) {
  table, thead, tbody { display: block; width: 100%; }
  thead tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    padding: 0.85rem 1rem 0.7rem;
  }
  /* Column names live on each row once there is data. */
  table:not(:has(tbody:empty)) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
  }
  th { border: 0; padding: 0; white-space: nowrap; }
  tbody tr {
    display: block;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--line);
  }
  td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    padding: 0.28rem 0;
    white-space: normal;
  }
  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: none;
  }
  tbody tr:last-child { border-bottom: 0; }
}

@media (min-width: 720px) {
  .tag { display: inline; }
  .brand-icon { width: 32px; height: 32px; }
  .brand-word { height: 26px; }
  main, .foot { max-width: 40rem; }
  h1 { font-size: 2.75rem; }
  nav {
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    justify-content: flex-end;
    gap: 1.15rem;
  }
  nav a, nav button.linkish {
    flex-direction: row;
    font-size: 0.95rem;
    min-width: 0;
    min-height: 0;
    gap: 0.4rem;
    padding: 0;
    color: #C6C6C8;
  }
  nav a.active, nav a:hover, nav button.linkish:hover { color: #fff; }
  body:has(nav) .foot { padding-bottom: 2rem; }
}

/* Home is one car on black. Color lives only in the status glow. */
body.home .top,
body.home .foot { display: none; }
body.home main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 9rem;
  text-align: center;
}
.car { width: min(92vw, 440px); height: auto; display: block; }
.car-glass { fill: #0c0c0c; }
.car-wheel { fill: #111; }
.car-hub { fill: #3a3a3a; }
.paint-pearl-white .car-body { fill: #F4F4F4; }
.paint-solid-black .car-body { fill: #1A1A1A; }
.paint-stealth-grey .car-body { fill: #6E6F73; }
.paint-ultra-red .car-body { fill: #9B1B30; }
.paint-deep-blue .car-body { fill: #1B3A6B; }
.paint-quicksilver .car-body { fill: #C5C7C9; }
.glow {
  width: 62%;
  height: 2px;
  margin: 1.1rem auto 1.4rem;
  border-radius: 999px;
  background: var(--glow, #3A3A3A);
  box-shadow: 0 0 22px 6px var(--glow, #3A3A3A);
}
.glow-quiet { --glow: #3DDC97; }
.glow-watchful,
.glow-elevated { --glow: #F5A524; }
.glow-hot { --glow: #E10600; }
.glow-none { --glow: #3A3A3A; }
.spot-name {
  margin: 0;
  font-weight: 400;
  font-size: 1.35rem;
  color: #F4F4F4;
}
.seen, .when, .level, .ended {
  color: #8E8E93;
  font-weight: 300;
}
.stage .verdict {
  margin: 0.85rem 0 0;
  font-weight: 300;
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  color: #F4F4F4;
}
.glow, .stage .verdict { animation: status-fade 0.45s ease; }
@keyframes status-fade {
  from { opacity: 0.2; }
  to { opacity: 1; }
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 72vh;
  overflow: auto;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 1.25rem 1.5rem;
}
.sheet summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  color: #8E8E93;
  font-weight: 300;
  padding: 0.35rem 0 0.8rem;
}
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: 0.15rem auto 0.55rem;
  border-radius: 999px;
  background: #3A3A3A;
}
.sheet-body .verdict { font-size: 1.35rem; text-align: left; }
.parks { list-style: none; margin: 0; padding: 0; }
.parks a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.parks .verdict {
  font-weight: 300;
  font-size: 1.5rem;
  color: #F4F4F4;
}
.parks .level { text-align: right; }
.parks .place { grid-column: 1; }
.parks .when, .parks .ended { grid-column: 2; text-align: right; }
.report h1 {
  font-size: 2.75rem;
  font-weight: 300;
  margin-top: 0.4rem;
}
.report .overall {
  font-size: 1.35rem;
  font-weight: 300;
  color: #F4F4F4;
}
.report h2 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.15rem;
  font-weight: 400;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.score-line,
.metric,
.mix li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: #C6C6C8;
  font-weight: 300;
}
.fold { border-bottom: 1px solid var(--line); }
.fold-nested { margin-left: 0.15rem; }
.fold-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding: 0.95rem 1.4rem 0.95rem 0;
  border: 0;
  background: transparent;
  color: #F4F4F4;
  font: inherit;
  font-weight: 300;
  font-size: 1.2rem;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.fold-nested .fold-toggle { font-size: 1.02rem; color: #E6E6E6; }
.fold-score { color: #8E8E93; font-weight: 300; }
.fold-toggle::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 1.25rem;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8E8E93;
  border-bottom: 1.5px solid #8E8E93;
  transform: rotate(45deg);
}
.fold.open > .fold-toggle::after { transform: rotate(-135deg); top: 1.4rem; }
.fold-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.fold.open > .fold-body { grid-template-rows: 1fr; }
.fold-inner { overflow: hidden; }
.fold-inner > p:first-child { margin-top: 0.15rem; }
.chart { width: 100%; height: auto; display: block; margin: 0.4rem 0 0.2rem; }
.chart .bar { fill: #3A3A3A; }
.chart .bar-on { fill: #F4F4F4; }
.chart .track { fill: #2A2A2A; }
.chart .line { fill: none; stroke: #F4F4F4; stroke-width: 1.5; }
.chart.map { width: 9rem; height: 9rem; border: 1px solid rgba(255, 255, 255, 0.14); }
.mix { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  .fold-body { transition: none; }
}
.confidence { color: #8E8E93; }
.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  vertical-align: -2px;
}
.swatch-pearl-white { background: #F4F4F4; }
.swatch-solid-black { background: #1A1A1A; }
.swatch-stealth-grey { background: #6E6F73; }
.swatch-ultra-red { background: #9B1B30; }
.swatch-deep-blue { background: #1B3A6B; }
.swatch-quicksilver { background: #C5C7C9; }
main > section,
.danger-zone,
.preview,
form:not(section form):has(> .choice) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
main > section,
.danger-zone,
.preview {
  padding: 0 0 1.2rem;
  margin: 0 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

/* Parking-type segmented control (Tesla-style), settings + history. */
main > section.parking-picker { margin: 1.75rem 0 1.5rem; padding: 1.25rem 0 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.parking-picker h2 { font-size: 1.15rem; margin: 0 0 0.35rem; line-height: 1.3; }
.parking-picker .hint { margin: 0 0 0.75rem; }
.seg {
  display: flex; gap: 2px; padding: 3px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px;
}
.seg button.seg-btn[type="submit"]:not(.linkish) {
  flex: 1 1 0; min-width: 0; margin: 0; width: auto;
  padding: 0.55rem 0.25rem; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted);
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0; box-shadow: none;
}
.seg button.seg-btn[type="submit"]:not(.linkish):hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.seg button.seg-btn.on[type="submit"]:not(.linkish) { background: #3a3d44; color: #fff; }
.seg-sm button.seg-btn[type="submit"]:not(.linkish) { padding: 0.3rem 0.2rem; min-height: 0; font-size: 0.82rem; }
.parks li { border-bottom: 1px solid var(--line); }
.parks li > a { border-bottom: 0; }
.parks .park-type { padding: 0 0 0.85rem; }
.empty { color: var(--muted); }
.unavailable { margin: 0.4rem 0 0.2rem; color: var(--muted); font-size: 0.9rem; }
.unavailable summary { cursor: pointer; list-style: none; padding: 0.35rem 0; }
.unavailable summary::-webkit-details-marker { display: none; }
.unavailable summary::after { content: " ›"; }
.unavailable[open] summary::after { content: " ⌄"; }
.unavailable .hint { margin: 0 0 0.3rem; }
