:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #10242e;
  --muted: #4d6470;
  --line: #d5dfe3;
  --primary: #0a5c7a;
  --primary-ink: #ffffff;
  --warn: #b8401c;
  --warn-bg: #fdece6;
  --ok: #1d6b48;
  --ok-bg: #e5f3ec;
  --demo: #3b2a6b;
  --demo-bg: #ece8f8;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1a20;
    --surface: #14262e;
    --ink: #e8f0f3;
    --muted: #9db3bd;
    --line: #2a424d;
    --primary: #5bb8d9;
    --primary-ink: #06222d;
    --warn: #ff9b7a;
    --warn-bg: #3a1f17;
    --ok: #7fd1a6;
    --ok-bg: #153325;
    --demo: #cfc3ff;
    --demo-bg: #261f45;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 240px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--font); min-height: 100vh;
}
.demo-banner {
  background: var(--demo-bg); color: var(--demo); border-bottom: 2px solid var(--demo);
  font-size: 13px; font-weight: 600; padding: 8px 16px; text-align: center;
}
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; max-width: 720px; margin: 0 auto;
}
.brand { font-weight: 700; letter-spacing: .01em; }
.langs { display: flex; gap: 4px; }
.langs button {
  min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
main { max-width: 720px; margin: 0 auto; padding: 0 16px 220px; }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 0 0 8px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 0 0 16px;
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; text-align: right; }
.bikes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.bike {
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px;
  padding: 10px 6px; min-height: 64px; font: inherit; text-align: center; cursor: pointer;
}
.bike strong { display: block; font-size: 18px; }
.bike span { font-size: 12px; color: var(--muted); }
.bike[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.bike:disabled { opacity: .55; cursor: not-allowed; background: transparent; }
.btn {
  display: block; width: 100%; min-height: 52px; border-radius: 8px; border: 1px solid var(--primary);
  background: var(--primary); color: var(--primary-ink); font: inherit; font-weight: 700; font-size: 17px;
  padding: 12px 16px; cursor: pointer; text-align: center;
}
.btn.secondary { background: transparent; color: var(--primary); }
.btn.quiet { background: transparent; border-color: var(--line); color: var(--ink); font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px;
}
.cta { z-index: 1500; position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.cta > div { max-width: 720px; margin: 0 auto; display: grid; gap: 8px; }
.alert { border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid; }
.alert.warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.alert.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.alert.demo { background: var(--demo-bg); border-color: var(--demo); color: var(--demo); }
.alert strong { display: block; }
.timer { font-size: 64px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0; }
.timer.over { color: var(--warn); }
.instr { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.instr li { border-left: 4px solid var(--primary); padding-left: 12px; }
.instr b { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; min-height: 44px; }
.check input { width: 24px; height: 24px; flex: none; margin-top: 2px; }
#map { isolation: isolate; height: 300px; border-radius: 8px; border: 1px solid var(--line); background: #dfe9ec; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 8px 0; color: var(--muted); }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 4px solid; vertical-align: middle; margin-right: 6px; }
.legend i.dash { border-top-style: dashed; }
.legend i.dot { width: 10px; height: 10px; border: 3px solid; border-radius: 50%; }
.sim-badge { background: var(--demo-bg); color: var(--demo); border: 1px solid var(--demo); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 13px; display: inline-block; margin-top: 6px; }
table.receipt { width: 100%; border-collapse: collapse; }
table.receipt th { text-align: left; font-weight: 400; color: var(--muted); padding: 6px 0; }
table.receipt td { text-align: right; font-weight: 600; padding: 6px 0; }
table.receipt tr + tr { border-top: 1px solid var(--line); }
details.demo-panel { background: var(--demo-bg); color: var(--demo); border: 1px dashed var(--demo); border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; }
details.demo-panel summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details.demo-panel .btn { margin-top: 8px; font-size: 15px; min-height: 44px; }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: end center; z-index: 2000; }
.sheet { background: var(--surface); width: 100%; max-width: 720px; border-radius: 16px 16px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.chip { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.chip.available { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.chip.out_of_service, .chip.return_pending { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.chip.active, .chip.reserved { background: var(--demo-bg); color: var(--demo); border-color: var(--demo); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 720px) { .timer { font-size: 80px; } #map { height: 380px; } }

.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }

h1:focus { outline: none; }
.consent { border: 1px solid var(--primary); border-radius: 8px; padding: 12px; background: var(--bg); }
.consent-btns { display: grid; gap: 8px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
