/* FMS demo UI – one design system for the landing, operator, customer and rental pages. */

/* ===== Design tokens ===== */
:root {
  --navy-900: #0b1f3a; --navy-800: #12305a; --navy-700: #1b4275; --navy-100: #e4ebf5; --navy-50: #f3f6fb;
  --teal-800: #075f5d; --teal-700: #0a7c79; --teal-600: #0e918d; --teal-400: #3cc9c2; --teal-100: #d4f3f0; --teal-50: #ebf9f8;
  --amber-700: #8f4a08; --amber-500: #f5a524; --amber-100: #fdf0d2;
  --green-700: #17693a; --green-500: #2eb872; --green-100: #d9f5e5;
  --red-700: #a3231b; --red-100: #fde4e1;
  --ink: #0e1f38; --ink-2: #3f5169; --ink-3: #5c6d85;
  --line: #dce3ed; --line-2: #eaeff6; --bg: #f4f7fb; --focus: #1d6fe8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .06);
  --shadow-md: 0 10px 24px -10px rgba(11, 31, 58, .25), 0 2px 6px rgba(11, 31, 58, .06);
  --shadow-lg: 0 28px 56px -16px rgba(7, 20, 40, .5);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
html.dlg-open { overflow: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--teal-700); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--mono); font-size: .875em; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.topbar :focus-visible, .hero :focus-visible, .toast :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-3); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: var(--s3); top: -64px; z-index: 300; padding: var(--s2) var(--s4); border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-md); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: var(--s3); }

/* ===== Layout ===== */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(var(--s4), env(safe-area-inset-left)); padding-right: max(var(--s4), env(safe-area-inset-right)); }
.container-narrow { max-width: 640px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 8px; object-fit: cover; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar { padding-top: env(safe-area-inset-top); background: var(--navy-900); color: #fff; }
.topbar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3) var(--s4); padding-block: var(--s3); }
.topbar-title { padding-left: var(--s4); border-left: 1px solid rgba(255, 255, 255, .25); color: #c9d6ea; font-weight: 600; }
.topbar-end { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm); color: #fff; font-size: .875rem; font-weight: 600; text-decoration: none; }
.topbar-link:hover { background: rgba(255, 255, 255, .12); }
.topbar .live { color: #c9d6ea; }
.status-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .8125rem; font-weight: 600; }
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8ea2bf; }
.status-ok::before { background: var(--green-500); }
.status-bad::before { background: #ff8a7d; }
.site-header { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.5) blur(10px); backdrop-filter: saturate(1.5) blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 60px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-right: -10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.back-link:hover { background: var(--navy-50); color: var(--ink); }
.header-end { display: flex; align-items: center; gap: var(--s3); }
.site-footer { padding: var(--s6) 0 calc(var(--s6) + var(--safe-b)); color: var(--ink-3); font-size: .875rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa9bf; }
.live[data-state="live"] .live-dot { background: var(--green-500); animation: ring-green 2.4s ease-out infinite; }
.live[data-state="reconnecting"] .live-dot, .live[data-state="polling"] .live-dot { background: var(--amber-500); }

/* ===== Buttons, badges, chips ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-md); background: var(--navy-900); color: #fff; font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .15s, border-color .15s, transform .05s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn-primary { background: var(--teal-700); }
.btn-primary:hover:not(:disabled) { background: var(--teal-800); }
.btn-secondary { border-color: var(--line); background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { border-color: #b3c1d4; background: var(--navy-50); }
.btn-danger { background: var(--red-700); }
.btn-danger:hover:not(:disabled) { background: #831b15; }
.btn-outline-danger { border-color: #efbdb8; background: #fff; color: var(--red-700); }
.btn-outline-danger:hover:not(:disabled) { background: var(--red-100); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--navy-100); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: .875rem; }
.btn-lg { min-height: 54px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); }
.btn-icon:hover { background: var(--navy-100); color: var(--ink); }
.spinner { display: inline-block; flex: none; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: var(--navy-100); color: var(--ink-2); font-size: .8125rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge:has(.spinner)::before { display: none; }
.badge .spinner { width: .85em; height: .85em; }
.badge-ok { background: var(--green-100); color: var(--green-700); }
.badge-warn { background: var(--amber-100); color: var(--amber-700); }
.badge-danger { background: var(--red-100); color: var(--red-700); }
.badge-info { background: var(--teal-100); color: var(--teal-800); }
.badge-link { border: 1px solid #f0d28f; text-decoration: none; transition: background-color .15s, box-shadow .15s; }
.badge-link:hover { background: #fbe4ab; box-shadow: var(--shadow-sm); }
.badge-link.badge-info { border-color: var(--teal-400); }
.badge-link.badge-info:hover { background: var(--teal-50); }
.badge-link .icon { width: 1em; height: 1em; transition: transform .15s; }
.badge-link:hover .icon { transform: translateX(3px); }
.chips { display: flex; gap: var(--s2); }
.chip { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .9375rem; font-weight: 600; transition: background-color .15s, border-color .15s; }
.chip:hover { border-color: #b3c1d4; background: var(--navy-50); }
.chip[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }

/* ===== Cards, banners, forms ===== */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.panel { padding: var(--s4); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.panel-head h2 { font-size: 1.25rem; }
.panel-head p { max-width: 44rem; margin-top: var(--s1); font-size: .9375rem; }
.banner { display: flex; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s4); padding: var(--s3) var(--s4); border: 1px solid; border-radius: var(--r-md); font-size: .9375rem; }
.banner .icon { margin-top: 2px; }
.banner-body { flex: 1; min-width: 0; }
.banner-danger { border-color: #f1b3ac; background: var(--red-100); color: #7d1a14; }
.banner-warn { border-color: #f1d28b; background: var(--amber-100); color: #6f3a06; }
.empty { display: grid; justify-items: center; gap: var(--s3); padding: var(--s7) var(--s4); color: var(--ink-2); text-align: center; }
.empty h3 { color: var(--ink); font-size: 1.125rem; }
.empty-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); }
.empty-art .icon { width: 32px; height: 32px; }
.field { display: grid; gap: 6px; min-width: 0; }
/* Wraps by its own width, not the viewport, as it sits in the narrow booking dialog; a date-time input needs about 15.5rem. */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--s3); }
.field-row .input { min-width: 0; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.field label, .field .label { font-size: .875rem; font-weight: 600; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #c2cddb; border-radius: var(--r-md); background: #fff; font-size: 1rem; }
.input:hover { border-color: #93a6bf; }
.input:focus-visible { border-color: var(--focus); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: #d1382d; background: #fff8f7; }
.input::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap .btn-icon { position: absolute; top: 3px; right: 3px; }
.hint, .counter { color: var(--ink-3); font-size: .8125rem; }
.counter { font-variant-numeric: tabular-nums; }
.field-error, .form-error { color: var(--red-700); font-size: .8125rem; font-weight: 600; }
.form-error { padding: var(--s3); border-radius: var(--r-sm); background: var(--red-100); font-size: .875rem; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--teal-700); }
.advanced summary { padding: var(--s2) 0; color: var(--teal-700); font-size: .875rem; font-weight: 600; cursor: pointer; }
.advanced[open] summary { margin-bottom: var(--s2); }
.form-stack { display: grid; gap: var(--s4); }

/* ===== Tables (stacked cards on narrow screens) ===== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fafd; }
.table tbody tr.is-selected { background: var(--teal-50); }
.table tbody tr.is-ended { color: var(--ink-3); }
.table tbody tr.is-ended .car-thumb { opacity: .55; }
.col-select { width: 48px; }
.vehicle { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.vehicle > div { display: grid; min-width: 0; }
.vehicle-sub { font-size: .8125rem; }
.car-art.car-thumb { flex: none; width: 76px; padding: 4px 6px; border-radius: 10px; background: linear-gradient(160deg, var(--teal-50), #e6edf8); }
.state-cell { display: grid; justify-items: start; gap: 6px; }
.state-error { max-width: 22rem; color: var(--red-700); font-size: .8125rem; overflow-wrap: anywhere; }
.rental-info { display: grid; justify-items: start; gap: 2px; font-size: .875rem; }
.progress { display: flex; gap: 3px; }
.progress span { width: 16px; height: 4px; border-radius: 2px; background: var(--line); }
.progress .on { background: var(--teal-600); }
.progress .now { background: var(--teal-400); animation: blink 1.1s ease-in-out infinite; }
.counts { margin-top: var(--s1); color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
.action-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin: var(--s4) calc(-1 * var(--s4)) calc(-1 * var(--s4)); padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-b)); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 -8px 16px -12px rgba(11, 31, 58, .25); }
.action-bar p { font-size: .9375rem; font-weight: 600; }
.action-bar .btn { flex: none; white-space: nowrap; }
.results { margin-bottom: var(--s4); padding: var(--s3) var(--s4); border: 1px solid #a8e2c1; border-radius: var(--r-md); background: var(--green-100); color: #11532e; }
.results-mixed { border-color: #f1d28b; background: var(--amber-100); color: #6f3a06; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.results ul { display: grid; gap: 6px; margin-top: var(--s2); font-size: .875rem; }
.results .btn-icon { width: 32px; height: 32px; margin: -4px -8px -4px 0; }
.results li { display: flex; align-items: flex-start; gap: var(--s2); }
.results li.bad { color: var(--red-700); font-weight: 600; }

/* ===== Toasts, dialogs, skeletons ===== */
.toasts { position: fixed; z-index: 400; top: max(var(--s3), env(safe-area-inset-top)); left: var(--s3); right: var(--s3); display: grid; justify-items: center; gap: var(--s2); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; width: min(100%, 26rem); padding: 12px 8px 12px 14px; border-radius: 14px; background: var(--navy-900); box-shadow: var(--shadow-lg); color: #fff; font-size: .9375rem; pointer-events: auto; animation: rise .25s ease-out; }
.toast p { flex: 1; min-width: 0; padding-top: 1px; overflow-wrap: anywhere; }
.toast .icon { margin-top: 2px; }
.toast .btn-icon { width: 28px; height: 28px; margin-top: -2px; color: inherit; opacity: .8; }
.toast .btn-icon:hover { background: rgba(255, 255, 255, .15); opacity: 1; }
.toast-success { background: var(--green-700); }
.toast-error { background: var(--red-700); }
.dlg { width: min(30rem, calc(100% - 2 * var(--s4))); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.dlg::backdrop { background: rgba(7, 20, 40, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg-panel { max-height: calc(100vh - 2 * var(--s4)); max-height: calc(100dvh - 2 * var(--s4)); padding: var(--s5); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); animation: rise .22s ease-out; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.dlg-head h2 { padding-top: 6px; font-size: 1.25rem; }
.dlg-head .btn-icon { margin: -4px -8px 0 0; }
.dlg-text { color: var(--ink-2); }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s3); margin-top: var(--s5); }
.skeleton { display: block; border-radius: var(--r-sm); background: linear-gradient(90deg, #e8edf5 25%, #f5f8fc 45%, #e8edf5 65%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-card { overflow: hidden; }
.skeleton-card .skeleton:first-child { height: 150px; border-radius: 0; }
.skeleton-card div { display: grid; gap: var(--s3); padding: var(--s4); }
.skeleton-card div .skeleton { height: 16px; }
.skeleton-card div .skeleton:first-child { width: 60%; height: 22px; }
.skeleton-row { width: 100%; height: 56px; margin: var(--s2) 0; }

/* ===== Customer: hero, filters, cars ===== */
.hero { position: relative; overflow: hidden; background: radial-gradient(700px 320px at 90% -20%, rgba(60, 201, 194, .42), transparent 65%), radial-gradient(520px 280px at -10% 110%, rgba(66, 120, 210, .35), transparent 65%), linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; }
.hero-inner { position: relative; padding-block: var(--s6) var(--s7); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); }
.hero p { max-width: 32rem; margin-top: var(--s3); color: #cbd8ec; font-size: 1.0625rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero-points li { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .875rem; font-weight: 600; }
.hero .hero-art { position: absolute; right: -40px; bottom: -22px; display: none; width: 480px; --car-body: #f3f7fc; --car-glass: #2d5188; opacity: .95; }
.filters { display: flex; margin-inline: calc(-1 * var(--s4)); padding: var(--s4) var(--s4) var(--s1); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.results-line { padding-block: var(--s3); font-size: .875rem; }
.car-grid { display: grid; gap: var(--s4); padding-bottom: var(--s6); }
.car-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.car-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.car-media { position: relative; display: grid; align-items: end; padding: var(--s5) var(--s4) var(--s2); background: radial-gradient(circle at 70% 20%, #fff 0, transparent 60%), linear-gradient(160deg, var(--teal-50), #e3ebf8); }
.car-media .car-art { width: min(100%, 300px); margin-inline: auto; }
.cat-tag { position: absolute; top: var(--s3); left: var(--s3); padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink-2); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.car-body-box { display: flex; flex: 1; flex-direction: column; gap: var(--s3); padding: var(--s4); }
.car-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.car-title h3 { font-size: 1.1875rem; }
.car-price { flex: none; color: var(--ink-3); font-size: .875rem; }
.car-price strong { color: var(--ink); font-size: 1.25rem; }
.specs { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); color: var(--ink-2); font-size: .875rem; }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs .icon { width: 1.1em; height: 1.1em; color: var(--teal-700); }
.car-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line-2); }
.car-foot .badge-link { flex: 1; min-height: 44px; padding: 0 var(--s4); font-size: .9375rem; }
.badge-link span { flex: 1; }
.car-art { display: block; width: 100%; height: auto; --car-body: #3b82c4; --car-glass: #d9eafa; }
.car-art[data-cat="compact"] { --car-body: #ef8a4a; }
.car-art[data-cat="suv"] { --car-body: #3d5a4e; }
.car-art[data-cat="premium"] { --car-body: #1d2b4a; --car-glass: #b9cde6; }
.car-art[data-cat="electric"] { --car-body: #19b3a6; }
.car-art[data-cat="van"] { --car-body: #8d9bb0; }
.car-shadow { fill: rgba(11, 31, 58, .16); }
.car-body { fill: var(--car-body); }
.car-shade { fill: rgba(7, 20, 40, .2); }
.car-glass { fill: var(--car-glass); }
.car-line { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 1.4; stroke-linecap: round; }
.car-arch { fill: #0c172a; }
.car-tire { fill: #16233a; }
.car-hub { fill: #cfd8e5; }
.car-light { fill: #ffe29a; }
.car-tail { fill: #e5484d; }
.car-bolt { fill: #fff; opacity: .92; }
.sheet-car { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); padding: var(--s3); border-radius: var(--r-md); background: var(--navy-50); }
.sheet-car .car-art { flex: none; width: 92px; }
.sheet-car strong { display: block; }
.estimate { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--teal-50); color: var(--teal-800); font-size: .9375rem; }
.estimate small { display: block; font-size: .8125rem; }
.estimate strong { color: var(--ink); font-size: 1.25rem; }

/* ===== Rental ===== */
.stepper { display: flex; margin: var(--s5) 0 var(--s4); counter-reset: step; }
.stepper li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-3); font-size: .75rem; font-weight: 600; text-align: center; counter-increment: step; }
.stepper li::before { content: counter(step); z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-size: .8125rem; }
.stepper li::after { content: ""; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper .done { color: var(--ink-2); }
.stepper .done::before { content: "\2713"; border-color: var(--teal-700); background: var(--teal-700); color: #fff; }
.stepper .done::after { background: var(--teal-700); }
.stepper .current { color: var(--ink); }
.stepper .current::before { border-color: var(--teal-700); color: var(--teal-700); box-shadow: 0 0 0 4px var(--teal-100); }
.rental { display: grid; gap: var(--s4); padding-bottom: var(--s6); }
.state-card { display: grid; justify-items: center; gap: var(--s3); padding: var(--s6) var(--s4) var(--s5); text-align: center; }
.state-card h1 { font-size: 1.5rem; }
.state-card > p { max-width: 28rem; color: var(--ink-2); }
.state-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); }
.state-icon .icon { width: 34px; height: 34px; }
.state-icon.is-success { background: var(--green-500); color: #fff; animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) both, ring-green 1.6s ease-out .3s 2; }
.state-icon.is-success .icon { stroke-width: 3; }
.wallet-actions { display: grid; justify-items: center; gap: var(--s3); margin-block: var(--s2); }
.wallet-actions a { display: inline-block; border-radius: 10px; line-height: 0; }
.wallet-actions img { display: block; width: auto; height: 52px; }
.wallet-actions a.is-text { display: inline-flex; align-items: center; gap: var(--s2); min-height: 52px; padding: 0 var(--s5); background: var(--navy-900); color: #fff; font-weight: 600; line-height: 1.2; text-decoration: none; }
.or-divider { display: flex; align-items: center; gap: var(--s3); width: min(100%, 22rem); margin-top: var(--s2); color: var(--ink-3); font-size: .8125rem; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.copy-field { display: flex; width: min(100%, 22rem); border: 1px solid #c2cddb; border-radius: var(--r-md); background: var(--navy-50); overflow: hidden; transition: border-color .15s; }
.copy-field:focus-within { border-color: var(--focus); }
.copy-field input { flex: 1; min-width: 0; padding: 0 var(--s3); border: 0; background: transparent; color: var(--ink-2); font-size: .8125rem; text-overflow: ellipsis; }
.copy-field input:focus-visible { outline: none; }
.copy-btn { flex: none; min-width: 6.5rem; border: 0; border-left: 1px solid #c2cddb; border-radius: 0; background: #fff; color: var(--teal-700); }
.copy-btn:hover:not(:disabled) { background: var(--teal-50); }
.copy-btn:focus-visible { outline-offset: -4px; }
.copy-btn.is-copied { background: var(--green-100); color: var(--green-700); }
.waiting { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink-3); font-size: .9375rem; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--amber-500); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ring-fade 1.6s ease-out infinite; }
.state-card .form-error { width: 100%; text-align: left; }
.rental-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s4) 0; }
.rental-head h2 { font-size: 1.1875rem; }
.rental .car-media { margin: var(--s4) var(--s4) 0; padding-top: var(--s4); border-radius: var(--r-md); }
.rental .car-media .car-art { width: min(100%, 240px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); padding: var(--s4); }
.facts dt { color: var(--ink-3); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.final .facts { margin: var(--s2) 0; width: 100%; text-align: left; border-block: 1px solid var(--line-2); }

/* ===== Landing ===== */
.landing-hero { padding: var(--s7) 0 var(--s6); text-align: center; }
.landing-hero h1 { max-width: 16ch; margin: 0 auto var(--s4); font-size: clamp(2.1rem, 1.4rem + 3.5vw, 3.5rem); }
.landing-hero p { max-width: 34rem; margin: 0 auto; color: var(--ink-2); font-size: 1.125rem; }
.portal-grid { display: grid; gap: var(--s4); padding-bottom: var(--s7); }
.portal-card { display: grid; align-content: start; gap: var(--s3); padding: var(--s5); color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.portal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.portal-card h2 { font-size: 1.5rem; }
.portal-card p { color: var(--ink-2); }
.portal-art { display: grid; place-items: center; height: 150px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--teal-50), #e3ebf8); color: var(--navy-700); }
.portal-art .car-art { width: min(80%, 240px); }
.portal-art .icon { width: 64px; height: 64px; stroke-width: 1.5; }
.portal-cta { display: inline-flex; align-items: center; gap: var(--s2); color: var(--teal-700); font-weight: 700; }
.portal-card:hover .portal-cta .icon { transform: translateX(4px); }
.portal-cta .icon { transition: transform .2s; }

/* ===== Page header / sections (operator) ===== */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); padding: var(--s5) 0 var(--s4); }
.page-head h1 { font-size: 1.75rem; }
.page-head p { margin-top: var(--s1); color: var(--ink-2); }
.jump { display: flex; gap: var(--s2); }
.jump a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: #b3c1d4; color: var(--ink); }
.ops-grid { display: grid; gap: var(--s4); align-items: start; margin-bottom: var(--s4); }
.page-main { display: grid; gap: var(--s4); padding-bottom: var(--s6); }

/* ===== Animations ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes ring-green { 0% { box-shadow: 0 0 0 0 rgba(46, 184, 114, .55); } 100% { box-shadow: 0 0 0 14px rgba(46, 184, 114, 0); } }
@keyframes ring-fade { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3); } }

/* ===== Responsive ===== */
@media (max-width: 899px) {
  .table-wrap { overflow: visible; }
  .stack thead th:not(.col-select) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack thead th { display: block; padding: 0 var(--s1) var(--s3); border: 0; color: var(--ink-2); font-size: .9375rem; letter-spacing: 0; text-transform: none; }
  .stack thead, .stack tbody, .stack tr, .stack td { display: block; }
  .stack tbody tr { display: grid; gap: var(--s2) var(--s3); margin-bottom: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .stack tbody tr:hover { background: #fff; }
  .stack tbody tr.is-selected { border-color: var(--teal-600); background: var(--teal-50); }
  .stack td { padding: 0; border: 0; }
  .stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--ink-3); font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .stack-candidates tbody tr { grid-template-columns: 28px minmax(0, 1fr); align-items: center; }
  .stack-candidates .c-select { grid-row: 1 / span 3; align-self: start; padding-top: 2px; }
  .stack-candidates .c-vehicle, .stack-candidates .c-id, .stack-candidates .c-proof { grid-column: 2; }
  .stack-fleet tbody tr { grid-template-columns: 1fr 1fr; align-items: start; }
  .stack-fleet .f-vehicle { grid-column: 1 / -1; }
  .stack-fleet .f-action { display: flex; justify-content: flex-end; align-self: end; }
  .stack-fleet .f-action:empty { display: none; }
  .action-bar { bottom: 0; }
  .dlg-sheet { width: 100%; margin: auto 0 0; }
  .dlg-sheet .dlg-panel { max-height: calc(100dvh - var(--s5)); padding-bottom: calc(var(--s5) + var(--safe-b)); border-radius: 22px 22px 0 0; animation-name: sheet; }
  .dlg-sheet .dlg-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: -10px auto var(--s3); border-radius: 2px; background: var(--line); }
}
@media (max-width: 599px) {
  .header-end .live:not([data-state="live"]) .live-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 600px) {
  .container { padding-left: max(var(--s5), env(safe-area-inset-left)); padding-right: max(var(--s5), env(safe-area-inset-right)); }
  .panel { padding: var(--s5); }
  .action-bar { margin: var(--s4) calc(-1 * var(--s5)) calc(-1 * var(--s5)); padding-inline: var(--s5); }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
  .filters { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .hero-inner { padding-block: var(--s7) calc(var(--s7) + var(--s2)); }
  .state-card { padding-inline: var(--s6); }
  .rental-head, .facts { padding-inline: var(--s5); }
  .rental .car-media { margin-inline: var(--s5); }
  .stepper li { font-size: .8125rem; }
}
@media (min-width: 900px) {
  .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .hero-art { display: block; }
  .portal-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .col-select .label-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .toasts { left: auto; right: var(--s5); justify-items: end; }
}
@media (min-width: 1200px) {
  .ops-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .container { max-width: 1280px; }
}
@media (hover: none) {
  .car-card:hover, .portal-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .live[data-state="live"] .live-dot, .progress .now { animation: none; }
}
