/* Car & Bike Rentals (Dec 2026 rebuild): the shared kit under every surface (website and customer app, hub desk app, owner panel, wizard preview).
   Colours come ONLY from the --rl-* variables the server writes into <style id="rl-tokens"> before first paint (look/layers.ts buildTokens);
   the values below are the fallback (Concours, Light) so a page opened without the engine is still readable.
   The look layers reach this file through attributes on <html> (data-rl-corners, -card, -density, -pattern, -font): the shared parts of
   Corners, Card style, Spacing, Backdrop pattern and Lettering live here so every surface follows them. Each surface's own css owns its
   base-template structure (hero, listing, picker, navigation) and reads the same attributes. */

:root {
  --rl-bg: #E8ECEE; --rl-bg2: #DEE3E6; --rl-surface: #F8FAFB; --rl-surface2: #EEF2F4; --rl-ink: #0C1418; --rl-ink2: #50595F; --rl-line: #C3CACE;
  --rl-accent: #0E4D3C; --rl-accent-ink: #FFFFFF; --rl-accent-text: #0E4D3C; --rl-accent-soft: #D9E6E1; --rl-accent-line: #7FA396;
  --rl-pop: #B8902F; --rl-pop-text: #7A5C12; --rl-pop-ink: #0B0D10;
  --rl-stage: #12382E; --rl-stage2: #07140F; --rl-stage-ink: #FFFFFF; --rl-stage-ink2: #C9D6D1;
  --rl-good: #14733F; --rl-warn: #9A5B00; --rl-bad: #B42318; --rl-shadow: rgba(12,20,24,.16); --rl-glow: rgba(14,77,60,.28); --rl-focus: #0E4D3C;
  --rl-font-display: "Anybody", "Segoe UI", system-ui, sans-serif; --rl-font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif; --rl-font-num: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  /* shape (set by Corners and Spacing below) */
  --r: 14px; --r-sm: 10px; --r-btn: 12px; --gap: 16px; --pad: 18px; --tap: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-rl-corners="sharp"] { --r: 2px; --r-sm: 2px; --r-btn: 2px; }
html[data-rl-corners="soft"]  { --r: 20px; --r-sm: 12px; --r-btn: 14px; }
html[data-rl-corners="pill"]  { --r: 24px; --r-sm: 16px; --r-btn: 999px; }
html[data-rl-density="airy"]    { --gap: 22px; --pad: 22px; }
html[data-rl-density="compact"] { --gap: 12px; --pad: 14px; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-padding-bottom: 96px; }
html.rl-locked, html.rl-locked body { overflow: hidden; }
body { margin: 0; background: var(--rl-bg); color: var(--rl-ink); font-family: var(--rl-font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100dvh; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--rl-font-display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--rl-accent-text); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--rl-accent); color: var(--rl-accent-ink); }
:focus-visible { outline: 3px solid var(--rl-focus); outline-offset: 2px; border-radius: 4px; }
.rl-i { flex: none; vertical-align: -0.16em; }
.rl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rl-num { font-family: var(--rl-font-num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.rl-muted { color: var(--rl-ink2); }
.rl-p { color: var(--rl-ink2); line-height: 1.55; }
.rl-row { display: flex; align-items: center; gap: 10px; }
.rl-col { display: flex; flex-direction: column; gap: 10px; }
.rl-grow { flex: 1 1 auto; min-width: 0; }
.rl-scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.rl-scroll-x::-webkit-scrollbar { display: none; }
.rl-scroll-x > * { flex: 0 0 auto; }

/* Backdrop pattern layer (the Backdrop pattern look layer). Drawn as a mask so it takes the ink colour of the ground. */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; background: var(--rl-ink); transition: opacity .4s var(--ease); }
body > * { position: relative; z-index: 1; }
html[data-rl-pattern="lanes"] body::before, html[data-rl-pattern="tread"] body::before, html[data-rl-pattern="contour"] body::before, html[data-rl-pattern="grid"] body::before { opacity: .12; }
html[data-rl-pattern="lanes"] body::before, html[data-rl-pattern="lanes"] .hero[data-h="stage"]::before, html[data-rl-pattern="lanes"] .hero[data-h="photo"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='130'><path d='M12 65h74M126 65h74' stroke='black' stroke-width='4' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='130'><path d='M12 65h74M126 65h74' stroke='black' stroke-width='4' stroke-linecap='round'/></svg>"); }
html[data-rl-pattern="tread"] body::before, html[data-rl-pattern="tread"] .hero[data-h="stage"]::before, html[data-rl-pattern="tread"] .hero[data-h="photo"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='28'><path d='M0 22 14 6l14 16 14-16 14 16' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='28'><path d='M0 22 14 6l14 16 14-16 14 16' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'/></svg>"); }
html[data-rl-pattern="contour"] body::before, html[data-rl-pattern="contour"] .hero[data-h="stage"]::before, html[data-rl-pattern="contour"] .hero[data-h="photo"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='260'><g fill='none' stroke='black' stroke-width='1.6'><ellipse cx='180' cy='130' rx='170' ry='118'/><ellipse cx='180' cy='130' rx='132' ry='88'/><ellipse cx='180' cy='130' rx='94' ry='60'/><ellipse cx='180' cy='130' rx='56' ry='34'/><ellipse cx='180' cy='130' rx='22' ry='12'/></g></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='260'><g fill='none' stroke='black' stroke-width='1.6'><ellipse cx='180' cy='130' rx='170' ry='118'/><ellipse cx='180' cy='130' rx='132' ry='88'/><ellipse cx='180' cy='130' rx='94' ry='60'/><ellipse cx='180' cy='130' rx='56' ry='34'/><ellipse cx='180' cy='130' rx='22' ry='12'/></g></svg>"); }
html[data-rl-pattern="grid"] body::before { opacity: .17; }
html[data-rl-pattern="grid"] body::before, html[data-rl-pattern="grid"] .hero[data-h="stage"]::before, html[data-rl-pattern="grid"] .hero[data-h="photo"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44'><path d='M0 0h44M0 0v44' fill='none' stroke='black' stroke-width='2.4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'><path d='M0 0h36M0 0v36' fill='none' stroke='black' stroke-width='1.2'/></svg>"); }

/* Buttons */
.rl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 22px; border: 2px solid transparent; border-radius: var(--r-btn); background: var(--rl-accent); color: var(--rl-accent-ink); font-weight: 700; font-size: 16px; letter-spacing: .005em; text-decoration: none; white-space: nowrap; transition: transform .12s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.rl-btn:hover { box-shadow: 0 6px 18px -6px var(--rl-glow); }
.rl-btn:active { transform: translateY(1px) scale(.99); }
.rl-btn[disabled], .rl-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.rl-btn-ghost { background: transparent; color: var(--rl-ink); border-color: var(--rl-line); }
.rl-btn-ghost:hover { border-color: var(--rl-ink); box-shadow: none; }
.rl-btn-soft { background: var(--rl-accent-soft); color: var(--rl-accent-text); }
.rl-btn-danger { background: var(--rl-bad); color: #fff; }
.rl-btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.rl-btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.rl-btn-block { display: flex; width: 100%; }
.rl-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: inherit; -webkit-tap-highlight-color: transparent; }
.rl-iconbtn:hover { background: var(--rl-accent-soft); }

/* Fields */
.rl-field { display: flex; flex-direction: column; gap: 6px; }
.rl-field > label, .rl-label { font-weight: 600; font-size: 14px; color: var(--rl-ink); }
.rl-hint { font-size: 13px; color: var(--rl-ink2); }
.rl-error { font-size: 13px; color: var(--rl-bad); font-weight: 600; }
.rl-input, .rl-select, .rl-textarea { width: 100%; min-height: var(--tap); padding: 0 14px; border: 1.5px solid var(--rl-line); border-radius: var(--r-sm); background: var(--rl-surface); color: var(--rl-ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.rl-textarea { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.45; }
.rl-input::placeholder, .rl-textarea::placeholder { color: var(--rl-ink2); opacity: .8; }
.rl-input:focus, .rl-select:focus, .rl-textarea:focus { outline: none; border-color: var(--rl-accent); box-shadow: 0 0 0 3px var(--rl-glow); }
.rl-input[aria-invalid="true"] { border-color: var(--rl-bad); }
.rl-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.rl-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.rl-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.rl-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--rl-line); transition: background-color .2s; }
.rl-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.rl-switch input:checked + i { background: var(--rl-accent); }
.rl-switch input:checked + i::after { transform: translateX(22px); }
.rl-switch input:focus-visible + i { outline: 3px solid var(--rl-focus); outline-offset: 2px; }
.rl-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--rl-line); border-radius: var(--r-btn); overflow: hidden; background: var(--rl-surface); }
.rl-stepper button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.rl-stepper button:hover { background: var(--rl-accent-soft); }
.rl-stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Chips and segmented controls */
.rl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--rl-line); border-radius: 999px; background: var(--rl-surface); color: var(--rl-ink); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.rl-chip:hover { border-color: var(--rl-ink); }
.rl-chip[aria-pressed="true"], .rl-chip.on { background: var(--rl-accent); border-color: var(--rl-accent); color: var(--rl-accent-ink); }
.rl-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: calc(var(--r-btn) + 4px); background: var(--rl-bg2); }
.rl-seg button { min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--r-btn); background: transparent; font-weight: 700; font-size: 15px; color: var(--rl-ink2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .2s, color .2s, box-shadow .2s; }
.rl-seg button[aria-pressed="true"], .rl-seg button.on { background: var(--rl-surface); color: var(--rl-ink); box-shadow: 0 1px 2px var(--rl-shadow), 0 0 0 1.5px var(--rl-accent); }

/* Cards (the Card style layer) */
.rl-card { position: relative; background: var(--rl-surface); border-radius: var(--r); border: 1.5px solid var(--rl-line); padding: var(--pad); color: var(--rl-ink); }
html[data-rl-card="outline"] .rl-card { border: 1.5px solid var(--rl-line); box-shadow: none; }
html[data-rl-card="lifted"] .rl-card { border: 1px solid transparent; box-shadow: 0 1px 2px var(--rl-shadow), 0 14px 30px -14px var(--rl-shadow); }
html[data-rl-card="plate"] .rl-card { border: 2.5px solid var(--rl-ink); box-shadow: inset 0 0 0 3px var(--rl-surface), inset 0 0 0 4.5px var(--rl-line); }
html[data-rl-card="plate"] .rl-card::before, html[data-rl-card="plate"] .rl-card::after { content: ""; position: absolute; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--rl-ink); opacity: .75; }
html[data-rl-card="plate"] .rl-card::before { left: 9px; }
html[data-rl-card="plate"] .rl-card::after { right: 9px; }
.rl-card-flat { background: var(--rl-surface2); border-color: transparent; box-shadow: none; }

/* Badges, plate chip, key-value list */
.rl-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--rl-accent-soft); color: var(--rl-accent-text); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rl-badge-good { background: color-mix(in srgb, var(--rl-good) 9%, var(--rl-surface)); color: var(--rl-good); }
.rl-badge-warn { background: color-mix(in srgb, var(--rl-warn) 9%, var(--rl-surface)); color: var(--rl-warn); }
.rl-badge-bad { background: color-mix(in srgb, var(--rl-bad) 8%, var(--rl-surface)); color: var(--rl-bad); }
.rl-badge-ink { background: var(--rl-ink); color: var(--rl-bg); }
.rl-plate { display: inline-flex; align-items: center; gap: 8px; padding: 2px 10px; border: 2px solid var(--rl-ink); border-radius: 6px; background: var(--rl-surface); color: var(--rl-ink); font-family: var(--rl-font-num); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.rl-plate i { width: 5px; height: 5px; border-radius: 50%; background: var(--rl-ink); opacity: .6; }
.rl-plate b { font-weight: 800; }
html[data-rl-sub="plate"] .rl-plate { background: #0D0D0D; color: #F4C400; border-color: #0D0D0D; }
html[data-rl-sub="plate"] .rl-plate i { background: #F4C400; }
.rl-kv { display: flex; flex-direction: column; }
.rl-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; }
.rl-kv > div > span:first-child { color: var(--rl-ink2); }
.rl-kv > div > b, .rl-kv > div > span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.rl-kv .rl-total { margin-top: 6px; padding-top: 12px; border-top: 2px dashed var(--rl-line); font-weight: 800; font-size: 18px; }
.rl-kv .rl-total > span:first-child { color: var(--rl-ink); }
.rl-divider { height: 1px; background: var(--rl-line); border: 0; margin: var(--gap) 0; }

/* Sheet (bottom sheet on a phone, dialog on a computer), toast, skeleton, empty */
.rl-ov { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 12, 16, 0); transition: background-color .22s var(--ease); }
.rl-ov.in { background: rgba(8, 12, 16, .52); }
.rl-sheet { width: 100%; max-width: 560px; max-height: 92dvh; display: flex; flex-direction: column; background: var(--rl-surface); color: var(--rl-ink); border-radius: calc(var(--r) + 6px) calc(var(--r) + 6px) 0 0; box-shadow: 0 -20px 60px -10px rgba(0,0,0,.4); transform: translateY(24px); opacity: 0; transition: transform .26s var(--ease), opacity .2s; }
.rl-ov.in .rl-sheet { transform: none; opacity: 1; }
.rl-sheet-lg { max-width: 760px; } .rl-sheet-sm { max-width: 440px; } .rl-sheet-full { max-width: 980px; max-height: 96dvh; }
.rl-sheet-grab { width: 44px; height: 5px; border-radius: 999px; background: var(--rl-line); margin: 10px auto 0; flex: none; }
.rl-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 6px 20px; flex: none; }
.rl-sheet-title { font-size: 20px; }
.rl-sheet-body { padding: 6px 20px 20px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.rl-sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rl-line); flex: none; }
.rl-sheet-foot .rl-btn { flex: 1 1 0; }
@media (min-width: 720px) { .rl-ov { align-items: center; } .rl-sheet { border-radius: calc(var(--r) + 6px); transform: translateY(14px) scale(.98); } .rl-sheet-grab { display: none; } .rl-sheet-foot .rl-btn { flex: 0 0 auto; min-width: 120px; } }
.rl-toasts { position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.rl-toast { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 12px 18px; border-radius: var(--r-btn); background: var(--rl-ink); color: var(--rl-bg); font-weight: 600; font-size: 15px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .24s var(--ease); }
.rl-toast.in { opacity: 1; transform: none; }
.rl-toast-err { background: var(--rl-bad); color: #fff; }
.rl-skel { border-radius: var(--r); background: linear-gradient(100deg, var(--rl-bg2) 30%, var(--rl-surface2) 50%, var(--rl-bg2) 70%) 0 0 / 220% 100%; animation: rl-shimmer 1.4s linear infinite; margin-bottom: var(--gap); }
@keyframes rl-shimmer { to { background-position: -120% 0; } }
.rl-empty { text-align: center; padding: 44px 22px; color: var(--rl-ink2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rl-empty h3 { color: var(--rl-ink); font-size: 19px; margin-top: 6px; }
.rl-empty p { max-width: 36ch; }
.rl-empty .rl-btn { margin-top: 12px; }

/* Phone notifications control (RL.push.mount): an icon, what is going on in plain words, one button. Used by the website's account page,
   the owner panel's bell and the hub desk's Me page. Colours only from the kit variables, so every look and both grounds follow. */
.rl-push { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--rl-surface); border: 1.5px solid var(--rl-line); border-radius: var(--r); color: var(--rl-ink); }
.rl-push-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--rl-accent-soft); color: var(--rl-accent-text); }
.rl-push[data-state="on"] .rl-push-ic { background: color-mix(in srgb, var(--rl-good) 12%, var(--rl-surface)); color: var(--rl-good); }
.rl-push[data-state="blocked"] .rl-push-ic { background: color-mix(in srgb, var(--rl-warn) 12%, var(--rl-surface)); color: var(--rl-warn); }
.rl-push-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-push-t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.rl-push-s { font-size: 13px; line-height: 1.45; color: var(--rl-ink2); }
.rl-push-b { flex: 0 0 auto; }
.rl-push[data-busy="1"] .rl-push-b { opacity: .6; pointer-events: none; }
@media (max-width: 420px) { .rl-push { flex-wrap: wrap; } .rl-push-b { width: 100%; } }

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