:root {
  --bg: #0b0f0c;
  --panel: rgba(14, 20, 16, 0.92);
  --panel-solid: #121a14;
  --ink: #f3f7f1;
  --muted: #9aab9e;
  --lime: #c8f135;
  --lime-deep: #9bc40a;
  --ocean: #1f6f8b;
  --danger: #ff6b4a;
  --ok: #5ddea0;
  --line: rgba(243, 247, 241, 0.12);
  --shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font: "Outfit", sans-serif;
  --display: "Syne", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 111, 139, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(200, 241, 53, 0.12), transparent 45%),
    var(--bg);
}

#app {
  position: relative;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid var(--line);
}

.workspace {
  position: relative;
  height: 100%;
}

.map-stage {
  position: relative;
  height: 100%;
  min-height: 0;
}

.side-rail {
  position: absolute;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}

.side-rail .sheet {
  pointer-events: auto;
}

.desktop-rail-label {
  display: none;
}

.topbar {
  position: absolute;
  z-index: 500;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(180deg, rgba(11, 15, 12, 0.92), rgba(11, 15, 12, 0));
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lime), #e8ff8a 45%, var(--ocean));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-chip {
  display: grid;
  gap: 2px;
  padding: 7px 12px;
  border-radius: 14px;
  border: 1px solid rgba(200, 241, 53, 0.28);
  background: rgba(18, 26, 20, 0.9);
  backdrop-filter: blur(10px);
  text-align: right;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.balance-chip span {
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.balance-chip strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.balance-chip[hidden] {
  display: none !important;
}

.search-bar {
  position: absolute;
  z-index: 500;
  top: calc(68px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: grid;
  gap: 8px;
}

.search-bar input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(14, 20, 16, 0.88);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  font: 500 0.95rem/1.2 var(--font);
  outline: none;
  backdrop-filter: blur(12px);
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar input:focus {
  border-color: rgba(200, 241, 53, 0.45);
}

.map-filters {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(14, 20, 16, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  width: fit-content;
}

.map-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  font: 600 0.72rem/1 var(--font);
  cursor: pointer;
}

.map-filter.is-active {
  background: rgba(200, 241, 53, 0.16);
  color: var(--lime);
}

.map-filter-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.map-filter-icon.mech {
  background: rgba(200, 241, 53, 0.2);
}

.map-filter-icon.elec {
  background: rgba(110, 190, 255, 0.22);
  color: #9fd4ff;
}

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

.nearby-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.nearby-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}

.nearby-item strong {
  display: block;
  font-size: 0.92rem;
}

.nearby-item small {
  color: var(--muted);
}

.nearby-count {
  font-family: var(--display);
  font-weight: 800;
  color: var(--lime);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(4, 8, 5, 0.72);
  backdrop-filter: blur(6px);
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  width: min(320px, calc(100% - 40px));
  padding: 28px 22px 24px;
  border-radius: 24px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  text-align: center;
}

.pulse {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(200, 241, 53, 0.35);
  background: radial-gradient(circle at center, rgba(200, 241, 53, 0.28), transparent 65%);
  animation: pulse 1.15s ease-out infinite;
}

.modal-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
}

.modal-card h3 {
  margin: 6px 0 8px;
  font-family: var(--display);
}

.modal-card p {
  margin: 0;
  color: var(--muted);
}

.progress {
  margin-top: 18px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#unlock-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lime-deep), var(--lime));
  transition: width 0.15s linear;
}

@keyframes pulse {
  0% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(0.96);
  }
}

.auth-card {
  text-align: left;
  position: relative;
}

.auth-card .close-sheet {
  position: absolute;
  top: 12px;
  right: 12px;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-form input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 12px;
  font: 500 0.95rem/1.2 var(--font);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(200, 241, 53, 0.45);
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.85rem;
}

.text-link {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--lime);
  font: 600 0.85rem var(--font);
  cursor: pointer;
  padding: 0;
}

.topup-row {
  display: flex;
  gap: 8px;
  margin: 14px 0 8px;
}

.section-title {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: 1rem;
}

.ride-history {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.ride-history li {
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  overflow: hidden;
}

.ride-history .history-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.ride-history .history-item:hover {
  background: rgba(200, 241, 53, 0.08);
}

.ride-history strong {
  color: var(--lime);
}

.muted-item {
  color: var(--muted);
  border: 0 !important;
  background: transparent !important;
}

.toast {
  position: fixed;
  z-index: 1400;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: min(420px, calc(100% - 28px));
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(18, 26, 20, 0.96);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.toast[hidden] {
  display: none !important;
}

.brand-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(18, 26, 20, 0.85);
  color: var(--ink);
  border-radius: 14px;
  padding: 8px 14px;
  font: 600 0.85rem/1 var(--font);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

#map {
  height: 100%;
  width: 100%;
  background: #152018;
}

.ride-fab {
  position: absolute;
  z-index: 720;
  left: 50%;
  bottom: calc(118px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px 10px 12px;
  background: rgba(14, 20, 16, 0.92);
  color: var(--ink);
  border: 1px solid rgba(200, 241, 53, 0.35);
  font: 600 0.82rem/1 var(--font);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  max-width: calc(100% - 32px);
}

.ride-fab:not([hidden]) {
  display: inline-flex;
}

.ride-fab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 241, 53, 0.15);
  animation: ride-pulse 1.4s ease-in-out infinite;
}

.ride-fab-label {
  color: var(--muted);
  white-space: nowrap;
}

.ride-fab strong {
  color: var(--lime);
  font-weight: 700;
  white-space: nowrap;
}

@keyframes ride-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.7;
  }
}

.scan-fab {
  position: absolute;
  z-index: 720;
  left: 50%;
  bottom: calc(248px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 18px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--lime), #e7ff7a);
  color: #10200c;
  font: 700 0.95rem/1 var(--font);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.scan-fab-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #10200c;
  border-radius: 4px;
  position: relative;
}

.scan-fab-icon::before,
.scan-fab-icon::after {
  content: "";
  position: absolute;
  background: #10200c;
}

.scan-fab-icon::before {
  inset: 3px;
  opacity: 0.35;
}

.scan-fab-icon::after {
  left: -1px;
  right: -1px;
  top: 7px;
  height: 2px;
}

.sheet {
  position: absolute;
  z-index: 600;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 14px 18px 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(28, 40, 32, 0.98), var(--panel-solid) 40%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: rise 280ms ease-out;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet[hidden] {
  display: none !important;
}

/* Mobile: peek only the title when map is in use */
#welcome-sheet.is-collapsed {
  transform: translateY(calc(100% - 92px));
  overflow: hidden;
  cursor: pointer;
}

#welcome-sheet.is-collapsed .lede,
#welcome-sheet.is-collapsed .stat-row,
#welcome-sheet.is-collapsed .nearby-list,
#welcome-sheet.is-collapsed .fineprint,
#welcome-sheet.is-collapsed #welcome-scan-btn {
  opacity: 0;
  pointer-events: none;
}

.map-stage.panel-collapsed ~ .scan-fab,
#app:has(.map-stage.panel-collapsed) .scan-fab {
  bottom: calc(118px + env(safe-area-inset-bottom));
}

.stat-grid-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
}

.stat-mini {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(200, 241, 53, 0.08);
  border: 1px solid rgba(200, 241, 53, 0.16);
  text-align: center;
}

.stat-mini span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.stat-mini strong {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--lime);
}

#welcome-scan-btn {
  margin: 0 0 14px;
}

.mock-scan-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(243, 247, 241, 0.2);
  margin: 0 auto 14px;
}

.sheet h1,
.sheet h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.sheet h1 {
  font-size: clamp(1.6rem, 6vw, 2rem);
}

.sheet h2 {
  font-size: 1.45rem;
  padding-right: 28px;
}

.lede {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.stat-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.stat-row li {
  background: rgba(200, 241, 53, 0.08);
  border: 1px solid rgba(200, 241, 53, 0.16);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.stat-row strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lime);
}

.stat-row span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fineprint,
.hint,
.address,
.docks {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.fineprint {
  font-size: 0.75rem;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
}

.eyebrow.live {
  color: var(--lime);
}

.eyebrow.done {
  color: var(--ocean);
}

.eyebrow.warn {
  color: var(--danger);
}

.close-sheet {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

.bike-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 12px;
}

.bike-card {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.bike-card:hover:not(:disabled) {
  transform: translateY(-1px);
}

.bike-card.is-selected {
  border-color: var(--lime);
  background: rgba(200, 241, 53, 0.12);
}

.bike-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bike-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.bike-count {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.bike-price {
  color: var(--muted);
  font-size: 0.78rem;
}

.primary-btn {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--lime), #e7ff7a);
  color: #10200c;
  font: 700 1rem/1 var(--font);
  cursor: pointer;
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-btn.danger {
  background: linear-gradient(135deg, #ff8a6e, var(--danger));
  color: #2a0d06;
}

.ride-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.ride-metrics > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ride-metrics strong {
  font-size: 1rem;
  word-break: break-word;
}

.summary-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(31, 111, 139, 0.18);
  border: 1px solid rgba(31, 111, 139, 0.35);
  line-height: 1.55;
}

.summary-card strong {
  color: var(--lime);
}

.station-marker {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  border: 1.5px solid #0b0f0c;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
  background: var(--lime);
  position: relative;
}

.station-marker span {
  transform: rotate(45deg);
  font-size: 0.62rem;
  font-weight: 800;
  color: #10200c;
}

.station-marker .marker-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  transform: rotate(45deg);
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  font-weight: 800;
  background: #10200c;
  color: var(--lime);
  border: 1px solid rgba(200, 241, 53, 0.5);
}

.station-marker .marker-badge.elec {
  color: #9fd4ff;
  border-color: rgba(110, 190, 255, 0.55);
}

.station-marker.is-low {
  background: #f0c24b;
}

.station-marker.is-empty {
  background: #6b756e;
}

.station-marker.is-closed {
  background: var(--danger);
}

.station-marker.is-end {
  background: var(--ocean);
}

.station-marker.is-filtered-out {
  opacity: 0.22;
  filter: grayscale(0.7);
}

.metric-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
}

.ghost-btn.full {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

#dock-ride {
  margin-top: 14px;
}

.leaflet-container {
  font: inherit;
  background: #152018;
}

.leaflet-control-attribution {
  background: rgba(11, 15, 12, 0.7) !important;
  color: var(--muted) !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: var(--lime) !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pay-card,
.scan-card {
  text-align: left;
  position: relative;
  width: min(400px, calc(100% - 28px));
}

.pay-card-embedded {
  width: min(520px, calc(100% - 24px));
  max-height: min(90dvh, 860px);
  overflow: auto;
}

.checkout-mount {
  min-height: 320px;
  margin-top: 8px;
}

.pay-card .close-sheet,
.scan-card .close-sheet {
  position: absolute;
  top: 12px;
  right: 12px;
}

.pay-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pay-methods {
  display: grid;
  gap: 10px;
}

.pay-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: 700 1.05rem/1 var(--font);
  cursor: pointer;
}

.pay-method.apple {
  background: #111;
  color: #fff;
}

.pay-method.google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
}

.pay-method.is-preferred {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.pay-logo {
  width: 22px;
  height: 22px;
  display: inline-block;
}

.apple-logo {
  background:
    radial-gradient(circle at 35% 35%, #fff 0 28%, transparent 29%),
    linear-gradient(#fff, #fff);
  mask: radial-gradient(circle at 70% 20%, transparent 0 22%, #000 23%);
  border-radius: 6px;
  position: relative;
}

.apple-logo::before {
  content: "";
  position: absolute;
  inset: 3px 5px 2px;
  border: 2px solid #fff;
  border-radius: 8px 8px 10px 10px;
  border-top-width: 3px;
}

.google-logo {
  background:
    conic-gradient(from 0deg, #ea4335 0 25%, #fbbc05 25% 50%, #34a853 50% 75%, #4285f4 75%);
  border-radius: 50%;
  position: relative;
}

.google-logo::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}

.pay-progress {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
}

.pay-pulse {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.scan-stage {
  position: relative;
  margin: 12px 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #0a100c;
  aspect-ratio: 3 / 4;
  max-height: 420px;
}

.scan-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #152018;
}

.scan-frame {
  position: absolute;
  inset: 18% 14%;
  border: 2px solid rgba(200, 241, 53, 0.85);
  border-radius: 16px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.scan-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(11, 15, 12, 0.82);
  color: var(--ink);
  font-size: 0.82rem;
  text-align: center;
}

.scan-card code {
  color: var(--lime);
  font-size: 0.72rem;
}

@media (min-width: 960px) {
  body {
    display: block;
    min-height: 100%;
    padding: 0;
  }

  #app {
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    height: 100%;
  }

  .map-stage {
    min-height: 100%;
    border-right: 1px solid var(--line);
  }

  .side-rail {
    position: relative;
    inset: auto;
    pointer-events: auto;
    height: 100%;
    overflow: auto;
    padding: 20px 18px 28px;
    background:
      linear-gradient(180deg, rgba(18, 28, 22, 0.98), #0e1511 30%),
      var(--panel-solid);
  }

  .desktop-rail-label {
    display: block;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .sheet {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-height: none;
    margin: 0;
    box-shadow: none;
    animation: none;
    transition: none;
  }

  #welcome-sheet.is-collapsed {
    transform: none;
    overflow: auto;
    cursor: default;
  }

  #welcome-sheet.is-collapsed .lede,
  #welcome-sheet.is-collapsed .stat-row,
  #welcome-sheet.is-collapsed .nearby-list,
  #welcome-sheet.is-collapsed .fineprint {
    opacity: 1;
    pointer-events: auto;
  }

  .sheet-handle {
    display: none;
  }

  .scan-fab,
  #app:has(.map-stage.panel-collapsed) .scan-fab {
    left: auto;
    right: 28px;
    bottom: 28px;
    transform: none;
  }

  .ride-fab {
    left: auto;
    right: 28px;
    bottom: 88px;
    transform: none;
  }

  .search-bar {
    right: 16px;
    left: 16px;
    max-width: 420px;
  }

  .top-actions .ghost-btn:last-child {
    display: inline-flex;
  }
}
