/* BayTab UI */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --navy: #0f1b2d;
  --navy-2: #182842;
  --text: #111827;
  --muted: #5b6577;
  --line: #e3e8f0;
  --primary: #1f4fd1;
  --primary-ink: #ffffff;
  --primary-soft: #e8eefc;
  --amber: #f5a524;
  --green: #15803d;  --green-soft: #e6f6ec;
  --orange: #b45309; --orange-soft: #fdf1e1;
  --red: #c42b31;    --red-soft: #fdeaea;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .06);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111e;
    --surface: #121b2c;
    --surface-2: #172236;
    --text: #e8ecf3;
    --muted: #97a3b8;
    --line: #243149;
    --primary: #6d8fff;
    --primary-ink: #0a111e;
    --primary-soft: #1b2a4c;
    --green: #4ade80;  --green-soft: #12301f;
    --orange: #fbbf5a; --orange-soft: #33260f;
    --red: #ff8c8f;    --red-soft: #3a1618;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; }
a { color: var(--primary); }
p { margin: .4rem 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mark { width: 34px; height: 34px; flex: none; display: block; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- App shell ---------- */
.is-app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: var(--navy); color: #c9d3e4; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 14px;
}
.side-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 4px 8px 22px; }
.side-brand .mark { width: 38px; height: 38px; }
.side-brand span { display: flex; flex-direction: column; min-width: 0; }
.side-brand strong { font-size: 1.05rem; letter-spacing: -.01em; }
.side-brand small { color: #8a99b4; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #c9d3e4; text-decoration: none; font-weight: 600; font-size: .92rem;
}
.side-nav a:hover { background: var(--navy-2); color: #fff; }
.side-nav a[aria-current] { background: var(--navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.side-nav a[aria-current] .ic { color: var(--amber); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid #22324f; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--amber); color: var(--navy); font-weight: 800; font-size: .85rem;
}
.who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.who strong { color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: #8a99b4; font-size: .76rem; }
.side-user form { margin: 0; }
.icon-btn { background: none; border: 0; color: #c9d3e4; padding: 8px; border-radius: 8px; cursor: pointer; display: grid; }
.icon-btn:hover { background: var(--navy-2); color: #fff; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 48px; flex: 1; }

@media (max-width: 860px) {
  .is-app { display: block; }
  .side { position: sticky; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 6px; }
  .side-brand { padding: 0; flex: 1; }
  .side-brand small { display: none; }
  .side-user { border: 0; padding: 0; }
  .side-user .who { display: none; }
  .side-nav { order: 3; flex: 0 0 100%; flex-direction: row; overflow-x: auto; gap: 4px; padding-top: 6px; }
  .side-nav a { padding: 8px 12px; white-space: nowrap; }
  .side-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--amber); }
  .content { padding: 20px 16px 40px; }
}

/* ---------- Public shell ---------- */
.is-public { display: flex; flex-direction: column; min-height: 100vh; }
.pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); background: var(--surface); border-bottom: 1px solid var(--line); }
.pub-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.pub-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pub-link .ic { width: 16px; height: 16px; }
.pub-main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 48px; flex: 1; }
.foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px; color: var(--muted); font-size: .82rem; }
.foot .mark { width: 18px; height: 18px; }
.foot strong { color: var(--text); }

/* ---------- Building blocks ---------- */
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.pagehead p { margin: .25rem 0 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head .badge-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.card-head .badge-ic .ic { width: 18px; height: 18px; }
.card-head h2 { flex: 1; }
.card-head .count { color: var(--muted); font-weight: 600; font-size: .85rem; }
.card-body { padding: 18px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.stat .tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .tile .ic { width: 22px; height: 22px; }
.stat .num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .85rem; font-weight: 600; }
.t-blue { background: var(--primary-soft); color: var(--primary); }
.t-amber { background: var(--orange-soft); color: var(--orange); }
.t-green { background: var(--green-soft); color: var(--green); }
.t-red { background: var(--red-soft); color: var(--red); }

/* forms */
label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 42px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.form-row + .form-row { margin-top: 12px; }
.span-2 { grid-column: span 2; }
@media (max-width: 520px) { .span-2 { grid-column: auto; } }
.stack > * + * { margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  font: 700 .9rem "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; text-decoration: none;
  background: var(--primary); color: var(--primary-ink); border: 1px solid var(--primary); padding: 9px 16px; border-radius: 10px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); }
.btn .ic { width: 18px; height: 18px; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-2); filter: none; }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.lg { min-height: 52px; font-size: 1rem; padding: 12px 22px; width: 100%; }
.link-danger { background: none; border: 0; color: var(--red); font: 600 .85rem inherit; cursor: pointer; padding: 4px; }
.inline { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.row-link { color: var(--text); text-decoration: none; font-weight: 700; }
.row-link:hover { color: var(--primary); }
table input, table select { min-height: 36px; padding: 6px 9px; min-width: 6rem; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 32px; height: 32px; display: block; margin: 0 auto 8px; opacity: .6; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; text-transform: capitalize; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-open { background: var(--primary-soft); color: var(--primary); }
.pill-submitted { background: var(--orange-soft); color: var(--orange); }
.pill-invoiced { background: #efe8fd; color: #6d3fd1; }
.pill-paid { background: var(--green-soft); color: var(--green); }
@media (prefers-color-scheme: dark) { .pill-invoiced { background: #2a1f4a; color: #b9a1ff; } }

/* vehicle header */
.vehicle { display: flex; align-items: center; gap: 14px; }
.vehicle .tile { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--amber); display: grid; place-items: center; flex: none; }
.vehicle .tile .ic { width: 28px; height: 28px; }
.code-chip { font: 800 .95rem ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .08em; background: var(--surface-2); border: 1px dashed var(--line); padding: 6px 10px; border-radius: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 3px 0 0; font-weight: 600; }

/* progress steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--green); }
.steps .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-weight: 800; }
.steps .dot .ic { width: 16px; height: 16px; stroke-width: 3; }
.steps li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.now .dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.steps li.now { color: var(--text); }

/* totals */
.totals { width: 100%; }
.totals td { border: 0; padding: 6px 0; }
.totals .grand td { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.2rem; font-weight: 800; }
.big-total { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }

/* photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photos figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photos figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 10px; font-size: .8rem; color: var(--muted); }
.upload { display: grid; place-items: center; text-align: center; gap: 6px; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); }
.upload .ic { width: 28px; height: 28px; }

/* toast */
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 20px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; border: 1px solid transparent; }
.toast.is-error { background: var(--red-soft); color: var(--red); }

details.more { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .ic { width: 18px; height: 18px; }
details.more[open] summary { margin-bottom: 12px; }

/* job cards */
.job-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.job-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.job-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,27,45,.12); }
.job-card .meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .job-card { transition: none; } .job-card:hover { transform: none; } }

/* ---------- Customer landing ---------- */
.landing { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.landing h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; }
.landing .lead { font-size: 1.05rem; color: var(--muted); max-width: 32rem; margin: 12px 0 22px; }
.code-input { font: 800 1.25rem ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; text-align: center; min-height: 54px; }
.hero-art { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 50px rgba(15,27,45,.25); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk .tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.perk strong { display: block; font-size: .92rem; }
.perk span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .landing { grid-template-columns: 1fr; gap: 24px; } .landing .art { order: -1; } .perks { grid-template-columns: 1fr; } }

/* sign in */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 160px); border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-art { background: var(--navy); color: #c9d3e4; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.auth-art h2 { color: #fff; font-size: 1.5rem; font-weight: 800; }
.auth-art .hero-art { box-shadow: none; }
.auth-form { padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; max-width: 460px; width: 100%; margin: 0 auto; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; min-height: 0; } .auth-art { display: none; } }

/* invoice */
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pay-card { position: sticky; top: 20px; }
.secure { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; margin-top: 12px; justify-content: center; }
.secure .ic { width: 16px; height: 16px; }
.grid-even { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .grid-even { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
@media (prefers-color-scheme: dark) { .vehicle .tile { background: #1f2f4d; } }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }

/* ---------- BayTab button set (matches the supplied button graphics) ---------- */
.btn {
  --b1: #078cff; --b2: #0052c8;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 20px; border-radius: 13px;
  font: 700 .95rem "Plus Jakarta Sans", Arial, Helvetica, sans-serif; letter-spacing: .01em;
  color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: linear-gradient(180deg, var(--b1), var(--b2));
  border: 1.5px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(6,24,48,.25), 0 4px 12px rgba(6,24,48,.14);
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
  transition: filter .12s, transform .06s;
}
.btn::after { /* the thin gloss line across the top */
  content: ""; position: absolute; left: 14px; right: 14px; top: 5px; height: 1.5px;
  background: rgba(255,255,255,.22); border-radius: 2px; pointer-events: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); filter: brightness(.96); }
.btn .ic { width: 22px; height: 22px; stroke-width: 1.8; }
.btn.secondary { --b1: #165475; --b2: #06273f; color: #fff; }      /* Edit / Save / Search */
.btn.secondary:hover { background: linear-gradient(180deg, var(--b1), var(--b2)); filter: brightness(1.12); }
.btn.slate { --b1: #48596b; --b2: #1b2b3d; }                        /* Back / Cancel */
.btn.success { --b1: #16b449; --b2: #086b28; border-color: rgba(255,255,255,.35); }   /* Complete */
.btn.danger { --b1: #ff4848; --b2: #af131e; }                       /* Delete */
.btn.warn { --b1: #ffb900; --b2: #d77700; }                         /* In Progress */
.btn:disabled, .btn.is-disabled { --b1: #6a7888; --b2: #465364; color: #c7d0db; cursor: not-allowed; filter: none; transform: none; text-shadow: none; }
.btn.lg { min-height: 56px; font-size: 1.05rem; border-radius: 15px; width: 100%; }
.btn.lg .ic { width: 26px; height: 26px; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .82rem; border-radius: 10px; gap: 6px; }
.btn.sm .ic { width: 17px; height: 17px; }
.btn.sm::after { top: 4px; left: 10px; right: 10px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* status colors to match: In Progress = amber, Complete/Paid = green */
.pill-open { background: #fff4d6; color: #a15c00; }
.pill-submitted { background: var(--primary-soft); color: var(--primary); }
@media (prefers-color-scheme: dark) { .pill-open { background: #3a2c0c; color: #ffc94d; } }

/* VIN history */
.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history .when { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.history .shopname { color: var(--text); font-weight: 700; }
.history .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.history .chips span { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* "who's signing in" */
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.who-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; text-align: center; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.who-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,27,45,.12); }
.who-tile .avatar { width: 64px; height: 64px; font-size: 1.3rem; }
.who-tile.owner .avatar { background: var(--navy); color: var(--amber); box-shadow: 0 0 0 3px var(--amber); }
.who-tile strong { font-size: .98rem; }
.gate { max-width: 460px; margin: 20px auto; }
.gate .card-body { padding: 30px; }
.gate .mark { width: 52px; height: 52px; margin: 0 auto 12px; }
/* store */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px; position: relative; margin: 0; }
.plan.featured { border: 2px solid var(--primary); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--primary); color: var(--primary-ink); font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan .per { color: var(--muted); font-weight: 600; font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.plan li .ic { color: var(--green); width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.4; }
.keybox { font: 800 clamp(1rem, 3.5vw, 1.45rem) ui-monospace, Menlo, monospace; letter-spacing: .06em; text-align: center; padding: 18px; border: 2px dashed var(--primary); border-radius: 12px; background: var(--primary-soft); color: var(--text); word-break: break-all; }
.center { text-align: center; }
.narrow { max-width: 620px; margin: 0 auto; }
pre.pem { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .78rem; overflow-x: auto; }
/* make sure every variant uses its gradient (overrides the older flat button rules above) */
.btn, .btn.secondary, .btn.slate, .btn.success, .btn.danger, .btn.warn, .btn:disabled, .btn.is-disabled,
.btn.secondary:hover { background: linear-gradient(180deg, var(--b1), var(--b2)); border-color: rgba(255,255,255,.35); }
.btn.secondary, .btn.slate, .btn.success, .btn.danger, .btn.warn { color: #fff; }
.btn:disabled, .btn.is-disabled { color: #c7d0db; opacity: 1; }

/* ---------- BayTab brand images ---------- */
.mark { object-fit: contain; }
.side-brand .mark { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(7,140,255,.35)); }
.hero-art { aspect-ratio: 16 / 9; object-fit: cover; background: #0b1424; }
.auth-art { background: #0b1424 url(/public/brand/loading.jpg) center 20% / cover no-repeat; min-height: 560px; padding: 0; }
.lockup { width: min(260px, 70%); height: auto; display: block; }
.gate .mark { width: 64px; height: 64px; }
/* the left art panel already shows the logo, so only show the lockup when that panel is hidden */
.auth-form .lockup { display: none; }
@media (max-width: 860px) { .auth-form .lockup { display: block; margin: 0 auto 4px; } }
.side-brand .mark.app-icon { width: 40px; height: 40px; border-radius: 10px; filter: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 14px rgba(7,140,255,.35); }

/* ---------- public navigation & customer home ---------- */
.pub-bar { flex-wrap: wrap; }
.pub-nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.pub-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .9rem; text-decoration: none; }
.pub-nav a .ic { width: 18px; height: 18px; }
.pub-nav a:hover { background: var(--surface-2); color: var(--text); }
.pub-nav a[aria-current] { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 760px) {
  .pub-nav { order: 3; flex: 0 0 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
  .pub-nav a { padding: 6px 8px; font-size: .82rem; gap: 5px; }
}
.cust-hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end;
  background: linear-gradient(90deg, rgba(8,14,26,.92) 0%, rgba(8,14,26,.65) 55%, rgba(8,14,26,.25) 100%), #0b1424 url(/public/brand/hero.jpg) right center / cover no-repeat; }
.cust-hero-inner { padding: clamp(24px, 5vw, 48px); max-width: 640px; color: #fff; }
.cust-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); line-height: 1.08; }
.cust-hero p { color: #c9d3e4; font-size: 1.05rem; margin-top: 12px; }
.cust-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: -40px; padding: 0 clamp(0px, 3vw, 28px); position: relative; }
.cust-card { margin: 0; }
.cust-card h2 { font-size: 1.2rem; }
@media (max-width: 860px) { .cust-cards { grid-template-columns: 1fr; margin-top: 16px; padding: 0; } .cust-hero { min-height: 220px; } }
.owner-band { margin-top: 40px; background: linear-gradient(135deg, var(--surface), var(--primary-soft)); }
.owner-band .card-body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; }
.cust-hero { background: linear-gradient(90deg, rgba(8,14,26,.95) 0%, rgba(8,14,26,.75) 50%, rgba(8,14,26,.2) 100%), #0b1424 url(/public/brand/hero.jpg) center 100% / cover no-repeat; }
@media (max-width: 760px) {
  .pub-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 2px; scrollbar-width: none; }
  .pub-nav::-webkit-scrollbar { display: none; }
  .pub-nav a { white-space: nowrap; }
}
@media (max-width: 860px) {
  .cust-hero { background: linear-gradient(0deg, rgba(8,14,26,.94), rgba(8,14,26,.82)), #0b1424 url(/public/brand/hero.jpg) center 100% / cover no-repeat; }
}
.pub-nav .short { display: none; }
@media (max-width: 760px) { .pub-nav .long { display: none; } .pub-nav .short { display: inline; } }
/* PayPal's own colors on its button, so customers recognize it */
.btn.paypal { --b1: #ffd140; --b2: #f5b400; color: #003087; text-shadow: none; }
.btn.paypal::after { background: rgba(255,255,255,.45); }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .9rem; font-weight: 500; margin: 0; }
.consent input { width: 20px; min-height: 20px; height: 20px; margin-top: 1px; flex: none; }

/* No blinking text cursor on plain text (shows up when Chrome's caret browsing, F7, is on); typing boxes keep theirs */
body { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }

/* Filter tabs on the Jobs page, and clickable table rows */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tabs a { padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: .85rem; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.tabs a span { font-size: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.tabs a:hover { color: var(--text); background: var(--surface); }
.tabs a[aria-current] { background: var(--primary); color: var(--primary-ink); }
.tabs a[aria-current] span { background: rgba(255,255,255,.2); border-color: transparent; color: inherit; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.stat { transition: transform .12s, box-shadow .12s; }
a.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,27,45,.12); }
@media (prefers-reduced-motion: reduce) { .stat { transition: none; } a.stat:hover { transform: none; } }

/* profile pictures, vehicle pictures, mileage */
.avatar-img { border-radius: 50%; object-fit: cover; display: block; flex: none; background: var(--surface-2); }
.side-me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: inherit; border-radius: 10px; padding: 4px; margin: -4px; }
.side-me:hover, .side-me[aria-current] { background: var(--navy-2); }
.who-tile .avatar, .who-tile .avatar-img { width: 64px; height: 64px; }
.photo-pick { margin: 2px 0 0; }
.photo-pick input[type=file] { display: none; }
.link-like { color: var(--primary); font-size: .8rem; font-weight: 600; cursor: pointer; margin: 0; text-decoration: underline; }
.vehicle-hero { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.vehicle-hero .pic { width: 220px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); display: grid; place-items: center; }
.vehicle-hero .pic img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-hero .pic .vehicle-art { width: 92%; height: auto; }
@media (max-width: 640px) { .vehicle-hero { grid-template-columns: 1fr; } .vehicle-hero .pic { width: 100%; } }
.miles { font-variant-numeric: tabular-nums; }
td .vehicle { min-width: 190px; }
td select[name="role"] { min-width: 9.5rem; }
.search-bar .card-body { padding: 14px 20px; }

/* ---------- Never wider than the window ---------- */
/* Grid columns may shrink below their content (long VINs and tables used to push the Summary off-screen) */
.grid-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid-2 > *, .grid-even > *, .app-main, .content, .card, .card-body { min-width: 0; }
.facts { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.facts dd, .code-chip, .history .when, td { overflow-wrap: anywhere; }
.is-app { grid-template-columns: 248px minmax(0, 1fr); }
html, body { max-width: 100%; overflow-x: hidden; }
/* Stack the Summary under the work sooner, so nothing gets squeezed */
@media (max-width: 1280px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .pay-card { position: static; }
}
@media (max-width: 1100px) {
  .grid-even { grid-template-columns: minmax(0, 1fr); }
  .is-app { grid-template-columns: 210px minmax(0, 1fr); }
  .side-brand small { display: none; }
  .content { padding: 22px 20px 40px; }
}
/* Vehicle card: picture beside details on wide screens, above them on narrow ones */
@media (max-width: 900px) { .vehicle-hero { grid-template-columns: 1fr; } .vehicle-hero .pic { width: 100%; max-width: 420px; } }
.facts .fact-wide { grid-column: span 2; }
.facts dd.nowrap { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 520px) { .facts .fact-wide { grid-column: auto; } .facts dd.nowrap { white-space: normal; overflow-wrap: anywhere; } }
.danger-zone { border-top-color: var(--red-soft); }
.danger-zone summary { color: var(--red); }


/* ============================================================
   BayTab / Midnight Garage Design System
   Visual-only upgrade layered over the original application.
   All routes, form actions and permission checks remain intact.
   ============================================================ */
:root {
  --bg:#070f1e;--surface:#111f34;--surface-2:#172943;
  --navy:#061122;--navy-2:#142d50;
  --text:#f1f7ff;--muted:#a1b5d0;--line:#2a4160;
  --primary:#55b3ff;--primary-ink:#061525;--primary-soft:#12345d;
  --amber:#ffbd54;--green:#63dfad;--green-soft:#0e3d37;
  --orange:#ffca73;--orange-soft:#44301b;
  --red:#ff8e99;--red-soft:#45212e;
  --shadow:0 16px 45px rgba(0,5,17,.21),0 2px 10px rgba(0,5,17,.15);
  --radius:18px;color-scheme:dark;
}
body {background:radial-gradient(ellipse 72% 31% at 54% -8%,#18345a 0%,transparent 88%),var(--bg);color:var(--text);}
.is-app {background:radial-gradient(ellipse 85% 30% at 93% -10%,#1b3563 0%,transparent 83%),#081325;}
.content {max-width:1480px;padding:32px clamp(18px,3.4vw,48px) 64px;}
a {color:#75c4ff;}
a:hover {color:#a8e1ff;}
h1,h2,h3 {letter-spacing:-.035em;}
h1 {font-size:clamp(1.8rem,2.5vw,2.5rem);}
h2 {font-weight:800;}
.side {background:linear-gradient(180deg,#0b1b30 0%,#071224 50%,#07101e 100%);border-right:1px solid #244365;box-shadow:8px 0 34px #030b1833;padding:24px 13px 16px;z-index:5;}
.side-brand {padding:4px 10px 26px;border-bottom:1px solid #1b3552;margin-bottom:22px;gap:13px;}
.side-brand strong{font-size:1.22rem;font-weight:800;letter-spacing:-.045em;}
.side-brand small {color:#9bb4ce;}
.side-brand .mark.app-icon {width:46px;height:46px;border-radius:14px;box-shadow:0 0 0 1px #3c8de053,0 5px 21px #0866ff31;}
.side-nav {gap:5px;}
.side-nav a {border:1px solid transparent;padding:12px 14px;font-size:.89rem;color:#a4bad4;border-radius:12px;transition:background .16s,color .16s,border-color .16s;}
.side-nav a .ic{width:21px;height:21px;color:#7c9cbe;}
.side-nav a:hover{background:#163354;color:#fff;border-color:#264b74;}
.side-nav a[aria-current]{background:linear-gradient(115deg,#153d76,#0b2b55);color:#f8fdff;border-color:#387bcd;box-shadow:inset 3px 0 0 #53c5ff,0 4px 22px #0765ff15;}
.side-nav a[aria-current] .ic {color:#65ceff;}
.side-user{border-top:1px solid #244365;margin-top:16px;padding-top:19px;}
.side-user .avatar {background:linear-gradient(145deg,#329ff8,#1b4b9d);color:#fff;}
.side-me:hover{background:#173152;}
.pub-bar{background:rgba(10,22,40,.97);border-bottom:1px solid #304b6d;backdrop-filter:blur(15px);min-height:78px;}
.pub-brand{color:#f1f8ff;}
.pub-main {max-width:1330px;padding-top:33px;}
.pub-nav a{color:#a8bfda;}
.pub-nav a:hover{background:#173c64;color:#fff;}
.pub-nav a[aria-current]{background:#153e66;color:#9ddcff;}
.pub-brand .mark{filter:drop-shadow(0 0 12px #0678ff60);}
.card,.job-card,.stat,.who-tile {background:linear-gradient(145deg,#14243a 0%,#101d30 100%);border:1px solid #2a4160;box-shadow:var(--shadow);}
.card {overflow:clip;}
.card-head{background:linear-gradient(90deg,#182c47,#111f36);padding:18px 22px;min-height:72px;}
.card-head .badge-ic {width:43px;height:43px;background:linear-gradient(145deg,#1b5fa8,#10315c);color:#84d6ff;border:1px solid #3c7ec3;box-shadow:inset 0 1px 0 #ffffff26;}
.card-head .badge-ic .ic {width:22px;height:22px;}
.card-body{padding:24px;}
.card-foot{background:#0c1a2c;}
.card:hover{border-color:#345376;}
label{color:#bed0e6;font-size:.82rem;}
input,select,textarea{background:#0c192c;color:#eef6ff;border:1px solid #385477;border-radius:12px;min-height:49px;}
input::placeholder,textarea::placeholder{color:#7896b9;}
input:focus,select:focus,textarea:focus{border-color:#45acff;box-shadow:0 0 0 3px #168cf929;}
input[type='checkbox'],input[type='radio']{accent-color:#148dff;min-height:0;}
.btn,.btn.secondary,.btn.slate,.btn.success,.btn.danger,.btn.warn,.btn:disabled,.btn.is-disabled,.btn.secondary:hover {background:linear-gradient(135deg,var(--b1),var(--b2));border-color:#75bbff66;box-shadow:inset 0 1px 0 #ffffff35,0 8px 18px #0069ef25;min-height:46px;color:white;text-shadow:none;}
.btn {--b1:#169eff;--b2:#0863dc;}
.btn.secondary{--b1:#21486c;--b2:#123252;border-color:#426789;box-shadow:inset 0 1px 0 #ffffff15;}
.btn.slate{--b1:#2d405e;--b2:#1c2d47;box-shadow:none;}
.btn.success{--b1:#12b88f;--b2:#087a66;border-color:#3cdcc099;}
.btn.danger{--b1:#c44865;--b2:#892b47;}
.btn.warn{--b1:#da982c;--b2:#a56616;}
.btn:disabled,.btn.is-disabled{--b1:#657487;--b2:#445166;opacity:.7;box-shadow:none;}
.btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.1);box-shadow:0 12px 22px #0069ef28,inset 0 1px 0 #ffffff35;}
.btn:active:not(:disabled){transform:translateY(1px);}
.btn.secondary:hover{background:linear-gradient(135deg,#295b88,#173956);}
.btn.lg{min-height:55px;}
.stats{gap:18px;margin-bottom:26px;grid-template-columns:repeat(4,minmax(0,1fr));}
.stat{min-height:120px;padding:20px;position:relative;overflow:hidden;transition:transform .2s,border-color .2s;}
.stat:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:5px;background:#369dff;}
.stat:nth-child(2):before{background:#f8c166;}.stat:nth-child(3):before{background:#fc7f99;}.stat:nth-child(4):before{background:#5adfb5;}
.stat:after{content:"";position:absolute;width:100px;height:100px;right:-55px;top:-65px;border:25px solid #4ba5ff12;border-radius:100%;}
.stat .tile{background:linear-gradient(145deg,#194979,#102f55);border:1px solid #357ab577;width:52px;height:52px;color:#7bd4ff;}
.stat .num{font-size:clamp(1.4rem,2vw,1.85rem);letter-spacing:-.05em;}
.stat .lbl{color:#9fb9d5;}
.stat:hover{border-color:#4b94d6;transform:translateY(-3px);}
.t-blue{background:#173f71;color:#79cbff;}.t-amber{background:#3d311d;color:#ffd481;}.t-green{background:#143f37;color:#6decc0;}.t-red{background:#432631;color:#ffa9b5;}
.vehicle .tile{background:linear-gradient(135deg,#174e88,#0a2446);color:#8fdcff;border:1px solid #3383c880;}
.table-wrap{scrollbar-color:#37608c #0f2038;}
th{background:#172b46;color:#9cbadb;padding-top:14px;padding-bottom:14px;border-bottom-color:#355073;font-size:.73rem;letter-spacing:.1em;}
td{padding-top:15px;padding-bottom:15px;border-bottom-color:#253d59;}
tr.clickable:hover td{background:#163557;}
tr:nth-child(even) td{background:#10243a66;}
.pill-open{background:#45331b;color:#ffcf73;}.pill-submitted{background:#153b65;color:#87ccff;}
.pill-invoiced{background:#312651;color:#c4acff;}.pill-paid{background:#0e3b35;color:#72e8bd;}
.tabs{background:#10233c;}.tabs a[aria-current]{background:#1466b7;color:#fff;}
.steps li.done .dot{background:#17a983;border-color:#17a983;}
.avatar{background:linear-gradient(135deg,#1d75c8,#123e75);color:#effaff;}
.who-tile{border-radius:20px;padding:25px 12px;}.who-tile:hover{border-color:#4ba6e9;transform:translateY(-4px);}
.who-tile.owner .avatar{background:#123b6b;color:#a7e7ff;box-shadow:0 0 0 3px #51b6ff;}
.job-card{border-radius:19px;min-height:180px;}.job-card:hover{border-color:#3d98e8;}
.upload{border-color:#4675a6;background:#0f2741;}
.empty{color:#a2bdd7;}
.empty .ic{color:#66bfff;opacity:.9;}
/* Decorative page art is truly responsive; form content remains live HTML */
.visual-head{position:relative;isolation:isolate;min-height:180px;padding:clamp(22px,3vw,34px);border-radius:22px;border:1px solid #386093;overflow:hidden;margin-bottom:24px;align-items:center;box-shadow:inset 0 1px 0 #ffffff17,0 15px 33px #020d2180;background:radial-gradient(ellipse 60% 140% at 80% 50%,#234b7b 0%,transparent 70%),linear-gradient(115deg,#132b4b,#0a1b30);}
.visual-head>div,.visual-head>.actions,.visual-head>.btn{z-index:2;position:relative;}
.visual-head:after{content:"";position:absolute;z-index:0;inset:0;background-image:linear-gradient(90deg,#0d2444 0%,#0d2444ed 37%,#0d244451 74%,#0d244410 100%),url('/public/graphics/workshop-banner.svg');background-size:cover,auto 100%;background-repeat:no-repeat;background-position:center,right center;opacity:.9;pointer-events:none;}
.visual-head.visual-parts:after{background-image:linear-gradient(90deg,#0d2444 0%,#0d2444ed 39%,#0d244457 70%,#0d244425 100%),url('/public/brand/parts-banner.jpg');}
.visual-head.visual-jobs:after{background-image:linear-gradient(90deg,#0d2444 0%,#0d2444ed 37%,#0d24445e 70%,#0d244420 100%),url('/public/graphics/work-order.svg');}
.visual-head.visual-customers:after,.visual-head.visual-team:after{background-image:linear-gradient(90deg,#0d2444 0%,#0d2444ed 42%,#0d244451 80%),url('/public/graphics/customer-journey.svg');}
.visual-head.visual-settings:after{background-image:linear-gradient(90deg,#0d2444 0%,#0d2444ed 40%,#0d24444a 80%),url('/public/graphics/shop-operations.svg');}
.visual-head h1{color:#fff;font-size:clamp(1.85rem,2.8vw,2.65rem);text-shadow:0 3px 12px #0006;margin:8px 0;}
.visual-head p{color:#c4d9ed;max-width:510px;font-size:.95rem;}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:.69rem;letter-spacing:.19em;color:#72d4ff;}
.eyebrow-dot,.pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:#53e9ba;box-shadow:0 0 0 4px #53e9ba1e,0 0 18px #53e9ba6c;flex:none;}
.text-shine{background:linear-gradient(100deg,#a6e5ff,#52b8ff 48%,#74e0ee);-webkit-background-clip:text;background-clip:text;color:transparent;}
.quick-links{display:flex;flex-wrap:wrap;gap:12px;margin:-3px 0 26px;}
.quick-links a{display:flex;align-items:center;gap:11px;padding:11px 15px;color:#cce5fa;border-radius:12px;border:1px solid #2d527a;background:#102845;text-decoration:none;font-weight:700;font-size:.85rem;}
.quick-links a>.ic:first-child{color:#65c8ff;width:18px;height:18px;}.quick-links a>.ic:last-child{width:14px;height:14px;margin-left:8px;opacity:.75;}
.quick-links a:hover{background:#1a426e;border-color:#4f9ad6;color:#fff;}
/* Customer-facing service portal */
.cust-hero{min-height:410px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:stretch;background:radial-gradient(ellipse at 66% 44%,#1a5289 0%,transparent 57%),linear-gradient(135deg,#112d4d,#081626 78%);border:1px solid #356395;border-radius:24px;box-shadow:var(--shadow);}
.cust-hero-inner{align-self:center;padding:clamp(30px,5vw,62px);max-width:none;position:relative;z-index:2;}
.cust-hero h1{font-size:clamp(2.2rem,4.4vw,4.1rem);line-height:1.06;letter-spacing:-.055em;margin:20px 0;}
.cust-hero p{max-width:510px;font-size:1.02rem;color:#bcd2e8;}
.cust-hero-visual{position:relative;display:grid;align-items:center;overflow:hidden;}
.cust-hero-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#102946 0%,transparent 27%,transparent 100%);z-index:1;pointer-events:none;}
.cust-hero-visual img{width:115%;height:100%;object-fit:cover;object-position:center;}
.hero-trust{display:flex;gap:20px;flex-wrap:wrap;color:#bfe4f8;font-weight:700;font-size:.78rem;margin-top:25px;}
.hero-trust span{display:flex;align-items:center;gap:7px;}.hero-trust .ic{color:#63eab8;width:16px;height:16px;}
.section-intro{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:34px 0 20px;}
.section-intro h2{font-size:clamp(1.25rem,2vw,1.75rem);margin-top:7px;}
.cust-cards{margin-top:0;padding:0;gap:20px;}
.cust-card{border-radius:19px;border:1px solid #35547a;position:relative;}
.cust-card:before{content:"";height:3px;position:absolute;top:0;left:20px;right:20px;background:linear-gradient(90deg,#1d9aff,#53cbff,transparent);border-radius:3px;}
.cust-card .card-body{padding:clamp(22px,3vw,32px);}
.cust-card h2{font-size:1.26rem;}
.cust-card .tile{background:linear-gradient(145deg,#1a5ca0,#12355b);color:#95d8ff;}
.cust-card label{font-size:.82rem;}
.cust-card .code-input{font-size:clamp(1rem,1.8vw,1.3rem);border-color:#3d6387;background:#091c30;}
.perks{padding:20px 0;}
.perk{background:#13253bc9;border:1px solid #2f4c6b;border-radius:15px;padding:17px;}
.perk .tile{background:#184779;color:#79cfff;border:1px solid #396c9c;}
.perk strong{color:#ecf6ff;}
.perk span{color:#a7bed8;}
.owner-band{background:linear-gradient(110deg,#163a60,#12253c);border:1px solid #34608c;margin-top:30px;}
.owner-band .card-body{padding:27px;}
/* Shop owner's marketing landing */
.landing{position:relative;gap:24px;padding:clamp(28px,4vw,54px);background:radial-gradient(ellipse 50% 80% at 90% 50%,#214777 0%,transparent 90%),linear-gradient(135deg,#102a49,#081727);border:1px solid #2e567d;border-radius:26px;overflow:hidden;}
.landing h1{font-size:clamp(2.3rem,4.8vw,4.2rem);letter-spacing:-.055em;line-height:1.05;margin:16px 0;}
.landing .lead{color:#aecae4;font-size:1.04rem;line-height:1.7;}
.landing .actions .btn{width:auto;min-width:185px;}
.marketing-proof{display:flex;gap:17px;flex-wrap:wrap;margin-top:21px;font-size:.8rem;color:#b6d7ed;font-weight:700;}
.marketing-proof span{display:flex;gap:6px;align-items:center;}.marketing-proof .ic{color:#63eab8;width:16px;height:16px;}
.showcase-frame{position:relative;overflow:hidden;border-radius:21px;border:1px solid #4a7fae;box-shadow:0 27px 55px #020d2280;}
.showcase-frame .hero-art{width:100%;height:100%;aspect-ratio:850/570;border-radius:0;box-shadow:none;object-fit:cover;display:block;}
.showcase-caption{position:absolute;left:15px;bottom:14px;padding:10px 15px;border:1px solid #4d86bd;border-radius:10px;background:#081d35e8;backdrop-filter:blur(6px);font-size:.66rem;letter-spacing:.15em;color:#d8efff;font-weight:800;display:flex;align-items:center;gap:10px;}
.plan{background:linear-gradient(165deg,#182d49,#101e33);border:1px solid #345272;}
.plan.featured{border:2px solid #44aafb;box-shadow:0 17px 50px #005bd629;}
.plan.featured:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#036fff,#59d8ff);}
.plan .tag{background:#0a7ff0;color:white;}
.plan .price{color:#f4fbff;}
.plan li .ic{color:#60e3b8;}
/* Login artwork is included in the website, not just a mockup */
.auth{background:#0e1c31;border-color:#355073;}
.auth-art{background:linear-gradient(180deg,#0a2039c7,#061323c7),url('/public/graphics/shop-operations.svg') center center/cover no-repeat;min-height:570px;align-items:flex-start;justify-content:flex-end;}
.auth-art-caption{position:relative;max-width:350px;font-size:.7rem;font-weight:800;letter-spacing:.15em;color:#8edcff;text-shadow:0 2px 9px #0007;}
.auth-art-caption strong{display:block;color:white;font-size:1.42rem;letter-spacing:-.045em;line-height:1.2;margin-top:8px;}
.auth-form{max-width:500px;}
.auth-form .lockup{display:block;margin:0 auto 6px;max-height:135px;object-fit:contain;}
/* Inventory tables, secondary views, saved vehicle illustrations */
.vehicle-hero .pic{background:linear-gradient(155deg,#14385b,#091727);border-color:#34648e;}
.vehicle-hero .pic .vehicle-art{filter:drop-shadow(0 12px 10px #0008);}
.invoice-banner{margin-bottom:24px;}
.empty-illustrated{padding:25px 20px 40px;}.empty-illustrated img{display:block;max-width:min(360px,100%);width:100%;height:auto;margin:0 auto 5px;}.empty-illustrated h2{font-size:1.25rem;color:#e7f8ff;}.empty-illustrated p{max-width:490px;margin:10px auto;}
@media (max-width:1100px) {.stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:860px) {
 .content{padding:18px 16px 44px;}
 .side{padding:10px 12px;border-right:0;border-bottom:1px solid #2a4a72;}
 .side-brand{padding:0;margin:0;border:0;}.side-brand .mark.app-icon{width:39px;height:39px;}
 .side-nav{gap:4px;}.side-nav a{padding:9px 12px;}.side-nav a[aria-current]{box-shadow:inset 0 -3px 0 #53c5ff;}
 .visual-head{min-height:160px;padding:25px 22px;}
 .visual-head:after{background-size:cover,auto 100%;background-position:center,right center;opacity:.65;}
 .landing{grid-template-columns:1fr;}.landing .art{order:0;max-width:650px;}
 .auth-art{display:none;}.auth-form .lockup{display:block;}
 .cust-hero{grid-template-columns:1fr;}
 .cust-hero-inner{padding:30px;}
 .cust-hero-visual{height:190px;}.cust-hero-visual img{width:100%;object-position:center 56%;}
 .cust-hero-visual:before{background:linear-gradient(180deg,#102946,transparent 50%);}
 .section-intro{margin:28px 0 17px;}
 .perks{padding:12px 0;}
}
@media (max-width:600px) {
 .stats{grid-template-columns:1fr 1fr;gap:10px;}.stat{padding:12px;min-height:110px;gap:9px;}.stat .tile{width:39px;height:39px;}.stat .tile .ic{width:20px;height:20px;}.stat .num{font-size:1.25rem;}
 .visual-head:after{opacity:.38;}.visual-head h1{font-size:1.9rem;}
 .cust-hero-inner{padding:28px 22px;}.cust-hero h1{font-size:2.4rem;}
 .section-intro{flex-direction:column;align-items:flex-start;gap:4px;}
 .landing{padding:25px 20px;}.landing h1{font-size:2.45rem;}
 .landing .actions .btn{min-width:0;width:100%;}
 .quick-links{gap:8px;}.quick-links a{flex:1;justify-content:center;padding:9px;font-size:.73rem;gap:5px;white-space:nowrap;}.quick-links a>.ic:last-child{display:none;}
}
@media(prefers-reduced-motion:reduce){.btn,.job-card,.stat,.who-tile{transition:none!important;}}

.table-empty-art {display:block;width:min(205px,75%);height:auto;max-height:112px;margin:0 auto 10px;object-fit:contain;}
/* GPS road tests */
.drive-screen { max-width: 520px; margin: 10px auto; }
.drive-dot { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 0; background: var(--line); position: relative; }
.drive-dot.ok { background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.8s infinite; }
.drive-dot.warn { background: var(--amber); }
.drive-dot.bad { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 22px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .drive-dot.ok { animation: none; } }
.drive-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.drive-stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; }
.drive-stats span { display: block; font-size: 1.6rem; font-weight: 800; }
.drive-stats small { color: var(--muted); font-weight: 600; }
.car-pin span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #1f6fff; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.start-pin span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; }
.chip-line { display: inline-block; margin: 4px 8px 0 0; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.pair-code { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--primary-soft); border: 1px dashed var(--primary); }
.pair-code strong { font: 800 2rem ui-monospace, Menlo, monospace; letter-spacing: .18em; color: var(--text); }
/* Location tab */
.loc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.loc-map #map { height: min(70vh, 640px); }
.loc-items { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; }
.loc-items li a { display: grid; gap: 4px; padding: 12px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.loc-items li a:hover { background: var(--surface-2); }
.loc-items li .pill { justify-self: start; }
.loc-items .empty { padding: 18px; }
.car-pin.stale span { background: var(--muted) !important; }
@media (max-width: 1100px) { .loc-layout { grid-template-columns: minmax(0, 1fr); } .loc-map #map { height: 55vh; } }
