:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #edf2f4;
  --ink: #172026;
  --muted: #6d7882;
  --line: #dbe3e8;
  --blue: #3f73e6;
  --blue-dark: #2457c4;
  --green: #1f8a5b;
  --yellow: #d9a527;
  --orange: #c66a2c;
  --red: #cf3e38;
  --shadow: 0 24px 70px rgba(27, 41, 51, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(245,247,248,1) 520px),
    repeating-linear-gradient(90deg, rgba(31,111,235,.06) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255,176,0,.07) 0 1px, transparent 1px 58px),
    #edf3f7;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; stroke-width: 2.2; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 18px clamp(28px, 5vw, 64px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #b75a67, var(--blue));
  border-radius: var(--radius);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; font-weight: 900; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.brand .account-status {
  color: var(--blue-dark);
  font-weight: 850;
}

.top-actions,
.search-row,
.mode-tabs,
.toolbar-actions,
.status-strip {
  display: flex;
  align-items: center;
}

.top-actions { gap: 10px; }

.language-toggle {
  display: inline-flex;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f5f7f8;
}

.language-toggle button {
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.language-toggle button.active {
  color: #fff;
  background: #141b21;
}

.ghost-button,
.primary-button,
.secondary-button,
.icon-button,
.directions-button,
.mode-tabs button,
.quick-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ghost-button {
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
}

.ghost-button.active {
  color: #fff;
  background: #141b21;
  border-color: #141b21;
}

#login-open.logged-out {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

#login-open.logged-in {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.search-band {
  padding: 42px clamp(16px, 4vw, 52px) 36px;
}

.search-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.hero-copy { display: none; }

.kicker {
  margin: 0;
  color: #2f5fac;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-form {
  padding: 28px 28px 24px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location-row { display: none; }

.search-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.search-row { gap: 10px; }

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 16px;
  color: #697680;
  transform: translateY(-50%);
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
  resize: vertical;
}

input::placeholder { color: #9aa3aa; font-weight: 700; }

.search-input-wrap input {
  min-height: 58px;
  padding-left: 52px;
  font-size: 22px;
  font-weight: 700;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63,115,230,.22);
}

.uppercase-input {
  text-transform: uppercase;
}

.primary-button {
  min-width: 140px;
  min-height: 58px;
  padding: 0 22px;
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  font-size: 18px;
}

.primary-button:hover { background: var(--blue-dark); }

.filter-submit {
  min-width: 122px;
  min-height: 46px;
  font-size: 16px;
}

.filter-submit span {
  color: #fff;
}

.secondary-button {
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.secondary-button.active {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.secondary-button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.icon-button {
  width: 42px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.icon-button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.mode-tabs {
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.mode-tabs button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  font-size: 18px;
}

.mode-tabs button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.refine-row {
  display: grid;
  grid-template-columns: 1fr 1.55fr .8fr .8fr .85fr .85fr 1fr auto;
  gap: 10px;
  margin-top: 16px;
  align-items: end;
}

.refine-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.refine-row span {
  color: #66727c;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.refine-row em {
  color: #9aa3aa;
  font-style: normal;
  font-weight: 800;
  text-transform: none;
}

.combo-field { position: relative; }

.combo-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(280px, 52vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbd9ff;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 20px 50px rgba(27,41,51,.18);
}

.combo-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.combo-panel button:hover,
.combo-panel button:focus {
  outline: none;
  background: #edf3ff;
}

.combo-empty {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 14px;
}

.generation-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #cbd9ff;
  border-radius: var(--radius-sm);
  background: #f3f7ff;
}

.generation-heading {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink);
}

.generation-heading > svg { color: var(--blue); margin-top: 2px; }
.generation-heading strong { display: block; font-size: 20px; font-weight: 950; text-transform: uppercase; }
.generation-heading p { margin: 3px 0 0; color: var(--muted); font-size: 16px; font-weight: 700; }
.generation-heading button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--blue-dark);
  background: #fff;
  font-weight: 800;
}

.generation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.generation-grid button {
  display: grid;
  gap: 3px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid #d4e0ff;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.generation-grid button.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63,115,230,.18);
}

.generation-grid strong { font-size: 20px; }
.generation-grid span { color: var(--blue-dark); font-size: 20px; font-weight: 950; }
.generation-grid small { color: var(--muted); font-size: 14px; font-weight: 750; }

.quick-chips { display: none; }

.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 52px) 56px;
}

.side-panel,
.results-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 45px rgba(27,41,51,.08);
}

.side-panel {
  align-self: start;
  position: sticky;
  top: 110px;
  overflow: hidden;
}

.panel-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-section:last-child { border-bottom: 0; }
.panel-section h2 { margin: 0 0 14px; font-size: 20px; }

.radar-visual { display: none; }

.yard-list,
.coverage-list {
  display: grid;
  gap: 10px;
}

.yard-list {
  max-height: min(54vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.yard-list::-webkit-scrollbar {
  width: 8px;
}

.yard-list::-webkit-scrollbar-track {
  background: #eef3f6;
  border-radius: 999px;
}

.yard-list::-webkit-scrollbar-thumb {
  background: #aebbc6;
  border-radius: 999px;
}

.yard-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafb;
  color: inherit;
  text-align: left;
}

.yard-select {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.yard-row.active {
  border-color: var(--blue);
  background: #edf3ff;
  box-shadow: 0 0 0 3px rgba(63,115,230,.16);
}

.yard-row span,
.yard-phone,
.coverage-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.yard-phone {
  width: max-content;
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: none;
}

.coverage-list strong {
  color: var(--ink);
  font-size: 18px;
}

.yard-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-panel { padding: 24px; }

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.result-toolbar h2 {
  margin: 4px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 950;
}

.toolbar-actions { gap: 8px; }
.alert-message { min-height: 24px; }

.feedback-shell {
  margin: 10px 0 14px;
}

.feedback {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 12px 26px rgba(12, 18, 24, .08);
}

.feedback-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.feedback-copy {
  display: grid;
  gap: 4px;
}

.feedback-copy strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.feedback-copy p,
.feedback-copy small {
  margin: 0;
  color: #52606b;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.feedback-copy small {
  color: #66727c;
}

.feedback-success { border-left-color: var(--green); }
.feedback-success .feedback-icon { color: var(--green); background: rgba(30, 126, 82, .12); }
.feedback-warning { border-left-color: #d38a14; }
.feedback-warning .feedback-icon { color: #a86500; background: rgba(211, 138, 20, .14); }
.feedback-error { border-left-color: var(--red); }
.feedback-error .feedback-icon { color: var(--red); background: rgba(196, 65, 58, .12); }
.feedback-info { border-left-color: var(--blue); }
.feedback-info .feedback-icon { color: var(--blue); background: rgba(63, 115, 230, .12); }

.status-strip {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.status-strip span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 800;
}

.results {
  display: grid;
  gap: 10px;
}

.results.grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.vehicle-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.vehicle-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
}

.vehicle-card.compact-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.vehicle-card.compact-card .vehicle-media {
  display: none;
}

.vehicle-card.compact-card .vehicle-body {
  gap: 6px;
  padding: 10px 12px;
}

.vehicle-card.compact-card .vehicle-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-view .vehicle-card { grid-template-columns: 1fr; }
.grid-view .vehicle-card.compact-card { grid-template-columns: 1fr; }
.vehicle-media { position: relative; min-width: 0; background: #eef3f6; }
.vehicle-media img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.no-photo-inline {
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 20px);
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f4f7f8;
  font-size: 12px;
  font-weight: 900;
}
.no-photo-inline {
  display: inline-flex;
  margin-top: 2px;
}
.no-photo-inline svg { width: 15px; height: 15px; }
.vehicle-body { display: grid; gap: 8px; padding: 12px 14px; }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
}

.status-badge.fresh { background: var(--green); }
.status-badge.active { color: #171107; background: var(--yellow); }
.status-badge.aged { background: var(--orange); }

.vehicle-card h3 { margin: 0; font-size: 20px; line-height: 1.1; }
.yard-name, .yard-location, .yard-note { margin: 0; }
.yard-name { font-weight: 900; }
.yard-location, .yard-note { color: var(--muted); }
.vehicle-yard-inline { color: var(--blue-dark); }

.vehicle-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.vehicle-facts div { min-width: 0; padding: 7px 8px; border-radius: var(--radius-sm); background: #f4f7f8; }
.vehicle-facts dt { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.vehicle-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 800; }

.directions-button {
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--blue-dark);
  background: #f7faff;
  font-size: 13px;
}
.grid-view .directions-button { min-height: 32px; }
.results.list-only .vehicle-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
.results.list-only .vehicle-media { display: none; }
.results.list-only .vehicle-body {
  gap: 6px;
  padding: 10px 12px;
}
.results.list-only .vehicle-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.empty-state { padding: 34px; color: var(--muted); font-size: 18px; text-align: center; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(14, 20, 25, .48);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.account-modal-card {
  width: min(760px, 100%);
}

.analytics-modal-card {
  width: min(1180px, 100%);
}

.modal-card h2 {
  margin: 5px 0 16px;
  font-size: 30px;
  line-height: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.login-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.login-tabs button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.password-toggle,
.text-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--blue);
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}

.password-toggle {
  padding: 0 12px;
  text-transform: uppercase;
}

.text-button {
  justify-self: start;
  padding: 0 2px;
  border-color: transparent;
  background: transparent;
}

.reset-password-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafb;
}

.create-account-switch {
  width: 100%;
}

.account-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.account-title-row h2 {
  margin: 0;
}

.account-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.analytics-stat,
.analytics-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafb;
}

.analytics-stat {
  padding: 12px;
}

.analytics-stat strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.analytics-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-panel {
  min-width: 0;
  padding: 14px;
  background: #fff;
}

.analytics-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.analytics-table th,
.analytics-table td {
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.analytics-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.capability-box {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafb;
}

.capability-box legend {
  padding: 0 4px;
  color: #66727c;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.capability-box label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.capability-box input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.capability-box span {
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
}

.account-action-button {
  width: max-content;
}

.saved-search-list {
  display: grid;
  gap: 8px;
}

.saved-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafb;
}

.saved-search-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.saved-search-open:hover strong {
  color: var(--blue);
}

.saved-search-open strong,
.saved-search-open span {
  display: block;
}

.saved-search-open span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.saved-search-actions {
  display: flex;
  gap: 7px;
}

.mini-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.danger-button {
  background: var(--red);
  border-color: var(--red);
}

.danger-button:hover {
  background: #a82f2b;
  border-color: #a82f2b;
}

.logout-button {
  border-color: var(--line);
  background: #fff;
}

.account-form label {
  display: grid;
  gap: 6px;
}

.account-form span {
  color: #66727c;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-form button span {
  color: inherit;
}

.account-form .primary-button span {
  color: #fff;
}

.account-form em {
  color: #9aa3aa;
  font-style: normal;
  text-transform: none;
}

.modal-message,
.modal-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.version-note {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.version-note strong {
  color: var(--ink);
}

.terms-box {
  display: grid;
  gap: 8px;
  max-height: 180px;
  margin-bottom: 16px;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafb;
}

.terms-box h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.terms-box p {
  margin: 0;
  color: #52606b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.help-mail {
  margin-top: 18px;
  width: max-content;
}

.help-state {
  display: grid;
  gap: 12px;
}

.print-sheet { display: none; }

@media print {
  body > *:not(.print-sheet) {
    display: none !important;
  }

  .print-sheet {
    display: block;
    padding: 18px;
    color: #111;
    background: #fff;
    font-family: Arial, sans-serif;
  }

  .print-sheet h1 {
    margin: 0 0 4px;
    font-size: 22px;
  }

  .print-sheet p {
    margin: 0 0 12px;
    font-size: 12px;
  }

  .print-sheet table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  .print-sheet th,
  .print-sheet td {
    padding: 7px 6px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
  }

  .print-sheet th {
    background: #f1f1f1;
    font-size: 11px;
    text-transform: uppercase;
  }
}

@media (max-width: 1100px) {
  .refine-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workspace { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}

@media (max-width: 760px) {
  .topbar, .result-toolbar, .search-row { align-items: stretch; flex-direction: column; }
  .top-actions, .toolbar-actions, .mode-tabs, .language-toggle { width: 100%; }
  .ghost-button, .primary-button, .secondary-button { flex: 1; }
  .language-toggle button { flex: 1; }
  .search-band { padding: 18px 12px 24px; }
  .search-form { padding: 18px; }
  .search-label { font-size: 42px; }
  .refine-row, .generation-grid, .results.grid-view, .vehicle-card, .vehicle-facts, .analytics-grid, .analytics-stats { grid-template-columns: 1fr; }
  .login-tabs { grid-template-columns: 1fr; }
  .filter-submit { width: 100%; }
  .vehicle-card.compact-card,
  .vehicle-card.compact-card .vehicle-facts {
    grid-template-columns: 1fr;
  }
  .generation-heading { grid-template-columns: 24px 1fr; }
  .generation-heading button { grid-column: 1 / -1; justify-self: start; }
  .account-form-grid { grid-template-columns: 1fr; }
}
