:root {
  --red: #c8201e;
  --red-dark: #a81c1e;
  --blue: #1e7fd6;
  --blue-dark: #155d9e;
  --ink: #0e1a2b;
  --slate: #1c2c44;
  --line: #d8dee8;
  --muted: #5d6b7e;
  --surface: #ffffff;
  --wash: #f5f7fa;
  --focus: #005fcc;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  display: block;
  width: max-content;
  max-width: calc(100% - 24px);
  max-height: 0;
  margin: 0 12px;
  padding: 0 14px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-weight: 700;
}
.skip-link:focus {
  max-height: none;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 88px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px;
  min-height: 88px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}
.brand-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: contain;
}
.brand-copy,
.brand-copy span {
  display: block;
}
.brand-copy strong {
  display: block;
  line-height: 1.15;
}
.brand-copy span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
}
nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  background: #eef2f7;
}
.sign-out {
  color: var(--red);
  font-weight: 700;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 24px 48px;
}
main:focus { outline: none; }
.workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
  align-items: end;
  padding: 10px 0 30px;
  border-bottom: 1px solid var(--line);
}
.workspace-header h1 {
  max-width: 780px;
  margin: 8px 0 12px;
  font-size: 42px;
  line-height: 1.05;
}
.workspace-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.workspace-header > :only-child { grid-column: 1 / -1; }
.start-hero {
  max-width: 760px;
  padding: 42px 0 24px;
}
.start-hero h1 {
  margin: 8px 0 12px;
  font-size: 44px;
  line-height: 1.05;
}
.start-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.customer-start {
  min-height: calc(100vh - 89px);
  padding-top: clamp(42px, 7vh, 72px);
}
.customer-start-intro {
  max-width: 700px;
  margin: 0 auto 28px;
  text-align: center;
}
.customer-start-intro h1 {
  margin: 9px 0 12px;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1;
}
.customer-start-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.customer-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.customer-path {
  min-width: 0;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-dark);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgb(14 26 43 / 7%);
}
.customer-path-plan {
  border-top-color: var(--red);
}
.path-label {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.customer-path-plan .path-label {
  color: var(--red-dark);
}
.customer-path h2 {
  margin: 0 0 12px;
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.1;
}
.customer-path p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.path-note {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--wash);
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.5;
}
.path-note strong {
  color: var(--ink);
}
.path-action {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  margin-top: auto;
  font-size: 16px;
}
.scan-help {
  font-size: 13px;
  text-align: center;
}
.start-error {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.camera-panel {
  max-width: 620px;
  display: grid;
  gap: 16px;
  margin: 24px auto 0;
  padding: 18px;
  text-align: left;
  background: var(--ink);
  border-radius: 12px;
}
.camera-panel[hidden] { display: none; }
.camera-panel-copy {
  display: grid;
  gap: 4px;
  color: #fff;
}
.camera-panel-copy p {
  margin: 0;
}
.camera-preview {
  overflow: hidden;
  border-radius: 8px;
}
.camera-panel video {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: #000;
}
.camera-status {
  margin: 0;
  color: #fff;
  line-height: 1.45;
}
.camera-error { color: #ffd7d7; }
.camera-panel .secondary-action {
  justify-self: start;
}
.eyebrow {
  margin: 0;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
}
.status-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}
.status-strip div {
  min-height: 64px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.status-strip dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-strip dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.section-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 20px;
}
article, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
article h3, .panel h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.2; }
article p, .panel p { color: var(--muted); line-height: 1.5; }
.panel { margin-top: 20px; }
.onboarding-panel {
  max-width: 760px;
}
.repair-context {
  align-self: center;
  width: min(100%, 380px);
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.onboarding-context { display: grid; gap: 10px; margin-bottom: 20px; }
.onboarding-context .repair-context { width: 100%; }
.onboarding-context .process-context { width: 100%; max-width: none; margin: 0; }
.repair-review-group {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #b7c9dc;
  border-radius: 8px;
}
.repair-review-group .repair-context { background: #fbfcfe; }
.repair-review-group .repair-package { margin: 0; padding: 0; border: 0; }
.repair-context summary { color: var(--blue-dark); cursor: pointer; font-weight: 800; }
.repair-context dl { display: grid; gap: 10px; margin: 12px 0 0; }
.repair-context dl div { display: grid; gap: 2px; }
.repair-context dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.repair-context dd { margin: 0; font-size: 13px; font-weight: 800; }
.borrower-progress-card {
  max-width: 760px;
  margin-top: 20px;
}
.borrower-progress-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid #b7c9dc;
  border-top: 4px solid var(--blue-dark);
  border-radius: 8px;
}
.borrower-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.borrower-progress-heading span {
  color: var(--muted);
  font-size: 13px;
}
.borrower-progress-heading strong { font-size: 16px; }
.borrower-progress-card progress {
  width: 100%;
  height: 10px;
  display: block;
  margin: 14px 0 12px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #e6ebf1;
}
.borrower-progress-card progress::-webkit-progress-bar { background: #e6ebf1; border-radius: 999px; }
.borrower-progress-card progress::-webkit-progress-value { background: #176b43; border-radius: 999px; }
.borrower-progress-card progress::-moz-progress-bar { background: #176b43; border-radius: 999px; }
.borrower-stepper { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.borrower-stepper li { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.borrower-stepper li > span { width: 24px; height: 24px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #9aa7b8; border-radius: 999px; font-weight: 800; }
.borrower-stepper li strong { min-width: 0; }
.borrower-stepper li.complete { color: #176b43; }
.borrower-stepper li.complete > span { color: #fff; background: #176b43; border-color: #176b43; }
.borrower-stepper li.active { color: var(--ink); }
.borrower-stepper li.active > span { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.process-context { max-width: 760px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.process-context summary { color: var(--blue-dark); cursor: pointer; font-size: 13px; font-weight: 800; }
.process-context > div { margin-top: 10px; }
.process-context p { margin: 3px 0; color: var(--muted); font-size: 13px; }
.process-context .task-label { color: var(--blue-dark); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.task-focus { margin-bottom: 18px; padding: 16px; background: #f5faff; border-left: 4px solid var(--blue); border-radius: 6px; }
.task-focus h2, .task-focus p { margin: 0; }
.task-focus h2 { margin: 4px 0 6px; font-size: 22px; }
.task-focus .task-label { color: var(--blue-dark); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.onboarding-task { display: grid; gap: 16px; }
.document-fields { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
.document-fields legend { margin-bottom: 12px; font-size: 16px; font-weight: 800; }
.document-stages { display: grid; gap: 12px; }
.document-stages > fieldset,
.document-photo-stage { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.document-stages legend span,
.document-photo-stage summary > span { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-right: 8px; color: #fff; background: var(--blue-dark); border-radius: 999px; font-size: 12px; }
.document-photo-stage summary { display: grid; grid-template-columns: auto 1fr; align-items: center; cursor: pointer; }
.document-photo-stage summary small { grid-column: 2; color: var(--muted); font-weight: 600; }
.document-photo-stage > div { display: grid; gap: 14px; margin-top: 16px; }
.optional-documents { padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; }
.optional-documents summary, .document-list-wrap > summary { cursor: pointer; font-weight: 800; }
.optional-documents summary span, .document-list-wrap > summary span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.optional-documents > div { display: grid; gap: 14px; margin-top: 14px; }
.authorization-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.authorization-steps li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; align-items: start; }
.authorization-steps li > span { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--blue-dark); border-radius: 999px; font-weight: 800; }
.authorization-steps li > div { display: grid; justify-items: start; gap: 7px; }
.authorization-steps small { color: var(--muted); }
.authorization-next-action {
  padding: 14px;
  background: #eef6fd;
  border: 1px solid #9ab9d5;
  border-radius: 8px;
}
.authorization-open-link {
  min-width: 190px;
  justify-content: center;
  font-size: 16px;
}
.authorization-primary {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fbfdff;
  border: 1px solid #b7c9dc;
  border-top: 4px solid var(--blue-dark);
  border-radius: 8px;
}
.authorization-primary .task-focus { margin-bottom: 0; }
.confirmation-field {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}
.confirmation-field input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-dark); }
.primary-action:disabled { cursor: not-allowed; opacity: .48; }
.certification-stage > summary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; cursor: pointer; }
.certification-stage > summary > span { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #fff; background: var(--blue-dark); border-radius: 999px; font-weight: 800; }
.certification-stage > summary strong { font-size: 20px; }
.certification-stage > summary small { color: var(--muted); font-weight: 600; }
.certification-stage-fields { display: grid; gap: 14px; margin-top: 20px; }
.review-stage { padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.review-stage > summary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 9px; cursor: pointer; }
.review-stage > summary > span { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #fff; background: var(--blue-dark); border-radius: 999px; font-weight: 800; }
.review-stage > summary small { color: var(--muted); font-weight: 600; }
.review-stage > div { display: grid; gap: 14px; margin-top: 16px; }
.borrower-checklist-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}
.borrower-checklist-heading h2,
.borrower-checklist-heading p { margin: 0; }
.borrower-checklist-heading h2 { font-size: 18px; }
.borrower-checklist-heading p { color: var(--muted); font-size: 13px; }
.borrower-checklist {
  margin: 12px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.borrower-checklist li {
  min-height: 62px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
}
.borrower-checklist li + li { border-top: 1px solid var(--line); }
.borrower-checklist li.active { background: #f5faff; box-shadow: inset 4px 0 0 var(--blue); }
.borrower-checklist li > span:last-child,
.borrower-checklist strong,
.borrower-checklist small { min-width: 0; display: block; }
.borrower-checklist strong { font-size: 14px; line-height: 1.3; }
.borrower-checklist small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 800; }
.borrower-checkmark {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #9aa7b8;
  border-radius: 4px;
}
.borrower-checklist li.complete .borrower-checkmark { background: #176b43; border-color: #176b43; }
.borrower-checklist li.complete .borrower-checkmark::after {
  width: 5px;
  height: 10px;
  content: "";
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.borrower-checklist li.complete small { color: #176b43; }
.repair-package {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.repair-package > p {
  margin: -2px 0 14px;
}
.repair-document-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.repair-document-list li {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.repair-document-list span,
.repair-document-list small {
  display: grid;
  gap: 3px;
}
.repair-document-list small {
  color: var(--muted);
}
.repair-document-list a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}
.start-panel {
  max-width: 760px;
  display: grid;
  gap: 18px;
  margin-top: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.start-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.start-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.start-form {
  display: grid;
  gap: 14px;
}
.dual-code-note {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 14px 16px;
  color: var(--slate);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.45;
}
.dual-code-note span { color: var(--muted); font-size: 14px; }
.secondary-form {
  margin-top: -4px;
}
.recovery-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.restart-form { display: inline; margin: 0; }
.restart-link {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--blue-dark);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 700;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="file"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}
.field input[type="file"] {
  padding: 9px 10px;
}
.field input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 7px 11px;
  color: #fff;
  background: var(--blue-dark);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.field:has(input[type="checkbox"]) {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
}
.form-error {
  padding: 10px 12px;
  color: #7a1414;
  background: #fff1f1;
  border: 1px solid #efb6b6;
  border-radius: 6px;
  font-weight: 700;
}
.form-success {
  padding: 10px 12px;
  color: #11543a;
  background: #edfff6;
  border: 1px solid #a9e6c9;
  border-radius: 6px;
  font-weight: 700;
}

.wallet-header {
  grid-template-columns: minmax(0, 760px);
}
.wallet-create,
.wallet-history {
  max-width: 860px;
}
.wallet-form {
  display: grid;
  gap: 18px;
}
.wallet-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wallet-form legend {
  padding: 0 8px;
  font-weight: 800;
}
.wallet-form select,
.wallet-form input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.wallet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 28px;
  margin-top: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #fff 0%, #f6f9fd 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.wallet-card-ready {
  border-color: #9bcbb6;
}
.wallet-card h2 {
  margin: 6px 0 18px;
  font-size: 30px;
}
.wallet-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.wallet-facts div {
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wallet-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.wallet-facts dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}
.wallet-qr {
  align-self: start;
  padding: 18px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.wallet-qr img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 8px auto;
}
.wallet-qr p {
  color: var(--muted);
}
.wallet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.wallet-history ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wallet-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wallet-history li div,
.wallet-history li div span {
  display: grid;
  gap: 4px;
}

@media (max-width: 760px) {
  .wallet-card,
  .wallet-form fieldset {
    grid-template-columns: 1fr;
  }
  .wallet-facts {
    grid-template-columns: 1fr;
  }
  .wallet-history li {
    grid-template-columns: 1fr;
  }
}
.document-list-wrap {
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.document-history-content { margin-top: 14px; }
.document-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.document-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.document-list span {
  grid-column: 1;
  color: var(--muted);
}
.document-list a {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-weight: 800;
}
.secondary-disclosure { background: #fbfcfe; }
.secondary-disclosure > summary { color: var(--blue-dark); }
.primary-action {
  --action-hierarchy-level: primary;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-dark);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.primary-action:hover {
  background: var(--ink);
}
.secondary-action {
  --action-hierarchy-level: secondary;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.secondary-action:hover {
  color: var(--ink);
  border-color: var(--blue-dark);
}
.primary-link {
  --action-hierarchy-level: primary;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}
.primary-link:hover {
  background: var(--ink);
}
.primary-action:focus-visible,
.secondary-action:focus-visible,
.primary-link:focus-visible,
a[href]:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Shared action hierarchy: every visible action receives one semantic level. */
a[href], button, summary { --action-hierarchy-level: tertiary; }
details > summary { --action-hierarchy-level: disclosure; cursor: pointer; }
.topbar a[href], .topbar summary, .skip-link { --action-hierarchy-level: navigation; }
.danger-details button { --action-hierarchy-level: destructive; }
.intake-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 18px 0 0;
  padding-left: 20px;
  line-height: 1.5;
}
.intake-list li { padding-inline-start: 2px; }
.next-steps {
  max-width: 760px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.next-steps ol,
.next-steps ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--slate);
  line-height: 1.7;
}
.next-steps ul {
  color: var(--muted);
}
.agreement-table-wrap { overflow-x: auto; }
.agreement-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.agreement-table th,
.agreement-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.agreement-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.agreement-table td:last-child { text-align: right; }
.agreement-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.agreement-facts div { min-width: 0; }
.agreement-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.agreement-facts dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.certification-document {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #d8e1ea;
  border-top: 4px solid #c8201e;
  border-radius: 14px;
  background: #fff;
}
.certification-document h4 { margin-top: 0; color: #0e1a2b; }
.certification-evidence + .certification-evidence { margin-top: 24px; border-top: 1px solid #d8e1ea; padding-top: 24px; }
.certification-evidence img,
.certification-evidence object {
  display: block;
  width: 100%;
  min-height: 420px;
  max-height: 720px;
  object-fit: contain;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  background: #f1f5f9;
}
.agreement-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.agreement-archive-heading h2 {
  margin: 0;
}
.agreement-archive-heading p {
  margin: 6px 0 0;
}
.agreement-card-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.agreement-card,
.agreement-empty {
  padding: 18px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.agreement-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.agreement-card-heading > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.agreement-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}
.agreement-card-heading span:not(.agreement-status) {
  color: var(--muted);
  font-size: 13px;
}
.agreement-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #175c40;
  background: #e8f7ef;
  border: 1px solid #9bcbb6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.agreement-card-actions,
.agreement-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.agreement-card-actions {
  grid-template-columns: repeat(2, minmax(190px, 220px));
}
.agreement-detail-actions {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}
.agreement-card-actions a,
.agreement-detail-actions > a {
  justify-content: center;
  text-align: center;
}
.agreement-card > details,
.agreement-more-actions {
  margin-top: 14px;
}
.agreement-card > details > summary,
.agreement-more-actions > summary {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--blue-dark);
  background: #eef5fc;
  border: 1px solid #b7c9dc;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.agreement-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}
.agreement-card dl div {
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.agreement-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.agreement-card dd {
  margin: 4px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.agreement-more-actions {
  position: relative;
  margin: 0;
}
.agreement-more-actions > summary {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  padding: 10px 14px;
}
.agreement-more-actions[open] {
  display: grid;
  gap: 8px;
}
.agreement-more-actions a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}
.agreement-record-details > summary {
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}
.agreement-record-details-content { margin-top: 16px; }
.agreement-record-details-content > p { margin-top: 0; }
.agreement-empty {
  display: grid;
  gap: 4px;
}
.agreement-empty span {
  color: var(--muted);
}
.agreement-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.agreement-pagination span {
  color: var(--muted);
  font-weight: 800;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-notice, .retention-notice { padding: 10px 12px; border-left: 3px solid #1769aa; background: #f4f8fc; color: var(--muted); line-height: 1.45; }
.document-list li > div:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.document-state { font-size: 12px; font-weight: 800; }
.document-list details summary { color: var(--link); cursor: pointer; font-size: 12px; font-weight: 800; }
.document-list dl { margin: 8px 0 0; }
.document-list dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.document-list dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.document-list dd { min-width: 0; margin: 0; }
.document-list code { display: block; overflow-wrap: anywhere; font-size: 11px; }
.document-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.document-remove { max-width: 500px; }
.document-remove > summary { color: #9f1d1d !important; }
.document-remove form { display: grid; gap: 9px; margin-top: 8px; }
.document-remove label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.document-remove label input { width: auto; margin-top: 2px; }
.document-remove button { justify-self: start; background: #9f1d1d; }
@media (max-width: 840px) {
  html { scroll-padding-top: 0; }
  .topbar { position: static; }
  .topbar-inner {
    align-items: flex-start;
    min-height: auto;
    padding: 16px;
    flex-direction: column;
    gap: 14px;
  }
  nav {
    width: 100%;
    justify-content: flex-start;
  }
  main { padding: 26px 16px 40px; }
  .customer-start {
    padding-top: 34px;
  }
  .customer-start-intro {
    margin-bottom: 22px;
  }
  .customer-start-intro h1 {
    font-size: 36px;
  }
  .customer-start-intro > p:last-child {
    font-size: 16px;
  }
  .customer-paths {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
  .customer-path {
    min-height: 0;
  }
  .workspace-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 24px;
  }
  .borrower-progress-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .borrower-stepper { grid-template-columns: 1fr; }
  .borrower-stepper li { min-height: 30px; }
  .borrower-checklist-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .workspace-header h1 { font-size: 30px; }
  .workspace-header p { font-size: 16px; }
  .start-hero {
    padding-top: 28px;
  }
  .start-hero h1 {
    font-size: 32px;
  }
  .start-hero p {
    font-size: 16px;
  }
  .grid { grid-template-columns: 1fr; }
  .intake-list { grid-template-columns: 1fr; }
	.agreement-facts,
  .agreement-card dl,
  .agreement-detail-actions { grid-template-columns: 1fr; }
  .agreement-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .agreement-card-actions,
  .agreement-card-actions .primary-link,
  .agreement-card-actions .secondary-action {
    width: 100%;
  }
  .agreement-card-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .brand-logo {
    width: 52px;
    height: 52px;
  }
  nav a {
    flex: 1 1 calc(33.333% - 6px);
    justify-content: center;
  }
}

/* Vehicle workspace */
.vehicle-main { max-width: 1040px; }
.wallet-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.wallet-header .eyebrow a { color: var(--blue-dark); }
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.account-menu { position: relative; }
.account-menu summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover,
.account-menu[open] summary { background: #eef2f7; }
.account-menu > div {
  position: absolute;
  right: 0;
  width: min(290px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgb(14 26 43 / 12%);
}
.account-menu > div span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.account-menu > div a {
  min-height: 36px;
  padding: 6px 8px;
  color: var(--red-dark);
}
.vehicle-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.vehicle-tasks {
  align-self: start;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.vehicle-tasks > a,
.vehicle-tasks > span {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--slate);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
}
.vehicle-tasks > a:hover,
.vehicle-tasks > a[aria-current="step"],
.vehicle-tasks > span[aria-current="step"] {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
.vehicle-tasks > span[aria-disabled="true"] { color: #7a8697; }
.vehicle-tasks > a > span:last-child,
.vehicle-tasks > span > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.vehicle-tasks small { color: var(--muted); font-weight: 500; }
.task-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  background: #eaf4fd;
  border-radius: 50%;
  font-weight: 800;
}
.vehicle-task-panel {
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgb(14 26 43 / 5%);
}
.task-heading { margin-bottom: 24px; }
.task-heading h2 { margin: 4px 0 8px; font-size: 29px; }
.task-heading p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.step-label {
  margin: 0;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.vehicle-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}
.vehicle-facts div { min-width: 0; padding: 15px; background: #fff; }
.vehicle-facts dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.vehicle-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.private-details,
.document-history,
.danger-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.private-details > summary,
.document-history > summary,
.danger-details > summary {
  padding: 16px 0 0;
  cursor: pointer;
  font-weight: 800;
}
.compact-facts { margin-top: 14px; }
.field-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.annual-renewal {
  margin-top: 22px;
  padding: 16px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.annual-renewal h3 { margin: 0 0 7px; font-size: 18px; }
.annual-renewal p { margin: 0 0 12px; line-height: 1.45; }
.annual-renewal .renewal-note { color: var(--muted); }
.annual-renewal form { margin: 0; }
.renewal-receipt { display: inline-block; margin-top: 10px; color: var(--blue-dark); font-size: 13px; font-weight: 750; }
.current-document {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  color: #11543a;
  background: #edfff6;
  border: 1px solid #a9e6c9;
  border-radius: 9px;
}
.current-document > div { display: grid; gap: 3px; }
.current-document span { font-size: 14px; }
.current-document.document-expired { color: #7a1414; background: #fff1f1; border-color: #efb6b6; }
.document-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.document-links a { color: var(--blue-dark); font-size: 13px; font-weight: 750; }
.insurance-form,
.vehicle-form { display: grid; gap: 18px; }
.insurance-form fieldset,
.repair-plan-fields {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}
.insurance-form legend,
.repair-plan-fields legend { margin-bottom: 12px; padding: 0; font-size: 18px; font-weight: 800; }
.upload-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.upload-choice {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #9ab9d5;
  border-radius: 7px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.upload-choice[aria-pressed="true"] { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.upload-panel { padding: 12px; background: var(--wash); border-radius: 8px; }
.insurance-expiry { max-width: 260px; }
.document-history ol { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.document-history > ol > li { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.document-history > ol > li > div { display: grid; gap: 3px; }
.document-history span { color: var(--muted); font-size: 13px; }
.glovebox-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.glovebox-card-stage {
  min-width: 0;
  padding: 18px;
  background: #e9eef5;
  border-radius: 18px;
}
.glovebox-scan-label {
  margin: 0 0 10px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.glovebox-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(184px, 24vw, 220px);
  grid-template-areas:
    "brand qr"
    "vehicle qr"
    "status qr";
  grid-template-rows: auto 1fr auto;
  gap: 18px 24px;
  width: 100%;
  padding: 24px;
  color: #fff;
  background: var(--slate);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgb(14 26 43 / 22%);
}
.glovebox-brand { grid-area: brand; min-width: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.glovebox-brand img { grid-row: 1 / span 2; width: 52px; height: 52px; object-fit: contain; border-radius: 4px; }
.glovebox-brand strong { min-width: 0; align-self: end; overflow-wrap: anywhere; font-size: 19px; }
.glovebox-brand span { min-width: 0; align-self: start; color: #cbd7e7; overflow-wrap: anywhere; font-size: 12px; }
.glovebox-qr-frame {
  grid-area: qr;
  width: 100%;
  max-width: 220px;
  justify-self: end;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 12px;
}
.glovebox-qr { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.glovebox-qr-wait { max-width: 140px; color: #20334f; font-size: 14px; font-weight: 750; line-height: 1.3; text-align: center; }
.glovebox-unavailable-message {
  grid-area: qr;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 184px;
  padding: 20px;
  color: var(--slate);
  background: #f4f7fa;
  border: 1px solid #cbd7e7;
  border-radius: 12px;
  line-height: 1.45;
}
.glovebox-unavailable-message span { font-size: 13px; }
.glovebox-vehicle { grid-area: vehicle; min-width: 0; display: grid; gap: 4px; align-self: end; overflow-wrap: anywhere; }
.glovebox-vehicle strong { min-width: 0; font-size: 18px; line-height: 1.2; }
.glovebox-vehicle span,
.glovebox-card > small { color: #cbd7e7; font-size: 11px; }
.glovebox-card > small { grid-area: status; min-width: 0; align-self: end; overflow-wrap: anywhere; }
.qr-retry { margin-top: 12px; }
.card-state { max-width: 580px; }
.card-state h3 { margin: 0 0 8px; }
.card-state p { margin: 0 0 15px; color: var(--muted); line-height: 1.5; }
.print-card-form { margin-top: 12px; }
.print-card-note { margin-top: 8px !important; font-size: 12px; }
.danger-details .secondary-action { margin-top: 12px; color: var(--red-dark); }
.repair-activity { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.repair-activity-heading,
.repair-activity-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.repair-activity-heading { margin-bottom: 14px; }
.repair-activity-heading h3 { margin: 4px 0 0; font-size: 22px; }
.repair-activity-heading > a { color: var(--blue-dark); font-size: 13px; font-weight: 750; }
.repair-activity-list { display: grid; gap: 10px; }
.repair-activity-item,
.repair-activity-empty { padding: 16px; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; }
.repair-activity-title > div { display: grid; gap: 3px; min-width: 0; }
.repair-activity-title > div span { color: var(--muted); font-size: 12px; }
.repair-status {
  flex: none;
  padding: 5px 8px;
  color: var(--blue-dark);
  background: #eaf4fd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.repair-activity-item > p,
.repair-activity-empty p { margin: 10px 0 0; color: var(--muted); line-height: 1.45; }
.repair-activity-item .repair-amount { color: var(--ink); }
.repair-activity-item .action-link { margin-top: 14px; }
.repair-activity-empty strong { display: block; }
.form-details { margin: 0; }
.form-details[open] { padding-bottom: 4px; }
.form-details .field { margin-top: 12px; }
.vehicle-form select,
.vehicle-form input[type="number"] {
  width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
.repair-plan-fields { padding-top: 16px; border-top: 1px solid var(--line); }
.vehicle-list { display: grid; gap: 10px; margin-top: 24px; }
.vehicle-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.vehicle-row:hover { border-color: #9ab9d5; }
.vehicle-row > span:first-child { min-width: 0; display: grid; gap: 4px; }
.vehicle-row small { color: var(--muted); overflow-wrap: anywhere; }
.vehicle-row-state { display: grid; gap: 3px; color: var(--blue-dark); text-align: right; }
.vehicle-row-state strong { font-size: 13px; font-weight: 800; }
.vehicle-row-state small { color: var(--muted); font-size: 12px; font-weight: 650; white-space: normal; }
.empty-vehicles { max-width: 620px; margin: 40px auto 0; padding: 34px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.empty-vehicles h2 { margin: 0 0 8px; }
.empty-vehicles p { margin: 0 0 20px; color: var(--muted); }
.agreement-review-form { display: grid; gap: 14px; margin: 18px 0; }
.agreement-review-form .field { max-width: 720px; }
.agreement-review-form .primary-action { justify-self: start; }
.offer-decision {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  background: #fbfdff;
  border: 1px solid #b7c9dc;
  border-top: 4px solid var(--blue-dark);
  border-radius: 8px;
}
.offer-decision h2 { margin: 0; }
.offer-decision .agreement-review-form { margin: 0; }
.offer-primary-progression {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #9ab9d5;
  border-radius: 8px;
}
.offer-primary-progression h3 { margin: 0; font-size: 18px; }
.offer-primary-progression .confirmation-field { max-width: none; }
.offer-secondary-choice { padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.offer-secondary-choice > summary { display: grid; gap: 2px; color: var(--blue-dark); cursor: pointer; }
.offer-secondary-choice > summary span { color: var(--muted); font-size: 12px; font-weight: 650; }
.offer-secondary-choice > div { margin-top: 12px; }
.offer-secondary-choice p { margin: 0 0 12px; }

@media (max-width: 1050px) {
  .glovebox-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "qr" "vehicle" "status";
    grid-template-rows: auto;
  }
  .glovebox-qr-frame {
    width: min(100%, 320px);
    max-width: 320px;
    justify-self: center;
  }
  .glovebox-vehicle { text-align: center; justify-items: center; }
  .glovebox-card > small { text-align: center; }
}
@media (max-width: 800px) {
  .vehicle-workspace { grid-template-columns: 1fr; gap: 14px; }
  .vehicle-tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vehicle-tasks > a,
  .vehicle-tasks > span { min-height: 78px; grid-template-columns: 1fr; gap: 5px; align-content: start; }
  .task-number { width: 24px; height: 24px; font-size: 12px; }
  .vehicle-tasks small { display: none; }
}
@media (max-width: 620px) {
  .wallet-header { grid-template-columns: 1fr; }
  .wallet-header .action-link { width: 100%; }
  .vehicle-tasks { gap: 4px; }
  .vehicle-tasks > a,
  .vehicle-tasks > span { padding: 8px; font-size: 12px; }
  .vehicle-task-panel { padding: 20px 16px; }
  .vehicle-facts,
  .upload-choices { grid-template-columns: 1fr; }
  .glovebox-card-stage { margin-inline: -8px; padding: 12px; border-radius: 14px; }
  .glovebox-card {
    gap: 18px;
    padding: 18px;
    border-radius: 14px;
  }
  .glovebox-qr-frame {
    width: min(100%, 320px);
    justify-self: center;
    border-width: 10px;
  }
  .glovebox-brand { justify-self: start; }
  .vehicle-row { align-items: flex-start; flex-direction: column; }
  .repair-activity-heading,
  .repair-activity-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .account-menu > div { left: 0; right: auto; }
}

.print-card-page { min-height: 100vh; background: #eef2f7; }
.print-card-main { max-width: 760px; }
.print-card-intro { max-width: 620px; margin: 0 auto 24px; text-align: center; }
.print-card-intro h1 { margin: 8px 0 10px; font-size: clamp(32px, 7vw, 44px); }
.print-card-intro p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.print-card-sheet {
  width: fit-content;
  margin: 0 auto;
  padding: 14mm;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgb(14 26 43 / 14%);
}
.printable-glovebox-card {
  width: 85.6mm;
  height: 53.98mm;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31mm;
  grid-template-rows: auto 1fr auto;
  gap: 3mm 4mm;
  padding: 4.5mm;
  overflow: hidden;
  color: #fff;
  background: var(--slate);
  border: .3mm dashed #91a0b3;
  border-radius: 3.2mm;
  box-shadow: 0 3mm 7mm rgb(14 26 43 / 16%);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.printable-card-brand { display: flex; align-items: center; gap: 2.4mm; min-width: 0; }
.printable-card-brand img { width: 10mm; height: 10mm; object-fit: contain; border-radius: 1mm; }
.printable-card-brand div { display: grid; min-width: 0; }
.printable-card-brand strong { font-size: 4.2mm; line-height: 1; }
.printable-card-brand span { margin-top: 1mm; color: #d8e1ec; font-size: 2.4mm; }
.printable-card-qr {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 31mm;
  height: 31mm;
  padding: 1.2mm;
  object-fit: contain;
  background: #fff;
  border-radius: 1.5mm;
}
.printable-card-vehicle { display: grid; align-content: end; gap: .7mm; min-width: 0; }
.printable-card-vehicle strong { font-size: 3.5mm; line-height: 1.15; overflow-wrap: anywhere; }
.printable-card-vehicle span { color: #d8e1ec; font-size: 2.25mm; }
.printable-card-expiry { grid-column: 1 / -1; margin: 0; color: #d8e1ec; font-size: 2.2mm; text-align: right; }
.print-card-safety { max-width: 520px; margin: 22px auto 0; color: var(--muted); text-align: center; line-height: 1.5; }
.print-card-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.print-card-actions .secondary-action { display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 520px) {
  .print-card-main { padding-inline: 12px; }
  .print-card-sheet { width: 100%; padding: 16px 10px; overflow-x: auto; border-radius: 8px; }
  .printable-glovebox-card { transform-origin: left top; }
  .print-card-actions { align-items: stretch; flex-direction: column; }
  .print-card-actions > * { justify-content: center; width: 100%; }
}

@media print {
  @page { margin: 12mm; }
  .no-print { display: none !important; }
  .print-card-page { min-height: auto; background: #fff; }
  .print-card-main { max-width: none; margin: 0; padding: 0; }
  .print-card-sheet { margin: 0; padding: 0; border-radius: 0; box-shadow: none; }
  .printable-glovebox-card { box-shadow: none; break-inside: avoid; }
}
