@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/*
 * THUE XE 247 — Unified Design System 2026
 * This is the final presentation layer for every public, account and owner page.
 * Contract documents keep their own official Times New Roman typography below.
 */

:root {
  color-scheme: light;
  --brand-navy-950: #073d5b;
  --brand-navy-900: #075b87;
  --brand-navy-800: #086b98;
  --brand-blue-700: #0078ad;
  --brand-blue-600: #008fcf;
  --brand-blue-500: #26a8dc;
  --brand-blue-400: #73cbe9;
  --brand-blue-100: #e6f7fd;
  --brand-blue-50: #f3fbfe;
  --brand-orange-700: #d96310;
  --brand-orange-600: #f58220;
  --brand-orange-500: #ff963e;
  --brand-orange-100: #fff1e5;
  --brand-green-700: #147354;
  --brand-green-100: #e4f7ef;
  --neutral-950: #173d4d;
  --neutral-800: #365764;
  --neutral-700: #496874;
  --neutral-650: #637b87;
  --neutral-500: #7d949e;
  --neutral-300: #c3d9e2;
  --neutral-200: #d8e7ee;
  --neutral-100: #edf5f8;
  --neutral-50: #f7fafb;
  --white: #fff;

  /* Map every legacy token to the same brand direction. */
  --brand-blue-dark: var(--brand-navy-900);
  --brand-blue-deep: var(--brand-navy-800);
  --brand-blue: var(--brand-blue-600);
  --brand-sky: var(--brand-blue-100);
  --brand-orange: var(--brand-orange-600);
  --brand-orange-soft: var(--brand-orange-100);
  --ink: var(--brand-navy-950);
  --green: var(--brand-blue-700);
  --coral: var(--brand-orange-600);
  --mint: var(--brand-blue-100);
  --muted: var(--neutral-650);
  --line: var(--neutral-200);
  --surface: var(--neutral-50);
  --font-ui: "Manrope", "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Manrope", "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 5px 18px rgba(7, 91, 135, .07);
  --shadow-md: 0 14px 36px rgba(7, 91, 135, .11);
  --shadow-lg: 0 24px 64px rgba(7, 91, 135, .16);
  --focus-ring: 0 0 0 4px rgba(0, 143, 207, .17);
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

html { font-size: 16px; scroll-behavior: smooth; }
body,
button,
input,
select,
textarea { font-family: var(--font-ui) !important; }
body {
  min-width: 320px;
  color: var(--neutral-950);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.hero h1, .page-hero h1, .section-heading h2,
.results-head h2, .title-row h1, .detail-block h2,
.auth-page h1, .auth-form h2, .dash-content>header h1,
.panel-head h3, .stats-grid b, .next-trip>h3,
.task-time b, .form-section>span, .service-explain h2,
.service-explain>div>b, .admin-tasks a>b {
  font-family: var(--font-display) !important;
  letter-spacing: -.025em;
}
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
::selection { color: #fff; background: var(--brand-blue-700); }

/* Accessible interaction states */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-orange-500) !important;
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}
button, .button, summary { cursor: pointer; }
button { font-size: 13px !important; }
body small { font-size: 12px !important; }
button:disabled, .button:disabled, [aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: .62 !important;
  box-shadow: none !important;
}

/* Header: one compact, left-aligned brand bar on every page */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 96px !important;
  border-bottom: 1px solid var(--neutral-200);
  background: rgba(255,255,255,.97);
  box-shadow: 0 4px 18px rgba(7,61,91,.05);
  backdrop-filter: blur(14px);
}
.site-header .header-inner {
  width: min(100% - 40px, 1480px);
  min-height: 96px !important;
  display: grid;
  grid-template-columns: 180px minmax(0,1fr) auto;
  gap: clamp(20px, 3vw, 54px);
  align-items: center;
}
.site-header .logo {
  width: 180px;
  min-width: 180px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.site-header .brand-logo-image {
  width: 166px !important;
  height: 84px !important;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.site-header .header-brand-logo-image {
  width: 132px !important;
  height: 88px !important;
  mix-blend-mode: normal;
  image-rendering: auto;
  filter: saturate(1.04) contrast(1.03);
}
.main-nav { justify-content: flex-start; gap: clamp(18px,2.2vw,36px); }
.main-nav a,
.header-actions a,
.user-chip {
  color: var(--neutral-950);
  font-size: 15px;
  font-weight: 720;
}
.main-nav a::after { height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-orange-600); }
.main-nav a:hover, .main-nav a.active { color: var(--brand-blue-700); }
.site-header .main-nav .owner-link {
  margin-left: auto;
  width: auto !important;
  min-width: 96px;
  height: 44px !important;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 18px !important;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-blue-700);
}
.site-header .main-nav .owner-link:hover { color: #fff; background: var(--brand-navy-800); }
.owner-nav-form { margin-left: auto; }
.owner-nav-form .owner-link {
  margin-left: 0 !important;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.header-actions { gap: 12px; }
.user-chip { min-height: 46px; padding: 5px 10px 5px 6px; border-radius: 999px; }
.user-chip img { width: 36px; height: 36px; }
.user-dropdown { min-width: 230px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.user-dropdown a { min-height: 42px; display: flex; align-items: center; border-radius: 9px; font-size: 14px; }

/* Buttons: primary blue, decisive CTA orange, neutral outline */
.button,
.owner-primary,
.booking-card-actions button,
.simple-actions button,
.inline-form button,
.special-price-heading button,
.search-button,
.emergency-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff !important;
  background: var(--brand-blue-700);
  box-shadow: 0 9px 22px rgba(0,111,159,.16);
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover,
.owner-primary:hover,
.booking-card-actions button:hover,
.simple-actions button:hover,
.inline-form button:hover {
  color: #fff;
  background: var(--brand-navy-800);
  box-shadow: 0 13px 28px rgba(0,91,138,.20);
  transform: translateY(-1px);
}
.button-sm { min-height: 40px; padding: 9px 14px; font-size: 13px !important; }
.button-coral, .search-button, .emergency-button,
.booking-next-form button, .chat-send {
  border-color: var(--brand-orange-600) !important;
  background: linear-gradient(135deg,var(--brand-orange-600),var(--brand-orange-500)) !important;
  box-shadow: 0 10px 24px rgba(243,111,23,.22) !important;
}
.button-outline, a.button-outline, button.button-outline,
.button-light {
  border-color: var(--neutral-300) !important;
  color: var(--brand-navy-800) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.button-outline:hover, a.button-outline:hover, button.button-outline:hover,
.button-light:hover { border-color: var(--brand-blue-600) !important; background: var(--brand-blue-50) !important; }
.text-link { color: var(--brand-blue-700); font-size: 14px; font-weight: 800; }

/* Forms: one field language, comfortable touch targets and clear errors */
:where(.filters,.booking-card,.auth-form,.form-grid,.inline-form,.personal-profile-form,.vehicle-form,.owner-editor,.promotion-builder,.price-field-grid,.contract-sidebar)
  :where(input,select,textarea) {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  color: var(--neutral-950);
  background: #fff;
  font-size: 15px !important;
  line-height: 1.4;
  outline: 0;
}
:where(.filters,.booking-card,.auth-form,.form-grid,.inline-form,.personal-profile-form,.vehicle-form,.owner-editor,.promotion-builder,.price-field-grid,.contract-sidebar)
  textarea { min-height: 104px; resize: vertical; }
:where(.filters,.booking-card,.auth-form,.form-grid,.personal-profile-form,.vehicle-form,.owner-editor,.promotion-builder,.price-field-grid)
  :where(input,select,textarea):focus {
  border-color: var(--brand-blue-600);
  box-shadow: var(--focus-ring);
}
:where(.filters,.booking-card,.auth-form,.form-grid,.personal-profile-form,.vehicle-form,.owner-editor,.promotion-builder,.price-field-grid) label {
  gap: 8px;
  color: var(--neutral-800);
  font-size: 13px !important;
  font-weight: 760;
}
input::placeholder, textarea::placeholder { color: #879aa3; opacity: 1; }
.field small, .form-grid small, .auth-form small, .booking-card small { font-size: 12px; color: var(--muted); }

/* Shared page rhythm and cards */
.container { width: min(100% - 40px, 1480px); }
.section { padding: clamp(64px,7vw,104px) 0; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { color: var(--brand-navy-950); font-size: clamp(34px,4vw,52px); line-height: 1.08; }
.section-heading p { max-width: 680px; color: var(--neutral-650); font-size: 16px; line-height: 1.7; }
.eyebrow,
.support-kicker,
.listing-updated,
.community-type,
.task-tag {
  color: var(--brand-orange-600);
  font-size: 12px !important;
  font-weight: 850;
  letter-spacing: .09em;
}
.dash-panel,
.booking-card,
.car-card,
.support-content>section,
.support-aside>div,
.community-card,
.owner-fleet-list,
.simple-owner-bookings,
.stats-grid>div,
.fleet-summary>article,
.booking-stats>article,
.profile-google-card,
.personal-profile-form {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.car-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.car-card:hover { border-color: #b7dce9; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.featured .car-grid { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
.car-content { padding: 18px; }
.car-content h3 { font-size: 19px; line-height: 1.35; }
.car-content p, .car-topline, .car-bottom span { font-size: 13px !important; }
.car-card :where(.service-badge,.real-photo,.instant,.compare-toggle) { font-size: 12px !important; }
.car-card small { font-size: 12px !important; }
.car-bottom strong, .car-bottom b { font-size: 18px; }

/* Hero and search: task-first marketplace layout inspired by familiar rental flows. */
.hero {
  min-height: 620px;
  max-height: 760px;
  background-image:
    radial-gradient(circle at 82% 24%,rgba(245,130,32,.28) 0 6%,transparent 7%),
    radial-gradient(circle at 78% 38%,rgba(255,255,255,.13) 0 17%,transparent 18%),
    linear-gradient(135deg,#04364f 0%,#006f9f 54%,#00a0d5 100%);
  background-position: center 58%;
}
.hero-overlay {
  background:
    linear-gradient(90deg,rgba(3,48,73,.94) 0%,rgba(7,91,135,.72) 43%,rgba(7,91,135,.12) 79%),
    linear-gradient(0deg,rgba(3,48,73,.5),transparent 55%);
}
.hero-content { padding: 58px 0 76px; }
.hero-copy { max-width: 780px; }
.hero h1 { max-width: 780px; font-size: clamp(46px,5.1vw,68px); line-height: 1.06; }
.hero-copy>p { max-width: 700px; font-size: 18px; line-height: 1.65; }
.search-panel { max-width: 1040px; margin-top: 32px; border-radius: 20px; box-shadow: 0 28px 70px rgba(3,48,73,.28); }
.service-tabs label,
.service-tabs>a {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  position: relative;
  color: var(--neutral-650);
  font-size: 15px;
}
.service-tabs>a:hover { color: var(--brand-blue-700); background: var(--brand-blue-50); }
.service-tabs label:has(input:checked):after {
  height: 3px;
  background: var(--brand-orange-600);
}
.search-fields { grid-template-columns: 1.1fr 1fr 1fr 138px; padding: 13px; }
.field small { font-size: 12px !important; letter-spacing: .06em; }
.field b { font-size: 15px; }
.search-button {
  min-width: 138px;
  min-height: 66px;
  gap: 10px;
  border-color: var(--brand-orange-600) !important;
  border-radius: 13px;
  background: linear-gradient(135deg,var(--brand-orange-700),var(--brand-orange-500)) !important;
  box-shadow: 0 12px 26px rgba(245,130,32,.25) !important;
  font-size: 15px !important;
}
.search-button>span { display: inline; font-weight: 850; }
.search-button>b { font-size: 21px; line-height: 1; }
.quick-links { min-height: 48px; align-items: center; gap: 16px; padding: 10px 22px; }
.quick-links a { color: var(--brand-blue-700); border: 0; font-size: 12px; font-weight: 780; }
.quick-links a:hover { text-decoration: underline; }
.trust-strip span { font-size: 14px; }

/* Home-marketplace sections */
.market-trust {
  border-bottom: 1px solid var(--neutral-200);
  background: #fff;
}
.market-trust .container {
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: center;
}
.market-trust article {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 24px;
  border-right: 1px solid var(--neutral-200);
}
.market-trust article:first-child { padding-left: 0; }
.market-trust article:last-child { padding-right: 0; border-right: 0; }
.market-trust i,
.benefit-grid i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-blue-700);
  background: var(--brand-blue-100);
  font-style: normal;
  font-weight: 850;
}
.market-trust i { width: 40px; height: 40px; font-size: 13px; }
.market-trust span, .market-trust b, .market-trust small { display: block; }
.market-trust b { font-size: 14px; }
.market-trust small { margin-top: 2px; color: var(--neutral-650); font-size: 11px !important; line-height: 1.4; }
.market-benefits { background: var(--neutral-50); }
.market-benefits .section-heading p { margin: 16px auto 0; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.benefit-grid article {
  min-height: 228px;
  padding: 28px;
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.benefit-grid article:hover { border-color: #9bcfe2; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.benefit-grid i { width: 48px; height: 48px; font-size: 17px; }
.benefit-grid h3 { margin: 20px 0 8px; color: var(--brand-navy-950); font-size: 19px; }
.benefit-grid p { margin: 0; color: var(--neutral-650); font-size: 14px; line-height: 1.7; }
.eyebrow:not(.light) { color: var(--brand-orange-600); }
.page-hero,
.protection,
.owner-card { background-color: var(--brand-navy-950); }

/* Listings and vehicle detail */
.page-hero h1, .support-hero h1 { font-size: clamp(40px,4.2vw,56px); line-height: 1.08; }
.page-hero p, .support-hero p { max-width: 780px; font-size: 17px; line-height: 1.7; }
.filters { border-radius: var(--radius-lg); }
.filter-title h3, .results-head h2 { font-size: 24px; }
.filter-title a, .results-head p, .breadcrumbs { font-size: 13px; }
.detail-page { background: var(--neutral-50); }
.title-row h1 { font-size: clamp(34px,4vw,48px); line-height: 1.12; }
.detail-block h2 { font-size: 26px; }
.detail-block>p { color: var(--neutral-650); font-size: 16px; line-height: 1.8; }
.spec-row small, .badges span, .booking-card label>span { font-size: 11px !important; }
.spec-row span, .features span, .terms b, .owner-profile p, .review p { font-size: 14px; }
.booking-card { top: 116px; padding: 24px; }
.booking-price b { color: var(--brand-orange-600); font-size: 30px; }
.price-lines p { font-size: 14px; }
.total b { font-size: 22px; }
.booking-note { font-size: 12px; }

/* Help, legal summaries and FAQ */
.support-hero { padding: 66px 0 38px; }
.support-subnav { gap: 8px; }
.support-subnav a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 720; }
.support-content { gap: 18px; }
.support-content>section { padding: clamp(22px,3vw,34px); }
.support-content h2 { margin-top: 5px; font-size: clamp(24px,2.6vw,34px); line-height: 1.25; }
.support-content p, .support-content li, .support-aside p, .support-note span { font-size: 15px; line-height: 1.75; }
.support-check-grid label, .support-card-grid span { font-size: 14px; }
.support-aside b { font-size: 18px; }
.support-disclaimer { font-size: 13px; }
.faq-search input { min-height: 52px; font-size: 15px; }
.faq-library summary { padding: 20px; font-size: 16px; font-weight: 780; }
.faq-library p { font-size: 15px; line-height: 1.75; }
.terms-library h3 { font-size: 18px; }
.terms-library p { font-size: 14px; line-height: 1.7; }

/* Community page: remove the previously excessive 7–11px metadata */
.community-hero h1 { font-size: clamp(44px,5vw,64px); line-height: 1.04; }
.community-hero p { font-size: 17px; line-height: 1.7; }
.community-stat-card small,
.community-stat-card li,
.community-meta,
.community-author small,
.community-actions a,
.community-photo-wall small,
.community-policy p { font-size: 12px !important; line-height: 1.55; }
.community-stat-card>span,
.community-photo-wall header p,
.community-photo-wall a b,
.community-toolbar a,
.community-media .album-slot b,
.community-media .album-slot small,
.community-media .media-source,
.community-content .community-summary,
.community-content .community-author b,
.community-content .community-author small,
.community-all-photos span {
  font-size: 12px !important;
}
.community-content .community-summary { font-size: 15px !important; }
.community-card h2, .community-card h3 { font-size: 20px; line-height: 1.35; }
.community-summary { font-size: 15px; line-height: 1.75; }
.community-chips span { padding: 7px 10px; font-size: 12px; }
.community-toolbar { font-size: 14px; }

/* Authentication */
.auth-page { min-height: calc(100vh - 96px); }
.auth-page h1 { font-size: clamp(42px,4vw,56px); line-height: 1.06; }
.auth-visual p { font-size: 16px; line-height: 1.7; }
.auth-form-wrap { background: var(--neutral-50); }
.auth-form { padding: clamp(22px,3vw,34px); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-md); }
.auth-form h2 { font-size: 30px; }
.auth-form>p, .auth-options, .auth-switch { font-size: 14px; }
.register-complete-form .form-pair { align-items: start; }
.account-flow-note {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid #cfe4ed;
  border-radius: 13px;
  color: var(--brand-navy-900);
  background: var(--brand-blue-50);
}
.account-flow-note b { font-size: 14px; }
.account-flow-note span { color: var(--neutral-650); font-size: 12px; line-height: 1.5; }
.google-auth-button.needs-setup,.facebook-auth-button.needs-setup { border-style: dashed; background: #fff; }
.facebook-auth-button.needs-setup { color: #4267a9; border-color: #a9bfe3; }
.google-auth-button.needs-setup small,.facebook-auth-button.needs-setup small { margin-left: auto; color: #8b5c13; font-size: 10px; font-weight: 700; }
.demo-account-panel { margin-top: 14px; border: 1px solid var(--neutral-200); border-radius: 14px; background: var(--neutral-50); overflow: hidden; }
.demo-account-panel>summary { padding: 13px 15px; color: var(--brand-navy-900); font-size: 12px; font-weight: 800; cursor: pointer; }
.demo-account-list { display: grid; gap: 7px; padding: 0 10px 10px; }
.demo-account-list>button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--neutral-200); border-radius: 11px; color: var(--brand-navy-900); background: #fff; text-align: left; cursor: pointer; }
.demo-account-list>button:hover, .demo-account-list>button.selected { border-color: var(--brand-blue-500); background: var(--brand-blue-50); }
.demo-account-list span, .demo-account-list b, .demo-account-list small { display: block; }
.demo-account-list b { font-size: 12px; }
.demo-account-list small { margin-top: 2px; color: var(--neutral-650); font-size: 10px; }
.demo-account-list code { padding: 5px 7px; border-radius: 7px; color: #8b4b12; background: var(--brand-orange-100); font: 700 10px/1.2 var(--font-ui); }
.demo-account-panel>p { margin: 0; padding: 0 13px 12px; color: var(--neutral-650); font-size: 10px; line-height: 1.45; }
.admin-authority-note { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #bad8e7; border-radius: 15px; color: var(--brand-navy-900); background: linear-gradient(135deg,var(--brand-blue-50),#fff); }
.admin-authority-note b { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: #fff; background: var(--brand-blue-700); font-size: 12px; }
.admin-authority-note span { font-size: 13px; line-height: 1.5; }
.admin-module-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.admin-module-grid>a { min-height: 125px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border: 1px solid var(--neutral-200); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(5,61,91,.055); }
.admin-module-grid>a:hover { border-color: var(--brand-blue-400); transform: translateY(-2px); }
.admin-module-grid b { color: var(--brand-navy-900); font-size: 17px; }
.admin-module-grid span { margin-top: 5px; color: var(--neutral-650); font-size: 11px; line-height: 1.5; }
.admin-management-panel>.panel-head small, .admin-create-user>.panel-head small { display: block; margin-top: 4px; color: var(--neutral-650); font-size: 11px; }
.admin-row-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.admin-row-actions a, .admin-row-actions button { min-height: 34px; padding: 7px 9px; border: 1px solid var(--neutral-200); border-radius: 9px; color: var(--brand-blue-700); background: #fff; font: 750 11px/1 var(--font-ui); cursor: pointer; }
.admin-row-actions form { margin: 0; }
.admin-row-actions .danger, .admin-danger-button, .admin-content-row button.danger { color: #b44732; border-color: #f0c4b9; background: #fff7f4; }
.admin-status-form { min-width: 310px; }
.admin-status-form button, .admin-booking-editor button, .admin-content-row form>button:not(.danger) { min-height: 36px; padding: 8px 11px; border: 0; border-radius: 9px; color: #fff; background: var(--brand-blue-700); font-weight: 800; cursor: pointer; }
.admin-card-list { display: grid; gap: 10px; }
.admin-booking-card { display: grid; grid-template-columns: minmax(260px,1fr) minmax(390px,1.25fr) auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--neutral-200); border-radius: 14px; }
.admin-booking-card>div b, .admin-booking-card>div span, .admin-booking-card>div small { display: block; }
.admin-booking-card>div b { color: var(--brand-navy-900); font-size: 14px; }
.admin-booking-card>div span { margin-top: 4px; color: var(--neutral-700); font-size: 12px; }
.admin-booking-card>div small { margin-top: 4px; color: var(--neutral-650); font-size: 10px; }
.admin-booking-editor { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; }
.admin-booking-editor select, .admin-create-user input, .admin-create-user select, .admin-user-editor input, .admin-user-editor select, .admin-content-row select { min-height: 40px; padding: 8px 10px; border: 1px solid var(--neutral-200); border-radius: 9px; background: #fff; }
.admin-danger-button { min-height: 36px; padding: 8px 10px; border-radius: 9px; font: 750 11px/1 var(--font-ui); cursor: pointer; }
.admin-create-user { margin-bottom: 18px; }
.admin-create-user>form { display: grid; grid-template-columns: repeat(3,minmax(160px,1fr)); gap: 9px; align-items: end; }
.admin-user-list { display: grid; gap: 9px; }
.admin-user-card { border: 1px solid var(--neutral-200); border-radius: 14px; background: #fff; overflow: hidden; }
.admin-user-card>summary { min-height: 70px; display: grid; grid-template-columns: minmax(260px,1.5fr) .7fr .6fr .7fr; align-items: center; gap: 14px; padding: 12px 15px; cursor: pointer; }
.admin-user-card>summary>span:not(.status), .admin-user-card>summary>small { font-size: 12px; }
.admin-user-editor { padding: 15px; border-top: 1px solid var(--neutral-200); background: var(--neutral-50); }
.admin-user-editor>form:first-child { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); gap: 10px; align-items: end; }
.admin-user-editor label { display: grid; gap: 5px; color: var(--neutral-650); font-size: 10px; font-weight: 800; }
.admin-user-editor>form+form { margin-top: 10px; }
.admin-owner-assignment { margin-bottom: 20px; padding: 16px; border: 1px solid #bad8e7; border-radius: 14px; background: var(--brand-blue-50); }
.admin-owner-assignment label { display: grid; gap: 6px; color: var(--brand-navy-900); font-size: 12px; font-weight: 800; }
.admin-owner-assignment select { min-height: 46px; padding: 10px 12px; border: 1px solid #bad8e7; border-radius: 10px; background: #fff; }
.admin-owner-assignment p { margin: 6px 0 0; color: var(--neutral-650); font-size: 10px; }
.admin-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.admin-promotion-panel { grid-column: 1 / -1; }
.admin-promotion-editor { margin-top: 10px; overflow: hidden; border: 1px solid var(--neutral-200); border-radius: 14px; background: #fff; }
.admin-promotion-editor>summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; color: var(--brand-navy-900); cursor: pointer; list-style: none; }
.admin-promotion-editor>summary::-webkit-details-marker { display: none; }
.admin-promotion-editor>summary span, .admin-promotion-editor>summary small { display: block; }
.admin-promotion-editor>summary small { margin-top: 3px; color: var(--neutral-650); font-size: 11px; font-weight: 500; }
.admin-promotion-create>summary { justify-content: flex-start; color: var(--brand-blue-700); background: var(--brand-blue-50); font-weight: 800; }
.admin-promotion-form { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; padding: 16px; border-top: 1px solid var(--neutral-200); background: var(--neutral-50); }
.admin-promotion-form label { display: grid; gap: 6px; color: var(--neutral-700); font-size: 11px; font-weight: 750; }
.admin-promotion-form label:nth-of-type(2) { grid-column: span 2; }
.admin-promotion-form input, .admin-promotion-form select { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--neutral-200); border-radius: 10px; color: var(--brand-navy-900); background: #fff; font: inherit; }
.admin-promotion-form .button { min-height: 42px; align-self: end; }
.admin-delete-promotion { padding: 0 16px 16px; background: var(--neutral-50); }
.admin-delete-promotion .danger { border: 0; color: #b42318; background: transparent; font-weight: 800; cursor: pointer; }
.admin-content-row { display: grid; grid-template-columns: minmax(180px,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--neutral-200); }
.admin-content-row b, .admin-content-row small { display: block; }
.admin-content-row b { color: var(--brand-navy-900); font-size: 12px; }
.admin-content-row small { margin-top: 4px; color: var(--neutral-650); font-size: 10px; }
.admin-content-row form { display: flex; gap: 6px; align-items: center; }
.admin-content-row form>button { min-height: 36px; padding: 8px 10px; border: 1px solid var(--neutral-200); border-radius: 9px; font: 750 10px/1 var(--font-ui); cursor: pointer; }

@media(max-width:1180px){
  .admin-module-grid { grid-template-columns: repeat(3,1fr); }
  .admin-create-user>form { grid-template-columns: repeat(2,minmax(150px,1fr)); }
  .admin-booking-card { grid-template-columns: 1fr; }
}
@media(max-width:760px){
  .admin-module-grid, .admin-content-grid { grid-template-columns: 1fr; }
  .admin-create-user>form, .admin-user-editor>form:first-child { grid-template-columns: 1fr; }
  .admin-user-card>summary { grid-template-columns: 1fr auto; }
  .admin-user-card>summary>small { display: none; }
  .admin-booking-editor { grid-template-columns: 1fr; }
  .admin-promotion-form { grid-template-columns: 1fr; }
  .admin-promotion-form label:nth-of-type(2) { grid-column: span 1; }
}
.register-complete-form label small { display: block; margin-top: 1px; font-weight: 500; line-height: 1.4; }
.register-complete-form input[aria-invalid="true"] { border-color: #d9534f !important; box-shadow: 0 0 0 3px rgba(217,83,79,.1) !important; }
.register-complete-form [data-password-message].is-error { color: #b53b38; }
.register-complete-form [data-password-message].is-valid { color: #21835d; font-weight: 700; }
.password-input-shell { position: relative; display: block; width: 100%; }
.password-input-shell>input { width: 100%; padding-right: 48px !important; }
.password-visibility-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  color: var(--neutral-650);
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.password-visibility-toggle:hover { color: var(--brand-blue-700); background: var(--brand-blue-50); }
.password-visibility-toggle:focus-visible { outline: 0; color: var(--brand-blue-700); box-shadow: 0 0 0 3px rgba(0,111,159,.16); }
.password-visibility-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-visibility-toggle .eye-pupil { fill: currentColor; stroke: none; }
.password-visibility-toggle .eye-slash { opacity: 0; }
.password-visibility-toggle[aria-pressed="true"] .eye-slash { opacity: 1; }
.password-visibility-toggle[aria-pressed="true"] .eye-pupil { opacity: .25; }
.register-complete-form .auth-consent { align-items: flex-start; padding: 13px 14px; border: 1px solid var(--neutral-200); border-radius: 12px; background: var(--neutral-50); }
.register-complete-form .auth-consent input { margin-top: 3px; }
.register-complete-form .auth-consent span { font-size: 13px !important; line-height: 1.55; }
.register-complete-form .auth-consent a { color: var(--brand-blue-700); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.demo-box { padding: 13px; border-radius: 12px; font-size: 12px; }
.recovery-auth-visual { background-image: radial-gradient(circle at 22% 25%,rgba(245,130,32,.25),transparent 28%),linear-gradient(145deg,#04364f,#0088bc); }
.recovery-card { max-width: 480px; }
.recovery-mail-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg,var(--brand-blue-700),var(--brand-blue-600));
  box-shadow: 0 12px 28px rgba(0,111,159,.2);
  font-size: 25px;
  font-weight: 900;
}
.recovery-expired-icon { color: #a85b25; background: var(--brand-orange-100); box-shadow: none; }
.recovery-request-form,
.recovery-reset-form { display: grid; gap: 16px; }
.recovery-request-form label,
.recovery-reset-form label { display: grid; gap: 7px; color: var(--neutral-650); font-size: 13px; font-weight: 800; }
.recovery-request-form input,
.recovery-reset-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 11px;
  background: #fff;
  outline: 0;
}
.recovery-request-form input:focus,
.recovery-reset-form input:focus { border-color: var(--brand-blue-600); box-shadow: 0 0 0 3px rgba(0,143,207,.1); }
.recovery-tip,
.recovery-security-note { display: grid; gap: 4px; padding: 14px 15px; border: 1px solid var(--neutral-200); border-radius: 12px; background: var(--neutral-50); }
.recovery-tip b,
.recovery-security-note b { color: var(--brand-navy-800); font-size: 13px; }
.recovery-tip span,
.recovery-security-note span { color: var(--neutral-650); font-size: 12px; line-height: 1.55; }
.recovery-secondary-link { justify-self: center; color: var(--brand-blue-700); font-size: 13px; font-weight: 800; }
.recovery-secondary-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.otp-local-debug a { color: var(--brand-blue-700); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

@media(max-width:760px){
  .recovery-auth-page .auth-visual { min-height: 300px; padding: 38px 24px; }
  .recovery-auth-page .auth-form-wrap { padding: 28px 18px 44px; }
}

/* Account and owner center */
.dashboard { min-height: calc(100vh - 96px); background: var(--brand-blue-50); }
.dash-sidebar { border-right-color: var(--neutral-200); }
.dash-user b { font-size: 14px; }
.dash-user span { font-size: 12px; }
.dash-sidebar nav a { min-height: 46px; display: flex; align-items: center; padding: 11px 13px; border-radius: 11px; color: var(--neutral-650); font-size: 14px; }
.dash-sidebar nav a.active { color: #fff; background: var(--brand-blue-700); box-shadow: 0 9px 20px rgba(0,111,159,.16); }
.dash-back, .dash-page-back { font-size: 13px; }
.dash-content { padding: clamp(24px,3vw,42px); }
.dash-content>header { margin-bottom: 24px; }
.dash-content>header h1 { font-size: clamp(30px,3vw,40px); }
.dash-date { font-size: 13px; }
.stats-grid span, .fleet-summary span, .booking-stats span { font-size: 12px; }
.stats-grid b { font-size: 30px; }
.stats-grid small, .fleet-summary small, .booking-stats small { font-size: 12px; }
.panel-head h3 { font-size: 22px; }
.panel-head a, .panel-head span { font-size: 13px; }

/* Owner vehicle rows: readable, calm and scannable */
.owner-fleet-list { padding: clamp(18px,2.5vw,30px); }
.owner-fleet-table-head { font-size: 11px; letter-spacing: .06em; }
.dashboard .owner-fleet-table-head,
.dashboard .owner-fleet-row {
  grid-template-columns: minmax(260px,2fr) minmax(70px,.7fr) minmax(90px,.8fr) minmax(60px,.55fr) minmax(80px,.75fr) minmax(110px,140px) !important;
  gap: 12px !important;
  width: 100%;
  min-width: 0;
}
.dashboard .owner-fleet-rows { min-width: 0; }
.owner-fleet-row { min-height: 92px; border-color: var(--neutral-200); border-radius: 14px; }
.owner-fleet-row:hover { background: var(--brand-blue-50); }
.fleet-car b { color: var(--brand-navy-900); font-size: 15px; }
.fleet-car span, .owner-fleet-row>span { font-size: 13px; }
.fleet-car small, .owner-fleet-row>span small, .owner-fleet-row>strong small { font-size: 11px; }
.owner-fleet-row>strong { font-size: 16px; }
.fleet-row-actions .button { min-height: 40px; padding: 9px 13px; font-size: 13px !important; }
.fleet-row-actions>a:not(.button) { font-size: 13px; }
.status { padding: 6px 10px; border-radius: 999px; font-size: 12px !important; letter-spacing: .03em; }

/* Pricing columns must shrink with the dashboard instead of forcing horizontal scroll. */
.pricing-admin-grid>* ,
.pricing-promo-column,
.promotion-builder,
.promotion-list {
  width: 100%;
  min-width: 0 !important;
}
.promotion-builder :where(.form-pair,.form-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; }
.promotion-builder :where(label,input,select,textarea) { min-width: 0; }

/* Owner booking cards: only the next valid action is visually dominant */
.booking-list-heading h3 { font-size: 24px; }
.booking-list-heading p { font-size: 13px; }
.booking-filter-chips button { min-height: 40px; padding: 9px 13px; border-radius: 999px; font-size: 12px; }
.week-calendar-strip small, .week-calendar-strip span { font-size: 11px; }
.week-calendar-strip b { font-size: 24px; }
.booking-card-top h3 { font-size: 19px; }
.booking-card-top p, .booking-card-top>strong small { font-size: 12px; }
.booking-card-top>strong { font-size: 20px; }
.booking-customer-row small { font-size: 11px; }
.booking-customer-row b { font-size: 13px; }
.booking-card-actions>a { font-size: 13px; }
.booking-card-actions select { min-height: 42px; padding: 8px 10px; font-size: 13px; }
.booking-card-actions button { min-height: 42px; padding: 9px 13px; font-size: 13px !important; }
.booking-cancel-form button { color: var(--brand-orange-700) !important; }

/* Readability for dashboards, contract configuration and vehicle editor choices. */
.fake-chart>div span,
.chart-labels,
.next-trip p,
.task-time span { font-size: 12px !important; }
.revenue-chart { position: relative; }
.revenue-chart.is-empty::after {
  content: "Chưa có đơn được xác nhận trong 6 tháng gần nhất";
  position: absolute;
  inset: 50% 18px auto;
  transform: translateY(-50%);
  color: var(--neutral-500);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.revenue-chart.is-empty>div span { display: none; }
.chart-source-note {
  margin: 14px 0 0;
  color: var(--neutral-600);
  font-size: 12px;
  line-height: 1.55;
}
.chart-source-note code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--brand-blue-50);
  color: var(--brand-navy-900);
  font-size: 11px;
}
.task-empty-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 30px 0 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
}
.dashboard .owner-editor :where(.option-choice,.option-chip,.editor-option-group,.rule-picker,.feature-picker) b,
.dashboard .owner-editor :where(.option-choice,.option-chip,.editor-option-group,.rule-picker,.feature-picker) span,
.dashboard .vehicle-form-v2 .option-choice b,
.dashboard .vehicle-form-v2 .check span,
.dashboard .vehicle-form-v2 .form-actions>span {
  font-size: 13px !important;
  line-height: 1.45;
}
.contract-studio-grid :where(a,p,span,b),
.template-library :where(a,p,span,b),
.master-template-form :where(a,p,span,b),
.variable-chips code,
.variable-palette code {
  font-size: 12px !important;
  line-height: 1.55;
}

/* Full message center and global chat */
.conversation-list>header .eyebrow { font-size: 11px !important; }
.conversation-list>header h2 { font-size: 22px; }
.conversation-item b { font-size: 14px; }
.conversation-item strong { font-size: 12px; }
.conversation-item small { font-size: 11px; }
.chat-head b { font-size: 15px; }
.chat-head small { font-size: 12px; }
.chat-message>div { font-size: 14px; line-height: 1.55; }
.chat-message>small { font-size: 10px; }
.message-empty p, .chat-placeholder p, .chat-welcome p { font-size: 14px; }
.thread-rail-title { font-size: 11px; }
.chat-thread-button b { font-size: 13px; }
.chat-thread-button small { font-size: 11px; }
.chat-widget-thread>header b { font-size: 14px; }
.chat-widget-thread>header small, .chat-widget-thread>header>a { font-size: 11px; }
.chat-widget-messages .chat-message>div { font-size: 14px; }
.chat-compose.compact textarea { font-size: 14px; }
.global-chat .thread-rail-title,
.global-chat .thread-rail-title b,
.global-chat .thread-rail-title span,
.global-chat .chat-widget-thread>header>a,
.global-chat .chat-image-attachment span { font-size: 12px !important; }

/* Footer */
.site-footer { color: #d8e8ef; background: var(--brand-navy-950) !important; }
.site-footer h4 { color: #fff; font-size: 15px; }
.site-footer p, .site-footer a { color: #d8e8ef; font-size: 14px; line-height: 1.7; }
.footer-bottom { font-size: 12px; }

/* Official contract document stays legally styled, surrounding controls stay modern. */
.contract-paper,
.contract-paper :where(h1,h2,h3,h4,p,span,b,strong,small,label,input,textarea) {
  font-family: "Times New Roman", Times, serif !important;
  letter-spacing: 0;
}
.contract-paper { color: #000; font-size: 12pt; line-height: 1.45; }
.contract-paper h1 { font-size: 16pt; }
.contract-paper h2 { font-size: 13pt; }
.contract-paper h3 { font-size: 12pt; }
.contract-paper input, .contract-paper textarea { font-size: 12pt !important; }
.contract-paper small { font-size: 10pt !important; }
.contract-sidebar :where(button,a,input,select,textarea) { font-family: var(--font-ui); }

/* Vehicle form: clearer typography and current two-level administrative address. */
body { letter-spacing: -.006em; }
:where(input,select,textarea,button) { letter-spacing: 0; }
.dashboard :where(h1,h2,h3),
.vehicle-form-v2 .form-section h3 { letter-spacing: -.025em; }
.dashboard .vehicle-form-v2 {
  color: var(--neutral-950);
  font-size: 14px;
}
.dashboard .vehicle-form-v2 .form-section {
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  background: linear-gradient(135deg,#fff,var(--brand-blue-50));
}
.dashboard .vehicle-form-v2 .form-section:first-of-type { margin-top: 0; }
.dashboard .vehicle-form-v2 .form-section>span {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #fff;
  background: var(--brand-navy-900);
  font-size: 14px;
  font-weight: 800;
}
.dashboard .vehicle-form-v2 .form-section h3 {
  margin-bottom: 4px;
  color: var(--brand-navy-950);
  font-size: 21px;
  font-weight: 760;
  line-height: 1.3;
}
.dashboard .vehicle-form-v2 .form-section p {
  color: var(--neutral-650);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
}
.dashboard .vehicle-form-v2 .form-grid>label,
.dashboard .owner-editor .form-grid>label {
  gap: 8px;
  color: var(--neutral-800);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.dashboard .vehicle-form-v2 :where(input,select,textarea),
.dashboard .owner-editor :where(input,select,textarea) {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #bfd5df;
  border-radius: 11px;
  color: var(--neutral-950);
  background-color: #fff;
  font-size: 14px;
  font-weight: 540;
  line-height: 1.45;
  box-shadow: 0 1px 0 rgba(7,91,135,.025);
}
.dashboard .vehicle-form-v2 textarea,
.dashboard .owner-editor textarea { min-height: 120px; }
.dashboard .vehicle-form-v2 :where(input,textarea)::placeholder,
.dashboard .owner-editor :where(input,textarea)::placeholder {
  color: #8ba0aa;
  font-weight: 430;
  opacity: 1;
}
.dashboard .vehicle-form-v2 :where(input,select,textarea):focus,
.dashboard .owner-editor :where(input,select,textarea):focus {
  border-color: var(--brand-blue-600);
  outline: 0;
  box-shadow: var(--focus-ring);
}
.field-title { display: flex; align-items: center; gap: 5px; }
.field-title>b { color: var(--brand-orange-600); font-size: 14px; }
.administrative-select-field,
.pickup-address-field {
  min-width: 0;
  padding: 16px;
  border: 1px solid #cce1ea;
  border-radius: 15px;
  background: #f8fcfe;
}
.administrative-select-field>small,
.pickup-address-field>small {
  color: var(--neutral-650) !important;
  font-size: 11px !important;
  font-weight: 480;
  line-height: 1.5;
}
.administrative-select-field select:disabled {
  color: var(--neutral-500);
  background-color: var(--neutral-100);
}
.administrative-location-grid.is-loading .administrative-select-field { opacity: .72; }
.administrative-location-grid.has-load-error .administrative-select-field {
  border-color: #efb29d;
  background: #fff8f4;
}
.address-preview {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
  padding: 12px 14px;
  border: 1px solid #b8dbe9;
  border-radius: 12px;
  color: var(--brand-navy-950);
  background: var(--brand-blue-50);
}
.address-preview>i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--brand-blue-700);
  font-style: normal;
}
.address-preview>span { min-width: 0; display: grid; gap: 2px; }
.address-preview small {
  color: var(--brand-blue-700) !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: .09em;
}
.address-preview b {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

/* Responsive density */
@media (max-width: 1100px) {
  .site-header .header-inner { grid-template-columns: 150px minmax(0,1fr) auto; gap: 22px; }
  .site-header .logo { width: 150px; min-width: 150px; }
  .site-header .brand-logo-image { width: 142px !important; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 14px; }
  .owner-fleet-table-head { display: none; }
  .owner-fleet-row { grid-template-columns: minmax(240px,2fr) minmax(80px,.8fr) minmax(90px,.8fr) minmax(70px,.6fr) minmax(110px,140px) !important; }
  .owner-fleet-row>span:nth-of-type(3) { display: none; }
  .pricing-admin-grid { grid-template-columns: 1fr !important; }
  .market-trust .container { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px 0; }
  .market-trust article:nth-child(2) { border-right: 0; }
  .market-trust article:first-child { padding-left: 24px; }
  .benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, 1480px); }
  .site-header { height: 76px !important; }
  .site-header .header-inner { width: min(100% - 24px,1480px); min-height: 76px !important; display: flex; gap: 10px; }
  .site-header .logo { width: 122px; min-width: 122px; height: 70px; }
  .site-header .brand-logo-image { width: 118px !important; height: 66px !important; }
  .menu-button { margin-left: auto; }
  .main-nav { top: 76px; padding: 14px; border-top: 1px solid var(--line); }
  .main-nav a { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; }
  .main-nav .owner-link { margin-left: 0; justify-content: center; }
  .owner-nav-form { width: 100%; margin-left: 0; }
  .owner-nav-form .owner-link { width: 100% !important; }
  .dashboard { min-height: calc(100vh - 76px); }
  .dash-sidebar { top: 76px; }
  .dash-sidebar nav { scrollbar-width: none; scroll-snap-type: x proximity; }
  .dash-sidebar nav::-webkit-scrollbar { display: none; }
  .dash-sidebar nav a { min-height: 42px; scroll-snap-align: start; }
  .hero { min-height: 650px; }
  .hero-content { padding: 54px 0 72px; }
  .hero h1 { font-size: clamp(40px,11vw,52px); }
  .hero-copy>p { font-size: 16px; }
  .search-panel { border-radius: 18px; }
  .service-tabs { overflow-x: auto; }
  .service-tabs label,
  .service-tabs>a { flex: 1 0 auto; min-height: 52px; padding: 12px 15px; font-size: 13px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field-location { grid-column: 1 / 3; }
  .search-button { grid-column: 1 / 3; width: 100%; min-height: 54px; }
  .quick-links { display: none; }
  .market-trust .container { width: 100%; }
  .benefit-grid { gap: 12px; }
  .benefit-grid article { min-height: 210px; padding: 22px; }
  .featured .car-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-hero h1, .support-hero h1 { font-size: 40px; }
  .support-layout { gap: 20px; }
  .auth-page { min-height: calc(100vh - 76px); }
  .auth-form { padding: 22px; }
  .owner-fleet-row { min-height: 78px; }
  .owner-fleet-row { grid-template-columns: minmax(0,1fr) auto !important; }
  .owner-fleet-row>span, .owner-fleet-row>strong { display: none; }
  .promotion-builder :where(.form-pair,.form-grid) { grid-template-columns: 1fr; }
  .dashboard .vehicle-form-v2 .form-section { margin-top: 26px; padding: 17px; }
  .administrative-select-field,
  .pickup-address-field { padding: 14px; }
}

@media (max-width: 520px) {
  .site-header .logo { width: 110px; min-width: 110px; }
  .site-header .brand-logo-image { width: 106px !important; }
  .hero { min-height: 700px; background-position: 57% center; }
  .hero-content { padding-top: 46px; }
  .hero h1 { font-size: 39px; }
  .search-panel { margin-top: 24px; }
  .service-tabs label,
  .service-tabs>a {
    min-width: 0;
    flex: 1 1 33.333%;
    justify-content: center;
    gap: 5px;
    padding: 10px 5px;
    text-align: center;
  }
  .service-tabs b { font-size: 11px; white-space: nowrap; }
  .service-tabs span { font-size: 13px; }
  .search-fields { grid-template-columns: 1fr; padding: 10px; }
  .search-fields .field-location,
  .search-button { grid-column: 1; }
  .field { min-height: 68px; border-right: 0; }
  .market-trust .container { grid-template-columns: 1fr; padding: 6px 14px; }
  .market-trust article,
  .market-trust article:first-child { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--neutral-200); }
  .market-trust article:last-child { border-bottom: 0; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 0; }
  .featured .car-grid { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 34px; }
  .button { width: auto; }
  .car-content h3 { font-size: 18px; }
  .support-content>section { padding: 20px; }
  .dash-content { padding: 20px 14px 34px; }
  .stats-grid>div { padding: 17px; }
  .panel-head h3 { font-size: 20px; }
  .fleet-row-actions { gap: 6px; }
}

/*
 * Canonical A4 contract print layer.
 * Keep this block last: app.css contains older Letter/A4 experiments that are
 * intentionally normalised here so the printed document matches its preview.
 */
@media print {
  @page {
    size: A4 portrait;
    margin: 20mm 15mm 20mm 30mm;
  }

  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 12pt !important;
    line-height: 1.42 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .site-footer,
  .contract-topbar,
  .contract-sidebar,
  .contract-auto-banner,
  .contract-progress,
  .global-chat,
  .compare-tray,
  .toast {
    display: none !important;
  }

  .contract-page,
  .hdtxt-contract-page,
  .contract-layout,
  .contract-paper,
  .hdtxt-paper {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: visible !important;
    transform: none !important;
    zoom: 1 !important;
  }

  .contract-layout {
    display: block !important;
  }

  .contract-paper,
  .hdtxt-paper,
  .contract-paper :where(h1,h2,h3,h4,p,span,b,strong,small,i,em,label) {
    font-family: "Times New Roman", Times, serif !important;
    letter-spacing: 0 !important;
  }

  /* The former renter banner consumed document space and changed pagination. */
  .contract-protected-view .hdtxt-paper::before,
  .contract-owner-view .hdtxt-paper::before,
  .hdtxt-paper::before {
    content: none !important;
    display: none !important;
  }

  .nd30-contract-heading {
    display: grid !important;
    grid-template-columns: 38% 62% !important;
    column-gap: 8mm !important;
    row-gap: 0 !important;
    align-items: start !important;
    margin: 0 0 7mm !important;
    padding: 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .hdtxt-issuer,
  .hdtxt-country {
    min-width: 0 !important;
    text-align: center !important;
  }

  .hdtxt-issuer > b,
  .hdtxt-country > b {
    display: block !important;
    margin: 0 !important;
    font: 700 11pt/1.28 "Times New Roman", Times, serif !important;
    white-space: nowrap !important;
  }

  .hdtxt-issuer > span,
  .hdtxt-country > span {
    display: block !important;
    margin-top: 1mm !important;
    font: 400 11pt/1.28 "Times New Roman", Times, serif !important;
    white-space: nowrap !important;
  }

  .hdtxt-country > span {
    font-weight: 700 !important;
  }

  .hdtxt-title {
    grid-column: 1 / -1 !important;
    padding-top: 7mm !important;
    text-align: center !important;
  }

  .hdtxt-title h1 {
    margin: 0 0 1mm !important;
    font: 700 14pt/1.3 "Times New Roman", Times, serif !important;
  }

  .hdtxt-title p {
    margin: 0 !important;
    font: 400 11.5pt/1.35 "Times New Roman", Times, serif !important;
  }

  html body .hdtxt-contract-page .hdtxt-paper > p.hdtxt-dateline {
    display: block !important;
    float: none !important;
    position: static !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    margin: 0 0 4mm !important;
    padding: 0 !important;
    text-align: right !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    font: italic 11.5pt/1.4 "Times New Roman", Times, serif !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  html body .hdtxt-contract-page .hdtxt-paper > p.hdtxt-dateline > i {
    display: inline !important;
    font: inherit !important;
  }

  .hdtxt-intro,
  .hdtxt-party,
  .hdtxt-clauses,
  .hdtxt-clauses section,
  .hdtxt-clauses section > p,
  .hdtxt-signatures {
    font-size: 11.5pt !important;
    line-height: 1.42 !important;
  }

  .hdtxt-intro p,
  .hdtxt-party p,
  .hdtxt-clauses p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    orphans: 3;
    widows: 3;
  }

  .hdtxt-party {
    margin-bottom: 1.5mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .hdtxt-party h2,
  .hdtxt-clauses h2,
  .hdtxt-clauses h3 {
    margin: 1.5mm 0 .5mm !important;
    font: 700 11.5pt/1.35 "Times New Roman", Times, serif !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .hdtxt-clauses section {
    margin: 0 0 1.5mm !important;
    padding: 0 !important;
    break-before: auto !important;
    page-break-before: auto !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .hdtxt-signatures {
    margin-top: 7mm !important;
    gap: 20mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* Privacy-safe local photography: restored from the original site imagery. */
.auth-visual {
  background:
    linear-gradient(145deg,rgba(3,48,73,.94),rgba(0,126,174,.54)),
    url('images/sanitized/can-tho-bridge-privacy.jpg') center 58% / cover no-repeat !important;
}
.brand-illustration {
  min-height: 360px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 78% 18%,rgba(245,130,32,.34) 0 9%,transparent 10%),
    radial-gradient(circle at 22% 82%,rgba(255,255,255,.13) 0 19%,transparent 20%),
    linear-gradient(145deg,#04364f,#007da9 62%,#00a0d5);
  box-shadow: 0 24px 65px rgba(3,48,73,.18);
}
.brand-illustration::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 78%;
  height: 34%;
  bottom: 18%;
  border: 3px solid rgba(255,255,255,.2);
  border-radius: 50% 50% 24% 24%;
  transform: skewX(-8deg);
}
.brand-illustration>span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-orange-500,#f58220);
  box-shadow: 0 14px 32px rgba(3,48,73,.25);
  font-size: 28px;
  font-weight: 900;
}
.brand-illustration>b { color: #fff; font-size: clamp(22px,2.3vw,32px); }
.brand-illustration>small { max-width: 360px; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.55; }
.brand-illustration-protection { min-height: 500px; }
.brand-illustration-owner { min-height: 390px; }
.brand-illustration-owner .income-card { text-align: left; }

.hero {
  background-image: url('images/sanitized/home-hero-fleet-privacy.jpg');
  background-position: center 66%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-overlay {
  background:
    linear-gradient(90deg,rgba(3,48,73,.96) 0%,rgba(3,67,96,.82) 42%,rgba(3,48,73,.18) 78%),
    linear-gradient(0deg,rgba(3,48,73,.58),transparent 58%);
}
.brand-illustration::before { display: none; }
.brand-illustration-local {
  background:
    linear-gradient(145deg,rgba(3,48,73,.64),rgba(0,94,134,.44)),
    url('images/sanitized/can-tho-bridge-privacy.jpg') center 58% / cover no-repeat;
}
.brand-illustration-protection {
  background:
    linear-gradient(145deg,rgba(3,48,73,.68),rgba(0,94,134,.4)),
    url('images/sanitized/handover-safety-privacy.jpg') center 64% / cover no-repeat;
}
.brand-illustration-owner {
  background:
    linear-gradient(145deg,rgba(3,48,73,.72),rgba(0,70,102,.38)),
    url('images/sanitized/owner-vehicles-privacy.jpg') center 50% / cover no-repeat;
}

/* Homepage photographs stay visually clean: all messaging lives beside the image. */
.homepage-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(133,177,196,.42);
  border-radius: 24px;
  background: #e7f1f5;
  box-shadow: 0 24px 65px rgba(3,48,73,.16);
}
.homepage-photo>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.homepage-photo-local { height: 360px; }
.homepage-photo-local>img { object-position: center 58%; }
.homepage-photo-protection {
  height: 500px;
  border-color: rgba(255,255,255,.28);
}
.homepage-photo-protection>img { object-position: center 68%; }
.homepage-photo-owner { height: 390px; }
.homepage-photo-owner>img { object-position: center 50%; }

/* Searchable province and ward selectors. */
.search-panel {
  overflow: visible;
}
.search-panel .service-tabs {
  border-radius: 20px 20px 0 0;
}
.search-panel .quick-links {
  border-radius: 0 0 20px 20px;
}
.search-panel:has(.location-combobox.is-open),
.search-panel .field-location {
  position: relative;
  z-index: 20;
}
.location-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.location-combobox {
  width: 100%;
  min-width: 0;
  position: relative;
  color: var(--brand-navy-900);
  font-family: var(--font-ui);
  font-weight: 650;
}
.field .location-combobox { grid-column: 2; grid-row: 2; }
.location-combobox-input {
  width: 100% !important;
  min-height: 46px;
  padding: 11px 42px 11px 13px !important;
  border: 1px solid var(--neutral-200) !important;
  border-radius: 11px !important;
  color: var(--brand-navy-900) !important;
  background: #fff !important;
  outline: 0 !important;
  font: 650 14px/1.3 var(--font-ui) !important;
}
.field .location-combobox-input {
  min-height: 38px;
  padding: 7px 34px 7px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-weight: 750 !important;
}
.location-combobox-input:focus {
  border-color: var(--brand-blue-600) !important;
  box-shadow: 0 0 0 3px rgba(0,143,207,.12) !important;
}
.field .location-combobox-input:focus { box-shadow: none !important; }
.location-combobox-input:disabled { cursor: not-allowed; color: var(--neutral-500) !important; background: var(--neutral-50) !important; }
.location-combobox-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: var(--brand-blue-700);
  background: transparent;
  font-size: 18px;
}
.location-combobox.is-open .location-combobox-toggle { transform: translateY(-50%) rotate(180deg); }
.location-combobox-list {
  position: absolute;
  z-index: 120;
  top: calc(100% + 7px);
  left: 0;
  width: max(100%,320px);
  max-width: min(360px,calc(100vw - 32px));
  max-height: 310px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--neutral-200);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(3,48,73,.2);
}
.location-combobox-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  color: var(--neutral-800);
  background: transparent;
  text-align: left;
  font: 650 13px/1.35 var(--font-ui);
}
.location-combobox-option:hover,
.location-combobox-option.is-active { color: var(--brand-blue-800); background: var(--brand-blue-50); }
.location-combobox-option[aria-selected="true"] { color: var(--brand-blue-800); background: #e1f3fa; font-weight: 800; }
.location-combobox-option small {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #9a4b0c !important;
  background: var(--brand-orange-100);
  font-size: 10px !important;
  font-weight: 850;
}
.location-combobox-empty { margin: 0; padding: 18px 12px; color: var(--neutral-650); text-align: center; font-size: 12px; }

/* First-party community guide cards. */
.community-first-party-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.community-guide-card { min-height: 280px; display: flex; flex-direction: column; padding: 24px; }
.community-guide-card>span { color: #cdeefa; font-size: 56px; font-weight: 900; line-height: 1; }
.community-guide-card .community-content { padding: 20px 0 0; }
.community-guide-card .community-content>small { color: var(--brand-orange-600); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.community-guide-card .community-content>a { color: var(--brand-blue-700); font-size: 13px; font-weight: 850; }

@media(max-width:760px){
  .brand-illustration { min-height: 290px; padding: 28px 20px; }
  .brand-illustration-protection { min-height: 330px; }
  .homepage-photo-local,
  .homepage-photo-owner { height: 300px; }
  .homepage-photo-protection { height: 360px; }
  .hero { background-position: 62% 66%; }
  .brand-illustration-owner { background-position: center 46%; }
  .location-combobox-list { position: fixed; z-index: 180; top: auto; right: 14px; bottom: 14px; left: 14px; width: auto; max-height: min(56vh,430px); border-radius: 18px; }
  .community-first-party-grid { grid-template-columns: 1fr; }
}

/* Vehicle gallery: keep the compact overview, expose every owner photo, and never crop the full view. */
.detail-page .gallery .gallery-tile {
  position: relative;
  right: auto;
  bottom: auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #e7f1f5;
  cursor: zoom-in;
}
.detail-page .gallery .gallery-tile.gallery-main {
  grid-row: 1 / 3;
  border-radius: 15px 0 0 15px;
}
.detail-page .gallery .gallery-tile:nth-of-type(2) { border-radius: 0 15px 0 0; }
.detail-page .gallery .gallery-tile:nth-of-type(3) { border-radius: 0 0 15px 0; }
.detail-page .gallery .gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transition: transform .25s ease;
}
.detail-page .gallery .gallery-tile.gallery-main img {
  object-fit: contain;
  background: #dce8ed;
}
.detail-page .gallery .gallery-tile:hover img { transform: scale(1.015); }
.detail-page .gallery.single-gallery .gallery-tile.gallery-main,
.detail-page .gallery.single-gallery .gallery-tile.gallery-main img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: contain;
}
.detail-page .gallery .gallery-count {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(3,48,73,.1);
  border-radius: 10px;
  color: var(--brand-navy-900);
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(3,48,73,.18);
  font: 800 12px/1.2 var(--font-ui);
  cursor: zoom-in;
}
.detail-page .gallery .gallery-count:hover { color: var(--brand-blue-800); background: #fff; }

.vehicle-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(92px,1fr));
  gap: 9px;
  margin: 12px 0 28px;
}
.vehicle-gallery-strip button {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: 11px;
  background: #e7f1f5;
  cursor: zoom-in;
}
.vehicle-gallery-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vehicle-gallery-strip button:hover,
.vehicle-gallery-strip button:focus-visible {
  border-color: var(--brand-blue-600);
  box-shadow: 0 0 0 3px rgba(0,143,207,.13);
  outline: 0;
}
.vehicle-gallery-strip span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(3,48,73,.82);
  font: 800 10px/1 var(--font-ui);
}

.vehicle-gallery-dialog {
  width: min(96vw,1440px);
  height: min(92vh,960px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  color: #fff;
  background: #061c29;
  box-shadow: 0 32px 100px rgba(0,0,0,.5);
}
.vehicle-gallery-dialog::backdrop {
  background: rgba(1,13,20,.88);
  backdrop-filter: blur(7px);
}
.vehicle-gallery-dialog-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
}
.vehicle-gallery-dialog header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #082535;
}
.vehicle-gallery-dialog header>div { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.vehicle-gallery-dialog header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.vehicle-gallery-dialog header span { flex: 0 0 auto; color: #b9d8e6; font-size: 12px; font-weight: 750; }
.vehicle-gallery-dialog header button {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  font: 300 29px/1 var(--font-ui);
  cursor: pointer;
}
.vehicle-gallery-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #04141e;
}
.vehicle-gallery-stage>img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
}
.vehicle-gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(3,48,73,.72);
  backdrop-filter: blur(6px);
  font: 300 38px/1 var(--font-ui);
  cursor: pointer;
}
.vehicle-gallery-prev { left: 16px; }
.vehicle-gallery-next { right: 16px; }
.vehicle-gallery-nav:hover,
.vehicle-gallery-dialog header button:hover { background: var(--brand-blue-700); }
.vehicle-gallery-thumbs {
  display: flex;
  gap: 9px;
  padding: 12px 16px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  background: #082535;
  scrollbar-color: #4a859d transparent;
}
.vehicle-gallery-thumbs button {
  flex: 0 0 96px;
  width: 96px;
  height: 68px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #dce8ed;
  cursor: pointer;
}
.vehicle-gallery-thumbs button[aria-current="true"] { border-color: var(--brand-orange-500); }
.vehicle-gallery-thumbs img { display: block; width: 100%; height: 100%; border-radius: 6px; object-fit: contain; }
.gallery-dialog-open { overflow: hidden; }

@media(max-width:760px){
  .detail-page .gallery { height: 320px; display: block; }
  .detail-page .gallery .gallery-tile { display: none; }
  .detail-page .gallery .gallery-tile.gallery-main {
    display: block;
    height: 320px;
    border-radius: 15px;
  }
  .detail-page .gallery .gallery-tile.gallery-main img { display: block; border-radius: 15px; }
  .vehicle-gallery-strip { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
  .vehicle-gallery-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .vehicle-gallery-dialog header { min-height: 54px; padding-left: 14px; }
  .vehicle-gallery-nav { width: 42px; height: 42px; font-size: 32px; }
  .vehicle-gallery-prev { left: 8px; }
  .vehicle-gallery-next { right: 8px; }
  .vehicle-gallery-thumbs { padding: 9px 10px 12px; }
  .vehicle-gallery-thumbs button { flex-basis: 78px; width: 78px; height: 58px; }
}

/* Mobile stability pass for the rental flow, dashboards and media-heavy pages. */
.site-header .logo,
.site-header .brand-logo-image,
.site-header .header-brand-logo-image {
  background: transparent !important;
  box-shadow: none !important;
}
.search-panel:has(.location-combobox.is-open) { z-index: 90; }
.hero,
.hero-content,
.search-panel,
.search-fields,
.field-location,
.field .location-combobox { overflow: visible; }
.field .location-combobox-list { margin-top: 4px; }

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .container { width: min(100% - 28px, 1480px) !important; }
  .site-header {
    height: auto !important;
    min-height: 72px !important;
    z-index: 220;
  }
  .site-header .header-inner {
    min-height: 72px !important;
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    position: relative;
  }
  .site-header .logo {
    flex: 0 0 116px;
    width: 116px !important;
    min-width: 116px !important;
    height: 64px !important;
    align-items: center;
  }
  .site-header .brand-logo-image,
  .site-header .header-brand-logo-image {
    width: 112px !important;
    height: 60px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .site-header .menu-button {
    order: 3;
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    display: grid !important;
    place-items: center;
    margin-left: 0 !important;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    color: var(--brand-navy-900);
    background: #fff;
    font-size: 22px;
  }
  .site-header .header-actions {
    order: 2;
    margin-left: auto;
    gap: 8px !important;
  }
  .site-header .header-actions .login-link {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .site-header .header-actions>.button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .site-header .user-chip {
    min-height: 42px;
    padding: 4px 8px 4px 4px;
  }
  .site-header .user-chip img {
    width: 34px;
    height: 34px;
  }
  .site-header .main-nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 260;
    width: 100% !important;
    max-width: 100% !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 12px !important;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 55px rgba(3,48,73,.18);
  }
  .site-header .main-nav.open { display: flex !important; }
  .site-header .main-nav a,
  .site-header .main-nav .owner-link {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    font-size: 14px !important;
  }
  .site-header .main-nav a::after { display: none !important; }
  .toast {
    right: 12px;
    left: 12px;
    top: 84px;
    max-width: none;
  }
  .hero {
    min-height: auto !important;
    max-height: none !important;
    align-items: flex-start;
    background-position: 58% center !important;
  }
  .hero-content {
    width: 100%;
    padding: 34px 0 38px !important;
  }
  .hero h1,
  .page-hero h1,
  .section-heading h2,
  .protection h2,
  .owner-card h2,
  .auth-page h1 {
    letter-spacing: 0 !important;
  }
  .hero h1 {
    max-width: 560px;
    font-size: 44px !important;
    line-height: 1.08 !important;
  }
  .hero-copy>p {
    max-width: 560px;
    font-size: 16px !important;
  }
  .search-panel {
    width: 100% !important;
    margin-top: 22px !important;
    border-radius: 18px !important;
  }
  .service-tabs {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .service-tabs::-webkit-scrollbar { display: none; }
  .service-tabs label,
  .service-tabs>a {
    flex: 1 0 auto;
    min-width: 138px;
    min-height: 50px;
    padding: 11px 13px !important;
    font-size: 13px !important;
  }
  .search-fields {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 10px !important;
  }
  .search-fields .field,
  .search-fields .field-location {
    grid-column: 1 !important;
    min-width: 0;
    min-height: 68px;
    padding: 12px 10px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--neutral-200);
  }
  .search-fields .field:last-of-type { border-bottom: 0; }
  .field .location-combobox {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  .field .location-combobox-input {
    min-height: 40px !important;
    padding-right: 38px !important;
    font-size: 15px !important;
  }
  .location-combobox-list { max-width: min(460px, calc(100vw - 32px)) !important; }
  .search-button {
    grid-column: 1 !important;
    width: 100% !important;
    min-height: 54px !important;
    margin-top: 10px;
  }
  .quick-links {
    overflow-x: auto;
    white-space: nowrap;
  }
  .market-trust .container,
  .benefit-grid,
  .local-grid,
  .protection-grid,
  .owner-card,
  .support-layout,
  .contract-layout,
  .contract-config-grid,
  .booking-workspace,
  .dash-split,
  .listing-layout,
  .detail-layout {
    grid-template-columns: 1fr !important;
  }
  .featured .car-grid,
  .car-grid,
  .listing-grid,
  .community-first-party-grid,
  .faq-grid,
  .stats-grid,
  .admin-stats,
  .fleet-summary,
  .booking-stats,
  .form-grid,
  .form-pair,
  .profile-social-grid,
  .listing-facts,
  .feature-grid,
  .pickup-journey ol,
  .rule-list,
  .date-pair,
  .admin-create-user form,
  .admin-booking-editor,
  .admin-card-list,
  .admin-module-grid {
    grid-template-columns: 1fr !important;
  }
  .span-2,
  .form-grid .span-2 { grid-column: 1 !important; }
  .results-head,
  .section-heading,
  .detail-heading-row,
  .booking-list-heading,
  .panel-head,
  .form-actions,
  .profile-head,
  .title-row {
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: 12px;
  }
  .data-table,
  .owner-fleet-rows,
  .contract-preview-frame {
    max-width: 100%;
    overflow-x: auto;
  }
  .dashboard {
    display: block !important;
    min-height: calc(100vh - 72px) !important;
  }
  .dash-sidebar {
    position: sticky !important;
    top: 72px !important;
    z-index: 160;
    width: 100% !important;
    display: block !important;
    padding: 8px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--neutral-200);
    overflow-x: auto;
  }
  .dash-user,
  .dash-back { display: none !important; }
  .dash-sidebar nav {
    display: flex !important;
    gap: 7px !important;
    margin: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dash-sidebar nav::-webkit-scrollbar { display: none; }
  .dash-sidebar nav a {
    flex: 0 0 auto;
    min-height: 42px !important;
    padding: 9px 12px !important;
    white-space: nowrap;
  }
  .dash-content {
    width: 100%;
    min-width: 0;
    padding: 20px 14px 34px !important;
  }
  .dash-content>header {
    display: grid !important;
    gap: 8px;
  }
  .dash-content>header h1 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }
  .dash-date { display: none !important; }
  .dash-panel,
  .booking-card,
  .detail-block,
  .auth-form { padding: 18px !important; }
  .booking-list article,
  .booking-work-card,
  .admin-booking-card,
  .admin-content-row,
  .owner-fleet-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }
  .booking-list article { display: grid !important; }
  .booking-list article>img {
    width: 100% !important;
    height: 150px !important;
  }
  .booking-total {
    width: 100%;
    text-align: left !important;
  }
  .detail-page { padding-top: 18px !important; }
  .detail-page .gallery {
    height: auto !important;
    min-height: 0;
  }
  .detail-page .gallery .gallery-tile.gallery-main { height: min(64vw, 360px) !important; }
  .vehicle-gallery-strip {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .vehicle-gallery-strip button { flex: 0 0 92px; }
  .spec-row { grid-template-columns: 1fr 1fr !important; }
  .booking-card {
    position: static !important;
    margin-top: 18px;
  }
  .booking-card input,
  .booking-card select,
  .booking-card textarea,
  .auth-form input,
  .auth-form select,
  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    min-height: 46px;
    font-size: 16px !important;
  }
  .auth-page {
    grid-template-columns: 1fr !important;
    min-height: calc(100vh - 72px) !important;
  }
  .auth-visual {
    min-height: 290px !important;
    padding: 34px 18px !important;
  }
  .auth-visual .logo { display: none !important; }
  .auth-form-wrap { padding: 24px 14px 42px !important; }
  .social-login,
  .auth-social-stack { grid-template-columns: 1fr !important; }
  .chat-widget {
    right: 12px !important;
    bottom: 12px !important;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1480px) !important; }
  .site-header .logo {
    flex-basis: 104px;
    width: 104px !important;
    min-width: 104px !important;
    height: 58px !important;
  }
  .site-header .brand-logo-image,
  .site-header .header-brand-logo-image {
    width: 102px !important;
    height: 54px !important;
  }
  .site-header .header-actions>.button { display: none !important; }
  .site-header .user-chip span { display: none !important; }
  .hero-content { padding-top: 28px !important; }
  .hero h1 { font-size: 38px !important; }
  .section { padding: 54px 0 !important; }
  .section-heading h2,
  .page-hero h1 { font-size: 34px !important; }
  .service-tabs label,
  .service-tabs>a { min-width: 116px; }
  .location-combobox-list {
    position: fixed !important;
    z-index: 320 !important;
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(58dvh, 430px) !important;
    border-radius: 18px !important;
  }
  .location-combobox-option {
    min-height: 48px;
    font-size: 14px !important;
  }
  .vehicle-gallery-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
  .vehicle-gallery-dialog-shell { height: 100%; }
  .vehicle-gallery-stage { min-height: 0; }
  .vehicle-gallery-stage>img { object-fit: contain !important; }
  .booking-card-actions,
  .simple-actions,
  .admin-row-actions,
  .template-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .booking-card-actions form,
  .booking-card-actions button,
  .booking-card-actions select,
  .booking-card-actions a,
  .admin-row-actions a,
  .admin-row-actions button,
  .template-actions a,
  .template-actions button { width: 100% !important; }
  .profile-head { display: grid !important; }
}

@media (max-width: 420px) {
  .site-header .header-inner { width: min(100% - 18px, 1480px) !important; }
  .site-header .header-actions .login-link {
    font-size: 12px;
    padding: 0 4px;
  }
  .site-header .menu-button {
    width: 40px;
    height: 40px;
  }
  .hero h1 { font-size: 34px !important; }
  .hero-copy>p { font-size: 15px !important; }
  .search-panel { border-radius: 16px !important; }
  .search-fields .field,
  .search-fields .field-location {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
  .spec-row,
  .terms { grid-template-columns: 1fr !important; }
  .terms { display: grid !important; }
  .detail-page .gallery .gallery-tile.gallery-main { height: 250px !important; }
  .vehicle-gallery-nav {
    width: 38px !important;
    height: 38px !important;
  }
  .chat-panel,
  .chat-widget-panel {
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
  }
}

/* One account can rent cars and open the owner workspace. */
.owner-onboarding {
  min-height: calc(100vh - 96px);
  padding: clamp(42px,6vw,88px) 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(8,151,207,.13), transparent 30%),
    linear-gradient(145deg, #f7fbfd 0%, #eef7fb 100%);
}
.owner-onboarding-card {
  width: min(1080px,100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr);
  overflow: hidden;
  border: 1px solid #d9e7ee;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(4,70,105,.12);
}
.owner-onboarding-copy { padding: clamp(34px,5vw,64px); }
.owner-onboarding-copy h1 {
  margin: 0 0 18px;
  color: var(--brand-blue-deep);
  font-family: var(--font-display);
  font-size: clamp(36px,4.8vw,58px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.owner-onboarding-copy h1 em { color: var(--brand-orange); font-style: normal; }
.owner-onboarding-copy>p {
  max-width: 690px;
  margin: 0;
  color: #5d7480;
  font-size: 16px;
  line-height: 1.75;
}
.owner-onboarding-copy ul { margin: 30px 0; padding: 0; list-style: none; }
.owner-onboarding-copy li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #e3edf2;
}
.owner-onboarding-copy li>b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e9f7fc;
  color: var(--brand-blue-700);
  font-size: 12px;
}
.owner-onboarding-copy li span,
.owner-onboarding-copy li strong { display: block; }
.owner-onboarding-copy li strong { margin-bottom: 3px; color: var(--brand-blue-deep); font-size: 15px; }
.owner-onboarding-copy li span { color: #68808b; font-size: 13px; line-height: 1.55; }
.owner-onboarding-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.owner-onboarding-aside {
  padding: clamp(34px,4vw,54px);
  color: #fff;
  background: linear-gradient(155deg, var(--brand-blue-deep), var(--brand-blue-700));
}
.owner-onboarding-aside>span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  color: #8ce4c0;
  font-size: 24px;
  font-weight: 900;
}
.owner-onboarding-aside h2 { margin: 0 0 12px; font-size: 25px; }
.owner-onboarding-aside>p { margin: 0 0 34px; color: #d2e5ee; font-size: 14px; line-height: 1.7; }
.owner-onboarding-aside>div { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); }
.owner-onboarding-aside b,
.owner-onboarding-aside small { display: block; }
.owner-onboarding-aside b { margin-bottom: 5px; color: #fff; font-size: 15px; }
.owner-onboarding-aside small { color: #bdd6e2; font-size: 12px; line-height: 1.55; }

@media (max-width: 780px) {
  .owner-onboarding { min-height: calc(100vh - 76px); padding: 24px 14px 46px; }
  .owner-onboarding-card { grid-template-columns: 1fr; border-radius: 20px; }
  .owner-onboarding-copy { padding: 28px 22px; }
  .owner-onboarding-copy h1 { font-size: 38px; }
  .owner-onboarding-copy>p { font-size: 15px; }
  .owner-onboarding-aside { padding: 28px 22px; }
  .owner-onboarding-actions { display: grid; }
  .owner-onboarding-actions .button { width: 100%; }
}

/* Mobile hardening: prevent late-loading modules from creating horizontal scroll. */
:where(.site-header,.header-inner,.main-nav,.header-actions,.auth-page,.auth-form-wrap,.auth-form,.social-auth-area,.listing-layout,.results,.results-actions,.detail-layout,.booking-card,.dash-content,.dash-panel,.message-center,.chat-panel,.chat-popover,.chat-popover-body,.chat-widget-thread,.owner-onboarding-card) {
  min-width: 0;
}

@media (max-width: 900px) {
  .filter-mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid var(--neutral-200);
    border-radius: 11px;
    background: #fff;
    color: var(--brand-blue-deep);
    font-weight: 850;
  }
  .results-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .results-actions label {
    flex: 1 1 190px;
    min-width: 0;
  }
  .filters {
    display: none !important;
    position: fixed !important;
    inset: 84px 12px 12px !important;
    z-index: 300;
    height: auto !important;
    max-height: none !important;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 22px 58px rgba(4,57,86,.2);
  }
  .filters.open {
    display: block !important;
  }
  .auth-form {
    width: min(100%, 520px) !important;
  }
  .google-auth-button,
  .facebook-auth-button {
    min-width: 0;
    min-height: 54px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }
  .google-auth-button span,
  .facebook-auth-button span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .google-auth-button.needs-setup,
  .facebook-auth-button.needs-setup {
    flex-wrap: wrap;
  }
  .google-auth-button.needs-setup small,
  .facebook-auth-button.needs-setup small {
    flex: 1 0 100%;
    margin-left: 0 !important;
    text-align: center;
  }
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .footer-bottom {
    display: grid !important;
  }
  .global-chat {
    right: 14px !important;
    bottom: 14px !important;
  }
  .chat-popover {
    position: fixed !important;
    right: 10px !important;
    bottom: 82px !important;
    left: 10px !important;
    width: auto !important;
    height: min(620px, calc(100dvh - 100px)) !important;
    max-height: none !important;
  }
  .chat-popover-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0,1fr);
  }
  .chat-thread-rail {
    max-height: 150px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .thread-rail-title {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7fafb;
  }
}

@media (max-width: 560px) {
  .site-header .header-inner {
    width: min(100% - 18px, 1480px) !important;
  }
  .site-header .header-actions {
    min-width: 0;
  }
  .service-tabs label,
  .service-tabs>a {
    flex: 1 1 33.333% !important;
    min-width: 0 !important;
    padding: 10px 5px !important;
    text-align: center;
  }
  .service-tabs b {
    font-size: 11px !important;
    white-space: normal;
  }
  .site-header .header-actions .login-link {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .auth-visual {
    display: none !important;
  }
  .auth-form-wrap {
    min-height: calc(100vh - 72px);
    align-items: flex-start !important;
    padding-top: 22px !important;
  }
  .auth-form h2 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }
  .auth-options {
    display: grid !important;
    gap: 10px;
  }
  .profile-google-card {
    grid-template-columns: 48px minmax(0,1fr) !important;
  }
  .profile-google-card>.button,
  .profile-google-card>.google-linked-badge,
  .profile-google-card>.google-pending-badge {
    width: 100%;
  }
  .features,
  .verification-list {
    grid-template-columns: 1fr !important;
  }
  .global-chat.open {
    inset: 0 !important;
  }
  .global-chat.open .chat-popover {
    top: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    height: auto !important;
    border-radius: 18px;
  }
  .chat-popover-body {
    grid-template-rows: 132px minmax(0,1fr);
  }
  .chat-thread-rail {
    max-height: 132px;
  }
  .chat-compose {
    grid-template-columns: minmax(0,1fr) auto !important;
  }
  .emoji-picker {
    right: 0;
    left: 0;
    width: auto;
  }
}

@media (max-width: 380px) {
  .site-header .logo {
    flex-basis: 96px !important;
    width: 96px !important;
    min-width: 96px !important;
  }
  .site-header .brand-logo-image,
  .site-header .header-brand-logo-image {
    width: 94px !important;
  }
  .site-header .header-actions .login-link {
    max-width: 74px;
    font-size: 12px !important;
  }
  .google-auth-button,
  .facebook-auth-button,
  .button {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
  .auth-form,
  .dash-panel,
  .booking-card {
    padding: 16px !important;
  }
}

/* Stable featured-fleet layouts for sparse and full inventories. */
.featured .car-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
}
.featured .car-grid.vehicle-count-1 {
  grid-template-columns: minmax(300px,520px);
  justify-content: center;
}
.featured .car-grid.vehicle-count-2 {
  grid-template-columns: repeat(2,minmax(300px,480px));
  justify-content: center;
}
.featured .car-card {
  width: 100%;
  height: 100%;
}
.featured .car-content {
  display: flex;
  min-height: 184px;
  flex-direction: column;
}
.featured .car-bottom {
  margin-top: auto;
}
.featured-empty {
  min-height: 260px;
  padding: 48px 24px;
  border: 1px dashed var(--neutral-300);
  background: #fff;
}
.featured-empty .button {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .featured .car-grid,
  .featured .car-grid.vehicle-count-1,
  .featured .car-grid.vehicle-count-2 {
    grid-template-columns: minmax(0,1fr);
  }
  .featured .car-content {
    min-height: 0;
  }
}

/* Admin workspace: dense, searchable and predictable at every record count. */
.admin-metric-strip {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.admin-metric-strip a {
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  background: #fff;
}
.admin-metric-strip b {
  color: var(--brand-blue-deep);
  font-size: 22px;
}
.admin-metric-strip span {
  color: var(--neutral-650);
  font-size: 11px;
  font-weight: 800;
}
.admin-filter-panel {
  margin-bottom: 14px;
  padding: 18px 20px;
}
.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px,1.6fr) repeat(4,minmax(130px,.75fr)) auto;
  gap: 10px;
  align-items: end;
}
.admin-filter-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.admin-filter-grid label>span {
  color: var(--neutral-650);
  font-size: 10px;
  font-weight: 850;
}
.admin-filter-grid input,
.admin-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  background: #fff;
}
.admin-filter-grid input:focus,
.admin-filter-grid select:focus {
  border-color: #63b9d9;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0,143,207,.1);
}
.admin-filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}
.admin-filter-actions a {
  color: var(--neutral-650);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-management-panel {
  overflow: hidden;
}
.admin-management-panel>.panel-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--neutral-200);
}
.admin-data-table {
  margin-top: 2px;
}
.admin-data-table table {
  min-width: 920px;
}
.admin-data-table td {
  vertical-align: middle;
}
.admin-data-table td>small,
.admin-data-table td>b {
  display: block;
}
.admin-data-table td>small {
  margin-top: 4px;
  color: var(--neutral-650);
  font-size: 10px;
}
.admin-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 210px;
  padding: 42px 20px;
  text-align: center;
}
.admin-empty>span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-sky);
  color: var(--brand-blue-deep);
  font-size: 23px;
}
.admin-empty>b {
  color: var(--brand-navy-900);
  font-size: 16px;
}
.admin-empty>small {
  color: var(--neutral-650);
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--neutral-200);
}
.admin-pagination>span {
  color: var(--neutral-650);
  font-size: 11px;
}
.admin-page-links {
  display: flex;
  align-items: center;
  gap: 5px;
}
.admin-page-links a,
.admin-page-links i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--neutral-200);
  border-radius: 7px;
  background: #fff;
  color: var(--brand-blue-deep);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.admin-page-links a.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}
.admin-page-links a.disabled {
  pointer-events: none;
  opacity: .35;
}
.admin-create-user {
  margin-bottom: 14px;
}
.admin-create-user>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  cursor: pointer;
  list-style: none;
}
.admin-create-user>summary::-webkit-details-marker {
  display: none;
}
.admin-create-user>summary span:first-child {
  display: grid;
  gap: 3px;
}
.admin-create-user>summary b {
  color: var(--brand-navy-900);
}
.admin-create-user>summary small {
  color: var(--neutral-650);
}
.admin-create-user>summary span:last-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--brand-sky);
  color: var(--brand-blue-deep);
  font-size: 20px;
}
.admin-create-user[open]>summary {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--neutral-200);
}
.admin-content-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  background: #fff;
}
.admin-content-tabs a {
  flex: 1;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--neutral-650);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}
.admin-content-tabs a.active {
  background: var(--brand-blue-deep);
  color: #fff;
}
.admin-queue-panel {
  margin-top: 16px;
}
.admin-queue-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.admin-queue-grid a {
  display: grid;
  gap: 3px;
  padding: 17px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  background: var(--neutral-50);
}
.admin-queue-grid b {
  color: var(--brand-orange);
  font-size: 26px;
}
.admin-queue-grid span {
  color: var(--brand-navy-900);
  font-size: 12px;
  font-weight: 850;
}
.admin-queue-grid small {
  color: var(--neutral-650);
  font-size: 10px;
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
  gap: 16px;
  margin-top: 16px;
}
.admin-mail-status dl {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.admin-mail-status dl>div {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--neutral-200);
}
.admin-mail-status dt {
  color: var(--neutral-650);
  font-size: 11px;
}
.admin-mail-status dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--brand-navy-900);
  font-size: 11px;
  font-weight: 750;
}
.admin-mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-mail-actions form {
  margin: 0;
}
.admin-mail-status button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.admin-quick-links {
  display: grid;
  gap: 7px;
}
.admin-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 7px;
  color: var(--brand-navy-900);
  font-size: 12px;
  font-weight: 800;
}
.admin-quick-links span {
  color: var(--brand-blue);
}

@media (max-width: 1280px) {
  .admin-filter-grid {
    grid-template-columns: repeat(3,minmax(150px,1fr));
  }
  .admin-filter-search {
    grid-column: span 2;
  }
  .admin-filter-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .admin-metric-strip,
  .admin-queue-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
  .admin-filter-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .admin-filter-search {
    grid-column: 1 / -1;
  }
  .admin-filter-actions {
    justify-content: flex-start;
  }
  .admin-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .admin-filter-panel,
  .admin-management-panel,
  .admin-queue-panel,
  .admin-mail-status {
    padding: 16px !important;
  }
  .admin-filter-grid,
  .admin-metric-strip,
  .admin-queue-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .admin-filter-search {
    grid-column: auto;
  }
  .admin-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-filter-actions .button,
  .admin-filter-actions a {
    width: 100%;
    text-align: center;
  }
  .admin-mail-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-mail-actions .button {
    width: 100%;
  }
  .admin-content-tabs {
    overflow-x: auto;
  }
  .admin-content-tabs a {
    min-width: 110px;
  }
  .admin-user-card>summary {
    grid-template-columns: minmax(0,1fr) auto !important;
  }
  .admin-user-card>summary>span:nth-child(2),
  .admin-user-card>summary>small {
    display: none;
  }
  .admin-content-row {
    grid-template-columns: minmax(0,1fr);
  }
  .admin-content-row form {
    flex-wrap: wrap;
  }
  .admin-mail-status dl>div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
