:root {
  --imotive-ink: #0f172a;
  --imotive-muted: #526176;
  --imotive-subtle: #7b889b;
  --imotive-line: #e2e8f0;
  --imotive-canvas: #f8fafc;
  --imotive-panel: #ffffff;
  --imotive-blue: #2563eb;
  --imotive-blue-dark: #1d4ed8;
  --imotive-blue-soft: #eff6ff;
  --imotive-success: #059669;
  --imotive-warning: #d97706;
  --imotive-danger: #dc2626;
  --imotive-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --imotive-shadow-soft: 0 8px 28px rgba(15, 23, 42, .06);
  --imotive-radius: 20px;
  --imotive-radius-sm: 12px;
}

html { scroll-behavior: smooth; }
body.imotive-unified-page,
body.imotive-operations-page {
  margin: 0;
  background: var(--imotive-canvas) !important;
  color: var(--imotive-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.imotive-unified-page *,
body.imotive-operations-page * { box-sizing: border-box; }
body.imotive-unified-page a,
body.imotive-operations-page a { text-underline-offset: 3px; }
body.imotive-unified-page :focus-visible,
body.imotive-operations-page :focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25) !important;
  outline-offset: 2px;
}

/* Shared page chrome */
.imotive-utility-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 80;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--imotive-line);
}
.imotive-utility-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.imotive-utility-brand {
  color: var(--imotive-ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.imotive-utility-brand > span { color: var(--imotive-blue); }
.imotive-utility-brand small {
  margin-left: .38rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
}
.imotive-utility-nav { display: flex; align-items: center; gap: 8px; }
.imotive-utility-nav a {
  color: #475569;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  padding: .62rem .84rem;
  border-radius: 999px;
}
.imotive-utility-nav a:hover { background: #f1f5f9; color: var(--imotive-ink); }
.imotive-utility-nav a.is-primary { background: var(--imotive-ink); color: #fff; }

.imotive-page-intro {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding-top: 36px;
}
.imotive-page-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--imotive-blue-dark);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.imotive-page-intro__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--imotive-blue);
}
.imotive-page-intro h1 {
  margin: .75rem 0 .65rem;
  color: var(--imotive-ink);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.imotive-page-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--imotive-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Universal surfaces */
body.imotive-unified-page .glass-panel,
body.imotive-unified-page .glass-panel-heavy,
body.imotive-unified-page .form-card,
body.imotive-unified-page .content-card,
body.imotive-unified-page .portal-card,
body.imotive-unified-page .listing-card,
body.imotive-unified-page .card,
body.imotive-unified-page [class*="shadow-xl"],
body.imotive-unified-page [class*="shadow-2xl"] {
  background: #fff;
  border-color: var(--imotive-line);
}
body.imotive-unified-page .glass-panel,
body.imotive-unified-page .glass-panel-heavy {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--imotive-shadow-soft);
}
body.imotive-unified-page .rounded-2xl,
body.imotive-unified-page .rounded-3xl,
body.imotive-unified-page [class*="rounded-["] { border-radius: var(--imotive-radius) !important; }

body.imotive-unified-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.imotive-unified-page select,
body.imotive-unified-page textarea,
body.imotive-operations-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.imotive-operations-page select,
body.imotive-operations-page textarea {
  min-height: 46px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--imotive-ink) !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.imotive-unified-page textarea,
body.imotive-operations-page textarea { min-height: 110px; }
body.imotive-unified-page input:focus,
body.imotive-unified-page select:focus,
body.imotive-unified-page textarea:focus,
body.imotive-operations-page input:focus,
body.imotive-operations-page select:focus,
body.imotive-operations-page textarea:focus {
  border-color: var(--imotive-blue) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
  outline: none !important;
}
body.imotive-unified-page label,
body.imotive-operations-page label { color: #334155; }

body.imotive-unified-page button,
body.imotive-unified-page input[type="submit"],
body.imotive-operations-page button,
body.imotive-operations-page input[type="submit"] {
  font-family: inherit;
}
body.imotive-unified-page .btn-primary,
body.imotive-unified-page .btn-submit,
body.imotive-unified-page .button-primary,
body.imotive-operations-page .btn-primary,
body.imotive-operations-page .btn-submit,
body.imotive-operations-page .btn-glass {
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--imotive-ink) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body.imotive-unified-page .btn-primary:hover,
body.imotive-unified-page .btn-submit:hover,
body.imotive-operations-page .btn-primary:hover,
body.imotive-operations-page .btn-submit:hover,
body.imotive-operations-page .btn-glass:hover {
  background: #1e293b !important;
  transform: translateY(-1px);
}
body.imotive-unified-page .btn-secondary,
body.imotive-operations-page .btn-secondary,
body.imotive-operations-page .btn-add {
  border: 1px solid var(--imotive-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--imotive-ink) !important;
  box-shadow: none !important;
}

/* Consumer forms and management pages */
body.imotive-form-page { padding: 0 !important; }
body.imotive-form-page > .max-w-xl,
body.imotive-form-page > .max-w-2xl,
body.imotive-form-page > .max-w-3xl,
body.imotive-form-page > .max-w-4xl,
body.imotive-form-page > main,
body.imotive-form-page .page-shell {
  width: min(920px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
body.imotive-form-page > .max-w-xl,
body.imotive-form-page > .max-w-2xl,
body.imotive-form-page > .max-w-3xl,
body.imotive-form-page > .max-w-4xl {
  max-width: 920px !important;
  margin-top: 32px;
  margin-bottom: 64px;
  border-radius: 24px !important;
  border: 1px solid var(--imotive-line) !important;
  box-shadow: var(--imotive-shadow) !important;
}
body.imotive-form-page .tab-btn {
  color: #64748b !important;
  border-color: transparent !important;
}
body.imotive-form-page .tab-btn.active {
  color: var(--imotive-blue-dark) !important;
  border-color: var(--imotive-blue) !important;
}
body.imotive-form-page .bg-slate-50,
body.imotive-form-page .bg-gray-50,
body.imotive-form-page .bg-zinc-50 { background: #f8fafc !important; }
body.imotive-form-page .bg-sky-50,
body.imotive-form-page .bg-blue-50 { background: var(--imotive-blue-soft) !important; }
body.imotive-form-page .text-sky-500,
body.imotive-form-page .text-sky-600,
body.imotive-form-page .text-blue-500,
body.imotive-form-page .text-blue-600 { color: var(--imotive-blue) !important; }
body.imotive-form-page .bg-sky-500,
body.imotive-form-page .bg-blue-500 { background: var(--imotive-blue) !important; }

/* Booking page */
body.imotive-booking-page .split-layout { background: #fff; }
body.imotive-booking-page .panel-left {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
  color: var(--imotive-ink) !important;
  border-right: 1px solid var(--imotive-line);
}
body.imotive-booking-page .panel-left::before,
body.imotive-booking-page .panel-left::after { opacity: .38; }
body.imotive-booking-page .brand-logo,
body.imotive-booking-page .hero-title,
body.imotive-booking-page .feature-text h4 { color: var(--imotive-ink) !important; }
body.imotive-booking-page .hero-desc,
body.imotive-booking-page .feature-text p,
body.imotive-booking-page .back-link { color: var(--imotive-muted) !important; }
body.imotive-booking-page .back-link:hover { color: var(--imotive-blue) !important; }
body.imotive-booking-page .panel-right { background: var(--imotive-canvas); }
body.imotive-booking-page .form-card { border: 1px solid var(--imotive-line); box-shadow: var(--imotive-shadow); }

/* Pillar and cover pages */
body.imotive-pillar-page main,
body.imotive-cover-page main { background: #fff; }
body.imotive-pillar-page section,
body.imotive-cover-page section { border-color: var(--imotive-line) !important; }
body.imotive-pillar-page [class*="radial-gradient"],
body.imotive-cover-page [class*="radial-gradient"] { opacity: .45; }
body.imotive-pillar-page footer,
body.imotive-cover-page footer { background: var(--imotive-canvas) !important; }

/* Operational tools */
body.imotive-operations-page .liquid-bg {
  min-height: 100vh;
  padding: 28px 16px 60px !important;
  background: var(--imotive-canvas) !important;
  color: var(--imotive-ink) !important;
}
body.imotive-operations-page .liquid-bg::before {
  content: "";
  display: block;
  width: min(1180px, 100%);
  height: 1px;
  margin: 0 auto 24px;
  background: var(--imotive-line);
}
body.imotive-operations-page .glass-panel,
body.imotive-operations-page .glass-panel-wide,
body.imotive-operations-page .glass-card,
body.imotive-operations-page .modal-content,
body.imotive-operations-page .work-row,
body.imotive-operations-page .check-item,
body.imotive-operations-page .stat-box {
  background: #fff !important;
  color: var(--imotive-ink) !important;
  border: 1px solid var(--imotive-line) !important;
  box-shadow: var(--imotive-shadow-soft) !important;
  backdrop-filter: none !important;
}
body.imotive-operations-page .glass-panel,
body.imotive-operations-page .glass-panel-wide { border-radius: 24px !important; }
body.imotive-operations-page .glass-card,
body.imotive-operations-page .work-row,
body.imotive-operations-page .check-item,
body.imotive-operations-page .stat-box { border-radius: 16px !important; }
body.imotive-operations-page .glass-panel h1,
body.imotive-operations-page .glass-panel h2,
body.imotive-operations-page .glass-panel h3,
body.imotive-operations-page .glass-panel-wide h1,
body.imotive-operations-page .glass-panel-wide h2,
body.imotive-operations-page .glass-panel-wide h3,
body.imotive-operations-page .modal-content h1,
body.imotive-operations-page .modal-content h2,
body.imotive-operations-page .modal-content h3 { color: var(--imotive-ink) !important; }
body.imotive-operations-page .glass-panel h3,
body.imotive-operations-page .glass-panel-wide h3 { border-color: var(--imotive-line) !important; }
body.imotive-operations-page .glass-table { color: var(--imotive-ink) !important; }
body.imotive-operations-page .glass-table th {
  color: #475569 !important;
  border-color: var(--imotive-line) !important;
  background: #f8fafc;
}
body.imotive-operations-page .glass-table td { border-color: var(--imotive-line) !important; }
body.imotive-operations-page .stat-num { color: var(--imotive-blue) !important; }
body.imotive-operations-page .upload-area {
  background: #f8fafc !important;
  border: 1px dashed #94a3b8 !important;
  color: var(--imotive-muted) !important;
}
body.imotive-operations-page .upload-area:hover { background: var(--imotive-blue-soft) !important; border-color: var(--imotive-blue) !important; }
body.imotive-operations-page .rag-red { background: #fef2f2 !important; border-color: #fca5a5 !important; }
body.imotive-operations-page .rag-amber { background: #fffbeb !important; border-color: #fcd34d !important; }
body.imotive-operations-page .rag-green { background: #ecfdf5 !important; border-color: #6ee7b7 !important; }
body.imotive-operations-page #reportModal,
body.imotive-operations-page #griddingModal { background: rgba(15, 23, 42, .55) !important; }
body.imotive-operations-page .sidebar {
  background: #fff !important;
  border-right: 1px solid var(--imotive-line) !important;
}
body.imotive-operations-page .topbar {
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--imotive-line) !important;
  box-shadow: none !important;
}
body.imotive-operations-page .workspace,
body.imotive-operations-page .main-content { background: var(--imotive-canvas) !important; }

/* Customer portal */
body.imotive-customer-page {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
}
body.imotive-customer-page .portal-card,
body.imotive-customer-page .customer-card,
body.imotive-customer-page .approval-card {
  border: 1px solid var(--imotive-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: var(--imotive-shadow-soft) !important;
}

/* Status and feedback */
.imotive-status-note {
  padding: .85rem 1rem;
  border: 1px solid var(--imotive-line);
  border-radius: 12px;
  background: #fff;
  color: var(--imotive-muted);
  font-size: .9rem;
}
.imotive-status-note.is-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.imotive-status-note.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

@media (max-width: 782px) {
  .imotive-utility-header { top: 0; }
}
@media (max-width: 720px) {
  .imotive-utility-header__inner { min-height: 64px; }
  .imotive-utility-nav a:not(.is-primary) { display: none; }
  .imotive-page-intro { padding-top: 24px; }
  body.imotive-form-page > .max-w-xl,
  body.imotive-form-page > .max-w-2xl,
  body.imotive-form-page > .max-w-3xl,
  body.imotive-form-page > .max-w-4xl { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Dealer OS feature landing pages: light premium treatment while retaining existing interactions */
body.imotive-dealer-feature-page {
  background: #fff !important;
}
body.imotive-dealer-feature-page .imotive-legacy-hero {
  height: auto !important;
  min-height: 620px !important;
  padding: 7rem 0 5rem !important;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
  border-bottom: 1px solid var(--imotive-line);
  overflow: hidden;
}
body.imotive-dealer-feature-page .imotive-legacy-hero > .absolute.inset-0,
body.imotive-dealer-feature-page .imotive-legacy-hero > .absolute.bottom-0,
body.imotive-dealer-feature-page .imotive-legacy-nav { display: none !important; }
body.imotive-dealer-feature-page .imotive-legacy-hero .relative.z-30 {
  min-height: 460px;
  padding-top: 0 !important;
}
body.imotive-dealer-feature-page .imotive-legacy-hero h1,
body.imotive-dealer-feature-page .imotive-legacy-hero h2,
body.imotive-dealer-feature-page .imotive-legacy-hero h3,
body.imotive-dealer-feature-page .imotive-legacy-hero .text-white {
  color: var(--imotive-ink) !important;
  text-shadow: none !important;
}
body.imotive-dealer-feature-page .imotive-legacy-hero h1 {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -.045em !important;
  line-height: 1.02 !important;
}
body.imotive-dealer-feature-page .imotive-legacy-hero .text-transparent {
  color: var(--imotive-ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
body.imotive-dealer-feature-page .imotive-legacy-hero p:not([class*="uppercase"]),
body.imotive-dealer-feature-page .imotive-legacy-hero .text-surface-200,
body.imotive-dealer-feature-page .imotive-legacy-hero .text-surface-300,
body.imotive-dealer-feature-page .imotive-legacy-hero .text-surface-400 {
  color: var(--imotive-muted) !important;
}
body.imotive-dealer-feature-page .imotive-legacy-hero [class*="bg-white/10"],
body.imotive-dealer-feature-page .imotive-legacy-hero [class*="bg-surface-900/"],
body.imotive-dealer-feature-page .imotive-legacy-hero [class*="backdrop-blur"] {
  background: #fff !important;
  border-color: var(--imotive-line) !important;
  box-shadow: var(--imotive-shadow-soft) !important;
  backdrop-filter: none !important;
}
body.imotive-dealer-feature-page .imotive-legacy-hero a[class*="bg-emerald"],
body.imotive-dealer-feature-page .imotive-legacy-hero a[class*="bg-brand"],
body.imotive-dealer-feature-page .imotive-legacy-hero button[class*="bg-emerald"],
body.imotive-dealer-feature-page .imotive-legacy-hero button[class*="bg-brand"] {
  background: var(--imotive-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
}
body.imotive-dealer-feature-page section {
  border-color: var(--imotive-line) !important;
}
body.imotive-dealer-feature-page section:nth-of-type(odd) { background: #fff !important; }
body.imotive-dealer-feature-page section:nth-of-type(even) { background: var(--imotive-canvas) !important; }
body.imotive-dealer-feature-page section [class*="bg-surface-900"],
body.imotive-dealer-feature-page section [class*="bg-zinc-900"],
body.imotive-dealer-feature-page section [class*="bg-slate-900"] {
  background: #fff !important;
  color: var(--imotive-ink) !important;
  border: 1px solid var(--imotive-line) !important;
}
body.imotive-dealer-feature-page section [class*="bg-emerald-50"],
body.imotive-dealer-feature-page section [class*="bg-brand-50"],
body.imotive-dealer-feature-page section [class*="bg-blue-50"],
body.imotive-dealer-feature-page section [class*="bg-sky-50"],
body.imotive-dealer-feature-page section [class*="bg-purple-50"] {
  background: #fff !important;
  border-color: var(--imotive-line) !important;
}
body.imotive-dealer-feature-page .text-emerald-500,
body.imotive-dealer-feature-page .text-emerald-600,
body.imotive-dealer-feature-page .text-brand-500,
body.imotive-dealer-feature-page .text-brand-600,
body.imotive-dealer-feature-page .text-sky-500,
body.imotive-dealer-feature-page .text-sky-600 { color: var(--imotive-blue) !important; }
body.imotive-dealer-feature-page .bg-emerald-500,
body.imotive-dealer-feature-page .bg-emerald-600,
body.imotive-dealer-feature-page .bg-brand-500,
body.imotive-dealer-feature-page .bg-brand-600,
body.imotive-dealer-feature-page .bg-sky-500,
body.imotive-dealer-feature-page .bg-sky-600 { background: var(--imotive-blue) !important; }
body.imotive-dealer-feature-page [class*="rounded-3xl"],
body.imotive-dealer-feature-page [class*="rounded-[2rem]"] { border-radius: 24px !important; }
body.imotive-dealer-feature-page .matrix-accordion,
body.imotive-dealer-feature-page .endpoint-box,
body.imotive-dealer-feature-page .tab-btn,
body.imotive-dealer-feature-page .screenshot-container,
body.imotive-dealer-feature-page article {
  border-color: var(--imotive-line) !important;
}
body.imotive-dealer-feature-page .screenshot-container {
  background: #fff !important;
  box-shadow: var(--imotive-shadow-soft) !important;
}
body.imotive-dealer-feature-page .tab-btn.active {
  border-color: var(--imotive-blue) !important;
  box-shadow: 0 10px 25px -8px rgba(37, 99, 235, .18) !important;
}
body.imotive-dealer-feature-page footer { background: #fff !important; border-color: var(--imotive-line) !important; }
