/* My Garage 2.0 — Modern Creative Design System (Daylight Sage + Night Drive Dark Mode) */
:root {
  --ink: #172e26;
  --muted: #5c6e65;
  --green: #1e563f;
  --green-hover: #143f2d;
  --green-soft: #e6f0e8;
  --bg: #f4f7f3;
  --surface: #ffffff;
  --surface-subtle: #f9fbf8;
  --line: #dbe4da;
  --g-radius: 20px;
  --g-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Malayalam', sans-serif;
}

[data-theme="dark"] {
  --ink: #e7f0ec;
  --muted: #98aca2;
  --green: #2d8a63;
  --green-hover: #38a175;
  --green-soft: #1b352a;
  --bg: #0d1713;
  --surface: #14231d;
  --surface-subtle: #182922;
  --line: #253b31;
}

body {
  font-family: var(--g-font);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  transition: background-color .18s ease, color .18s ease;
}

h1, h2, h3, .brand { font-family: var(--g-font); color: var(--ink); }
h1 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -1.1px; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.35px; }
h3 { font-weight: 650; }
button, input, select, textarea { font-family: inherit; }
button { touch-action: manipulation; }
input, select, textarea {
  min-height: 46px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #598c42;
  outline-offset: 2px;
}
button:disabled { cursor: wait; opacity: .65; }
.g-icon { flex-shrink: 0; vertical-align: middle; }
button .g-icon { pointer-events: none; }

.primary, .secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  transition: background-color .15s, border-color .15s, transform .12s;
}
.primary { background: var(--green); color: #ffffff; border: 1px solid transparent; }
.primary:hover { background: var(--green-hover); }
.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.secondary:hover { background: var(--green-soft); border-color: #9ab3a2; }
.link { min-height: 40px; display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-weight: 600; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; }
.panel { border-radius: var(--g-radius); box-shadow: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.badge { font-size: 11px; white-space: normal; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Sidebar & Desktop Shell */
aside {
  width: 232px;
  padding: 32px 20px;
  background: var(--surface-subtle);
  border-right: 1px solid var(--line);
}
main {
  margin-left: 232px;
  padding: 24px 38px 36px;
  max-width: 1560px;
}
.brand {
  font-size: 21px;
  font-weight: 750;
  display: flex;
  align-items: center;
  letter-spacing: -.8px;
  white-space: nowrap;
}
.logo {
  display: inline-flex;
  padding: 8px;
  border-radius: 12px;
  margin-right: 10px;
  background: var(--green);
  color: #e6f5d0;
}
.g-brand-dot {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  background: var(--green-soft);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
}
.nav { margin-top: 44px; gap: 6px; }
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 550;
  border-radius: 12px;
}
.nav button.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 650;
}
.nav button.active:after {
  content: '';
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.asidebottom { padding-right: 16px; color: var(--muted); font-size: 12px; }

/* Topbar & Search */
.g-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.g-breadcrumb { font-size: 12px; color: var(--muted); }
.g-breadcrumb span { padding: 0 10px; color: var(--line); }
.g-breadcrumb b { font-weight: 600; color: var(--ink); }
.g-account { display: flex; gap: 12px; align-items: center; }
.g-sync {
  font-size: 11px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.g-sync:before {
  content: '';
  width: 6px;
  height: 6px;
  background: #469c65;
  border-radius: 50%;
}
.g-theme-toggle, .g-account-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
}
.g-theme-toggle:hover, .g-account-button:hover { background: var(--green-soft); }
.g-account-button { max-width: 210px; }
.g-account-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.g-search {
  display: flex;
  align-items: center;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 16px;
  gap: 12px;
}
.g-search label { margin: 0; color: var(--muted); }
.g-search input { border: 0; background: transparent; min-width: 0; flex: 1; box-shadow: none; padding-left: 0; }
.g-search-hint { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Home Hero Banner */
.g-hero-banner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  margin: 22px 0;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  align-items: center;
}
.g-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.g-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.g-hero-status.good { background: #e8f5ec; color: #1f6342; }
.g-hero-status.soon { background: #fdf3dc; color: #8c5e0b; }
.g-hero-status.overdue { background: #fcebe8; color: #a63629; }
.g-hero-copy h1 { margin: 4px 0 8px; }
.g-hero-sub { color: var(--muted); font-size: 14px; max-width: 560px; margin: 0 0 18px; }
.g-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.g-smart-btn { border-color: #b7d1be; color: var(--green); }
.g-hero-visual {
  position: relative;
  height: 176px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.g-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-hero-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(18, 39, 30, 0.86);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  display: grid;
  gap: 2px;
}
.g-hero-overlay span { font-size: 10px; color: #cfe3d5; }
.g-hero-overlay strong { font-size: 17px; font-weight: 700; }

/* 4-Card Garage Summary Bento Grid */
.g-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--g-radius);
  padding: 20px 4px;
}
.g-summary button {
  text-align: left;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  color: var(--ink);
}
.g-summary button:last-child { border-right: 0; }
.g-summary button > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 550; }
.g-summary strong { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.g-summary small { font-size: 11px; color: var(--muted); }
.g-overdue-text { color: #b93829 !important; font-weight: 650; }

/* Quick Actions Toolbar */
.g-quick {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 28px;
  flex-wrap: wrap;
}
.g-quick > .eyebrow { margin-right: 6px; }
.g-quick button {
  border: 1px solid var(--line);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: transform .12s, background-color .15s, border-color .15s;
}
.g-quick button:hover { background: var(--green-soft); border-color: #8fb09b; transform: translateY(-1px); }
.g-quick .g-quick-milo { background: var(--green-soft); color: var(--green); border-color: #b7d4c0; }

/* Dashboard Grid & Vehicle Cards */
.g-heading { margin: 26px 0 22px; gap: 15px; }
.g-heading p { margin: 4px 0 0; }
.g-heading h1 { margin-bottom: 4px; }
.g-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.g-dashboard > section { min-width: 0; }
.sectiontitle { margin-bottom: 16px; }
.sectiontitle h2 { display: flex; align-items: center; gap: 9px; }
.g-count { font-size: 11px; background: var(--green-soft); color: var(--green); padding: 2px 8px; border-radius: 6px; font-weight: 650; }

.g-vehicles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g-vehicle-card-wrap { position: relative; min-width: 0; }
.g-vehicle {
  display: block;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--g-radius);
  transition: transform .16s ease, border-color .16s ease;
  width: 100%;
  min-width: 0;
  color: var(--ink);
}
.g-vehicle:hover { transform: translateY(-3px); border-color: #7ea38c; }
.g-vehicle-art {
  position: relative;
  height: 168px;
  background: #e6efe6;
  overflow: hidden;
}
.g-type {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 2;
  font-size: 10px;
  font-weight: 650;
  color: #1c3d2f;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 9px;
  border: 1px solid rgba(25, 65, 48, 0.14);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.g-card-photo-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  color: #1e4635;
  border: 1px solid rgba(25, 65, 48, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.g-card-photo-btn:hover { background: #ffffff; transform: scale(1.05); }
.g-car-art { display: flex; align-items: flex-end; justify-content: center; height: 100%; padding: 34px 16px 10px; }
.g-car-art svg { width: 100%; max-width: 275px; height: 112px; }
.g-vehicle-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.g-vehicle-body { padding: 17px; }
.g-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-card-title h3 { font-size: 18px; letter-spacing: -.4px; overflow-wrap: anywhere; margin: 0; }
.g-card-arrow { color: var(--muted); }

/* Authentic Indian HSRP Number Plate Badge */
.g-plate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: #1b2822;
  background: #f8faf7;
  border: 1px solid #cbd6cc;
  border-radius: 6px;
  padding: 3px 9px 3px 5px;
  margin: 8px 0 15px;
}
.g-plate-ind {
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  background: #1d4ed8;
  color: #ffffff;
  padding: 2px 4px;
  border-radius: 3px;
  letter-spacing: .5px;
}
.g-plate-empty {
  font-family: var(--g-font);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.g-vehicle-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-vehicle-bottom > div { display: grid; gap: 2px; }
.g-vehicle-bottom strong { font-size: 17px; font-weight: 700; }
.g-vehicle-bottom strong small { font-size: 11px; font-weight: 500; color: var(--muted); }
.g-vehicle-bottom .small { font-size: 10px; }

.g-health {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
}
.g-health.good { color: #1e5e3f; background: #e8f4ec; }
.g-health.soon { color: #8a5a0c; background: #fdf3dc; }
.g-health.overdue { color: #a83327; background: #fcebe8; }

.g-next {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.g-next.overdue { color: #b4382a; font-weight: 600; }
.g-next span { overflow-wrap: anywhere; }

/* Coming Up & Recent Activity */
.g-coming { padding: 20px; }
.g-coming-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
}
.g-coming-row b { font-size: 12px; font-weight: 650; }
.g-coming-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.g-coming-row .badge { font-size: 9px; padding: 4px 7px; }
.g-small-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  flex-shrink: 0;
  color: var(--green);
}
.g-small-icon.overdue { background: #fbece8; color: #a45140; }
.g-small-icon.soon { background: #fdf3dc; color: #8a5a0c; }
.g-text-action {
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
  margin-top: 6px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  min-height: 44px;
}

.g-milo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--green-soft);
  border: 1px solid #c5dbcc;
  border-radius: 16px;
  padding: 15px;
  margin: 18px 0;
  text-align: left;
  color: var(--ink);
}
.g-milo-card > svg:first-child { width: 48px; height: 48px; flex-shrink: 0; }
.g-milo-card span { flex: 1; }
.g-milo-card b { font-size: 13px; font-weight: 700; display: block; }
.g-milo-card small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }

.g-journey { border-radius: 17px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.g-journey img { width: 100%; height: 135px; object-fit: cover; display: block; }
.g-journey > div { padding: 17px 20px; }
.g-journey .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
.g-journey p { font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; margin: 6px 0 0; }

.g-recent { margin-top: 28px; }
.g-list { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); overflow: hidden; }
.g-activity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.g-activity:last-child { border: 0; }
.g-activity b { font-size: 13px; font-weight: 650; }
.g-activity small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.g-activity > strong { font-size: 13px; white-space: nowrap; font-weight: 700; }
.g-activity:hover, .g-coming-row:hover { background: var(--green-soft); }

/* Vehicle Details Profile Hero & Next Service Widget */
.g-vdetail-hero {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 22px 26px;
  margin-top: 20px;
  overflow: hidden;
  color: #162d24;
}
.g-vdetail-hero.has-photo { color: #ffffff; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.g-vdetail-hero.has-photo:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,26,20,0.35) 0%, rgba(12,26,20,0.82) 100%);
  z-index: 1;
}
.g-vdetail-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.g-vdetail-top, .g-vdetail-main { position: relative; z-index: 2; }
.g-vdetail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.g-vdetail-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.g-vdetail-main { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: center; }
.g-vdetail-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.g-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.88);
  color: #183a2c;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 7px;
}
.g-vdetail-info h1 { margin: 0 0 10px; color: inherit; }
.g-vdetail-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.g-vdetail-meta .g-plate { margin: 0; }
.g-vdetail-km { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.88); color: #162e24; padding: 6px 12px; border-radius: 10px; }
.g-vdetail-km strong { font-size: 16px; font-weight: 700; }
.g-vdetail-art { display: flex; justify-content: flex-end; align-items: flex-end; }
.g-vdetail-art svg { width: 100%; max-width: 280px; height: 120px; }
.g-vdetail-hero.has-photo .g-vdetail-art { display: none; }
.g-vdetail-content > .head { display: none; }

/* Clickable Next Service Widget (Section 8) */
.g-next-service-widget {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin: 16px 0 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
  color: var(--ink);
  transition: border-color .15s, transform .12s;
}
.g-next-service-widget:hover { border-color: var(--green); transform: translateY(-1px); }
.g-next-service-widget.overdue { border-color: #d98276; background: #fff9f8; }
[data-theme="dark"] .g-next-service-widget.overdue { background: #291816; }
.g-nsw-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.g-nsw-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.g-nsw-body strong { font-size: 16px; font-weight: 700; }
.g-nsw-body small { font-size: 12px; color: var(--muted); }
.g-nsw-status { display: flex; align-items: center; gap: 10px; }

/* Tyre & Battery Warranty Live Progress Bars */
.g-warranty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 8px;
}
.g-warranty-card {
  display: grid;
  gap: 11px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
  color: var(--ink);
  transition: border-color .15s, transform .12s;
}
.g-warranty-card:hover { border-color: var(--green); transform: translateY(-1px); }
.g-warranty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.g-warranty-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
}
.g-warranty-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--green-soft);
  overflow: hidden;
}
.g-warranty-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width .3s ease;
}
.g-warranty-bar-fill.soon { background: #d98a16; }
.g-warranty-bar-fill.overdue { background: #c43c2d; }
.g-warranty-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.g-warranty-cta {
  color: var(--green);
  font-weight: 650;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .g-warranty-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* Backdrop Studio Picker */
.g-backdrop-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.g-backdrop-option {
  height: 68px;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 8px 10px;
  display: flex;
  align-items: flex-end;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #173026;
}
.g-backdrop-option span {
  background: rgba(255,255,255,0.88);
  padding: 2px 7px;
  border-radius: 5px;
}
.g-backdrop-option.active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }

/* Empty states, Timeline, Settings & Auth */
.g-empty {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed #b7c9bc;
  border-radius: 20px;
  padding: 38px 25px;
  text-align: center;
}
.g-empty-art {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.g-empty h3 { font-size: 21px; }
.g-empty p { max-width: 390px; margin: 8px auto 20px; }
.g-empty-note { padding: 20px; color: var(--muted); font-size: 12px; }
.g-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.g-all-vehicles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-vehicles-footer { margin-top: 20px; }
.g-filters { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.g-filters label { margin: 0; min-width: 200px; max-width: 40%; font-size: 12px; }
.g-filters span { padding-bottom: 13px; font-size: 12px; }
.g-timeline-row { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 20px; }
.g-timeline-date { padding-top: 22px; font-size: 12px; font-weight: 650; }
.g-timeline-date small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
.g-timeline .timeline-item { margin-bottom: 15px; }
.g-timeline .timeline-card { background: var(--surface); }

.g-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* Login & Cloudflare Instant Vault UI */
.g-login {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--surface);
  max-width: 1080px;
  margin: 4vh auto;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 650px;
}
.g-auth aside { display: none; }
.g-auth main { margin: 0; padding: 20px; max-width: none; }
.g-login-story { position: relative; overflow: hidden; background: #1c3d2f; }
.g-login-story > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.g-login-story:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,44,31,0.15) 20%, rgba(12,33,24,0.92) 100%); }
.g-login-copy { position: absolute; bottom: 36px; left: 36px; right: 32px; color: #fff; z-index: 1; }
.g-login-copy .eyebrow { color: #d8ecd8; font-size: 10px; }
.g-login-copy h1 { font-size: 44px; line-height: 1.12; letter-spacing: -1.8px; margin: 14px 0; color: #fff; }
.g-login-copy p { font-size: 13px; color: #dce8df; line-height: 1.55; }
.g-login-form { padding: 40px 44px; align-self: center; }
.g-login-brand { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 750; letter-spacing: -.8px; margin-bottom: 24px; }
.g-login-brand span { color: var(--green); font-size: 14px; background: var(--green-soft); padding: 2px 8px; border-radius: 7px; }
.g-login-form h2 { font-size: 25px; letter-spacing: -.8px; margin: 6px 0 14px; }
.g-login-form label { font-size: 12px; font-weight: 600; }
.g-login-form input { font-size: 14px; background: var(--surface-subtle); }
.g-login-form .primary { width: 100%; }
.g-cf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.g-cf-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ca365; }
.g-instant-btn {
  background: var(--green-soft);
  color: var(--green);
  border-color: #b4d1be;
  font-weight: 700;
}
.g-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.g-auth-divider:before, .g-auth-divider:after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.g-login-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}

.g-ready .mobile-bottom-nav { grid-template-columns: repeat(5, 1fr); }
.g-ready .mobile-bottom-nav button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  font-size: 10px;
}
.g-ready .mobile-bottom-nav button span { font-size: 10px; font-weight: 600; }
.g-ready .mobile-bottom-nav button.active { color: var(--green); }
.g-ready .mobile-bottom-nav .g-icon { width: 21px; height: 21px; }
.g-ready .mobile-topbar .mobile-brand-mark { display: flex; align-items: center; justify-content: center; }
.g-ready .mobile-page-title { font-size: 11px; font-weight: 650; }
.g-mobile-theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.g-ready .page-content { min-width: 0; }
.g-ready .milo-panel { border-radius: 20px; }
.g-ready dialog { border-radius: 20px; background: var(--surface); color: var(--ink); }
.g-ready .notice { display: none; }

@media (min-width: 1500px) {
  .g-dashboard { grid-template-columns: minmax(0, 1fr) 350px; }
  .g-vehicle-art { height: 195px; }
}

@media (max-width: 1150px) and (min-width: 761px) {
  aside { width: 192px; padding: 28px 16px; }
  main { margin-left: 192px; padding: 22px; }
  .g-dashboard { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  .g-vehicles { grid-template-columns: 1fr; }
  .g-all-vehicles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-summary { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 16px; }
  .g-summary button { border-right: 0; padding: 8px 12px; }
  .g-hero-banner { grid-template-columns: 1fr; }
  .g-hero-visual { height: 150px; }
}

@media (max-width: 760px) {
  aside { display: none; }
  main { margin: 0 !important; padding: 0 16px calc(104px + env(safe-area-inset-bottom)) !important; }
  .g-topbar { display: none; }
  .mobile-topbar {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    min-height: 66px;
    padding-top: env(safe-area-inset-top);
  }
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .g-search { margin-top: 14px; height: 46px; padding: 0 12px; }
  .g-search-hint { display: none; }
  .g-hero-banner { grid-template-columns: 1fr; padding: 18px; gap: 16px; margin: 16px 0; }
  .g-hero-visual { height: 138px; }
  .g-summary { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; border-radius: 16px; }
  .g-summary button { padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .g-summary button:nth-last-child(-n+2) { border-bottom: 0; }
  .g-summary strong { font-size: 24px; }
  .g-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 24px; }
  .g-quick > .eyebrow { display: none; }
  .g-quick button { font-size: 11px; flex-direction: column; padding: 11px 6px; gap: 6px; }
  .g-dashboard { display: flex; flex-direction: column; gap: 22px; }
  .g-vehicles, .g-all-vehicles { grid-template-columns: 1fr; gap: 14px; }
  .g-vdetail-main { grid-template-columns: 1fr; }
  .g-vdetail-art { justify-content: center; }
  .g-next-service-widget { padding: 15px; gap: 12px; }
  .g-filters { gap: 12px; flex-wrap: wrap; }
  .g-filters label { min-width: 0; max-width: none; width: calc(50% - 6px); }
  .g-filters span { width: 100%; padding: 0; }
  .g-timeline-row { grid-template-columns: 1fr; gap: 0; }
  .g-timeline-date { padding-top: 8px; padding-bottom: 8px; }
  .g-timeline-date small { display: inline; margin-left: 10px; }
  .g-auth main { padding: 14px !important; }
  .g-login { grid-template-columns: 1fr; min-height: 0; margin: 0; border-radius: 20px; }
  .g-login-story { height: 185px; grid-row: 2; }
  .g-login-copy { left: 20px; bottom: 16px; }
  .g-login-copy h1 { font-size: 28px; margin: 6px 0; }
  .g-login-form { padding: 24px 20px; }
  .g-ready dialog { border-radius: 18px 18px 0 0; }
  .g-ready .milo-panel { max-height: calc(100dvh - 100px - env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  aside, .g-search, .g-topbar, .mobile-topbar, .mobile-bottom-nav, .g-footer, .g-card-photo-btn, #milo-fab, #milo-panel { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; }
  .g-vehicle { break-inside: avoid; }
}
