:root {
  --bg: #000000;
  --surface: #2a2a2a;
  --surface-2: #3d3d3d;
  --input: #3a3a3a;
  --text: #f5f5f5;
  --muted: #b0b0b0;
  --border: #404040;
  --ok: #00C853;
  --watch: #FFEB3B;
  --due: #F44336;
  --accent: #90caf9;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
}

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  min-height: 100%;
  min-height: 100dvh;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}

@media (max-width: 800px) {
  .wrap {
    max-width: none;
    padding: 12px 12px max(24px, env(safe-area-inset-bottom));
    min-height: 100vh;
    min-height: 100dvh;
  }
  .grid {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 80px);
  }
  .card {
    min-height: auto;
  }
  #detailCard {
    min-height: 50vh;
  }
  .items {
    padding-bottom: 32px;
  }
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.subtitle { color: var(--muted); font-size: 0.9rem; }

.guest-banner {
  display: block;
  margin: -8px 0 16px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: 8px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 800px) {
  .grid {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  border: none;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.detail-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-heading h2 {
  margin: 0;
  line-height: 1.25;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Whole-car collapse (matches section chevrons) */
.car-block {
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
}

.car-block > summary.detail-heading {
  list-style: none;
  cursor: pointer;
  user-select: none;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
  padding-inline-start: 0;
  gap: 8px;
}

/* Kill native disclosure marker (looks like a dash/triangle beside title on some browsers) */
.car-block > summary.detail-heading::-webkit-details-marker {
  display: none;
}
.car-block > summary.detail-heading::marker {
  content: "";
  display: none;
}

.car-block > summary .car-heading-left {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.25;
}

/* ▶ flush left of title, vertically centered with title text (not above) */
.car-block > summary .chev {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85em;
  height: 1.05rem;
  flex: 0 0 auto;
  position: static;
  transform: none;
  margin: 0;
  padding: 0;
}

.car-block[open] > summary .chev {
  transform: rotate(90deg);
}

.car-block-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Car-name health bubble removed (Hunter) — keep hidden if markup remains */
.health-bubble { display: none !important; }

.garage-row {
  position: relative;
  display: block;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}

.garage-row:hover {
  border-color: var(--accent);
}

.garage-row:has(.car-btn.active) {
  border-color: var(--accent);
  background: #2a3540;
}

/* One shared border on .garage-row; car-btn fills it, × overlays end inside */
.garage-row .car-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding-right: 42px; /* room for overlaid × */
}

.garage-row .car-btn:hover,
.garage-row .car-btn.active {
  border-color: transparent;
  background: transparent;
}

.car-delete {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.15s;
}

.car-delete:hover {
  color: #ef9a9a;
  background: transparent;
  border: none;
}

.garage-list {
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.car-btn {
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.car-btn:hover { border-color: var(--accent); }
.car-btn.active {
  border-color: var(--accent);
  background: #2a3540;
}

.car-btn .name { font-weight: 600; font-size: 0.95rem; }
.car-btn .meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.car-btn .meta .meta-text { color: var(--muted); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 16px;
}

#milesBar {
  align-items: center;
}

#milesBar label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

#milesBar label .odo-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

#milesBar label #milesInput {
  flex: 1 1 auto;
  min-width: 6rem;
  max-width: 12rem;
}

#milesBar #milesInput {
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.add-form select.ymm-select {
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 10px;
  min-width: 0;
  width: 100%;
  font-family: inherit;
  appearance: auto;
  cursor: pointer;
}

.add-form select.ymm-select:focus {
  outline: none;
  border-color: var(--accent);
}

.add-form select.ymm-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#milesBar #saveMilesBtn {
  font-weight: 600;
  font-size: 0.9rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, select, button.primary, button.ghost, button.type-btn {
  font: inherit;
  color: var(--text);
}

input {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  min-width: 0;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.primary {
  background: #1565c0;
  border: 1px solid #42a5f5;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  color: #fff;
}

button.primary:hover { background: #1976d2; }
button.primary:disabled { opacity: 0.5; cursor: wait; }

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
}

button.ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.type-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

button.type-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

button.type-btn:hover { border-color: var(--accent); }
button.type-btn.selected {
  border-color: var(--accent);
  background: #2a3540;
  color: var(--accent);
}

.type-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: -2px;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section {
  background: #0d0d0d;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.section > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px 8px;
  background: transparent;
  border-bottom: none;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.section > summary::-webkit-details-marker { display: none; }

.section > summary .sec-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section > summary .chev {
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform 0.15s;
  display: inline-block;
  width: 1em;
}

.section[open] > summary .chev {
  transform: rotate(90deg);
}

.section > summary .sec-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-left: 2px;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.section-body:empty {
  display: none;
}

.section-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 2px 4px 6px;
}

/* Compact single-line maintenance rows: dot | name | date | Update | Undo */
.item {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 4px 8px;
  border: none;
  min-height: 0 !important;
  height: auto;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.item > .health-dot,
.item > .item-name,
.item > .f-last-wrap,
.item > .f-mark,
.item > .f-undo {
  flex-shrink: 0;
}

.item-name {
  flex: 1 1 auto !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item .f-last-wrap {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.item .f-last {
  flex: 0 0 auto;
  min-width: 1.25rem;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
}

.item .f-last.is-empty {
  color: var(--muted);
}

.item .f-last:focus {
  outline: none;
}

.item .f-last:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hidden native date input — used only to open the OS calendar popup */
.item .f-last-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.item .f-mark {
  flex: 0 0 auto;
  flex-shrink: 0 !important;
  padding: 3px 8px;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 6px;
}

.item .f-undo {
  flex: 0 0 auto;
  flex-shrink: 0 !important;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 600;
}

.item .f-undo:hover {
  color: var(--text);
  border-color: var(--accent);
}

.item .f-undo:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Mobile: even skinnier controls so date+Update+Undo stay on the same row as name */
@media (max-width: 560px) {
  .item {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    gap: 4px;
    padding: 3px 6px;
    min-height: 0 !important;
  }
  .item-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 0.8rem;
  }
  .item .f-last-wrap {
    flex: 0 0 auto;
    flex-shrink: 0 !important;
    min-width: 0;
  }
  .item .f-last {
    min-width: 1rem;
    font-size: 0.75rem;
  }
  .item .f-mark {
    padding: 2px 6px;
    font-size: 0.7rem;
  }
  .item .f-undo {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.8rem;
  }
}

.health-dot {
  flex: 0 0 auto;
  flex-shrink: 0 !important;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
}

/* Hunter thirds on charcoal: green >2/3 / yellow >1/3 / red ≤1/3 (no orange) */
.health-dot.ok { background: #00C853; }
.health-dot.watch { background: #FFEB3B; }
.health-dot.due { background: #F44336; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
  max-width: 280px;
}

.toast.show { opacity: 1; }
.toast.err { border-color: var(--due); }

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 0;
}

.add-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: none;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.add-form.open { display: flex; }

.add-form > .ymm-select {
  width: 100%;
}

.status-bar {
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.site-footer {
  margin-top: 28px;
  padding-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}


/* ── Auth / login screen ────────────────────────────────────────── */

.guest-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.guest-banner.signed-in {
  color: var(--text);
  border: 1px solid #2a4050;
}

.banner-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.banner-btn {
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
  white-space: nowrap;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: #000;
  overflow-y: auto;
}

.login-screen.is-hidden {
  display: none;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.login-brand {
  text-align: center;
  margin-bottom: 22px;
}

.login-brand h1 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: 0.02em;
}

.login-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-guest {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-align: left;
  background: #1565c0;
  border: 1px solid #42a5f5;
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.login-guest:hover {
  background: #1976d2;
}

.login-guest-hint {
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.login-tab {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.login-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.login-tab.active {
  border-color: var(--accent);
  background: #2a3540;
  color: var(--accent);
}

.login-pane[hidden] {
  display: none !important;
}

.login-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-pane input {
  width: 100%;
  margin-bottom: 12px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.login-pane input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.login-full {
  width: 100%;
}

.login-hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.login-google {
  width: 100%;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.login-google:hover {
  border-color: var(--accent);
}

.google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #fff;
  color: #4285f4;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: Arial, sans-serif;
}

.login-error {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--due);
  color: #ffcdd2;
  font-size: 0.8rem;
  line-height: 1.35;
}

.login-error[hidden] {
  display: none !important;
}

.login-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.35;
}

body.login-open {
  overflow: hidden;
}

body.login-open .wrap {
  visibility: hidden;
  pointer-events: none;
}


/* ── Guest-first: secondary dismiss + close ─────────────────────── */

.login-card {
  position: relative;
}

.login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.login-close:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* Secondary text link at bottom (was big blue Continue as guest) */
.login-guest-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-guest-link:hover {
  color: var(--accent);
}

.login-guest-link:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Keep legacy .login-guest if referenced elsewhere */
.login-guest {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-align: left;
  background: #1565c0;
  border: 1px solid #42a5f5;
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.guest-banner.has-unsaved {
  color: var(--text);
  border: 1px solid #5a4a20;
  background: #1a1608;
}

.guest-banner.has-unsaved #bannerText {
  color: #ffe082;
}

/* ── Leave / save nudge modal ───────────────────────────────────── */

.leave-save-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.72);
  overflow-y: auto;
}

.leave-save-modal.is-hidden,
.leave-save-modal[hidden] {
  display: none !important;
}

.leave-save-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.leave-save-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
}

.leave-save-body {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.leave-save-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leave-save-actions .primary,
.leave-save-actions .ghost {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.leave-save-actions .leave-danger {
  color: #ef9a9a;
  border-color: #5c3030;
}

.leave-save-actions .leave-danger:hover {
  color: #ffcdd2;
  border-color: var(--due);
}

body.leave-modal-open {
  overflow: hidden;
}

/* Banner Sign in / Save matches Add car primary blue (#1565c0), not accent sky */
.banner-btn.primary {
  background: #1565c0;
  border: 1px solid #42a5f5;
  color: #fff;
  padding: 8px 14px !important;
  font-size: 0.85rem !important;
  border-radius: 8px;
}
.banner-btn.primary:hover { background: #1976d2; }
#toggleAdd.primary { width: 100%; }

/* Home: garage only until a car is selected */
body:not(.has-detail) .grid {
  grid-template-columns: 1fr;
  max-width: 420px;
}
#detailCard[hidden] {
  display: none !important;
}
