:root { color-scheme: light; --ink:#151517; --muted:#77736d; --paper:#f7f4ef; --line:#ded9d1; --accent:#ee5b3c; --green:#164f3c; }
* { box-sizing:border-box; }
html, body, main { width:100%; height:100%; margin:0; overflow:hidden; }
body { font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:var(--ink); background:var(--paper); }
button, input { font:inherit; }
button { color:inherit; }
#map { position:absolute; inset:0; background:#d9ddd5; }
.leaflet-control-attribution { font-size:9px; }
.topbar { position:absolute; z-index:500; top:max(14px, env(safe-area-inset-top)); left:14px; right:14px; display:flex; align-items:flex-start; gap:10px; pointer-events:none; }
.station-picker, .icon-button, .timer-button { pointer-events:auto; border:0; background:rgba(247,244,239,.96); box-shadow:0 5px 22px rgba(20,20,20,.15); }
.station-picker { min-width:0; flex:1; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:9px; align-items:center; min-height:54px; padding:8px 13px; border-radius:17px; text-align:left; }
.station-picker span:first-child { font-size:12px; font-weight:800; color:var(--muted); white-space:nowrap; }
.station-picker strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.chevron { font-size:20px; color:var(--muted); }
.top-actions { display:flex; gap:8px; }
.icon-button { width:48px; height:48px; border-radius:50%; font-size:23px; font-weight:900; }
.timer-button { min-height:48px; border-radius:24px; padding:0 16px; font-size:13px; font-weight:750; white-space:nowrap; }
.bottom-sheet { position:absolute; z-index:500; left:10px; right:10px; bottom:max(10px, env(safe-area-inset-bottom)); background:rgba(247,244,239,.97); border:1px solid rgba(255,255,255,.85); box-shadow:0 10px 35px rgba(20,20,20,.23); border-radius:26px; padding:8px 18px 18px; backdrop-filter:blur(18px); }
.handle { display:block; width:42px; height:5px; padding:0; margin:2px auto 14px; border:0; border-radius:99px; background:#c6c1b9; }
.trip-row { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; }
.eyebrow { color:var(--muted); font-size:10px; font-weight:850; letter-spacing:.12em; }
h1 { margin:3px 0 0; max-width:68vw; font-size:clamp(18px,5vw,27px); line-height:1.05; letter-spacing:-.03em; }
.distance { font-size:14px; color:var(--muted); font-weight:750; white-space:nowrap; }
.availability { display:grid; grid-template-columns:repeat(3,1fr); border-block:1px solid var(--line); margin:16px 0; padding:13px 0; }
.availability div { display:flex; flex-direction:column; text-align:center; border-right:1px solid var(--line); }
.availability div:last-child { border:0; }
.availability strong { font-size:22px; }
.availability span { color:var(--muted); font-size:11px; font-weight:700; }
.bottom-actions { display:flex; gap:11px; }
.icon-button.light { flex:0 0 52px; border:1px solid var(--line); box-shadow:none; background:#fff; }
.ride-button { flex:1; min-height:53px; border:0; border-radius:27px; background:var(--ink); color:white; font-weight:850; font-size:16px; }
.ride-button:disabled { opacity:.45; }
dialog { border:0; padding:0; background:transparent; width:min(560px, calc(100% - 20px)); max-height:calc(100% - 30px); }
dialog::backdrop { background:rgba(10,10,10,.42); backdrop-filter:blur(3px); }
.dialog-card { display:flex; flex-direction:column; max-height:calc(100vh - 30px); background:var(--paper); border-radius:25px; padding:20px; box-shadow:0 24px 80px rgba(0,0,0,.35); }
.dialog-card.compact { gap:18px; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
h2 { margin:2px 0 12px; font-size:24px; letter-spacing:-.03em; }
.close-button { border:0; background:#e7e2dc; border-radius:50%; width:38px; height:38px; font-size:25px; }
#stationSearch { border:1px solid var(--line); border-radius:14px; background:white; padding:13px 15px; outline:none; }
#stationList { overflow:auto; list-style:none; margin:12px -6px 0; padding:0 6px; }
#stationList button { width:100%; display:grid; grid-template-columns:35px 1fr; text-align:left; gap:8px; padding:11px 5px; border:0; border-bottom:1px solid var(--line); background:transparent; }
#stationList button span:first-child { color:var(--muted); font-variant-numeric:tabular-nums; }
.setting { display:flex; align-items:center; justify-content:space-between; gap:20px; font-weight:650; }
.setting input { width:22px; height:22px; accent-color:var(--green); }
.history-summary { display:grid; gap:10px; color:var(--muted); }
.secondary-button { border:1px solid #d5a79d; background:#fff4f0; color:#9f321f; border-radius:15px; padding:13px; font-weight:800; }
.station-marker { background:var(--paper); border:1.5px solid var(--ink); border-radius:50%; display:grid; place-items:center; width:14px!important; height:14px!important; margin-left:-7px!important; margin-top:-7px!important; font-size:7px; font-weight:850; box-shadow:0 1px 4px rgba(0,0,0,.25); }
.station-marker.visited { background:#b8b4ad; color:white; border-color:#777; }
.station-marker.next { width:20px!important; height:20px!important; margin-left:-10px!important; margin-top:-10px!important; background:var(--ink); border:2px solid white; color:white; font-size:8px; box-shadow:0 0 0 2px var(--ink),0 3px 10px rgba(0,0,0,.28); }
.station-marker.current { width:24px!important; height:24px!important; margin-left:-12px!important; margin-top:-12px!important; background:var(--accent); border-color:white; color:white; font-size:9px; box-shadow:0 0 0 2px var(--accent),0 4px 12px rgba(0,0,0,.3); }
.user-location { width:18px; height:18px; border:3px solid white; border-radius:50%; background:#2878db; box-shadow:0 0 0 2px #2878db; }
@media (min-width:760px) { .topbar { max-width:780px; left:24px; top:24px; } .bottom-sheet { left:auto; right:24px; width:390px; bottom:24px; } h1 { max-width:270px; } }
@media (max-width:560px) { .timer-button { display:none; } .topbar { right:72px; } .top-actions { position:absolute; left:calc(100% + 10px); } }
