:root {
  --navy-950:#0d2035;
  --navy-850:#173451;
  --blue-650:#37659f;
  --blue-100:#eaf2fb;
  --green-700:#236545;
  --green-100:#e8f6ee;
  --amber-700:#8a5a13;
  --amber-100:#fff5dd;
  --red-700:#a33d3d;
  --ink:#172333;
  --muted:#63758a;
  --line:#d7e0e9;
  --page:#f1f5f8;
  --card:#fff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--page);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { min-height:100%; background:var(--page); }
body { min-height:100vh; margin:0; background:var(--page); }
button,input { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
a { color:var(--blue-650); }
.skip-link { position:fixed; z-index:999; top:10px; left:10px; transform:translateY(-150%); padding:10px 14px; color:#fff; background:var(--navy-950); }
.skip-link:focus { transform:none; }
.brand { display:inline-flex; align-items:center; gap:12px; color:inherit; text-decoration:none; }
.brand-mark { display:grid; width:48px; height:48px; place-items:center; border:1px solid rgba(255,255,255,.35); color:#fff; background:#507bb2; font-weight:900; letter-spacing:-.06em; }
.brand strong,.brand small { display:block; }
.brand small { margin-top:2px; color:inherit; opacity:.68; font-size:11px; letter-spacing:.11em; text-transform:uppercase; }
.eyebrow { color:var(--blue-650); font-size:12px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.button { min-height:44px; border:1px solid transparent; border-radius:4px; padding:10px 18px; cursor:pointer; font-weight:750; }
.button:disabled { opacity:.55; cursor:not-allowed; }
.button-primary { color:#fff; background:var(--blue-650); }
.button-secondary { border-color:#b7c8dc; color:var(--navy-850); background:#f5f9fd; }
.button-danger { border-color:#a93e35; color:#fff; background:#a93e35; }
.button-quiet { border-color:#9db0c4; color:inherit; background:transparent; }
.driver-dialog { width:min(520px,calc(100vw - 28px)); border:0; border-top:4px solid var(--blue-650); padding:0; color:var(--ink); background:#fff; box-shadow:0 24px 80px rgba(8,24,38,.34); }
.driver-dialog::backdrop { background:rgba(5,23,37,.66); backdrop-filter:blur(2px); }
.driver-dialog form { padding:28px; }
.driver-dialog h2 { margin:8px 0; color:var(--navy-950); font-family:Georgia,serif; font-size:28px; }
.driver-dialog p { margin:0; color:var(--muted); line-height:1.55; }
.driver-dialog__actions { display:flex; justify-content:flex-end; gap:10px; margin-top:26px; border-top:1px solid var(--line); padding-top:18px; }
.driver-auth { display:grid; min-height:100vh; grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr); }
.auth-story { display:flex; min-height:100%; flex-direction:column; justify-content:space-between; padding:54px clamp(36px,7vw,100px); color:#fff; background:linear-gradient(145deg,#0c1e32 0%,#173e65 65%,#245780 100%); }
.auth-story > div { max-width:720px; }
.auth-story .eyebrow { color:#9cc5ef; }
.auth-story h1 { max-width:760px; margin:18px 0; font-family:Georgia,serif; font-size:clamp(38px,5vw,68px); line-height:1.03; letter-spacing:-.035em; }
.auth-story p { max-width:680px; margin:0; color:#d7e7f5; font-size:18px; line-height:1.65; }
.auth-story ul { display:flex; margin:36px 0 0; padding:0; gap:24px; list-style:none; color:#bcd2e5; font-size:13px; font-weight:700; }
.auth-story li::before { content:"✓"; margin-right:7px; color:#8fddb2; }
.auth-panel { display:grid; min-height:100%; padding:36px; place-items:center; background:#f7f9fb; }
.auth-card { width:min(100%,460px); border:1px solid var(--line); padding:42px; background:#fff; box-shadow:0 22px 70px rgba(20,41,64,.1); }
.auth-card h2 { margin:11px 0 8px; color:var(--navy-950); font-family:Georgia,serif; font-size:31px; }
.auth-card > p { margin:0 0 25px; color:var(--muted); line-height:1.55; }
.auth-card form { display:grid; gap:16px; }
label span { display:block; margin-bottom:7px; color:#34495f; font-size:13px; font-weight:750; }
input { width:100%; min-height:46px; border:1px solid #b8c6d5; border-radius:4px; padding:10px 12px; color:var(--ink); background:#fff; }
input:focus { outline:3px solid rgba(55,101,159,.15); border-color:var(--blue-650); }
.form-status { min-height:22px; margin-top:12px; color:var(--red-700); font-size:13px; }
.auth-links { display:flex; margin-top:18px; flex-wrap:wrap; justify-content:space-between; gap:10px; font-size:13px; }
.simple-header,.app-header { display:flex; align-items:center; justify-content:space-between; min-height:82px; padding:14px clamp(20px,5vw,72px); color:#fff; background:var(--navy-950); }
.pay-shell { width:min(920px,calc(100% - 32px)); margin:48px auto; }
.loading-card,.pay-card { border:1px solid var(--line); padding:clamp(24px,5vw,48px); background:#fff; box-shadow:0 16px 50px rgba(20,41,64,.08); }
.pay-card__head { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.pay-card h1 { margin:8px 0 4px; color:var(--navy-950); font-family:Georgia,serif; font-size:34px; }
.pay-card__amount { margin:28px 0; border-block:1px solid var(--line); padding:24px 0; text-align:right; }
.pay-card__amount span,.pay-card__amount strong { display:block; }
.pay-card__amount span { color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.pay-card__amount strong { color:var(--navy-950); font-size:40px; }
.pay-card__meta { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.pay-card__meta span,.doc-card small,.vehicle-card small,.active-card small { display:block; color:var(--muted); }
.pay-actions { display:flex; margin-top:26px; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.payment-note { margin:16px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.driver-identity { margin-left:auto; margin-right:18px; text-align:right; }
.driver-identity span,.driver-identity strong { display:block; }
.driver-identity span { color:#a9bfd3; font-size:11px; text-transform:uppercase; }
.driver-nav { display:flex; min-height:58px; padding:0 clamp(16px,5vw,72px); gap:5px; overflow-x:auto; color:#dce9f4; background:var(--navy-850); }
.driver-nav button { flex:0 0 auto; border:0; border-bottom:3px solid transparent; padding:0 18px; color:inherit; background:transparent; cursor:pointer; font-weight:700; }
.driver-nav button:hover,.driver-nav button.is-active { border-bottom-color:#8fc0ef; color:#fff; background:rgba(255,255,255,.06); }
.driver-flash { margin:20px auto 0; width:min(1220px,calc(100% - 32px)); border-left:4px solid var(--blue-650); padding:13px 16px; color:var(--navy-850); background:#fff; box-shadow:0 6px 20px rgba(20,41,64,.06); }
.driver-content { width:min(1220px,calc(100% - 32px)); margin:32px auto 70px; }
.page-head { display:flex; align-items:end; justify-content:space-between; margin-bottom:22px; gap:20px; }
.page-head h1 { margin:7px 0 3px; color:var(--navy-950); font-family:Georgia,serif; font-size:36px; }
.page-head p { margin:0; color:var(--muted); }
.metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:22px; }
.metric { border:1px solid var(--line); border-top:3px solid var(--blue-650); padding:22px; background:#fff; }
.metric span,.metric strong,.metric small { display:block; }
.metric span { color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.metric strong { margin:8px 0 3px; color:var(--navy-950); font-size:30px; }
.content-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.active-card,.vehicle-card,.doc-card,.warranty-card,.empty-state { border:1px solid var(--line); padding:24px; background:#fff; }
.active-card { border-left:5px solid var(--blue-650); }
.estimate-card { margin-top:20px; padding:18px; border:1px solid #cad8ea; background:#f4f8fd; display:grid; gap:12px; border-radius:8px; }
.estimate-card > div:first-child { display:grid; gap:4px; }
.estimate-card > div:first-child > span { color:var(--muted); font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.estimate-card > div:first-child > strong { color:var(--navy); font-size:1.65rem; }
.card-head { display:flex; align-items:start; justify-content:space-between; gap:15px; }
.card-head h2,.card-head h3 { margin:5px 0; color:var(--navy-950); }
.vehicle-title { font-size:19px; }
.status { display:inline-flex; align-items:center; border-radius:999px; padding:6px 10px; color:var(--blue-650); background:var(--blue-100); font-size:11px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.status-paid,.status-active { color:var(--green-700); background:var(--green-100); }
.status-expired,.status-void { color:#6d7784; background:#edf0f3; }
.status-open,.status-on_hold { color:var(--amber-700); background:var(--amber-100); }
.service-steps { display:grid; margin-top:22px; grid-template-columns:repeat(4,1fr); gap:8px; }
.service-step { border-top:3px solid #d8e0e8; padding-top:9px; color:#7a899a; font-size:11px; font-weight:750; }
.service-step.is-complete { border-color:var(--green-700); color:var(--green-700); }
.service-step.is-current { border-color:var(--blue-650); color:var(--blue-650); }
.tag-list { display:flex; margin-top:18px; flex-wrap:wrap; gap:7px; }
.tag { border:1px solid #cfdae5; border-radius:3px; padding:5px 8px; color:#42566d; background:#f7fafc; font-size:12px; }
.vehicle-grid,.document-list,.warranty-grid { display:grid; gap:14px; }
.vehicle-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.vehicle-card h2 { margin:6px 0; font-size:19px; }
.vehicle-card dl { display:grid; margin:18px 0 0; grid-template-columns:1fr 1fr; gap:12px; }
.vehicle-card dt { color:var(--muted); font-size:11px; text-transform:uppercase; }
.vehicle-card dd { margin:2px 0 0; font-weight:700; }
.doc-card { display:grid; grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(110px,.5fr)) auto; align-items:center; gap:18px; }
.doc-card h3 { margin:3px 0; color:var(--navy-950); }
.doc-card__amount { text-align:right; font-size:20px; font-weight:800; }
.doc-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.doc-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:40px; border:1px solid #b7c8dc; border-radius:4px; padding:8px 12px; text-decoration:none; font-weight:700; }
.history-list { display:grid; gap:14px; }
.history-card { border-left:4px solid var(--blue-650); }
.warranty-card { border-top:3px solid var(--green-700); }
.warranty-card h3 { margin:8px 0; }
.warranty-card dl { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.warranty-card dt { color:var(--muted); font-size:11px; text-transform:uppercase; }
.warranty-card dd { margin:2px 0 0; }
.empty-state { padding:50px 24px; text-align:center; }
.empty-state h2 { color:var(--navy-950); }
.empty-state p { max-width:520px; margin:8px auto 0; color:var(--muted); line-height:1.6; }
@media (max-width:900px) {
  .driver-auth { grid-template-columns:1fr; }
  .auth-story { min-height:46vh; }
  .metric-grid,.vehicle-grid { grid-template-columns:1fr; }
  .doc-card { grid-template-columns:1fr auto; }
  .doc-card > :nth-child(2) { display:none; }
  .doc-actions { grid-column:1 / -1; justify-content:flex-start; }
}
@media (max-width:620px) {
  .auth-story { padding:34px 24px; }
  .auth-story ul { display:grid; gap:8px; }
  .auth-panel { padding:20px; }
  .auth-card { padding:28px 22px; }
  .app-header { flex-wrap:wrap; }
  .driver-identity { order:3; width:100%; margin:8px 0 0; text-align:left; }
  .page-head,.pay-card__head { align-items:start; flex-direction:column; }
  .content-grid,.pay-card__meta { grid-template-columns:1fr; }
  .doc-card { grid-template-columns:1fr; }
  .doc-card__amount { text-align:left; }
  .service-steps { grid-template-columns:repeat(2,1fr); }
}

.choice-brand-logo{object-fit:contain!important;background:transparent!important;flex-shrink:0}
