* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0d0f;
  --surface: #14171a;
  --surface-raised: #1b1f23;
  --surface-soft: #20252a;
  --border: #2b3137;
  --border-bright: #3a424a;
  --text: #f4f5f6;
  --muted: #949da6;
  --accent: #25d9c7;
  --accent-hover: #54eadb;
  --accent-soft: rgba(37, 217, 199, .12);
  --danger: #ff4d5e;
  --success: #44c486;
  --warning: #f7b955;
  --plate: #f6cf32;
  --shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

html { color-scheme: dark; }
body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(37, 217, 199, .09), transparent 28rem),
    linear-gradient(180deg, #0c0f11 0, var(--bg) 32rem);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: repeating-linear-gradient(90deg, #fff 0, #fff 1px, transparent 1px, transparent 80px);
}

.hidden { display: none !important; }
.eyebrow {
  color: var(--accent);
  font: 700 11px/1.2 "Bahnschrift", "Arial Narrow", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Authentication */
#auth-view { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  width: min(1020px, 100%);
  min-height: 590px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  background:
    linear-gradient(120deg, rgba(8, 10, 12, .98), rgba(8, 10, 12, .56)),
    radial-gradient(circle at 80% 10%, rgba(37, 217, 199, .28), transparent 22rem),
    #111519;
  position: relative;
}
.auth-intro::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 170px;
  right: -80px;
  top: 105px;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 60% 40% 20% 15%;
  transform: skewX(-12deg);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: auto;
  background: var(--accent);
  color: #fff;
  border-radius: 12px 4px 12px 4px;
  font: 800 17px/1 "Bahnschrift", sans-serif;
  letter-spacing: -.04em;
  box-shadow: 0 10px 30px rgba(255, 90, 54, .28);
}
.brand-mark.small { width: 34px; height: 34px; margin: 0; font-size: 13px; border-radius: 9px 3px 9px 3px; }
.brand-logo { width: 52px; height: 52px; margin-bottom: auto; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 30px rgba(27, 188, 198, .24); }
.brand-logo.small { width: 36px; height: 36px; margin: 0; border-radius: 10px; box-shadow: none; }
.auth-intro h1, .page-heading h1 {
  font-family: "Bahnschrift", "Arial Narrow", sans-serif;
  font-stretch: condensed;
  letter-spacing: -.04em;
}
.auth-intro h1 { max-width: 600px; margin: 13px 0 18px; font-size: clamp(48px, 7vw, 76px); line-height: .92; text-transform: uppercase; }
.auth-intro > p:not(.eyebrow) { max-width: 500px; color: #b0b7be; font-size: 16px; }
.auth-feature-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.auth-feature-row span { padding: 7px 11px; border: 1px solid var(--border-bright); border-radius: 999px; color: #c7cdd2; font-size: 12px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 54px 46px; background: #161a1d; }
.auth-card h2 { margin: 8px 0 5px; font: 700 28px/1.15 "Bahnschrift", sans-serif; }
.subtitle { color: var(--muted); margin-bottom: 28px; font-size: 14px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-card label { display: grid; gap: 7px; color: #c5cbd0; font-size: 12px; font-weight: 650; }
.auth-card .link-btn { align-self: center; margin-top: 16px; }

/* Controls */
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  background: #101316;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #717a82; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #13171a; }
textarea { resize: vertical; min-height: 92px; }
input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 11px; border: 0; border-radius: 6px; background: var(--surface-soft); color: var(--text); cursor: pointer; }

button {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font: 650 13px/1 "Segoe UI", sans-serif;
  background: var(--surface-soft);
  color: var(--text);
  transition: transform .15s, border-color .15s, background .15s, color .15s;
}
button:hover { border-color: var(--border-bright); background: #2a3035; }
button:active { transform: translateY(1px); }
button.primary { border-color: var(--accent); background: var(--accent); color: #051715; box-shadow: 0 8px 24px rgba(37,217,199,.16); }
button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.link-btn { min-height: 0; padding: 5px; border: 0; background: none; color: var(--accent); }
button.ghost-btn { background: transparent; }
button.danger { border-color: rgba(255,77,94,.35); background: rgba(255,77,94,.09); color: #ff8b96; }
button.danger:hover { border-color: var(--danger); background: rgba(255,77,94,.16); }
.error { color: #ff7b88; font-size: 13px; margin-top: 10px; }

/* App shell */
header { position: sticky; top: 0; z-index: 8; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(12,15,17,.86); backdrop-filter: blur(18px); }
.topbar-inner { display: flex; align-items: center; gap: 30px; width: min(1220px, calc(100% - 40px)); height: 70px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; font: 750 18px/1 "Bahnschrift", sans-serif; letter-spacing: -.02em; }
nav { display: flex; align-self: stretch; gap: 4px; flex: 1; }
nav button { position: relative; min-width: 94px; border: 0; border-radius: 0; background: transparent; color: var(--muted); }
nav button:hover { background: transparent; color: var(--text); }
nav button.active { background: transparent; color: var(--text); }
nav button.active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 2px; background: var(--accent); }

main { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 90px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 5px 0 3px; font-size: clamp(34px, 5vw, 50px); line-height: 1; text-transform: uppercase; }
.page-subtitle { color: var(--muted); font-size: 14px; }
.page-heading > button { min-width: 138px; }

/* Account */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.account-card { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.account-card h2 { font: 700 21px/1.1 "Bahnschrift", sans-serif; }
.account-card > p { color: var(--muted); font-size: 13px; }
.account-card label { display: grid; gap: 6px; color: #c5cbd0; font-size: 12px; font-weight: 650; }
.account-card button { justify-self: start; }
.form-status { min-height: 20px; color: var(--success) !important; }
.form-status.error { color: var(--danger) !important; }

/* Schedule */
.calendar-toolbar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.calendar-toolbar h2 { min-width: 210px; text-align: center; font: 700 22px/1 "Bahnschrift", sans-serif; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays span { padding: 8px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; text-transform: uppercase; }
.calendar-grid { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); gap: 1px; }
.calendar-day { min-height: 112px; padding: 8px; background: var(--surface); }
.calendar-day.outside { background: #101315; }
.calendar-day.today .day-number { color: var(--accent); }
.day-number { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.calendar-booking { display: block; width: 100%; min-height: 0; margin: 3px 0; padding: 5px 6px; overflow: hidden; border: 0; border-left: 3px solid var(--accent); border-radius: 4px; background: var(--accent-soft); color: var(--text); font-size: 10px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.calendar-booking.completed { border-left-color: var(--success); opacity: .7; }
.calendar-booking.cancelled { border-left-color: var(--danger); opacity: .5; }
.parts-editor { display: grid; gap: 8px; margin-top: 8px; }
.part-row { display: grid; grid-template-columns: minmax(140px, 1fr) 80px 110px 38px; gap: 7px; }
.part-row input { margin: 0; }
.work-order-total { margin: 14px 0; padding: 14px; border-radius: 9px; background: var(--surface-soft); text-align: right; }
.work-order-total strong { display: block; font-size: 22px; }

/* Garage cards */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.car-grid > .empty-state { grid-column: 1 / -1; }
.car-card {
  background: linear-gradient(145deg, #181c20, #131619);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.car-card:hover { transform: translateY(-4px); border-color: #49525b; box-shadow: 0 18px 42px rgba(0,0,0,.32); }
.car-media { position: relative; height: 205px; overflow: hidden; background: linear-gradient(135deg, #242a30, #15191c); }
.car-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.car-card:hover img { transform: scale(1.025); }
.car-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #59626a; }
.car-placeholder::before { content: "CAR"; font: 800 42px/1 "Bahnschrift", sans-serif; letter-spacing: .18em; opacity: .16; }
.photo-error { height: 100%; display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); }
.plate { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 4px; background: var(--plate); color: #151515; font: 800 12px/1.1 ui-monospace, monospace; letter-spacing: .08em; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.car-card .body { padding: 17px 18px 19px; }
.card-kicker { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.car-card h3 { margin: 6px 0 12px; font: 700 23px/1.1 "Bahnschrift", sans-serif; letter-spacing: -.02em; }
.car-card .meta { color: var(--muted); font-size: 12px; }
.car-card .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.car-card .meta-row span { padding: 4px 7px; background: #0f1214; border-radius: 5px; color: #b6bdc3; font-size: 11px; }
.empty-state { padding: 70px 30px; border: 1px dashed var(--border-bright); border-radius: 15px; text-align: center; background: rgba(255,255,255,.015); }
.empty-state h3 { margin-bottom: 5px; font-family: "Bahnschrift", sans-serif; }
.empty-state p { color: var(--muted); }

/* Modal and vehicle details */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); z-index: 10; }
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20; padding: 20px; }
.quick-backdrop { z-index: 25; background: rgba(0,0,0,.58); }
.quick-modal { z-index: 30; }
.quick-modal-content { width: min(620px, 100%); max-height: 88vh; }
.quick-modal-content h3 { margin: 2px 45px 18px 0; font: 700 24px/1.1 "Bahnschrift", sans-serif; }
.quick-modal-content h4 { color: #cbd0d5; font-size: 13px; }
.quick-modal-content .form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-content { position: relative; width: min(900px, 100%); max-height: 92vh; overflow-y: auto; padding: 34px; border: 1px solid var(--border); border-radius: 18px; background: #14181b; box-shadow: var(--shadow); scrollbar-color: #3c444b transparent; }
.modal .close { position: sticky; float: right; top: 0; z-index: 3; width: 38px; padding: 0; border-radius: 50%; background: rgba(14,17,19,.86); font-size: 23px; }
#car-detail > h2 { margin: 2px 48px 22px 0; font: 700 32px/1.1 "Bahnschrift", sans-serif; }
.vehicle-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin: 16px 0; border: 1px solid var(--border); border-radius: 11px; background: var(--border); }
.vehicle-spec { min-height: 72px; padding: 12px 14px; background: var(--surface-raised); }
.vehicle-spec span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.vehicle-spec strong { font-size: 14px; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 8px; margin: 14px 0; }
.photo-uploader { padding: 14px; margin: 14px 0; border: 1px dashed var(--border-bright); border-radius: 10px; background: rgba(255,255,255,.018); }
.photo-uploader label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.photo-uploader #photo-status { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.section { margin-top: 32px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.section-header h2 { font: 700 19px/1 "Bahnschrift", sans-serif; }
.section-actions { display: flex; gap: 7px; }
.section .list { display: flex; flex-direction: column; gap: 8px; }
.section-empty { padding: 18px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); text-align: center; font-size: 12px; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid #272d32; border-radius: 10px; background: #191d20; }
.list-item:hover { border-color: var(--border-bright); }
.list-item .info { min-width: 0; flex: 1; }
.list-item .info .title { margin-bottom: 3px; font-weight: 700; }
.list-item .info .sub { color: var(--muted); font-size: 12px; line-height: 1.65; }
.list-item a { text-decoration: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 11px; }
.form-row .full { grid-column: 1 / -1; }
#car-form > button { min-width: 120px; }
.quick-form input, .quick-form textarea, .quick-form select { margin-bottom: 9px; }
.quick-form label:has(input[type="checkbox"]) { display: flex; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-raised); font-size: 12px; cursor: pointer; }

/* Service form */
.quick-form .field-label { display: grid; gap: 7px; margin-bottom: 12px; color: #c5cbd0; font-size: 12px; font-weight: 650; }
.quick-form .form-row label { display: grid; gap: 7px; color: #c5cbd0; font-size: 12px; font-weight: 650; }
.quick-form .form-row label input { margin: 0; }
.service-section { margin: 6px 0 14px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.015); }
.service-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-section-head h4 { margin: 0; font: 700 15px/1.2 "Bahnschrift", sans-serif; color: var(--text); }
.service-section-actions { display: flex; gap: 4px; }
.service-section-actions .link-btn { font-size: 12px; }
.service-hint { margin: 5px 0 14px; color: var(--muted); font-size: 12px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.service-check { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.service-check:hover { border-color: var(--border-bright); background: var(--surface-raised); }
.service-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.service-check-box { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid #4b545c; border-radius: 5px; background: transparent; transition: border-color .15s, background .15s; }
.service-check-box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #051715; border-bottom: 2px solid #051715; transform: rotate(-45deg) scale(0); transition: transform .12s; }
.service-check input:checked + .service-check-box { background: var(--accent); border-color: var(--accent); }
.service-check input:checked + .service-check-box::after { transform: rotate(-45deg) scale(1); }
.service-check-label { font-size: 13px; color: var(--text); line-height: 1.25; }
.service-check:has(input:checked) { border-color: rgba(37,217,199,.45); background: var(--accent-soft); }

/* Reminders */
#reminder-list { display: grid; gap: 10px; }
.reminder-item { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 15px 17px; border: 1px solid var(--border); border-left: 3px solid #555e66; border-radius: 10px; background: var(--surface); }
.reminder-item.warn { border-left-color: var(--warning); background: linear-gradient(90deg, rgba(247,185,85,.07), var(--surface) 25%); }
.reminder-item.overdue { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(255,77,94,.07), var(--surface) 25%); }
.reminder-item.done { opacity: .48; }
.reminder-item .info { min-width: 0; flex: 1; }
.reminder-item .sub { margin-top: 4px; font-size: 12px; }
.badge { display: inline-block; margin-top: 5px; padding: 3px 8px; border-radius: 999px; background: var(--surface-soft); color: #b9c0c6; font-size: 10px; }
.badge.warn { background: rgba(247,185,85,.13); color: var(--warning); }
.badge.overdue { background: rgba(255,77,94,.13); color: #ff7c88; }

/* Nav icons (hidden on desktop) */
.nav-icon { display: none; }

/* Floating action button */
.fab { display: none; }

/* ---- Mobile / tablet (app-like) ---- */
@media (max-width: 760px) {
  body { background: var(--bg); }

  /* Auth: full-screen stacked, app-like */
  #auth-view { padding: 0; }
  .auth-shell { display: flex; flex-direction: column; min-height: 100vh; border: 0; border-radius: 0; background: transparent; }
  .auth-intro { flex: 0 0 auto; min-height: 0; padding: 42px 28px 22px; justify-content: flex-start; }
  .auth-intro .brand-logo { margin: 0 auto 16px; width: 84px; height: 84px; border-radius: 22px; }
  .auth-intro .eyebrow { text-align: center; }
  .auth-intro h1 { font-size: 40px; text-align: center; }
  .auth-intro > p:not(.eyebrow) { display: none; }
  .auth-feature-row { display: none; }
  .auth-card { flex: 1; justify-content: flex-start; padding: 20px 28px 60px; background: transparent; }
  .auth-card h2 { font-size: 24px; }

  /* Header: hide brand/logout, keep nav as bottom bar */
  header { position: fixed; top: 0; left: 0; right: 0; z-index: 8; }
  .topbar-inner { width: 100%; height: 56px; padding: 0; gap: 0; justify-content: center; }
  .brand { display: none; }
  #logout { display: none; }
  nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; height: 64px; padding-bottom: env(safe-area-inset-bottom, 0); background: rgba(12,15,17,.98); border-top: 1px solid var(--border); backdrop-filter: blur(18px); }
  nav button { min-width: 0; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; padding: 6px 2px; font-size: 10px; color: var(--muted); }
  nav button.active { color: var(--accent); }
  nav button.active::after { display: none; }
  .nav-icon { display: block; font-size: 22px; line-height: 1; }
  .nav-label { line-height: 1; }

  /* Main content: account for fixed header + bottom nav */
  main { width: calc(100% - 28px); padding: 72px 0 96px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading .page-subtitle { font-size: 13px; }
  .page-heading > button { display: none; }
  .eyebrow { font-size: 10px; }

  /* Floating action button (bottom-right above nav) */
  .fab {
    display: grid; place-items: center;
    position: fixed; right: 20px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 9;
    width: 56px; height: 56px; border-radius: 16px; border: 0;
    background: var(--accent); color: #051715;
    font: 700 30px/1 "Bahnschrift", sans-serif;
    box-shadow: 0 8px 24px rgba(37,217,199,.35);
    cursor: pointer;
  }
  .fab:active { transform: scale(.94); }

  /* Grids: single column */
  .car-grid { grid-template-columns: 1fr; gap: 12px; }
  .car-card { border-radius: 14px; }
  .car-card:hover { transform: none; }
  .car-media { height: 180px; }
  .car-card h3 { font-size: 20px; }
  .account-grid { grid-template-columns: 1fr; gap: 12px; }
  .account-card { padding: 18px; border-radius: 12px; }

  /* Calendar: compact */
  .calendar-toolbar h2 { min-width: 0; font-size: 18px; }
  .calendar-weekdays span { padding-inline: 2px; font-size: 9px; }
  .calendar-day { min-height: 60px; padding: 4px; }
  .calendar-booking { padding: 3px 2px; font-size: 0; width: 100%; }
  .calendar-booking::before { content: "•"; color: var(--accent); font-size: 18px; }
  .part-row { grid-template-columns: 1fr 58px 85px 36px; }

  /* Modals: bottom sheets */
  .modal { align-items: flex-end; padding: 0; }
  .modal-content { width: 100%; max-height: 92vh; padding: 22px 18px 30px; border-radius: 20px 20px 0 0; }
  .quick-modal-content { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }

  .vehicle-specs { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 10px; }
  .form-row .full { grid-column: auto; }
  .section-header { align-items: flex-start; flex-wrap: wrap; }
  .section-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .list-item { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .list-item .info { flex-basis: 100%; }
  .list-item .info .sub { font-size: 12px; }
  .reminder-item { flex-wrap: wrap; }
  .reminder-item .info { flex-basis: 100%; }

  /* Larger touch targets */
  button { min-height: 44px; }
  input, textarea, select { font-size: 16px; }
}

/* ---- Tablet (761px - 1024px) ---- */
@media (min-width: 761px) and (max-width: 1024px) {
  .nav-icon { display: inline; margin-right: 6px; }
  nav button { min-width: 0; padding-inline: 12px; }
  .topbar-inner { gap: 16px; }
  .car-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .account-grid { grid-template-columns: 1fr; }
  .calendar-day { min-height: 90px; }
}
