:root {
  --navy-950: #04142d;
  --navy-900: #071b3b;
  --navy-800: #0b2b59;
  --blue-600: #0787df;
  --blue-500: #0797f2;
  --blue-100: #dff2ff;
  --mist: #eef5fa;
  --paper: #f7f9fc;
  --white: #ffffff;
  --ink: #07152e;
  --muted: #53627a;
  --line: #d7e0ea;
  --success: #087b54;
  --warning: #9a5b00;
  --danger: #b42335;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  color: var(--ink);
  font-family: Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--navy-900) 0 280px, var(--paper) 280px 100%);
  color: var(--white);
}

body, button, input, select, textarea { font: inherit; }
button, input, select, textarea { font-size: 1rem; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; }
img, svg { display: block; }

::selection { background: var(--blue-100); color: var(--navy-950); }
* { scrollbar-color: var(--blue-600) var(--mist); scrollbar-width: thin; }

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
main h1[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy-950);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.app-shell { min-height: 100vh; }
.boot-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}
.boot-screen img { width: min(78vw, 340px); height: auto; }
.boot-screen p { max-width: 32ch; margin: 0; color: var(--blue-100); font-weight: 600; line-height: 1.45; }
.boot-progress { position: relative; width: 52px; height: 8px; border-bottom: 2px solid rgba(223, 242, 255, .38); }
.boot-progress::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue-500);
  animation: boot-route 1.2s cubic-bezier(.19, 1, .22, 1) infinite alternate;
}
@keyframes boot-route { to { transform: translateX(45px); } }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--navy-900) 94%, transparent);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}
.brand img { width: clamp(166px, 19vw, 204px); height: auto; max-height: 50px; object-fit: contain; }
.topbar-actions { display: flex; gap: 8px; }

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}
.icon-button svg, .nav-link svg, .button svg { width: 22px; height: 22px; }
.page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 18px calc(104px + env(safe-area-inset-bottom));
}

.route-hero {
  min-height: 230px;
  display: grid;
  align-content: center;
  gap: 22px;
  color: var(--white);
  padding: 26px 2px 34px;
}

.route-hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.route-hero p { margin: 10px 0 0; max-width: 52ch; color: #c8daef; font-size: 1.06rem; }

.route-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  max-width: 600px;
}
.route-line::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #5c7190;
}
.route-stop { position: relative; z-index: 1; display: grid; gap: 7px; color: #b8c8da; font-size: .82rem; }
.route-stop:nth-child(2) { justify-items: center; }
.route-stop:nth-child(3) { justify-items: end; }
.route-stop b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  border: 2px solid #7790ae;
  border-radius: 8px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.route-stop.active { color: var(--white); font-weight: 700; }
.route-stop.active b { background: var(--blue-500); border-color: var(--blue-500); }

.workspace {
  min-height: 400px;
  padding: 22px 18px 34px;
  margin-inline: -18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
}

.section-block + .section-block { margin-top: 34px; }
.section-heading {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}
.section-heading .number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.section-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.section-heading p { margin: 3px 0 0; color: var(--muted); }
.text-action { border: 0; background: none; color: var(--blue-600); font-weight: 700; padding: 8px 0; }

.choice-list { display: grid; gap: 10px; }
.service-option {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service-option.selected { border: 2px solid var(--blue-500); background: #f2faff; }
.choice {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.choice.selected { border: 2px solid var(--blue-500); padding: 15px; background: #f2faff; }
.choice.service-choice { grid-template-columns: auto 1fr auto auto; border: 0; border-radius: 0; }
.service-option.selected .choice.service-choice { padding: 15px; background: #f2faff; }
.choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy-900);
}
.choice-icon svg { width: 34px; height: 34px; }
.choice-copy { min-width: 0; }
.choice-copy strong { display: block; font-size: 1.05rem; }
.choice-copy small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.choice-price { font-size: 1.15rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.selection-mark { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #7e8da1; border-radius: 7px; }
.selection-mark svg { width: 15px; height: 15px; }
.selected .selection-mark { color: var(--white); border-color: var(--blue-600); background: var(--blue-600); }
.service-disclosure { border-top: 1px solid var(--line); }
.service-disclosure > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--blue-600);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}
.service-disclosure > summary:hover { background: var(--mist); }
.service-disclosure[open] > summary { background: var(--mist); }
.service-disclosure-open { display: none; }
.service-disclosure[open] .service-disclosure-closed { display: none; }
.service-disclosure[open] .service-disclosure-open { display: inline; }
.service-disclosure-mark {
  width: 9px;
  height: 9px;
  margin-inline-start: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease-out;
}
.service-disclosure[open] .service-disclosure-mark { transform: rotate(225deg); }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 16px; }
.service-detail-grid section { min-width: 0; }
.service-detail-grid section + section { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.service-detail-grid h3 { margin: 0; font-size: 1rem; }
.service-detail-grid p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.service-detail-grid small { display: block; margin-top: 8px; color: var(--muted); }
.business-hours { margin: 12px 0 0; }
.business-hours > div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.business-hours > div:last-child { border-bottom: 0; }
.business-hours dt { color: var(--muted); }
.business-hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.service-contact { display: inline-flex; margin-top: 10px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  font-weight: 800;
  text-decoration: none;
}
.button-primary { color: var(--white); background: var(--blue-600); }
.button-primary:hover { background: #056fbd; }
.button-secondary { color: var(--navy-900); background: var(--white); border: 1px solid var(--line); }
.button-danger { color: var(--danger); background: #fff1f3; }
.button:disabled { cursor: not-allowed; background: #c9d1db; color: #687588; }
.button-wide { width: 100%; margin-top: 22px; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.nav-link {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 2px;
  color: #627188;
  text-decoration: none;
  font-size: .75rem;
  border-bottom: 3px solid transparent;
}
.nav-link.active { color: var(--blue-600); border-color: var(--blue-500); font-weight: 700; }

.page-heading { color: var(--white); padding: 38px 2px 44px; }
.page-heading p { margin: 10px 0 0; color: #c8daef; max-width: 60ch; }
.page-back-link { width: max-content; display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 -14px; padding: 9px 12px 9px 8px; color: var(--white); border-radius: 10px; text-decoration: none; font-weight: 750; }
.page-back-link:hover { background: rgba(255, 255, 255, .1); }
.page-back-link svg { width: 20px; height: 20px; transform: rotate(180deg); }
.content-sheet {
  min-height: 500px;
  margin-inline: -18px;
  padding: 24px 18px 40px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px 18px 104px;
  color: #52647a;
  font-size: .82rem;
  text-align: center;
}
.site-footer a { color: inherit; }
.legal-content { line-height: 1.65; }
.legal-content h2 { margin: 28px 0 8px; font-size: 1.15rem; }
.legal-content p { margin: 0; color: var(--muted); }
.legal-content a { color: var(--blue-600); }
.legal-updated { font-size: .9rem; }

.stack { display: grid; gap: 14px; }
.panel {
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
}
.panel h2, .panel h3 { margin: 0; }
.panel p { color: var(--muted); }
.vehicle-register > p { max-width: 65ch; margin: 8px 0 22px; }
.vehicle-register .form { gap: 10px; }
.vehicle-register .field { margin-top: 10px; }
.vehicle-register .field small { color: var(--muted); font-size: .9rem; font-weight: 500; }
.vehicle-identification { gap: 12px; }
.vehicle-identification [hidden], .field-help[hidden] { display: none !important; }
.field-help { margin: -2px 0 4px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.field-help-success { color: var(--success); font-weight: 700; }
.field-help-error { color: var(--danger); font-weight: 700; }
.space-top { margin-top: 24px; }
.result-panel { margin-top: 18px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.meta { color: var(--muted); font-size: .9rem; }
.money { font-weight: 800; font-variant-numeric: tabular-nums; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.status::before { content: ""; width: 9px; height: 9px; background: currentColor; border-radius: 2px; }
.status-paid, .status-available, .status-used, .status-completed { color: var(--success); }
.status-pending_payment { color: var(--warning); }
.status-cancelled, .status-expired, .status-refunded { color: var(--danger); text-decoration: line-through; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field span { font-size: .9rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #acb9c8;
  border-radius: 10px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-600); }
.field select { cursor: pointer; }
.field select:disabled { color: var(--muted); background: var(--mist); cursor: not-allowed; }
.form-note { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.form-error { color: var(--danger); min-height: 1.25em; margin: 0; }

.auth-layout {
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: center;
  padding: 34px 0 70px;
}
.auth-card { width: min(100%, 480px); margin: 0 auto; padding: 24px; color: var(--ink); background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); }
.auth-confirmation-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; color: var(--white); background: var(--blue-600); border-radius: 14px; }
.auth-confirmation-icon svg { width: 28px; height: 28px; }
.auth-provider-button { width: 100%; color: var(--navy-900); background: var(--white); border: 1px solid #acb9c8; }
.auth-provider-button:hover { background: var(--mist); border-color: var(--blue-600); }
.auth-provider-button svg { color: var(--blue-600); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .9rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-divider span { white-space: nowrap; }
.auth-provider-note { margin-top: 14px; }
.auth-switch { margin: 20px 0 0; text-align: center; }
.auth-recovery-link { display: inline-block; margin-top: 20px; }

.empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 26px 4px;
  max-width: 54ch;
}
.empty-state svg { width: 44px; height: 44px; color: var(--blue-600); }
.empty-state h2 { margin: 0; }
.empty-state p { margin: 0 0 8px; color: var(--muted); line-height: 1.55; }

.voucher-code {
  display: block;
  margin: 12px 0;
  font-size: clamp(1.4rem, 8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: .09em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.voucher-pass {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.voucher-qr-frame {
  width: min(100%, 256px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.voucher-qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.voucher-qr-loading { color: var(--muted); font-weight: 700; }
.voucher-pass-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; min-width: 0; }
.voucher-pass-copy .voucher-code { margin: 0; }
.button-quiet { min-height: 44px; padding: 0; color: var(--blue-600); background: transparent; }
.button-quiet:hover { color: var(--navy-900); text-decoration: underline; text-underline-offset: 4px; }
.voucher-pass-inactive { opacity: .72; }
.operation-banner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 12px;
}
.operation-banner span { color: #c8daef; }

.scanner-panel { padding: 4px 0 24px; border-bottom: 1px solid var(--line); }
.scanner-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.scanner-heading h2 { margin: 0; }
.scanner-heading p { max-width: 48ch; margin: 5px 0 0; color: var(--muted); }
.scanner-start { flex: 0 0 auto; }
.scanner-viewport {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 4 / 3;
  margin-top: 18px;
  overflow: hidden;
  background: var(--navy-950);
  border-radius: var(--radius);
}
.scanner-viewport[hidden] { display: none; }
.scanner-viewport video { width: 100%; height: 100%; object-fit: cover; }
.scanner-guide {
  position: absolute;
  inset: 18%;
  border: 2px solid var(--white);
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(4, 20, 45, .42);
}
.scanner-close { position: absolute; top: 12px; right: 12px; color: var(--white); background: rgba(4, 20, 45, .78); }
.scanner-status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); }
.method-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.method-divider::before, .method-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.admin-toolbar span { color: var(--muted); font-size: .9rem; }
.admin-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  color: var(--white);
  background: var(--navy-900);
  border-radius: var(--radius);
}
.admin-summary > div { min-width: 0; padding: 18px; border-inline-end: 1px solid rgba(255, 255, 255, .16); }
.admin-summary > div:last-child { border-inline-end: 0; }
.admin-summary dt { color: var(--water-blue-soft); font-size: .9rem; font-weight: 700; }
.admin-summary dd { margin: 8px 0 0; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.admin-section { margin-top: 34px; }
.admin-section .section-heading { grid-template-columns: 1fr auto; }
.admin-count { color: var(--muted); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.admin-editor-list { margin-top: 16px; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.admin-editor-row { display: grid; align-items: end; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.admin-editor-row:last-child { border-bottom: 0; }
.admin-unit-editor { grid-template-columns: minmax(190px, 1.3fr) minmax(180px, 1fr) auto auto; }
.admin-service-editor { grid-template-columns: minmax(170px, 1.25fr) repeat(3, minmax(104px, .7fr)) auto auto; }
.admin-editor-identity { align-self: center; min-width: 0; }
.admin-editor-identity strong, .admin-editor-identity small { display: block; }
.admin-editor-identity small { margin-top: 4px; color: var(--muted); }
.field-compact { gap: 5px; }
.field-compact input { min-height: 44px; }
.toggle-field { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: .9rem; font-weight: 700; cursor: pointer; }
.toggle-field input { width: 20px; height: 20px; accent-color: var(--blue-600); }
.button-compact { min-height: 44px; padding-inline: 16px; }
.admin-editor-row .form-error { grid-column: 1 / -1; min-height: 0; }
.admin-editor-row .form-error:empty { display: none; }
.admin-editor-group { margin-top: 12px; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.admin-editor-group summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; cursor: pointer; }
.admin-editor-group summary:hover { background: var(--mist); }
.admin-editor-group summary strong, .admin-editor-group summary small { display: block; }
.admin-editor-group summary small { margin-top: 3px; color: var(--muted); }
.admin-editor-group[open] summary { border-bottom: 1px solid var(--line); }
.admin-editor-group .admin-editor-list { margin-top: 0; border-radius: 0; box-shadow: none; }
.admin-membership-form { display: grid; grid-template-columns: 1.2fr 1fr .8fr auto auto; align-items: end; gap: 12px; margin-top: 16px; padding: 18px; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.admin-membership-form .form-error { grid-column: 1 / -1; min-height: 0; }
.admin-membership-form .form-error:empty { display: none; }
.settlement-permission-form { display: flex; align-items: center; gap: 8px; min-width: 236px; }
.settlement-permission-form .toggle-field { white-space: nowrap; }
.settlement-permission-form .form-error { flex-basis: 100%; min-height: 0; }
.settlement-permission-form .form-error:empty { display: none; }
.manager-command-deck { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 14px; }
.manager-operation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px; color: var(--white); background: var(--navy-900); border-radius: var(--radius); }
.manager-operation h2 { margin: 0; color: var(--white); }
.manager-operation p { max-width: 58ch; margin: 5px 0 0; color: var(--water-blue-soft); }
.manager-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.manager-overview > div { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 14px; border-inline-end: 1px solid var(--line); }
.manager-overview > div:last-child { border-inline-end: 0; }
.manager-overview dt { color: var(--muted); font-size: .9rem; font-weight: 700; line-height: 1.25; }
.manager-overview dd { margin: 0; color: var(--navy-900); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.manager-overview .has-pending dd { color: var(--warning); }
.manager-secondary-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 16px 18px; color: var(--navy-900); background: var(--blue-100); border-radius: var(--radius); }
.manager-secondary-action p { margin: 4px 0 0; color: var(--muted); }
.manager-team-section .section-heading { margin-bottom: 16px; }
.manager-create-form { max-width: 760px; padding: 18px; }
.manager-create-panel { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.manager-create-panel > summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; cursor: pointer; }
.manager-create-panel > summary:hover { background: var(--mist); }
.manager-create-panel > summary strong, .manager-create-panel > summary small { display: block; }
.manager-create-panel > summary small { margin-top: 4px; color: var(--muted); }
.manager-create-panel[open] > summary { border-bottom: 1px solid var(--line); }
.summary-action { color: var(--blue-600); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team-unit-list { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft, #f7f9fc); }
.team-list { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.team-member + .team-member { border-top: 1px solid var(--line); }
.team-member-header { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr); align-items: center; gap: 18px; padding: 18px; }
.team-member-identity h3 { margin: 7px 0 3px; font-size: 1.15rem; }
.team-member-identity p { margin: 0; color: var(--muted); }
.team-unit-tags { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.team-unit-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 10px; color: var(--navy-800); background: var(--mist); border-radius: var(--radius-small); font-size: .9rem; font-weight: 700; }
.team-unit-empty { color: var(--muted); font-size: .9rem; }
.team-action { border-top: 1px solid var(--line); }
.team-action > summary { min-height: 58px; display: flex; align-items: center; padding: 12px 18px; color: var(--ink); cursor: pointer; }
.team-action > summary:hover { background: var(--mist); }
.team-action > summary strong, .team-action > summary small { display: block; }
.team-action > summary small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.team-action-primary > summary { color: var(--navy-900); background: var(--blue-100); }
.team-action-primary > summary:hover { background: var(--water-blue-soft); }
.team-action[open] > summary { border-bottom: 1px solid var(--line); }
.team-action-form { max-width: 760px; padding: 18px; }
.admin-table-wrap { margin-top: 16px; overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { color: var(--muted); background: var(--mist); font-size: .9rem; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); }
.settlement-guidance { margin-top: 18px; }
.settlement-units { display: grid; gap: 18px; margin-top: 24px; }
.settlement-unit { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.settlement-unit > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; background: var(--mist); }
.settlement-unit > header h2 { margin: 0; font-size: 1.35rem; }
.settlement-unit > header p { margin: 4px 0 0; color: var(--muted); }
.settlement-list { border-top: 1px solid var(--line); }
.settlement-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 70px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.settlement-item:last-child { border-bottom: 0; }
.settlement-item:hover { background: var(--paper); }
.settlement-item input { width: 20px; height: 20px; accent-color: var(--blue-600); }
.settlement-item-copy { min-width: 0; }
.settlement-item-copy strong, .settlement-item-copy small { display: block; }
.settlement-item-copy small { margin-top: 4px; color: var(--muted); }
.settlement-item .money { color: var(--navy-900); font-variant-numeric: tabular-nums; }
.settlement-item-readonly { cursor: default; }
.settlement-item-readonly:hover { background: transparent; }
.settlement-item-marker { width: 24px; height: 24px; display: grid; place-items: center; color: var(--success); }
.settlement-item-marker svg { width: 20px; height: 20px; }
.settlement-form { padding-bottom: 18px; }
.settlement-proof-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 18px 18px 0; }
.settlement-form .form-note, .settlement-form .form-error { margin-inline: 18px; }
.settlement-form > .button { margin: 4px 18px 0; }
.settlement-unit > .notice { margin: 0 18px 18px; }
.settlement-breakdown { min-width: 190px; }
.settlement-breakdown > summary { min-height: 42px; display: inline-flex; align-items: center; color: var(--blue-600); font-weight: 800; cursor: pointer; text-underline-offset: 4px; }
.settlement-breakdown > summary:hover { text-decoration: underline; }
.settlement-breakdown-list { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.settlement-breakdown-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.settlement-breakdown-item:last-child { border-bottom: 0; }
.settlement-breakdown-item strong, .settlement-breakdown-item small { display: block; }
.settlement-breakdown-item small { margin-top: 3px; color: var(--muted); }
.mfa-setup { align-items: start; }
.mfa-setup img { display: block; width: 220px; max-width: 100%; height: auto; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); }
.mfa-setup code { display: block; max-width: 100%; padding: 12px 14px; color: var(--ink); background: var(--mist); border-radius: var(--radius-small); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }

.review-sheet { display: grid; gap: 2px; }
.review-row {
  display: grid;
  grid-template-columns: minmax(90px, .55fr) 1fr;
  gap: 4px 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.review-row > span { color: var(--muted); }
.review-row > small { grid-column: 2; color: var(--muted); }
.vehicle-instruction-form { display: grid; gap: 18px; margin: 22px 0 8px; padding: 20px; background: var(--mist); border-radius: var(--radius); }
.vehicle-instruction-form h2 { margin: 0; font-size: 1.15rem; }
.vehicle-instruction-form > div > p { max-width: 65ch; margin: 5px 0 0; color: var(--muted); }
.vehicle-instruction-form .field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vehicle-instruction-form .field > span small, .vehicle-instruction-form .field > small { color: var(--muted); font-size: .82rem; font-weight: 500; }
.vehicle-instruction-form textarea { min-height: 108px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.maneuver-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 16px; background: var(--white); border-radius: 12px; cursor: pointer; }
.maneuver-consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue-600); }
.maneuver-consent strong, .maneuver-consent small { display: block; }
.maneuver-consent small { max-width: 68ch; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.vehicle-instructions { display: grid; gap: 7px; margin: 14px 0 18px; padding: 14px 16px; color: var(--navy-900); background: var(--mist); border-radius: 12px; }
.vehicle-instructions > strong { font-size: .88rem; }
.vehicle-instructions p { margin: 0; }
.maneuver-status { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.maneuver-status::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; background: currentColor; border-radius: 50%; }
.maneuver-authorized { color: var(--success) !important; }
.maneuver-denied { color: var(--danger) !important; }
.vehicle-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.vehicle-notes span { font-weight: 700; }
.operator-instructions { margin-top: 18px; background: var(--blue-100); }
.operator-instructions .maneuver-denied { padding: 12px; color: var(--white) !important; background: var(--danger); border-radius: 10px; }
.admin-table .vehicle-instructions { min-width: 230px; margin: 10px 0 0; padding: 10px 12px; font-size: .82rem; }
.home-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.home-guide-prompt { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: var(--navy-900); background: var(--blue-100); border-radius: var(--radius); text-decoration: none; line-height: 1.25; }
.home-guide-prompt strong { display: block; }
.home-guide-prompt svg { flex: 0 0 24px; width: 24px; height: 24px; transition: transform 180ms ease-out; }
.home-guide-prompt:hover svg { transform: translateX(4px); }
.location-guide-prompt { background: #e7f7f1; }
.first-use-workspace { min-height: min(620px, calc(100vh - 190px)); }
.first-vehicle-onboarding { min-height: 390px; display: grid; justify-items: center; align-content: center; gap: 24px; padding: 42px 24px; text-align: center; }
.first-vehicle-copy { max-width: 560px; }
.first-vehicle-copy h2 { margin: 0; color: var(--navy-900); font-size: clamp(1.65rem, 5vw, 2.35rem); letter-spacing: -.025em; text-wrap: balance; }
.first-vehicle-copy p { max-width: 52ch; margin: 12px auto 0; color: var(--muted); line-height: 1.55; }
.first-vehicle-action { width: min(100%, 390px); margin: 0; }
.wash-motion { position: relative; width: 142px; height: 118px; display: grid; place-items: center; color: var(--blue-600); }
.wash-motion::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 11px; height: 8px; background: #bfe8ff; border-radius: 50%; transform: scaleX(.82); animation: wash-ripple 2.8s cubic-bezier(.16, 1, .3, 1) infinite; }
.wash-motion-car { position: relative; z-index: 2; width: 82px; height: 82px; display: grid; place-items: center; color: var(--navy-900); background: var(--white); border-radius: 16px; box-shadow: 0 16px 34px rgba(7, 27, 59, .14); animation: wash-car 2.8s cubic-bezier(.16, 1, .3, 1) infinite; }
.wash-motion-car svg { width: 48px; height: 48px; }
.wash-drop { position: absolute; z-index: 3; width: 9px; height: 16px; background: var(--blue-500); border-radius: 70% 70% 70% 20%; transform: rotate(45deg); animation: wash-drop 2.8s cubic-bezier(.16, 1, .3, 1) infinite; }
.wash-drop-one { left: 21px; top: 24px; }
.wash-drop-two { right: 20px; top: 10px; animation-delay: .18s; }
.wash-drop-three { right: 10px; top: 55px; animation-delay: .34s; }
.wash-spark { position: absolute; z-index: 4; right: 16px; bottom: 11px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--white); background: var(--success); border-radius: 9px; box-shadow: 0 8px 18px rgba(4, 126, 82, .24); animation: wash-spark 2.8s cubic-bezier(.16, 1, .3, 1) infinite; }
.wash-spark svg { width: 18px; height: 18px; }
@keyframes wash-car { 0%, 18% { transform: translateY(5px); } 45%, 84% { transform: translateY(-3px); } 100% { transform: translateY(5px); } }
@keyframes wash-drop { 0%, 18% { opacity: 0; transform: translateY(-16px) rotate(45deg) scale(.7); } 42%, 72% { opacity: 1; transform: translateY(0) rotate(45deg) scale(1); } 100% { opacity: 0; transform: translateY(12px) rotate(45deg) scale(.85); } }
@keyframes wash-spark { 0%, 44% { opacity: 0; transform: scale(.5) rotate(-10deg); } 64%, 88% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(.7); } }
@keyframes wash-ripple { 0%, 24% { opacity: .35; transform: scaleX(.55); } 66% { opacity: .9; transform: scaleX(1); } 100% { opacity: .35; transform: scaleX(.55); } }
.how-it-works { min-height: 0; }
.how-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 36px; align-items: start; }
.how-steps { margin: 0; padding: 0; list-style: none; }
.how-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 8px 0 24px; }
.how-steps li + li { padding-top: 24px; border-top: 1px solid var(--line); }
.how-step-number { width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); background: var(--navy-900); border-radius: 12px; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.how-steps h2 { margin: 2px 0 6px; font-size: 1.2rem; }
.how-steps p { max-width: 65ch; margin: 0; color: var(--muted); line-height: 1.55; }
.how-ready { padding: 22px; color: var(--navy-900); background: var(--blue-100); border-radius: var(--radius); }
.how-ready-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; color: var(--white); background: var(--success); border-radius: 12px; }
.how-ready-icon svg { width: 24px; height: 24px; }
.how-ready h2 { margin: 0 0 12px; font-size: 1.2rem; }
.how-ready ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--ink); line-height: 1.45; }
.locations-sheet { min-height: 0; }
.location-map-panel { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 14px 32px rgba(7, 27, 59, .12); }
.location-map-overview { position: relative; min-height: 390px; overflow: hidden; isolation: isolate; background: #dce7dd; cursor: grab; touch-action: none; user-select: none; }
.location-map-overview.is-dragging { cursor: grabbing; }
.map-pan-layer { position: absolute; z-index: 0; inset: -72px; will-change: transform; }
.osm-map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.osm-map-shade { position: absolute; z-index: 6; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(7, 27, 59, .08); }
.osm-attribution { position: absolute; z-index: 7; right: 6px; bottom: 5px; padding: 3px 6px; color: var(--navy-900); background: rgba(255,255,255,.9); border-radius: 5px; font-size: .68rem; text-decoration: none; }
.brivaz-map-pin { position: absolute; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; padding: 3px; color: var(--navy-900); background: transparent; border: 0; transform: translate(-50%, -50%); cursor: pointer; }
.brivaz-pin-mark { position: relative; width: 38px; height: 38px; background: transparent; border: 0; filter: drop-shadow(0 5px 5px rgba(7, 27, 59, .32)); transition: transform 180ms cubic-bezier(.16, 1, .3, 1), filter 180ms ease-out; }
.brivaz-pin-mark img { width: 100%; height: 100%; object-fit: contain; }
.brivaz-map-pin:hover .brivaz-pin-mark, .brivaz-map-pin.selected .brivaz-pin-mark { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 8px 7px rgba(7, 27, 59, .38)); }
.brivaz-map-pin.selected { z-index: 5; }
.map-zoom-controls { position: absolute; z-index: 8; top: 12px; left: 12px; display: grid; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 7px 18px rgba(7, 27, 59, .18); }
.map-zoom-controls button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; color: var(--navy-900); background: var(--white); border: 0; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.map-zoom-controls button + button { border-top: 1px solid var(--line); }
.map-zoom-controls button:hover { color: var(--blue-600); background: var(--blue-100); }
.map-zoom-controls button:disabled { color: var(--line); background: var(--paper); cursor: not-allowed; }
.map-interaction-hint { position: absolute; z-index: 7; left: 10px; bottom: 8px; padding: 4px 7px; color: var(--navy-900); background: rgba(255,255,255,.92); border-radius: 8px; font-size: .72rem; font-weight: 700; pointer-events: none; }
.location-map-details { display: grid; gap: 18px; padding: 22px; }
.location-map-details h2 { margin: 0 0 5px; font-size: 1.35rem; }
.location-map-details p { margin: 0; color: var(--muted); line-height: 1.45; }
.location-map-prompt { display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: var(--navy-900); background: var(--blue-100); }
.location-map-prompt > svg { flex: 0 0 28px; width: 28px; height: 28px; }
.location-map-prompt p { display: grid; gap: 3px; margin: 0; }
.location-map-prompt span { color: var(--muted); font-size: .9rem; }
.location-fallback-list { display: grid; border-top: 1px solid var(--line); }
.location-list-button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 15px 20px; color: var(--ink); text-align: left; background: var(--white); border: 0; border-bottom: 1px solid var(--line); }
.location-list-button:last-child { border-bottom: 0; }
.location-list-button.selected { color: var(--navy-900); background: var(--blue-100); }
.location-list-button span { display: grid; gap: 3px; }
.location-list-button small { color: var(--muted); line-height: 1.35; }
.location-list-button > svg { flex: 0 0 20px; width: 20px; height: 20px; }
.map-unavailable { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 28px; color: var(--navy-900); text-align: center; background: var(--mist); }
.map-unavailable svg { width: 34px; height: 34px; }
.map-unavailable span { color: var(--muted); }
.location-hours { max-width: 520px; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-actions .button { width: auto; margin: 0; }
.map-privacy-note { max-width: 72ch; margin: 18px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.onboarding-page { width: min(100%, 820px); min-height: calc(100vh - 70px); margin: 0 auto; padding: 28px 0 56px; color: var(--ink); }
.onboarding-progress { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 30px; padding: 15px 12px 13px; overflow: hidden; color: var(--white); background: linear-gradient(135deg, #061b3c 0%, #0a3264 58%, #075e98 100%); border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; box-shadow: 0 16px 34px rgba(4, 20, 45, .22), inset 0 1px 0 rgba(255, 255, 255, .12); }
.onboarding-progress::after { content: ""; position: absolute; z-index: -2; top: -80px; right: -35px; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, rgba(58, 194, 255, .32), transparent 68%); pointer-events: none; }
.onboarding-progress span { position: relative; display: grid; justify-items: center; gap: 8px; min-width: 0; color: var(--white); text-align: center; }
.onboarding-progress span::before { content: ""; position: absolute; z-index: -1; top: 18px; right: 50%; width: calc(100% + 8px); height: 2px; background: rgba(255, 255, 255, .22); }
.onboarding-progress span:first-child::before { display: none; }
.onboarding-progress b { width: 38px; height: 38px; display: grid; place-items: center; color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.onboarding-progress b svg { width: 20px; height: 20px; }
.onboarding-progress small { max-width: 100%; overflow: hidden; color: rgba(255, 255, 255, .74); font-size: .76rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-progress .active b { color: var(--white); background: linear-gradient(145deg, #11aaff, #0677d6); border-color: rgba(255, 255, 255, .68); box-shadow: 0 0 0 4px rgba(70, 194, 255, .14), 0 8px 24px rgba(0, 157, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .38); }
.onboarding-progress .complete b { color: var(--navy-950); background: linear-gradient(145deg, #81f8d0, #25c995); border-color: #9bffe0; box-shadow: 0 7px 18px rgba(37, 201, 149, .26); }
.onboarding-progress .complete::before { background: linear-gradient(90deg, #45ddb0, rgba(129, 248, 208, .62)); }
.onboarding-progress .active small, .onboarding-progress .complete small { color: var(--white); font-weight: 800; }
.onboarding-page .page-back-link { margin-bottom: 8px; }
.onboarding-heading { position: relative; margin: 24px -18px; padding: 26px 18px 2px; background: var(--paper); border-radius: 24px 24px 0 0; }
.onboarding-heading h1 { max-width: 14ch; margin: 0; color: var(--blue-600); font-size: clamp(2rem, 8vw, 3.35rem); letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.onboarding-heading p { max-width: 62ch; margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.onboarding-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(7, 27, 59, .09); }
.onboarding-summary-icon, .onboarding-summary-check { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.onboarding-summary-icon { color: var(--blue-600); background: var(--blue-100); }
.onboarding-summary-check { width: 34px; height: 34px; color: var(--white); background: var(--success); }
.onboarding-summary svg { width: 23px; height: 23px; }
.onboarding-summary small { color: var(--muted); }
.onboarding-summary h2 { margin: 3px 0; font-size: 1.25rem; }
.onboarding-summary p { margin: 0; color: var(--muted); }
.onboarding-map-shell, .onboarding-form-shell, .onboarding-review { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 16px 38px rgba(7, 27, 59, .11); }
.onboarding-form-shell { padding: 24px; }
.onboarding-form-shell .empty-state { display: none; }
.onboarding-form-shell .vehicle-register { margin: 0; padding: 0; box-shadow: none; }
.onboarding-map { min-height: 420px; }
.onboarding-unit-details { display: grid; gap: 18px; padding: 22px; }
.onboarding-unit-details h2 { margin: 10px 0 4px; font-size: 1.45rem; }
.onboarding-unit-details p { margin: 0; color: var(--muted); }
.onboarding-actions { display: grid; grid-template-columns: minmax(140px, .4fr) minmax(220px, 1fr); gap: 10px; }
.onboarding-actions .button { width: 100%; margin: 0; }
.onboarding-context-line { display: grid; grid-template-columns: auto 1fr auto 1.4fr; align-items: center; gap: 12px; margin-bottom: 20px; padding: 16px 18px; color: var(--navy-900); background: var(--blue-100); border-radius: var(--radius); }
.onboarding-context-line > svg { width: 24px; height: 24px; }
.onboarding-context-line span { display: grid; gap: 2px; min-width: 0; }
.onboarding-context-line small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.onboarding-service-list { margin-bottom: 18px; }
.onboarding-next { margin-top: 18px; }
.onboarding-review { padding: 24px; }
.onboarding-payment-state { display: grid; align-content: start; justify-items: stretch; }
.payment-wait-mark { width: 78px; height: 78px; display: grid; place-items: center; margin: 26px auto 0; color: var(--white); background: var(--blue-600); border-radius: 18px; box-shadow: 0 16px 34px rgba(7, 135, 223, .24); }
.payment-wait-mark svg { width: 40px; height: 40px; }
.payment-success-mark { background: var(--success); }
.payment-success-mark svg { width: 42px; height: 42px; }
.onboarding-payment-state .onboarding-heading { text-align: center; }
.onboarding-payment-state .onboarding-heading h1, .onboarding-payment-state .onboarding-heading p { margin-inline: auto; }
.payment-summary { margin-bottom: 18px; }
.payment-watch-copy { max-width: 48ch; margin: 0 auto 16px; color: var(--muted); text-align: center; line-height: 1.5; }
.payment-confirmed-state .payment-summary { margin-bottom: 22px; }
.review-total { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 26px 4px 18px; }
.review-total strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .payment-methods { grid-template-columns: 1fr; } }
.notice { margin-top: 12px; padding: 16px; color: var(--navy-900); background: var(--blue-100); border-radius: 12px; }
.notice p { margin: 6px 0 0; line-height: 1.5; }
.notice-warning { color: #633c00; background: #fff4d6; border: 1px solid #f0d28b; }
.notice-warning .text-action { display: inline-block; margin-top: 10px; color: #6f4500; }
.installation-confirmed { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--success); background: var(--blue-100); border: 1px solid var(--line); border-radius: 12px; }
.installation-confirmed span { display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; color: var(--white); background: var(--success); border-radius: 8px; }
.installation-confirmed svg { width: 18px; height: 18px; }
.installation-confirmed + p { margin: 12px 0 0; }

.skeleton { min-height: 86px; border-radius: var(--radius); background: linear-gradient(100deg, #edf1f5 20%, #fff 40%, #edf1f5 60%); background-size: 240% 100%; animation: sweep 1.4s ease-in-out infinite; }
@keyframes sweep { to { background-position: -140% 0; } }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 460px);
  padding: 13px 16px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 150%);
  transition: transform .45s cubic-bezier(.19, 1, .22, 1);
}
.toast.visible { transform: translate(-50%, 0); }

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

@media (min-width: 760px) {
  body { background: var(--navy-900); }
  .topbar { padding-inline: max(34px, calc((100vw - 1120px) / 2)); }
  .site-footer { color: #c8daef; }
  .page { padding-inline: 34px; padding-bottom: 42px; }
  .route-hero { min-height: 230px; grid-template-columns: 1fr; align-items: center; }
  .workspace, .content-sheet { margin-inline: 0; padding: 34px; border-radius: 24px 24px 0 0; }
  .purchase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
  .purchase-grid .section-block + .section-block { margin-top: 0; }
  .purchase-grid .service-block { grid-column: 1 / -1; }
  .bottom-nav { position: sticky; width: min(720px, calc(100% - 48px)); margin: -28px auto 0; border: 1px solid var(--line); border-radius: 16px 16px 0 0; }
  .content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .auth-card { padding: 34px; }
}

@media (max-width: 759px) {
  .home-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-guide-prompt { min-height: 82px; align-items: flex-start; padding: 13px; font-size: .9rem; }
  .home-guide-prompt svg { width: 20px; height: 20px; }
  .first-vehicle-onboarding { min-height: 360px; padding-inline: 8px; }
  .how-layout { grid-template-columns: 1fr; gap: 24px; }
  .how-ready { padding: 20px; }
  .location-map-overview { min-height: 360px; }
  .location-map-panel { display: flex; flex-direction: column; }
  .location-map-details { padding: 18px; }
  .location-actions { align-items: stretch; flex-direction: column; }
  .location-actions .button { width: 100%; }
  .onboarding-page { padding-top: 20px; }
  .onboarding-progress { margin-bottom: 24px; }
  .onboarding-progress small { font-size: .7rem; }
  .onboarding-summary { grid-template-columns: auto minmax(0, 1fr); }
  .onboarding-summary-check { display: none; }
  .onboarding-map { min-height: 390px; }
  .onboarding-actions { grid-template-columns: 1fr; }
  .onboarding-context-line { grid-template-columns: auto minmax(0, 1fr); }
  .onboarding-form-shell, .onboarding-review { padding: 18px; }
  .scanner-heading { align-items: stretch; flex-direction: column; }
  .scanner-start { width: 100%; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-summary > div:nth-child(2) { border-inline-end: 0; }
  .admin-summary > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .admin-section .section-heading { grid-template-columns: 1fr; }
  .manager-command-deck, .manager-operation, .team-member-header { grid-template-columns: 1fr; }
  .manager-operation .button { width: 100%; }
  .manager-secondary-action { align-items: stretch; flex-direction: column; }
  .manager-secondary-action .button { width: 100%; }
  .manager-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manager-overview > div { padding: 12px 10px; }
  .team-unit-tags { justify-content: flex-start; }
  .manager-create-panel > summary { align-items: flex-start; }
  .admin-editor-list, .admin-editor-group, .admin-membership-form { border-radius: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-unit-editor, .admin-service-editor, .admin-membership-form { grid-template-columns: 1fr; align-items: stretch; }
  .admin-editor-row { padding: 16px; }
  .admin-editor-identity { padding-bottom: 4px; }
  .admin-editor-row .button, .admin-membership-form .button { width: 100%; }
  .toggle-field { min-height: 48px; }
  .admin-table-wrap { overflow: visible; background: transparent; box-shadow: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .admin-table tr { margin-bottom: 12px; padding: 12px 16px; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
  .admin-table td { display: grid; grid-template-columns: minmax(92px, .65fr) 1fr; gap: 12px; padding: 7px 0; border: 0; }
  .admin-table td::before { content: attr(data-label); color: var(--muted); font-size: .9rem; font-weight: 700; }
  .admin-toolbar { align-items: flex-start; }
  .admin-toolbar-actions { align-items: flex-end; flex-direction: column; }
  .settlement-permission-form { min-width: 0; flex-wrap: wrap; }
  .settlement-permission-form .button { width: auto; }
  .settlement-proof-fields { grid-template-columns: 1fr; }
  .settlement-item { grid-template-columns: auto minmax(0, 1fr); }
  .settlement-item .money { grid-column: 2; }
  .settlement-form > .button { width: calc(100% - 36px); }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-grid section + section { border-inline-start: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .purchase-actions {
    position: sticky;
    z-index: 12;
    bottom: calc(74px + env(safe-area-inset-bottom));
    margin-inline: -8px;
    padding: 10px 8px 12px;
    background: var(--paper);
    box-shadow: 0 -12px 26px rgba(0, 0, 0, .08);
  }
  .purchase-actions .button-wide { margin-top: 0; }
  .purchase-actions .form-note { margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .wash-motion::before, .wash-motion-car, .wash-drop, .wash-spark { animation: none; }
  .wash-drop, .wash-spark { opacity: 1; }
}

@media (max-width: 380px) {
  .brand img { width: 140px; }
  .topbar { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
