:root {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #da2121;
  --brand-hover: #b91c1c;
  --brand-soft: #fef2f2;
  --brand-border: #fecaca;
  --navy: #0f172a;
  --navy-accent: #1e293b;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --info: #2563eb;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top Header & Navigation ===== */
.top {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #0f172a 0%, #da2121 50%, #0f172a 100%);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-title span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

nav.nav-pills {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

nav.nav-pills a {
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

nav.nav-pills a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

nav.nav-pills a.on {
  background: #ffffff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.user-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.user-name {
  font-weight: 600;
  color: var(--ink);
}

.role-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--line);
}

.role-tag.role-admin {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-border);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background: var(--brand-soft);
}

.inline {
  display: inline;
}

/* ===== Main Layout & Page Header ===== */
main.wrap {
  padding-top: 20px;
  padding-bottom: 36px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-head-left h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.page-subtitle {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 20px 0 10px;
}

h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 4px 0;
}

/* ===== KPI Summary Strip ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kpi-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ===== Controls Bar (Tabs + Filters) ===== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.tabs a {
  padding: 6px 13px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tabs a:hover {
  color: var(--ink);
}

.tabs a.on {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.tab-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--ink-secondary);
  font-weight: 600;
}

.tabs a.on .tab-count {
  background: var(--brand-soft);
  color: var(--brand);
}

.filters-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.filters-inline select,
.filters-inline input {
  margin: 0;
  height: 34px;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  width: auto;
  min-width: 165px;
}

.filters-inline input {
  min-width: 210px;
}

.filters-inline .btn {
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

/* ===== Cards, Tables & Inline Matches ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.tablewrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl th {
  text-align: left;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tbl tbody tr.req-row:hover {
  background: #fcfdff;
}

.tbl a {
  color: var(--ink);
  text-decoration: none;
}

.tbl a:hover {
  color: var(--brand);
}

.req-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--ink-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.veh-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-transform: capitalize;
}

.veh-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Inline Matches Drawer inside Table */
tr.inline-matches-row td {
  background: #f8fafc;
  padding: 12px 16px 16px 16px;
  border-bottom: 1px solid var(--line);
}

.inline-matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.inline-matches-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}

.card.match {
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card.match:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.mhead-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  background: #0f172a;
  color: #ffffff;
}

.plat-badge.plat-openlane {
  background: #1e3a8a;
  color: #ffffff;
}

.plat-badge.plat-otolane {
  background: #7c2d12;
  color: #ffffff;
}

.plat-badge.plat-manheim {
  background: #065f46;
  color: #ffffff;
}

.match-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.match-title-row h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.match-title-row h3 a {
  color: var(--ink);
  text-decoration: none;
}

.match-title-row h3 a:hover {
  color: var(--brand);
}

.match-specs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.spec-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1px;
}

.spec-value.price-highlight {
  color: var(--brand);
}

.vin-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  background: #ffffff;
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  display: inline-block;
  width: fit-content;
}

.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.match-loc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 2.5px 8.5px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.4;
}

.b-open {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info-border);
}

.b-found {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid var(--warn-border);
}

.b-located {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.b-closed {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid var(--line);
}

.ls-live {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.ls-upcoming {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info-border);
}

.ls-ended {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid var(--line);
}

/* ===== Forms & Buttons ===== */
label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.req-star {
  color: var(--brand);
  margin-left: 2px;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder, textarea::placeholder {
  color: var(--muted-light);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(218, 33, 33, 0.12);
}

.form-section {
  border: 0;
  padding: 0 0 14px 0;
  margin: 0 0 14px 0;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 1px 7px;
  border-radius: 5px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.section-desc {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

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

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

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

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

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(218, 33, 33, 0.25);
}

.btn.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn.ok {
  background: var(--ok);
  border-color: var(--ok);
  color: #ffffff;
}

.btn.danger {
  color: var(--brand);
  border-color: var(--brand-border);
  background: #ffffff;
}

.btn.danger:hover {
  background: var(--brand-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.flash {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  background: var(--ok-bg);
  color: #065f46;
  border: 1px solid var(--ok-border);
  font-size: 13px;
  font-weight: 500;
}

.flash.err {
  background: var(--brand-soft);
  color: #991b1b;
  border-color: var(--brand-border);
}

/* ===== Auth / Login Experience ===== */
.auth-shell {
  min-height: calc(100vh - 135px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-card-top {
  padding: 28px 32px 20px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}

.auth-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
}

.auth-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.auth-card-top h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

.auth-card-top p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-card-body {
  padding: 24px 32px 26px;
}

.auth-card-body label {
  margin-bottom: 14px;
}

.auth-card-body input {
  padding: 10px 12px;
}

.auth-card-body .btn.primary {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  margin-top: 6px;
}

.auth-card-foot {
  padding: 14px 32px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted);
}

.auth-channels span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.narrow {
  max-width: 440px;
  margin: 28px auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 12px;
  margin: 8px 0 12px;
  font-size: 13.5px;
}

.kv dt {
  color: var(--muted);
  font-weight: 500;
}

.kv dd {
  margin: 0;
}

footer.portal-footer {
  padding: 16px 24px 24px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

@media (max-width: 820px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Top-Left Admin Dashboard Switcher ===== */
.mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  padding: 3.5px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  margin-left: 4px;
}

.mode-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-secondary);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mode-switcher a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.mode-switcher a.mode-on {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.mode-switcher a.mode-on .mode-dot {
  background: #ef4444;
}

.mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

/* Single-line crisp header overrides at 1280px */
.top .wrap {
  max-width: 1250px;
  padding: 8px 20px;
  flex-wrap: nowrap;
  gap: 12px;
}
.brand-group {
  gap: 10px;
  flex-shrink: 0;
}
.brand {
  gap: 9px;
}
.brand-logo-img {
  height: 32px;
}
.brand-title strong {
  font-size: 13.5px;
}
.brand-title span {
  font-size: 10.5px;
}
.mode-switcher a {
  padding: 5px 10px;
  font-size: 12px;
}
.header-right {
  flex-wrap: nowrap;
  gap: 10px;
  flex-shrink: 0;
}
nav.nav-pills a {
  padding: 5px 9px;
  font-size: 12.5px;
}
.user-cluster {
  gap: 8px;
  padding-left: 8px;
  flex-shrink: 0;
}
.user-pill {
  white-space: nowrap;
}
.btn-logout {
  white-space: nowrap;
}

/* Far top-left corner pinned switcher overrides */
.top .wrap {
  max-width: 100%;
  padding: 8px 16px 8px 10px;
}
.mode-switcher {
  margin-left: 0;
}

/* ===== Admin Auctions, 2FA & Worker Console ===== */
.plat-badge.plat-eblock {
  background: #0f766e;
  color: #ffffff;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.auction-card {
  margin-bottom: 0;
  border-top: 3px solid var(--navy);
}

.auction-card.auction-card-warn {
  border-top-color: var(--warn);
  background: #fffdf7;
}

.auction-card.auction-card-err {
  border-top-color: var(--brand);
  background: #fffafa;
}

.twofa-card {
  border-left: 4px solid var(--navy);
}

.twofa-card.twofa-active {
  border-left-color: var(--brand);
  background: #fffbeb;
}

.twofa-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.twofa-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  height: 40px;
}

.cred-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.cred-box h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 900px) {
  .auction-grid {
    grid-template-columns: 1fr;
  }
}

/* Per-auction login state boxes */
.auction-card.auction-state-ok { background: #ecfdf3; border: 1px solid #86efac; border-top: 3px solid #16a34a; }
.auction-card.auction-state-bad { background: #fef2f2; border: 1px solid #fca5a5; border-top: 3px solid #dc2626; }
.badge.b-state-ok { background: #16a34a; color: #fff; }
.badge.b-state-bad { background: #dc2626; color: #fff; }
.badge.b-state-none { background: #e2e8f0; color: #334155; }
.auction-status-line { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.auction-state-ok .auction-status-line { color: #166534; }
.auction-state-bad .auction-status-line { color: #991b1b; }
.auction-cred-form label { margin-bottom: 8px; }
.auction-cred-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
/* Uniform Save + Check / Sign In buttons in auction boxes; left-side text wraps instead */
.auction-card .match-footer > span, .auction-cred-actions > span { flex: 1 1 auto; min-width: 0; }
.auction-card .match-footer form.inline, .auction-cred-actions .btn { flex: 0 0 auto; }
.auction-card .match-footer .btn, .auction-cred-actions .btn { white-space: nowrap; flex-shrink: 0; min-width: 128px; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.auction-grid .auction-card { display: flex; flex-direction: column; }
.auction-grid .auction-card > .match-footer { margin-top: auto; }
.auction-grid .auction-card > .match-footer { align-items: flex-end; }

/* ===== AutoTrader.ca Searchable Comboboxes (Make / Model / Trim) ===== */
.card.form, .form-section { overflow: visible; }
.combo-wrap {
  position: relative;
  display: block;
  margin-top: 4px;
}
.combo-wrap > input {
  margin-top: 0 !important;
  padding-right: 34px !important;
}
.combo-caret {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 7px 7px 0;
}
.combo-caret:hover {
  color: var(--ink);
  background: #f1f5f9;
}
.combo-wrap.is-open .combo-caret {
  color: var(--brand);
  transform: rotate(180deg);
}
.combo-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.combo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 11px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}
.combo-head-count {
  font-weight: 600;
  color: #64748b;
  text-transform: none;
}
.combo-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
}
.combo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.combo-item:hover,
.combo-item.is-active {
  background: #eff6ff;
  color: #0f172a;
}
.combo-item mark {
  background: #fef08a;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
  font-weight: 700;
}
.combo-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.combo-item.is-active .combo-meta {
  background: #dbeafe;
  color: #1e40af;
}
.combo-empty {
  padding: 12px 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}


/* ===== Collapsible Vehicle Locate Rows & Auction Locate Match Box ===== */
.th-matches-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.match-expand-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.14s ease;
}
.match-expand-all-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
.match-expand-all-btn[data-expand-all-matches="1"] {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* Request Table Row Typography & Cells */
.tbl td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tbody tr.req-row {
  transition: background-color 0.14s ease;
}
.tbl tbody tr.req-row:hover {
  background: #f8fafc;
}
.tbl tbody tr.req-row-collapsible {
  cursor: pointer;
}
.tbl tbody tr.req-row-collapsible td.td-id {
  position: relative;
  padding-left: 16px;
}
.tbl tbody tr.req-row-collapsible td.td-id::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background-color 0.15s ease;
}
.tbl tbody tr.req-row-collapsible:hover td.td-id::before {
  background: #cbd5e1;
}
.tbl tbody tr.req-row-collapsible.is-open {
  background: #f1f5f9;
}
.tbl tbody tr.req-row-collapsible.is-open td {
  border-bottom-color: #cbd5e1;
}
.tbl tbody tr.req-row-collapsible.is-open td.td-id::before {
  background: var(--brand);
  width: 4px;
}
.tbl tbody tr.req-row-collapsible.is-open .req-id-badge {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.req-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafc;
  color: #334155;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  transition: all 0.14s ease;
}

.veh-primary-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.veh-title {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: -0.01em;
  text-transform: none;
}
.veh-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.veh-spec-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1.5px 7px;
  border-radius: 5px;
  line-height: 1.35;
}
.veh-spec-chip.chip-trim {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  font-weight: 700;
}
.veh-spec-chip.chip-budget {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.odo-val {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.odo-unit {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.sp-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
}
.sp-name {
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.2;
}

.customer-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2.5px 8px;
  border-radius: 6px;
}

.updated-time {
  font-size: 12px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.no-matches-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Status Badge Dot */
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Interactive Show/Hide Matches Trigger Pill */
.match-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.match-toggle-btn:hover {
  border-color: #64748b;
  background: #f8fafc;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}
.match-btn-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.match-btn-live {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.match-btn-up {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.match-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  padding-left: 6px;
  border-left: 1px solid #e2e8f0;
}
.match-toggle-btn[aria-expanded="true"] {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}
.match-toggle-btn[aria-expanded="true"] .match-btn-count {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.match-toggle-btn[aria-expanded="true"] .match-btn-live {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}
.match-toggle-btn[aria-expanded="true"] .match-btn-up {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.match-toggle-btn[aria-expanded="true"] .match-toggle-pill {
  color: #ffffff;
  border-left-color: #334155;
}
.match-toggle-btn .lbl-hide { display: none; }
.match-toggle-btn[aria-expanded="true"] .lbl-show { display: none; }
.match-toggle-btn[aria-expanded="true"] .lbl-hide { display: inline; }
.match-chevron {
  display: inline-block;
  font-size: 11px;
  transition: transform 0.16s ease;
}
.match-toggle-btn[aria-expanded="true"] .match-chevron {
  transform: rotate(180deg);
}

/* ===== Expanded Auction Locate Match Box (Inline Drawer) ===== */
tr.inline-matches-row.is-collapsed {
  display: none;
}
tr.inline-matches-row > td {
  background: #f1f5f9;
  padding: 0 !important;
  border-bottom: 2px solid #cbd5e1;
}

.inline-matches-box {
  margin: 0;
  padding: 16px 20px 20px 20px;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  border-left: 4px solid var(--brand);
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.04);
}

.inline-matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.inline-matches-title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  flex: 1 1 auto;
}

.inline-matches-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tray-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inline-matches-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.tray-veh-pill {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2px 9px;
  border-radius: 6px;
}

.tray-veh-odo {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.tray-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tray-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.tray-stat-total {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
}
.tray-stat-live {
  background: rgba(220, 38, 38, 0.2);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.tray-stat-upcoming {
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.4);
}
.tray-stat-ended {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.inline-matches-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-tray-detail {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 5px 11px !important;
}
.btn-tray-detail:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}

.btn-tray-hide {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 5px 11px !important;
}
.btn-tray-hide:hover {
  background: #f1f5f9 !important;
}

/* ===== Wholesale Auction Vehicle Match Cards ===== */
.matches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.inline-matches-box .matches {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 2px;
}

@media (max-width: 960px) {
  .matches {
    grid-template-columns: 1fr;
  }
}

.card.match.match-card {
  margin-bottom: 0;
  padding: 15px 17px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  border-top: 3px solid #1e3a8a;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.card.match.match-card.status-live {
  border-top-color: var(--brand);
}
.card.match.match-card.status-upcoming {
  border-top-color: #2563eb;
}
.card.match.match-card.status-ended {
  border-top-color: #64748b;
  opacity: 0.92;
}
.card.match.match-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.10), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
}

.match-card .mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.match-card .mhead-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* Auction Platform Channel Pills */
.plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3.5px 9px;
  border-radius: 6px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.plat-badge.plat-openlane {
  background: #1d4ed8;
  color: #ffffff;
}
.plat-badge.plat-openlane-simulcast {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
  color: #ffffff;
}
.plat-badge.plat-eblock {
  background: #0f766e;
  color: #ffffff;
}
.plat-badge.plat-otolane {
  background: #b45309;
  color: #ffffff;
}
.plat-badge.plat-manheim {
  background: #065f46;
  color: #ffffff;
}
.plat-badge.plat-other {
  background: #334155;
  color: #ffffff;
}

/* Live / Upcoming / Past Listing Status Badges */
.ls-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ls-dot-live {
  background: #dc2626;
  box-shadow: 0 0 0 2.5px rgba(220, 38, 38, 0.22);
}
.ls-dot-upcoming {
  background: #2563eb;
  box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.18);
}
.ls-dot-ended {
  background: #64748b;
}

.badge.ls-live {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 700;
  font-size: 11px;
  padding: 2.5px 8.5px;
}
.badge.ls-upcoming {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 11px;
  padding: 2.5px 8.5px;
}
.badge.ls-ended {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  font-size: 11px;
  padding: 2.5px 8.5px;
}

.alert-stamp {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.alert-stamp.is-sent {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

/* Vehicle Title & Seller/Lane Subtitle */
.match-identity {
  margin-bottom: 11px;
}
.match-title-row {
  margin-bottom: 4px;
}
.match-title-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #0f172a;
}
.match-title-row h3 a {
  color: #0f172a;
  text-decoration: none;
}
.match-title-row h3 a:hover {
  color: var(--brand);
}

.match-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.match-seller {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-inline {
  flex-shrink: 0;
  color: #64748b;
}
.lane-pill {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 1px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* 3-Column Wholesale Metrics Strip */
.match-specs-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 1.35fr;
  gap: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 0;
  margin-bottom: 11px;
  overflow: hidden;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 11px;
  border-right: 1px solid #e2e8f0;
  min-width: 0;
}
.spec-cell:last-child {
  border-right: 0;
}
.spec-cell-price {
  background: #fffafa;
}

.spec-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
}

.spec-value {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spec-value.price-highlight {
  font-size: 15.5px;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.spec-value.price-tba {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.spec-value.odo-highlight {
  font-size: 13.5px;
  color: #0f172a;
}

.spec-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vin-pill-wrap {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
}
.vin-prefix {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #0f172a;
  color: #ffffff;
  padding: 2px 5px;
  line-height: 1.3;
}
.vin-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  color: #0f172a;
  padding: 1.5px 6px;
  border: 0;
  border-radius: 0;
  letter-spacing: 0.02em;
}

/* Match Card Footer & Action Button */
.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: #475569;
  padding-top: 9px;
  border-top: 1px solid #f1f5f9;
}

.match-schedule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-schedule b {
  color: #0f172a;
  font-weight: 600;
}

.btn-open-listing {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
}
.btn-open-listing:hover {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #ffffff !important;
}
.ext-arrow {
  font-size: 12px;
  line-height: 1;
}
