/* My Garage 3.0 — Modern Daylight Clean Automotive UI */

:root {
  --bg-app: #f8fafc;
  --bg-subtle: #f1f5f9;
  --card: #ffffff;
  --card-elevated: #ffffff;
  --card-hover: #f8fafc;
  --line: #e2e8f0;
  --line-strong: rgba(5, 150, 105, 0.3);
  
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  
  --emerald: #059669;
  --emerald-neon: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.16);
  --emerald-soft: #ecfdf5;
  --emerald-deep: #064e3b;
  
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --blue: #0284c7;
  --blue-soft: #f0f9ff;
  --purple: #9333ea;
  --purple-soft: #faf5ff;
  
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Urbanist', 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-elevated: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
}

/* Base resets & Clean Mobile Shell */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #f1f5f9;
  color: var(--ink);
  font-family: var(--font-main);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Mobile App Frame */
#app {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: var(--bg-app);
  position: relative;
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.07), 0 0 0 1px #e2e8f0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 20px));
  overflow-x: hidden;
}

@media (max-width: 480px) {
  #app {
    max-width: 100%;
    box-shadow: none;
    border: none;
  }
}

/* Hide desktop legacy sidebar */
aside {
  display: none !important;
}

/* Typography & Headings */
h1, h2, h3, h4, .m-hero-title, .m-stat-val, .m-vp-name, .m-auth-form-title {
  font-family: var(--font-display) !important;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.03em !important;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

button:active {
  transform: scale(0.97);
  transition: transform 0.12s ease;
}

input, select, textarea {
  font-family: inherit;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  border: none !important;
}

.secondary {
  background: #ffffff;
  color: var(--ink-secondary) !important;
  border: 1px solid #cbd5e1;
  font-weight: 650;
  border-radius: var(--radius-md);
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Native Mobile Top Header */
.m-app-header {
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e2e8f0;
}

.m-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.m-bell-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* Hero Title Section */
.m-hero-title-wrap {
  padding: 16px 20px 10px;
}

.m-hero-title {
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin: 0;
  font-weight: 800;
  color: #0f172a;
}

.m-hero-title span {
  color: var(--emerald);
  display: block;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.m-hero-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
  line-height: 1.45;
}

/* Cinematic Showcase Card - Clean Daylight Style */
.m-showcase-stage {
  padding: 8px 18px 0;
  position: relative;
}

.m-showcase-card {
  position: relative;
  height: 195px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 50%, #e0f2fe 100%);
  border: 1px solid #a7f3d0;
  box-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.m-showcase-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.m-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(248, 250, 252, 0.88) 100%);
}

.m-showcase-art {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 320px;
  height: 135px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.15));
}
.m-showcase-art svg {
  width: 100%;
  height: 100%;
}
.m-showcase-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Carousel Indicator Dots */
.m-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 4px;
}
.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: all 0.2s ease;
}
.m-dot.active {
  width: 22px;
  background: var(--emerald);
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.35);
}

/* Active Vehicle Selector Card */
.m-vehicle-picker-card {
  margin: 8px 18px 14px;
  padding: 13px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.m-vehicle-picker-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 6px 20px -2px rgba(5, 150, 105, 0.1);
}

.m-vp-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.m-vp-thumb {
  width: 52px;
  height: 42px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-vp-thumb svg {
  width: 90%;
  height: 90%;
}

.m-vp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-vp-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 650;
}

.m-vp-name {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--ink);
}

.m-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
  margin-top: 2px;
}
.m-status-pill.good { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.m-status-pill.soon { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.m-status-pill.overdue { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.m-vp-right {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.m-vp-km {
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}

/* 4-Bento Grid - Soft Clean Pastel Icons */
.m-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 0 18px 14px;
}

.m-bento-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 14px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
}

.m-bento-item:hover {
  transform: translateY(-2px);
  border-color: #a7f3d0;
  box-shadow: 0 8px 20px -2px rgba(5, 150, 105, 0.12);
}

.m-bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-bento-icon.green { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.m-bento-icon.orange { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }
.m-bento-icon.blue { background: #f0f9ff; color: #0284c7; border: 1px solid #e0f2fe; }
.m-bento-icon.purple { background: #faf5ff; color: #9333ea; border: 1px solid #f3e8ff; }

.m-bento-item span {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
}

/* Next Service Due Highlight Banner */
.m-service-banner {
  margin: 0 18px 14px;
  padding: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 20px -4px rgba(5, 150, 105, 0.08);
}

.m-sb-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.m-sb-title {
  font-size: 15px;
  margin: 0;
  color: #064e3b;
  font-weight: 750;
}

.m-sb-sub {
  font-size: 12px;
  color: #059669;
  margin-top: 3px;
  font-weight: 500;
}

.m-sb-btn {
  background: #059669;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25);
}

.m-sb-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #d1fae5;
  overflow: hidden;
}

.m-sb-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669, #10b981);
}

/* 3-Pillar Analytics Bar */
.m-analytics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 0 18px 16px;
}

.m-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 85px;
}

.m-stat-val {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.m-stat-lbl {
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
  margin-top: 2px;
  line-height: 1.25;
}

.m-stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #059669;
  margin-top: 5px;
  font-weight: 750;
}

/* Section Header Bar */
.m-section-head {
  padding: 10px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.m-section-head h2 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.3px;
  color: #0f172a;
}
.m-section-head a, .m-section-head button {
  font-size: 12px;
  color: #059669;
  font-weight: 700;
}

/* Activity / Service Rows */
.m-list-card {
  margin: 0 18px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.m-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  transition: background-color 0.12s;
  width: 100%;
  text-align: left;
}
.m-row-item:last-child {
  border-bottom: none;
}
.m-row-item:active {
  background: #f8fafc;
}

.m-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  flex-shrink: 0;
}

.m-row-content {
  flex: 1;
  min-width: 0;
}
.m-row-content b {
  font-size: 13px;
  color: #0f172a;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-row-content small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.m-row-amount {
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
}

/* Native Floating Bottom Tab Navigation - Clean Daylight */
.m-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 12px));
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}

.m-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  color: #64748b;
  font-size: 10px;
  font-weight: 650;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.m-tab-item svg {
  width: 22px;
  height: 22px;
  color: inherit;
}

.m-tab-item.active {
  color: #059669;
}

.m-tab-item.active .m-tab-pill {
  background: #ecfdf5;
  color: #059669;
  padding: 4px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Milo Floating Assistant - Daylight Green Orb */
#milo-fab {
  position: fixed !important;
  z-index: 90 !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border: 1px solid #a7f3d0 !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.16s ease !important;
  color: #ffffff !important;
}

#milo-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15) !important;
}

/* Modals & Dialogs - Clean Daylight */
dialog {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: var(--radius-xl) !important;
  max-width: 420px !important;
  width: calc(100vw - 24px) !important;
  padding: 24px 20px !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18) !important;
}
dialog::backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px) !important;
}

/* Authentication Screen - Clean Daylight Aesthetic */
.m-auth-wrapper {
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.m-auth-header-hero {
  margin-bottom: 24px;
}

.m-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 999px;
  color: #059669;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.m-auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
}

.m-auth-form {
  display: flex;
  flex-direction: column;
}

.m-auth-form-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}

.m-auth-subtext {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px;
}

.m-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.m-field label {
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  letter-spacing: 0.1px;
}

.m-optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
}

.m-field input,
.m-field select {
  width: 100%;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 13px 15px !important;
  font-size: 14px !important;
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s ease;
}

.m-field input:focus,
.m-field select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
  background: #ffffff !important;
}

.m-auth-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  border: none !important;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
  transition: transform 0.1s ease, filter 0.15s ease;
}

.m-auth-btn-primary:active {
  transform: scale(0.98);
}

.m-auth-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.m-auth-link {
  color: #059669 !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  background: none;
  border: none;
}

.m-auth-link:hover {
  text-decoration: underline;
}

.m-auth-back-btn {
  color: #059669;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.m-auth-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.m-auth-security-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 24px;
  text-align: center;
}

/* Vehicle Selector Strip (Home Top Bar) */
.m-veh-selector-bar {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.m-veh-selector-bar::-webkit-scrollbar {
  display: none;
}
.m-veh-selector-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 14px 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.m-veh-selector-chip.active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}
.m-veh-selector-chip.add {
  border-style: dashed;
  border-color: #cbd5e1;
  color: #64748b;
  background: #f8fafc;
}
.m-veh-selector-chip.add:hover {
  background: #ffffff;
  border-color: #059669;
  color: #059669;
}

/* Vehicle Cockpit Specs & Info (Inspired by Porsche 911 Reference) */
.m-cockpit-info-card {
  padding: 16px 20px 12px;
}
.m-cockpit-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.m-cockpit-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}
.m-cockpit-car-title {
  font-family: var(--font-display) !important;
  font-size: 24px !important;
  font-weight: 850 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}
.m-spec-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 4px;
}
.m-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 650;
  color: #334155;
  letter-spacing: -0.1px;
}

/* Quick Action Responsive Grid (No Overflow / No Cutoffs) */
.m-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px 10px;
}
.m-quick-grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 750;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: center;
}
.m-quick-grid-btn.primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.22) !important;
}
.m-quick-grid-btn:active {
  transform: scale(0.96);
}
.m-quick-secondary-bar {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
}
.m-quick-secondary-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: all 0.15s ease;
}
.m-quick-secondary-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Quick Action Pill Bar & Detail Cockpit */
.m-quick-actions-bar {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.m-quick-actions-bar::-webkit-scrollbar {
  display: none;
}
.m-quick-btn {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: transform 0.12s ease;
}
.m-quick-btn:active {
  transform: scale(0.96);
}

/* Segmented Mobile Tabs */
.tabs {
  display: flex !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px !important;
  border-radius: var(--radius-md) !important;
  margin: 12px 18px 18px !important;
}
.tabs button {
  flex: 1 !important;
  padding: 9px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  transition: all 0.15s ease !important;
}
.tabs button.active {
  background: #ffffff !important;
  color: #059669 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

/* 2-Column Responsive Parts Grid */
.parts {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  margin: 14px 0 !important;
}
.part {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-lg) !important;
  padding: 14px !important;
  text-align: left !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card);
}
.part strong {
  font-size: 14px !important;
  color: #0f172a !important;
  margin: 8px 0 4px !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Section Title Polish */
.sectiontitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 10px;
}
.sectiontitle h2 {
  font-size: 16px !important;
  letter-spacing: -0.2px !important;
  margin: 0 !important;
  color: #0f172a !important;
}

/* Clean Dialog & Modal Architecture (Zero Double Borders / Zero Cutoffs) */
dialog {
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 24px !important;
  width: 440px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.18) !important;
  box-sizing: border-box !important;
}
dialog::backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px) !important;
}

/* Eliminate Inner Double-Borders inside Dialogs */
dialog .detail-modal,
dialog .panel,
dialog .v112-step,
dialog .v18-step-panel,
dialog .v113-lines-card,
dialog .m-form-container {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

dialog form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

dialog label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin: 0 !important;
}

dialog input[type="text"],
dialog input[type="number"],
dialog input[type="date"],
dialog input[type="password"],
dialog input[type="email"],
dialog input[type="search"],
dialog select,
dialog textarea {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

dialog input:focus,
dialog select:focus,
dialog textarea:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
  outline: none !important;
}

dialog .two {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

/* Dialog & Form Footer */
.formfooter {
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  position: static !important;
  background: transparent !important;
}
.formfooter button.primary {
  min-height: 44px !important;
  padding: 11px 24px !important;
  border-radius: 24px !important;
  font-weight: 750 !important;
  font-size: 14px !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
}
.formfooter button.secondary {
  min-height: 44px !important;
  padding: 11px 20px !important;
  border-radius: 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
}

.v114-line-row, .detail-row, .detail-notes, .detail-file, .billpreview, .attachbox {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.chip {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

.chip.selected, .service-option.picked {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #059669 !important;
}

.service-option {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.service-option .chip small {
  color: var(--muted) !important;
}

.modal-close {
  color: var(--muted) !important;
}
.modal-close:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Toast Notification - Daylight Clean Card */
.toast {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: calc(75px + env(safe-area-inset-bottom, 12px)) !important;
  max-width: 390px !important;
  width: calc(100% - 32px) !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  border-radius: 14px !important;
  z-index: 150 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
}
.toast[hidden] {
  display: none !important;
}
.toast button {
  color: #059669 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  margin-left: 12px !important;
}

/* Modals & Dialog Daylight Clean Theme Overrides */
.reminder.row, .panel .reminder {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-bottom: 8px !important;
  color: #0f172a !important;
}
.reminder.row span, .panel .reminder span, .reminder.row b, .panel .reminder b {
  color: #0f172a !important;
}

/* Service Wizard (Image 1 fix) */
.v112-progress {
  display: flex !important;
  justify-content: space-between !important;
  margin: 14px 0 18px !important;
}
.v112-progress button {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.v112-progress button.active, .v112-progress button.done {
  color: #059669 !important;
}
.v112-progress button span {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}
.v112-progress button.active span, .v112-progress button.done span {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #059669 !important;
}
.v112-wizard-nav {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 22px !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.v112-wizard-nav .primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border-radius: 24px !important;
  padding: 11px 26px !important;
  font-weight: 750 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
}

/* Vehicle Picker Card Thumbnail & Brand Logo Fix (Image 2) */
.m-vp-thumb {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
  padding: 7px !important;
}
.m-vp-thumb svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
}

/* Vehicle Switcher Chip Brand Logo (Home Top Bar) */
.m-veh-selector-chip {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 14px 5px 9px !important;
}
.m-veh-selector-chip .m-chip-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
}
.m-veh-selector-chip .m-chip-logo svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
}

/* Milo Floating Assistant Positioning (Never Cover Car or Cards) */
#milo-fab.v119-milo-fab, .milo-fab {
  top: auto !important;
  bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  right: 14px !important;
  left: auto !important;
  transform: none !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
  z-index: 100 !important;
}

/* Mobile Dialog & Viewport Enhancements */
dialog {
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 22px 20px 24px !important;
  width: 440px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.18) !important;
}
dialog::backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px) !important;
}
