/* ==========================================================================
   LARAMOTOR — Clean White Editorial Design System (CarVertical-Caliber Clarity)
   Ground: #F4F6F9 | Surface: #FFFFFF | Ink: #0F172A | Accent: #0052CC
   Zero dark/gaming neon clutter. Accessible WCAG AA/AAA contrast & Forced Colors.
   ========================================================================== */

:root {
  color-scheme: light;
  --lm-ground: #f4f6f9;
  --lm-surface: #ffffff;
  --lm-surface-subtle: #f8fafc;
  --lm-surface-muted: #f1f5f9;
  --lm-ink: #0f172a;
  --lm-ink-secondary: #334155;
  --lm-muted: #475569;
  --lm-line: #e2e8f0;
  --lm-control-border: #94a3b8;
  --lm-accent: #0052cc;
  --lm-accent-hover: #003fa3;
  --lm-accent-soft: #eff6ff;
  --lm-accent-border: #bfdbfe;
  --lm-ok-fg: #15803d;
  --lm-ok-bg: #ecfdf5;
  --lm-ok-border: #86efac;
  --lm-warn-fg: #a16207;
  --lm-warn-bg: #fef9c3;
  --lm-warn-border: #fde047;
  --lm-err-fg: #b91c1c;
  --lm-err-bg: #fef2f2;
  --lm-err-border: #fca5a5;
  --lm-radius-card: 16px;
  --lm-radius-control: 10px;
  --lm-shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --lm-font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --lm-font-body: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --lm-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Override legacy dark page custom properties */
  --bg-dark: #f4f6f9 !important;
  --bg-card: #ffffff !important;
  --bg-card-solid: #ffffff !important;
  --border: #e2e8f0 !important;
  --border-subtle: #e2e8f0 !important;
  --border-card: #e2e8f0 !important;
  --border-accent: #cbd5e1 !important;
  --text: #0f172a !important;
  --text-main: #0f172a !important;
  --text-muted: #475569 !important;
  --muted: #475569 !important;
  --accent: #0052cc !important;
  --accent-amber: #0052cc !important;
  --accent-gold: #0052cc !important;
  --accent-cyan: #0052cc !important;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  --font-body: 'Inter', 'Plus Jakarta Sans', -apple-system, sans-serif !important;
}

/* Scroll-state container on root scroller (content-first-noise-reduction) */
html {
  container-type: scroll-state;
  background-color: var(--lm-ground) !important;
  color: var(--lm-ink) !important;
  scroll-behavior: smooth;
}

:target,
section[id] {
  scroll-margin-top: 5rem;
}

body {
  background: var(--lm-ground) !important;
  background-image: none !important;
  color: var(--lm-ink) !important;
  font-family: var(--lm-font-body) !important;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  display: none !important;
}

/* Replace Orbitron / gaming display fonts with clean editorial grotesk */
.font-orbitron,
h1, h2, h3, h4 {
  font-family: var(--lm-font-heading) !important;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   VIN REPORT — 2-Column Clean White Editorial Layout (CarVertical-Caliber)
   ========================================================================== */
.lm-cv-shell {
  margin-top: 1.5rem;
  scroll-margin-top: 84px;
  color: var(--lm-ink);
  font-family: var(--lm-font-body);
}

.lm-cv-top-hero {
  background: var(--lm-surface);
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius-card);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--lm-shadow-card);
  margin-bottom: 1.25rem;
}

.lm-cv-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.lm-cv-veh-title {
  font-family: var(--lm-font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--lm-ink);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.lm-cv-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.lm-cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: var(--lm-surface-muted);
  border: 1px solid var(--lm-line);
  color: var(--lm-ink-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.lm-cv-chip-vin {
  font-family: var(--lm-font-mono);
  background: var(--lm-accent-soft);
  border-color: var(--lm-accent-border);
  color: var(--lm-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lm-cv-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  background: var(--lm-accent);
  color: #ffffff !important;
  border: 1px solid var(--lm-accent);
  font-family: var(--lm-font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.lm-cv-btn-primary:hover {
  background: var(--lm-accent-hover);
  transform: translateY(-1px);
}

.lm-cv-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.05rem;
  border-radius: 10px;
  background: var(--lm-surface);
  color: var(--lm-ink) !important;
  border: 1px solid var(--lm-control-border);
  font-family: var(--lm-font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.lm-cv-btn-secondary:hover {
  background: var(--lm-surface-muted);
  border-color: var(--lm-ink-secondary);
}

/* 2-Column Sticky Sidebar + Chapters Grid */
.lm-cv-grid {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Native CSS Scrollspy + IntersectionObserver Fallback (modern-web-guidance: scrollspy) */
.lm-cv-sidebar {
  position: sticky;
  top: 5.25rem;
  background: var(--lm-surface);
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius-card);
  padding: 0.65rem;
  box-shadow: var(--lm-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  scroll-target-group: auto;
}

.lm-cv-sidebar-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--lm-muted);
  padding: 0.4rem 0.65rem 0.35rem;
}

.lm-cv-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.58rem 0.72rem;
  border-radius: 10px;
  color: var(--lm-ink-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
  min-inline-size: 0;
}

.lm-cv-sidebar a:hover {
  background: var(--lm-surface-muted);
  color: var(--lm-ink);
}

.lm-cv-sidebar a:is(:target-current, .target-current) {
  background: var(--lm-accent-soft);
  color: var(--lm-accent);
  border-left-color: var(--lm-accent);
  font-weight: 800;
}

.lm-cv-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-cv-nav-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.lm-cv-nav-pill.ok {
  background: var(--lm-ok-bg);
  color: var(--lm-ok-fg);
  border: 1px solid var(--lm-ok-border);
}

.lm-cv-nav-pill.warn {
  background: var(--lm-warn-bg);
  color: var(--lm-warn-fg);
  border: 1px solid var(--lm-warn-border);
}

.lm-cv-nav-pill.err {
  background: var(--lm-err-bg);
  color: var(--lm-err-fg);
  border: 1px solid var(--lm-err-border);
}

.lm-cv-nav-pill.neutral {
  background: var(--lm-surface-muted);
  color: var(--lm-muted);
  border: 1px solid var(--lm-line);
}

.lm-cv-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-inline-size: 0;
}

.lm-cv-chapter {
  background: var(--lm-surface);
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius-card);
  padding: 1.65rem 1.75rem;
  box-shadow: var(--lm-shadow-card);
  outline: none;
}

.lm-cv-chapter:focus-visible {
  outline: 2px solid var(--lm-accent);
  outline-offset: 2px;
}

.lm-cv-chapter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--lm-line);
}

.lm-cv-chapter-title {
  font-family: var(--lm-font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--lm-ink);
  margin: 0;
}

.lm-cv-chapter-sub {
  font-size: 0.88rem;
  color: var(--lm-muted);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

/* Status Banner inside Chapters (Icon + Text — never color alone) */
.lm-cv-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--lm-line);
}

.lm-cv-status-banner.ok {
  background: var(--lm-ok-bg);
  border-color: var(--lm-ok-border);
  color: #14532d;
}

.lm-cv-status-banner.warn {
  background: var(--lm-warn-bg);
  border-color: var(--lm-warn-border);
  color: #713f12;
}

.lm-cv-status-banner.err {
  background: var(--lm-err-bg);
  border-color: var(--lm-err-border);
  color: #7f1d1d;
}

.lm-cv-status-banner.info {
  background: var(--lm-accent-soft);
  border-color: var(--lm-accent-border);
  color: #1e3a8a;
}

.lm-cv-status-icon {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.lm-cv-status-banner.ok .lm-cv-status-icon { background: #16a34a; color: #ffffff; }
.lm-cv-status-banner.warn .lm-cv-status-icon { background: #eab308; color: #0f172a; }
.lm-cv-status-banner.err .lm-cv-status-icon { background: #dc2626; color: #ffffff; }
.lm-cv-status-banner.info .lm-cv-status-icon { background: #0052cc; color: #ffffff; }

/* 6 Summary Cards Grid */
.lm-cv-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.lm-cv-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.05rem 1.15rem;
  border-radius: 13px;
  background: var(--lm-surface-subtle);
  border: 1px solid var(--lm-line);
  text-decoration: none;
  color: var(--lm-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lm-cv-summary-card:hover {
  border-color: var(--lm-control-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.lm-cv-summary-card.is-err {
  background: #fffafa;
  border-color: var(--lm-err-border);
}

.lm-cv-summary-card.is-warn {
  background: #fefef8;
  border-color: var(--lm-warn-border);
}

/* Clean Key-Value Specs Grid */
.lm-cv-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.65rem 1.5rem;
}

.lm-cv-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--lm-line);
  font-size: 0.87rem;
}

.lm-cv-kv-k {
  color: var(--lm-muted);
  font-weight: 500;
}

.lm-cv-kv-v {
  color: var(--lm-ink);
  font-weight: 700;
  text-align: right;
}

/* Clean Collapsible Secondary Details (content-first-noise-reduction) */
details.lm-clean-details {
  background: var(--lm-surface-subtle);
  border: 1px solid var(--lm-line);
  border-radius: 12px;
  overflow: hidden;
}

details.lm-clean-details + details.lm-clean-details {
  margin-top: 0.75rem;
}

details.lm-clean-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.15rem;
  font-family: var(--lm-font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--lm-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}

details.lm-clean-details > summary::-webkit-details-marker {
  display: none;
}

details.lm-clean-details > summary::after {
  content: "+";
  inline-size: 24px;
  block-size: 24px;
  border-radius: 6px;
  background: var(--lm-surface);
  border: 1px solid var(--lm-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--lm-muted);
  flex-shrink: 0;
}

details.lm-clean-details[open] > summary {
  border-bottom: 1px solid var(--lm-line);
  background: var(--lm-surface);
}

details.lm-clean-details[open] > summary::after {
  content: "−";
  color: var(--lm-accent);
  border-color: var(--lm-accent-border);
  background: var(--lm-accent-soft);
}

.lm-clean-details-body {
  padding: 1.15rem;
  background: var(--lm-surface);
}

/* Native Styled Progress Bar (modern-web-guidance: progress) */
progress.lm-progress {
  appearance: none;
  border: 0 solid;
  overflow: clip;
  container-type: inline-size;
  inline-size: 100%;
  block-size: 10px;
  --progress-bar-radius: 1e5px;
  --progress-bar-track: #e2e8f0;
  --progress-bar-fill: #0052cc;
  --progress-bar-indeterminate-size: 30%;
  --progress-bar-indeterminate-animation-duration: 1.5s;
  border-radius: var(--progress-bar-radius);
  background: var(--progress-bar-track);
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.08);
}

@media (prefers-reduced-motion: reduce) {
  progress.lm-progress {
    --progress-bar-indeterminate-animation-duration: 10s;
  }
}

progress.lm-progress:indeterminate {
  --progress-bar-animation: var(
    --progress-bar-indeterminate-animation,
    lm-progress-indeterminate var(--progress-bar-indeterminate-animation-duration) infinite linear
  );
}

progress.lm-progress::-webkit-progress-bar {
  background: transparent;
}

progress.lm-progress::-webkit-progress-value {
  background: var(--progress-bar-fill);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.3s;
  animation: var(--progress-bar-animation, revert-rule);
}

progress.lm-progress::-moz-progress-bar {
  background: var(--progress-bar-fill);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.3s;
  animation: var(--progress-bar-animation, revert-rule);
}

@keyframes lm-progress-indeterminate {
  from, to {
    inline-size: var(--progress-bar-indeterminate-size);
    margin-right: auto;
  }
  from { translate: -100%; }
  to { translate: 100cqi; }
}

/* Single-line filename overflow keeping extension visible (modern-web-guidance: single-line-overflow) */
.lm-filename {
  display: flex;
  white-space: nowrap;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.lm-filename > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .lm-cv-grid {
    grid-template-columns: 1fr;
  }
  .lm-cv-sidebar {
    position: sticky;
    top: 4.2rem;
    z-index: 30;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.45rem;
    gap: 0.35rem;
    scrollbar-width: thin;
  }
  .lm-cv-sidebar-title {
    display: none;
  }
  .lm-cv-sidebar a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.45rem 0.68rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .lm-cv-sidebar a:is(:target-current, .target-current) {
    border-bottom-color: var(--lm-accent);
  }
  .lm-cv-chapter {
    padding: 1.2rem 1.05rem;
  }
}

/* ==========================================================================
   SITE-WIDE LIGHT SURFACE NORMALIZATION (Tailwind & Legacy Dark Pages)
   Ensures index.html, importar-coche.html, panel.html, acceso.html, admin.html
   and dynamic JS cards render cleanly on white without dark gaming boxes.
   ========================================================================== */
.glass,
.lm-glass,
.tool-panel,
.report-box,
.stat-card,
.step-card,
.auth-shell,
.panel-hero,
.adm-card,
.kpi-card {
  background: var(--lm-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--lm-line) !important;
  box-shadow: var(--lm-shadow-card) !important;
  color: var(--lm-ink) !important;
}

.red-glow {
  box-shadow: var(--lm-shadow-card) !important;
}

/* Normalize Tailwind dark utility surfaces to clean white/slate */
[class*="bg-slate-950"],
[class*="bg-slate-900"] {
  background-color: var(--lm-surface-subtle) !important;
  color: var(--lm-ink) !important;
}

[class*="border-slate-800"],
[class*="border-slate-700"] {
  border-color: var(--lm-line) !important;
}

/* Preserve white text ONLY inside solid accent buttons/badges, convert body headings/copy to dark slate */
body :is(h1, h2, h3, h4, p, li, td, th, label, caption).text-white,
.glass .text-white:not(a[class*="bg-"]):not(button[class*="bg-"]),
.lm-glass .text-white:not(a[class*="bg-"]):not(button[class*="bg-"]),
[class*="bg-slate-9"] .text-white:not(a[class*="bg-"]):not(button[class*="bg-"]) {
  color: var(--lm-ink) !important;
}

.text-slate-200,
.text-slate-300 {
  color: var(--lm-ink-secondary) !important;
}

.text-slate-400 {
  color: var(--lm-muted) !important;
}

/* Replace low-contrast pastel neon text on white with accessible dark semantic equivalents (>= 4.5:1) */
.text-amber-300,
.text-amber-400 {
  color: #b45309 !important;
}

.text-emerald-300,
.text-emerald-400 {
  color: #15803d !important;
}

.text-sky-300,
.text-sky-400,
.text-cyan-400 {
  color: #0052cc !important;
}

.text-red-300,
.text-red-400,
.text-red-500 {
  color: #b91c1c !important;
}

.text-purple-400 {
  color: #6d28d9 !important;
}

/* Form inputs & selects: crisp white surface + >= 3:1 control border contrast */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.bg-transparent):not(.vin-search-input),
select:not(.lm-eu-plate-select),
textarea,
.lm-input,
.lm-select,
.lm-input-field,
.form-input {
  background-color: #ffffff !important;
  color: var(--lm-ink) !important;
  border: 1px solid var(--lm-control-border) !important;
}

input.bg-transparent,
input.vin-search-input {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

input:not(.bg-transparent):not(.vin-search-input):focus,
select:not(.lm-eu-plate-select):focus,
textarea:focus,
.lm-input:focus,
.lm-select:focus,
.lm-input-field:focus,
.form-input:focus {
  border-color: var(--lm-accent) !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15) !important;
  outline: none !important;
}

/* ==========================================================================
   DUAL SEARCH BAR (MATRÍCULA / NÚMERO VIN) — Accessible Tablist + Unified Pill
   ========================================================================== */
.lm-visually-hidden {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.lm-search-tablist {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-block-end: 1px solid var(--lm-line);
  margin-block-end: 0.65rem;
  max-inline-size: 100%;
  overflow-x: auto;
}

.lm-search-tablist [role="tab"] {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-block-size: 48px;
  padding: 0.55rem 1rem;
  border: 0;
  background: transparent;
  color: var(--lm-muted);
  font-family: var(--lm-font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.lm-search-tablist [role="tab"]:hover {
  color: var(--lm-ink);
}

.lm-search-tablist [role="tab"]:focus-visible {
  outline: 2px solid var(--lm-accent);
  outline-offset: -2px;
  border-radius: 8px;
}

.lm-search-tablist [role="tab"][aria-selected="true"] {
  color: var(--lm-accent);
}

.lm-search-tablist [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid var(--lm-accent);
}

.lm-unified-search-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lm-unified-search-pill:focus-within {
  border-color: var(--lm-accent);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.16), 0 8px 24px rgba(15, 23, 42, 0.08);
}

.lm-unified-search-row {
  display: flex;
  align-items: center;
  flex: 1 1 230px;
  min-inline-size: 0;
  gap: 0.55rem;
}

.lm-eu-plate-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  inline-size: 56px;
  block-size: 50px;
  border-radius: 10px;
  background: #003399;
  color: #ffffff;
  flex-shrink: 0;
  user-select: none;
  cursor: pointer;
}

.lm-eu-plate-badge:focus-within {
  outline: 2px solid #ffdd00;
  outline-offset: 1px;
}

.lm-eu-plate-select {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1rem;
}

.lm-unified-search-pill input.vin-search-input {
  flex: 1 1 150px;
  min-inline-size: 0;
  inline-size: 100%;
  min-block-size: 50px;
  padding: 0.6rem 0.65rem;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--lm-ink) !important;
  font-family: var(--lm-font-heading);
  font-size: max(1rem, 1.04rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lm-unified-search-pill input.vin-search-input::placeholder {
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.lm-unified-search-submit {
  min-block-size: 50px;
  padding: 0.7rem 1.45rem;
  border: 0;
  border-radius: 10px;
  background: #ffdd00;
  color: #0f172a;
  font-family: var(--lm-font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.lm-unified-search-submit:hover {
  background: #f5d000;
}

.lm-unified-search-submit:focus-visible {
  outline: 3px solid var(--lm-accent);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .lm-unified-search-submit {
    inline-size: 100%;
  }
}

dialog:modal {
  background: #ffffff !important;
  color: var(--lm-ink) !important;
  border: 1px solid var(--lm-line) !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
}

dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.45) !important;
}

/* Forced Colors Mode support (modern-web-guidance: color) */
@media (forced-colors: active) {
  .lm-cv-chapter,
  .lm-cv-top-hero,
  .lm-cv-sidebar,
  .lm-cv-summary-card,
  .lm-cv-status-banner {
    border: 1px solid CanvasText;
    box-shadow: none;
  }
  .lm-cv-sidebar a:is(:target-current, .target-current) {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
