@font-face {
  font-family: "Driven Inter";
  src: url("brand/Inter-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Driven Barlow";
  src: url("brand/BarlowCondensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Driven Barlow";
  src: url("brand/BarlowCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b1116;
  --bg-raised: #10171d;
  --panel: #171d26;
  --panel-strong: #1d2530;
  --panel-soft: #111820;
  --line: #202a36;
  --line-strong: #2c3948;
  --text: #e7edf0;
  --text-soft: #c3cdd2;
  --muted: #66737c;
  --blue: #00acd8;
  --blue-soft: rgba(0, 172, 216, 0.13);
  --green: #43c464;
  --green-soft: rgba(67, 196, 100, 0.13);
  --amber: #e5a83f;
  --amber-soft: rgba(229, 168, 63, 0.13);
  --red: #f0645d;
  --red-soft: rgba(240, 100, 93, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  font-family: "Driven Inter", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% -20%, rgba(74, 158, 255, 0.08), transparent 31rem),
    var(--bg);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(74, 158, 255, 0.48);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--blue);
  color: #031322;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(32, 42, 54, 0.9);
  background: rgba(7, 10, 15, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 30px;
}

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

.brand-logo {
  display: block;
  width: 160px;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(74, 158, 255, 0.44);
  border-radius: 9px 9px 3px 9px;
  background: linear-gradient(145deg, #2e77c7, #4a9eff);
  color: #fff;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  box-shadow: 0 7px 22px rgba(74, 158, 255, 0.17);
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-type strong {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.brand-type small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.34em;
}

.primary-nav {
  display: flex;
  align-self: stretch;
  gap: 22px;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--text);
}

.nav-item.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
}

.account-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(67, 196, 100, 0.11);
}

.account-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  text-align: right;
}

.account-copy strong,
.account-copy small {
  overflow: hidden;
  max-width: 210px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  color: var(--text-soft);
  font-size: 11px;
}

.account-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.page {
  padding: 38px 0 64px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-heading h1,
.detail-heading h1,
.recall-banner h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 42px);
  font-family: "Driven Barlow", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.page-heading p,
.detail-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.board-assurance {
  display: flex;
  max-width: 330px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.assurance-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.board-assurance > span:last-child {
  display: flex;
  flex-direction: column;
}

.board-assurance strong {
  font-size: 10px;
}

.board-assurance small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.account-strip {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(170px, 0.75fr) minmax(180px, 0.8fr) minmax(210px, 0.9fr);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.package-summary,
.pace-cell,
.next-delivery {
  min-width: 0;
  padding: 19px 21px;
}

.pace-cell,
.next-delivery {
  border-left: 1px solid var(--line);
}

.package-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-heading-row h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.package-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(67, 196, 100, 0.25);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-badge--warn {
  border-color: rgba(229, 168, 63, 0.3);
  background: var(--amber-soft);
  color: var(--amber);
}

.metric-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.metric-label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-label strong {
  color: var(--text);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  margin: 10px 0 7px;
  border-radius: 99px;
  background: #1a2430;
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #337ac9, var(--blue));
}

.pace-cell small,
.next-delivery small {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
}

.next-delivery {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.next-delivery strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 11px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.kpi {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.kpi strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.kpi span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kpi--success strong {
  color: var(--green);
}

.recall-notice {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(240, 100, 93, 0.38);
  border-radius: 10px;
  background: var(--red-soft);
  color: #ffc4c0;
  text-decoration: none;
}

.recall-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #220706;
  font-weight: 950;
}

.recall-notice > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.recall-notice strong {
  font-size: 10px;
}

.recall-notice small {
  margin-top: 2px;
  color: #d99b98;
  font-size: 9px;
}

.recall-arrow {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.board-section {
  margin-top: 28px;
}

.board-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.board-toolbar h2,
.surface h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.view-tabs {
  display: flex;
  max-width: 100%;
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.view-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.view-tab span {
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 20px;
  background: #1a2430;
  color: var(--text-soft);
  font-size: 8px;
}

.view-tab:hover {
  color: var(--text);
}

.view-tab.is-active {
  background: var(--blue);
  color: #031322;
}

.view-tab.is-active span {
  background: rgba(3, 19, 34, 0.18);
  color: #031322;
}

.board-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.board-table-head,
.lead-row {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.45fr)
    minmax(165px, 0.95fr)
    minmax(88px, 0.52fr)
    minmax(112px, 0.62fr)
    minmax(108px, 0.62fr)
    minmax(106px, 0.58fr)
    minmax(92px, 0.52fr)
    68px;
  min-width: 1100px;
}

.board-table-head {
  background: var(--panel-strong);
}

.board-table-head > span {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-row {
  position: relative;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--panel);
  transition: background 120ms ease;
}

.lead-row:hover {
  background: #111a25;
}

.lead-row > div {
  min-width: 0;
  padding: 13px 12px;
}

.lead-row--recalled {
  background: linear-gradient(90deg, rgba(240, 100, 93, 0.1), var(--panel) 42%);
}

.lead-row--recalled::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  content: "";
}

.lead-vehicle {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.lead-ref {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.lead-ref > span,
.lead-number {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead-ref strong {
  padding: 2px 5px;
  border-radius: 20px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead-vehicle > a {
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-vehicle > a:hover {
  color: var(--blue);
}

.lead-vehicle small,
.lead-vehicle code {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-vehicle small {
  margin-top: 2px;
}

.lead-vehicle code {
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lead-dealer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.lead-dealer strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--text-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-dealer span,
.lead-dealer a {
  overflow: hidden;
  max-width: 100%;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-dealer a {
  color: var(--blue);
  font-weight: 700;
}

.lead-value {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.lead-value strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lead-value small {
  color: var(--muted);
  font-size: 7.5px;
}

.lead-value.opportunity strong {
  color: var(--green);
  font-size: 12px;
}

.mobile-label {
  display: none;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.delivery-stamp {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.delivery-stamp strong {
  color: var(--text-soft);
  font-size: 10px;
}

.delivery-stamp small,
.delivery-stamp em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.delivery-stamp em {
  margin-top: 3px;
  color: var(--green);
}

.lead-status {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.lead-status small {
  color: var(--muted);
  font-size: 7.5px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  min-height: 20px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #151e29;
  color: var(--text-soft);
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--new,
.pill--unworked,
.pill--viewed {
  border-color: rgba(74, 158, 255, 0.3);
  background: var(--blue-soft);
  color: var(--blue);
}

.pill--working,
.pill--called,
.pill--offer {
  border-color: rgba(229, 168, 63, 0.3);
  background: var(--amber-soft);
  color: var(--amber);
}

.pill--bought {
  border-color: rgba(67, 196, 100, 0.3);
  background: var(--green-soft);
  color: var(--green);
}

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

/* WITHDRAWN shares the danger treatment: it is the one status that means stop work. */
.pill--danger,
.pill--withdrawn {
  border-color: rgba(240, 100, 93, 0.38);
  background: var(--red-soft);
  color: var(--red);
}

.lead-open {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--blue);
  color: #031322;
}

.button--primary:hover {
  background: #69afff;
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  color: var(--text-soft);
}

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

.button--danger-soft {
  border-color: rgba(240, 100, 93, 0.32);
  background: var(--red-soft);
  color: var(--red);
}

.button--large {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 10px;
}

.button--full {
  width: 100%;
}

.board-footnote {
  display: flex;
  max-width: 760px;
  align-items: flex-start;
  gap: 8px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.55;
}

.board-footnote > span {
  color: var(--green);
}

.board-footnote p {
  margin: 0;
}

.board-footnote strong {
  color: var(--text-soft);
}

.empty-state {
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-soft);
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 18px;
}

.empty-state h3 {
  margin: 0;
  font-size: 19px;
}

.empty-state p {
  max-width: 520px;
  margin: 8px auto 15px;
  color: var(--muted);
  font-size: 10px;
}

.empty-state > span:last-child {
  color: var(--blue);
  font-size: 9px;
  font-weight: 750;
}

/* Jon-style customer delivery board */
.delivery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.delivery-head h1 {
  margin: 0;
  font-family: "Driven Barlow", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.delivery-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.daily-meter {
  display: grid;
  min-width: 158px;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1px 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.daily-meter > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-meter > strong {
  grid-row: span 2;
  color: var(--blue);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.daily-meter > strong small {
  color: var(--text-soft);
  font-size: 13px;
}

.daily-meter > em {
  color: var(--muted);
  font-size: 7.5px;
  font-style: normal;
}

.compact-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 17px;
}

.compact-kpis > div {
  min-width: 108px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.compact-kpis strong {
  display: block;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.compact-kpis span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lead-table {
  width: 100%;
  /* A dealer reads this every morning, often on a phone. The type scale below
     is the readable one; the phone layout drops the table entirely (see the
     responsive board rules at the end of this file). */
  min-width: 980px;
  border-collapse: collapse;
}

.lead-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.lead-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  vertical-align: middle;
}

.lead-table tbody tr:last-child td {
  border-bottom: 0;
}

.lead-data-row {
  transition: background 120ms ease;
}

.lead-data-row:hover {
  background: rgba(0, 172, 216, 0.045);
}

.lead-data-row.is-recalled {
  background: linear-gradient(90deg, rgba(240, 100, 93, 0.09), transparent 44%);
}

.table-vehicle {
  display: flex;
  min-width: 210px;
  align-items: flex-start;
  flex-direction: column;
}

.table-lead-ref {
  margin-bottom: 3px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table-vehicle > a {
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
  text-decoration: none;
}

.table-vehicle > a:hover {
  color: var(--blue);
}

.table-vehicle small,
.table-vehicle code,
.table-dealer {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12.5px;
}

.table-vehicle code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.table-dealer {
  margin-top: 4px;
}

.table-dealer a {
  color: var(--blue);
  text-decoration: none;
}

.table-money,
.table-spread,
.table-added {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-money {
  font-weight: 700;
}

.table-spread {
  color: var(--green) !important;
  font-size: 16px !important;
  font-weight: 800;
}

.table-spread small,
.table-added small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.table-location {
  color: var(--muted) !important;
  white-space: nowrap;
}

.dealer-site-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.dealer-site-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.table-actions {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.table-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.table-button:hover {
  border-color: var(--blue);
  color: var(--text);
}

.table-button--copy,
.table-button--whatsapp {
  border-color: rgba(37, 211, 102, 0.28);
  color: #4edb82;
}

.table-button--copy[aria-expanded="true"] {
  background: rgba(37, 211, 102, 0.09);
}

.lead-copy-row td {
  padding: 0;
  background: #0b1116;
}

.wa-box {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
}

.wa-message {
  min-width: 280px;
  flex: 1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid #25d366;
  border-radius: 7px;
  background: #0f1620;
  color: var(--text);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.wa-actions {
  display: flex;
  min-width: 160px;
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
}

.wa-actions small {
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

/* Lead detail */
.detail-page {
  max-width: 1240px;
  padding-top: 27px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.recall-banner {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(240, 100, 93, 0.48);
  border-radius: var(--radius);
  background: var(--red-soft);
  color: #f2b0ac;
}

.recall-banner-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #250908;
  font-size: 22px;
  font-weight: 950;
}

.recall-banner .section-kicker {
  color: var(--red);
}

.recall-banner h1 {
  color: #ffd5d2;
  font-size: 25px;
}

.recall-banner p {
  max-width: 850px;
  margin: 5px 0 0;
  font-size: 10px;
}

.detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 19px;
}

.lead-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.detail-heading h1 {
  font-size: clamp(29px, 4vw, 41px);
}

.detail-heading-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
}

.detail-heading-side strong {
  margin-top: 4px;
  color: var(--green);
  font-size: 9px;
}

.value-strip {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.value-strip dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

.value-strip dl > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.value-strip dl > div:last-child {
  border-right: 0;
}

.value-strip dt,
.vehicle-facts dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.value-strip dd {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.value-strip .value-highlight {
  background: linear-gradient(135deg, rgba(67, 196, 100, 0.14), rgba(67, 196, 100, 0.04));
}

.value-strip .value-highlight dd {
  color: var(--green);
}

.value-strip > p {
  margin: 0;
  padding: 7px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 17px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 14px;
}

.surface {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.surface-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.verified-seal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(67, 196, 100, 0.24);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 7.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-location {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 9px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-only-note {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

.call-script {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.call-script-mark {
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.call-script p {
  margin: 0;
  color: var(--text-soft);
  font-size: 9.5px;
  line-height: 1.55;
}

.call-script p strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.verification-grid article {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.check-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
}

.verification-grid strong {
  font-size: 9px;
}

.verification-grid p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.verification-caveat {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.vehicle-facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 13px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-facts dl > div {
  min-width: 0;
  padding: 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vehicle-facts dl > div:nth-child(4n) {
  border-right: 0;
}

.vehicle-facts dl > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.vehicle-facts dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 9.5px;
}

.workflow-panel > p,
.exclusive-panel p,
.report-panel > p {
  margin: 7px 0 13px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.workflow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-orb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-orb--unworked,
.status-orb--viewed {
  background: var(--blue);
}

.status-orb--working,
.status-orb--called,
.status-orb--offer {
  background: var(--amber);
}

.status-orb--bought {
  background: var(--green);
}

.status-orb--passed {
  background: var(--muted);
}

/* WITHDRAWN.  There was no rule for this state at all: the orb was keyed on `lead.outcome`,
   which never becomes "withdrawn", so a recalled lead whose heading read "Withdrawn" got an
   AMBER (working) or BLUE (unworked) dot -- the quietest possible rendering of the loudest
   signal on the board.  Matches `.pill--withdrawn` above. */
.status-orb--withdrawn {
  background: var(--red);
}

.action-stack {
  display: grid;
  gap: 6px;
}

.action-stack form {
  margin: 0;
}

.workflow-action {
  display: grid;
  width: 100%;
  min-height: 37px;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--text-soft);
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}

.workflow-action:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.workflow-action.is-selected {
  border-color: rgba(74, 158, 255, 0.42);
  background: var(--blue-soft);
  color: var(--blue);
}

.workflow-action-mark {
  font-size: 12px;
}

.workflow-action small {
  color: inherit;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workflow-locked,
.workflow-complete {
  padding: 10px;
  border-radius: 7px;
  background: var(--red-soft);
  color: #e7aaa7 !important;
}

.workflow-complete {
  background: var(--green-soft);
  color: #9ddbaa !important;
}

.pass-action {
  margin-top: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.pass-action summary {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 8.5px;
  cursor: pointer;
  list-style: none;
}

.pass-action summary::-webkit-details-marker {
  display: none;
}

.pass-action form {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.exclusive-time {
  display: block;
  color: var(--blue);
  font-size: 17px;
  font-weight: 750;
}

.exclusive-panel small {
  display: block;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.report-panel form {
  display: grid;
  gap: 7px;
}

.report-panel label,
.pass-action label {
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 750;
}

.report-panel label span {
  color: var(--muted);
  font-weight: 500;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #090e15;
  color: var(--text);
  font-size: 9px;
}

select {
  min-height: 36px;
  padding: 7px 9px;
}

textarea {
  min-height: 78px;
  padding: 9px;
  resize: vertical;
}

select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
}

.report-confirmation {
  text-align: center;
}

.confirmation-mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  padding: 9px 15px;
  border: 1px solid rgba(67, 196, 100, 0.38);
  border-radius: 999px;
  background: #102318;
  color: #b9e9c4;
  font-size: 10px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  border-color: rgba(240, 100, 93, 0.42);
  background: #2a1112;
  color: #ffc0bc;
}

@media (max-width: 980px) {
  .account-strip {
    grid-template-columns: 1.1fr 0.8fr 0.8fr;
  }

  .next-delivery {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .vehicle-facts dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicle-facts dl > div:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .vehicle-facts dl > div:nth-child(2n) {
    border-right: 0;
  }

  .vehicle-facts dl > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .vehicle-facts dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 26px, 1360px);
  }

  .header-inner {
    min-height: 58px;
    gap: 18px;
  }

  .primary-nav {
    gap: 14px;
  }

  .nav-item {
    font-size: 10px;
  }

  .account-copy {
    display: none;
  }

  .account-summary {
    padding-left: 0;
    border-left: 0;
  }

  .page {
    padding-top: 27px;
  }

  .delivery-head {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-meter {
    width: 100%;
  }

  .compact-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .compact-kpis > div {
    min-width: 0;
  }

  .page-heading,
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-assurance {
    width: 100%;
    max-width: none;
  }

  .account-strip {
    grid-template-columns: 1fr 1fr;
  }

  .package-summary {
    grid-column: 1 / -1;
  }

  .pace-cell:first-of-type {
    border-left: 0;
  }

  .pace-cell {
    border-top: 1px solid var(--line);
  }

  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .board-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-tabs {
    width: 100%;
  }

  .board-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .board-table-head {
    display: none;
  }

  .lead-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    gap: 0;
    overflow: hidden;
    margin-bottom: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }

  .lead-row > div {
    padding: 11px 13px;
  }

  .lead-vehicle,
  .lead-dealer {
    grid-column: 1 / -1;
  }

  .lead-vehicle {
    padding-bottom: 8px !important;
  }

  .lead-dealer {
    padding-top: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .lead-value {
    border-bottom: 1px solid var(--line);
  }

  .lead-value:nth-of-type(3) {
    border-right: 1px solid var(--line);
  }

  .lead-value.opportunity {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .delivery-stamp {
    border-right: 1px solid var(--line);
  }

  .lead-open {
    grid-column: 1 / -1;
    padding-top: 0 !important;
  }

  .lead-open .button {
    width: 100%;
  }

  .mobile-label {
    display: block;
  }

  .detail-heading-side {
    align-items: flex-start;
  }

  .value-strip dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-strip dl > div {
    border-bottom: 1px solid var(--line);
  }

  .value-strip dl > div:nth-child(2n) {
    border-right: 0;
  }

  .value-strip dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .workflow-panel {
    grid-row: span 2;
  }
}

@media (max-width: 520px) {
  .brand-type {
    display: none;
  }

  .brand-logo {
    width: 160px;
  }

  .primary-nav {
    gap: 12px;
  }

  .live-dot {
    display: none;
  }

  .page-heading h1,
  .detail-heading h1 {
    font-size: 30px;
  }

  .account-strip {
    grid-template-columns: 1fr;
  }

  .pace-cell,
  .next-delivery {
    grid-column: 1;
    border-left: 0;
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .compact-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .recall-notice {
    grid-template-columns: 30px 1fr;
  }

  .recall-arrow {
    display: none;
  }

  .value-strip dl {
    grid-template-columns: 1fr;
  }

  .value-strip dl > div,
  .value-strip dl > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-strip dl > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .value-strip dl > div:last-child {
    border-bottom: 0;
  }

  .verification-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-facts dl {
    grid-template-columns: 1fr;
  }

  .vehicle-facts dl > div,
  .vehicle-facts dl > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vehicle-facts dl > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .vehicle-facts dl > div:last-child {
    border-bottom: 0;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

  .workflow-panel {
    grid-row: auto;
  }
}

/* Account access */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(0, 172, 216, 0.2), transparent 42%),
    var(--bg);
}

.auth-shell {
  display: grid;
  width: min(430px, calc(100% - 32px));
  min-height: 100vh;
  align-content: center;
  gap: 26px;
  margin: 0 auto;
  padding: 40px 0;
}

.auth-brand {
  justify-self: center;
}

.auth-brand img {
  display: block;
  width: 190px;
  height: auto;
}

.auth-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(23, 29, 38, 0.96);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 5px 0 7px;
  font-family: "Driven Barlow", "Arial Narrow", Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
}

.auth-card > p {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 12px;
}

.auth-card form {
  display: grid;
  gap: 9px;
}

.auth-card label {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
}

.auth-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.auth-card form > .button {
  margin-top: 12px;
}

.auth-card form > small,
.auth-help {
  color: var(--muted);
  font-size: 9px;
}

.auth-help {
  display: block;
  margin-top: 18px;
  text-align: center;
}

/* ---------------------------------------------------------------------------------------------
   THE EMAILED SIGN-IN BLOCK ON THE DEALER DOOR HAD NO STYLES AT ALL (owner audit, 2026-09-01).

   `templates/login.html` renders `.auth-alt`, `.auth-alt-rule` and `.button--link`.  Grepped
   against this file before today: three hits, zero rules.  What that produced on
   /client/login -- the page a dealer is walked through on the call, and the only door the
   emailed code lane has -- was:

     * `.auth-alt` is a child of `.auth-card form`, which is `display:grid; gap:9px`, so the DIV
       is one grid cell and its own four children fall out of that grid entirely.  The 9px gap
       and the `.auth-card form > .button { margin-top:12px }` rule both stop at the wrapper,
       because that selector is a DIRECT-child selector and these buttons are a level deeper.
       "Email me a sign-in code", its explanatory small print and "Forgot your password?"
       therefore rendered flush against each other with no separation of any kind.
     * `.auth-alt-rule` is a labelled divider that was never drawn, so the word "or" sat on the
       page as a bare orphan line between the password button and the next one.
     * `.button--link` fell through to the bare `.button` base -- 9px, weight 800, transparent
       border, no background -- so the password-reset control read as an unlabelled fragment
       rather than as a link.

   None of that is a broken feature; the buttons work, and the whole lane was verified end to
   end this morning.  It is the thing the owner asked to be removed from this surface: a live
   feature that LOOKS half-built.  Rules only, no markup change -- `login.html`'s classes and its
   `code_sign_in_enabled` guard are untouched.
   --------------------------------------------------------------------------------------------- */

.auth-alt {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

/* The rule is drawn with borders on a flex row rather than a pseudo-element, so it needs no
   background colour to sit on -- this card is translucent over the page gradient, and a
   solid-swatch "or" would be visible as a patch on it. */
.auth-alt-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-alt-rule::before,
.auth-alt-rule::after {
  flex: 1;
  border-top: 1px solid var(--line);
  content: "";
}

/* `.auth-help` is `margin-top:18px` for the one at the bottom of the card; inside this grid the
   gap already spaces it, and 18px on top of that pushed the reset control away from the code
   control it belongs with. */
.auth-alt .auth-help {
  margin-top: 0;
}

.button--link {
  min-height: 0;
  padding: 2px 0;
  border-color: transparent;
  background: none;
  color: var(--text-soft);
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button--link:hover {
  color: var(--blue);
}

.auth-error {
  margin-bottom: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 100, 93, 0.4);
  border-radius: 8px;
  background: rgba(240, 100, 93, 0.1);
  color: #ffb8b3;
  font-size: 10px;
}

.logout-form {
  margin-left: 4px;
}

.logout-form button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
}

.logout-form button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(0, 172, 216, 0.28);
  background: rgba(0, 172, 216, 0.09);
  color: var(--text-soft);
  font-size: 9px;
}

.demo-banner strong {
  color: var(--blue);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-readonly-panel {
  border-color: rgba(0, 172, 216, 0.28);
  background: linear-gradient(145deg, rgba(0, 172, 216, 0.08), var(--panel));
}

.ops-label {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-page {
  padding-top: 34px;
}

.ops-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.ops-heading h1 {
  margin: 3px 0 0;
  font-family: "Driven Barlow", "Arial Narrow", Arial, sans-serif;
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
}

.ops-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.ops-price {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.ops-price strong {
  color: var(--blue);
  font-size: 22px;
}

.ops-price span {
  color: var(--muted);
  font-size: 8px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(420px, 1.15fr);
  gap: 18px;
}

.ops-form {
  display: grid;
  gap: 8px;
}

.ops-form label,
.ops-created label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ops-form input,
.ops-form select,
.ops-created input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-size: 10px;
}

.ops-form input:focus,
.ops-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.ops-form .button {
  margin-top: 10px;
}

.ops-form > small,
.ops-created small {
  color: var(--muted);
  font-size: 8px;
}

.ops-form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-form-split > div {
  display: grid;
  gap: 8px;
}

.ops-created {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(67, 196, 100, 0.38);
  border-radius: 10px;
  background: rgba(67, 196, 100, 0.08);
}

.ops-created > strong {
  color: var(--green);
  font-size: 11px;
}

.ops-created > span {
  color: var(--text-soft);
  font-size: 9px;
}

.ops-account-list {
  display: grid;
  gap: 8px;
}

.ops-account-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.ops-account-list article > div {
  display: grid;
}

.ops-account-list article strong {
  color: var(--text);
  font-size: 10px;
}

.ops-account-list article span,
.ops-account-list article small {
  color: var(--muted);
  font-size: 8px;
}

.ops-account-list article > small {
  grid-column: 1 / -1;
}

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

@media (max-width: 520px) {
  .auth-card {
    padding: 24px 20px;
  }

  .demo-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .logout-form {
    display: none;
  }

  .ops-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-grid,
  .ops-form-split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Customer surface reconciliation (D2/C1/C3/C4/C5/C6, 2026-07-28)
   New components, plus the responsive board the three media blocks above
   never contained a single .lead-table rule for.
   ========================================================================== */

/* C4 — account state banner (paused / past due / pending / cancelled / demo) */
.account-state-banner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0, 172, 216, 0.28);
  background: rgba(0, 172, 216, 0.09);
  color: var(--text-soft);
}

.account-state-banner--warn {
  border-bottom-color: rgba(229, 168, 63, 0.42);
  background: var(--amber-soft);
}

.account-state-banner--danger {
  border-bottom-color: rgba(240, 100, 93, 0.48);
  background: var(--red-soft);
}

.account-state-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.account-state-copy {
  display: flex;
  max-width: 780px;
  flex-direction: column;
  gap: 2px;
}

.account-state-copy strong {
  color: var(--text);
  font-size: 14px;
}

.account-state-copy small {
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.board-readonly-note {
  margin: 6px 0 0;
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 700;
}

.workflow-locked-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* C1 — pacing panel: the computed pacing figures, finally rendered */
.pacing-panel {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.pacing-panel.is-behind {
  border-color: rgba(240, 100, 93, 0.38);
}

.pacing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pacing-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.pacing-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.pacing-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.pacing-bar-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pacing-bar-head strong {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.pacing-bar small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-strong);
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.is-behind .meter-fill {
  background: var(--amber);
}

.pacing-next {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
}

.pacing-next strong {
  margin-right: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* C3 — the exclusive window, on the board */
.table-exclusive {
  white-space: nowrap;
}

.exclusive-cell {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.exclusive-cell--ended {
  color: var(--muted);
  font-weight: 600;
}

.table-exclusive small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* C5 — screening checks are pass / info / warn, never a blanket green tick */
.verification-grid strong {
  font-size: 13.5px;
}

.verification-grid p {
  font-size: 12.5px;
}

.verification-caveat {
  font-size: 12.5px;
}

.check-mark {
  font-size: 12px;
}

.check--warn {
  border-color: rgba(229, 168, 63, 0.42);
}

.check-mark--warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.check--info {
  border-color: var(--line-strong);
}

.check-mark--info {
  background: var(--blue-soft);
  color: var(--blue);
}

.verified-seal {
  font-size: 11px;
}

.verified-seal--warn {
  border-color: rgba(229, 168, 63, 0.42);
  background: var(--amber-soft);
  color: var(--amber);
}

.verified-seal--info {
  border-color: rgba(0, 172, 216, 0.3);
  background: var(--blue-soft);
  color: var(--blue);
}

/* C6 — responsive board */
@media (max-width: 1180px) {
  .lead-table th,
  .lead-table td {
    padding: 12px 10px;
  }

  .lead-table td {
    font-size: 13px;
  }

  .table-vehicle > a {
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  .pacing-bars {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lead-table {
    min-width: 860px;
  }

  .lead-table th {
    font-size: 10.5px;
  }
}

/* Below this width a horizontally scrolling 11-column table is unusable, so
   each row becomes a card and every cell labels itself from its data-label. */
@media (max-width: 760px) {
  .lead-table-wrap {
    overflow-x: visible;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .lead-table,
  .lead-table thead,
  .lead-table tbody,
  .lead-table tr,
  .lead-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .lead-table thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .lead-table tbody tr.lead-data-row {
    margin-bottom: 12px;
    padding: 6px 2px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
  }

  .lead-table tbody tr.lead-data-row.is-recalled {
    border-color: rgba(240, 100, 93, 0.48);
  }

  .lead-table td {
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    text-align: right;
  }

  .lead-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
  }

  .lead-table tbody tr.lead-data-row td:last-child {
    border-bottom: 0;
  }

  .lead-table td[data-label="Vehicle"] {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .table-vehicle {
    min-width: 0;
  }

  .table-money,
  .table-spread,
  .table-added,
  .table-location,
  .table-exclusive {
    white-space: normal;
  }

  .table-actions {
    justify-content: flex-end;
  }

  .table-button {
    min-height: 42px;
    flex: 1;
    font-size: 13.5px;
  }

  .lead-copy-row,
  .lead-copy-row td {
    padding: 0;
    border: 0;
    background: none;
  }

  .lead-copy-row td::before {
    content: none;
  }

  .lead-copy-row td {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #0b1116;
  }

  .wa-message {
    min-width: 0;
    font-size: 13px;
  }

  .wa-actions {
    width: 100%;
  }

  .wa-actions small {
    max-width: none;
  }

  .account-state-banner {
    justify-content: flex-start;
  }
}

/* Liveness is stated on the board and the detail page, never assumed */
.table-liveness {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}

.table-liveness--stale,
.table-liveness--unverified {
  color: var(--amber);
}



.link-kind {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.no-link {
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

/* D7 — verify-it-yourself deep links (authenticated pages only) */
.verify-intro {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.verify-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.verify-link {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  text-align: left;
}

.verify-link strong {
  font-size: 14px;
}

.verify-link small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .verify-links {
    grid-template-columns: 1fr;
  }
}

/* ── THE BOARD SCROLLS, BUT macOS HID THE SCROLLBAR (2026-07-30) ──────────────────────────────────
   `.lead-table` is min-width:980px inside `.lead-table-wrap { overflow-x:auto }`, so between the
   760px card breakpoint and ~1020px the board is genuinely horizontally scrollable. But macOS
   defaults to "Show scroll bars: when scrolling" — overlay scrollbars stay INVISIBLE until a scroll
   is already in progress. The dealer therefore sees a table cut off mid-column with no scrollbar and
   no affordance, and reasonably concludes it cannot be scrolled at all. Reported exactly that way.

   So: force a real, always-visible track, and add a right-edge fade that appears only while there is
   more table to the right. The fade is the honest signal — it is driven by the same overflow that
   makes scrolling possible, so it cannot promise a scroll that is not there. Both are cosmetic and
   apply ONLY above the card breakpoint, where a scrollable table actually exists. */
@media (min-width: 761px) {
  .lead-table-wrap {
    scrollbar-width: thin;                     /* Firefox */
    scrollbar-color: var(--text-soft, #8a8f98) transparent;
    /* the fade sits on the scroll container and is pinned to its right edge */
    background-image: linear-gradient(to right, transparent calc(100% - 34px), rgba(0, 0, 0, 0.10));
    background-repeat: no-repeat;
    background-attachment: local, scroll;
  }

  /* WebKit/Blink: -webkit-appearance:none is what defeats the macOS overlay behaviour and gives a
     scrollbar that is present before the user has already discovered it. */
  .lead-table-wrap::-webkit-scrollbar {
    height: 11px;
    -webkit-appearance: none;
  }
  .lead-table-wrap::-webkit-scrollbar-track {
    background: var(--panel-strong, rgba(0, 0, 0, 0.05));
    border-radius: 0 0 11px 11px;
  }
  .lead-table-wrap::-webkit-scrollbar-thumb {
    background: var(--text-soft, #8a8f98);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
  }
  .lead-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--text, #1f2329);
    background-clip: content-box;
  }
}
