@import url('https://fonts.googleapis.com/css2?family=DM+Mono&family=DM+Sans:wght@400;500;600;700&display=swap');

:root { font-family: "DM Sans", system-ui, sans-serif; color: #18334d; background: #f7fbff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: radial-gradient(circle at 93% 5%, #fff0cf 0, transparent 25rem), radial-gradient(circle at 2% 31%, #dff4ff 0, transparent 23rem), #f7fbff; }
main { width: min(100%, 540px); min-height: 100svh; margin: auto; padding: 24px 20px 36px; display: flex; flex-direction: column; }
header { display: flex; align-items: center; justify-content: space-between; }
.view-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 28px 0 0; padding: 4px; background: #e6f1f8; border-radius: 12px; }
.view-tab { border: 0; border-radius: 9px; padding: 10px 8px; background: transparent; color: #5b7489; font: 700 .82rem "DM Sans"; cursor: pointer; }
.view-tab.is-active { background: #ffffff; color: #25455e; box-shadow: 0 2px 7px #61809d26; }
.brand { font-weight: 700; font-size: 1.18rem; letter-spacing: -.04em; display: flex; align-items: center; gap: 7px; }
.brand-mark { color: #ff866f; font-size: 1.7rem; transform: rotate(-30deg); line-height: 1; }
.icon-button { border: 1px solid #c9ddea; background: #ffffff; color: #31536c; border-radius: 50%; width: 38px; height: 38px; font-size: 1.3rem; cursor: pointer; }
.hero { padding: 40px 4px 28px; }
.eyebrow, .label, .card-topline { font: 11px "DM Mono", monospace; letter-spacing: .09em; color: #658096; }
h1 { margin: 8px 0 4px; font-size: clamp(2rem, 9vw, 2.9rem); letter-spacing: -.065em; line-height: 1; }
.walk { margin: 0; color: #59738a; font-size: .95rem; }
.location-button { margin-top: 20px; border: 0; padding: 11px 14px; background: #ffd9c9; color: #69382d; border-radius: 10px; font: 700 .84rem "DM Sans"; cursor: pointer; }
.arrival-card { background: #e9e7ff; color: #26365b; border-radius: 20px; padding: 21px; box-shadow: 0 16px 34px #6883a22b; }
.card-topline { color: #65709c; display: flex; align-items: center; gap: 7px; }
.updated { margin-left: auto; font-size: 10px; letter-spacing: 0; }
.pulse { height: 8px; width: 8px; border-radius: 50%; background: #6dca99; box-shadow: 0 0 0 4px #6dca9938; }
.label { color: #6773a0; margin: 27px 0 0; }
.arrival-main { display: flex; align-items: baseline; margin: -5px 0 0; }
.arrival-main strong { font-size: clamp(4.6rem, 24vw, 7.5rem); letter-spacing: -.1em; line-height: .9; }
.arrival-main span { font: .9rem "DM Mono"; margin-left: 13px; }
.direction { margin: 13px 0 0; font-weight: 500; }
.divider { height: 1px; background: #c7c8eb; margin: 22px 0 17px; }
.following { display: flex; justify-content: space-between; } .following div { display: grid; gap: 4px; } .following div:last-child { text-align: right; }
.following span, .following small { font-size: .72rem; color: #6b77a2; } .following strong { font-size: .93rem; }
.controls { margin-top: 30px; } .controls label { display: block; font-size: .82rem; color: #59738a; margin: 17px 0 9px; } .controls label:first-child { margin-top: 0; }
.commute-controls { margin-top: 0; }
.commute-hero { padding: 40px 4px 28px; }
.commute-controls label { display: block; font-size: .82rem; color: #59738a; margin: 17px 0 9px; }
.commute-intro { margin: 30px 0 20px; color: #59738a; font-size: .95rem; line-height: 1.45; }
.commute-notice { margin-top: 24px; }
#trip-eta { align-items: flex-start; }
#trip-eta-text { font-size: 1rem; line-height: 1.5; font-weight: 600; color: #31536c; }
#trip-eta-text .eta-arrival-time { color: #eb7f68; }
select { appearance: none; width: 100%; padding: 15px; border: 1px solid #c9ddea; border-radius: 10px; color: #25455e; background: #ffffff; font: 500 1rem "DM Sans"; }
.search-row { display: flex; gap: 8px; margin-bottom: 6px; }
.search-row input { min-width: 0; flex: 1; padding: 13px; border: 1px solid #c9ddea; border-radius: 10px; color: #25455e; background: #ffffff; font: 500 .93rem "DM Sans"; }
.search-row button { border: 0; border-radius: 10px; padding: 0 16px; background: #bcebd3; color: #23533d; font-weight: 700; cursor: pointer; }
.field-help { margin: 0 0 20px; color: #7890a1; font-size: .72rem; }
.notice { margin: 19px 1px 0; display: flex; gap: 10px; color: #5e778b; font-size: .77rem; line-height: 1.45; } .notice > span { flex: 0 0 17px; height: 17px; text-align: center; border: 1px solid #9cb6c7; border-radius: 50%; font-size: .7rem; } .notice p { margin: 0; }
.source-note { margin: 16px 1px 0; color: #7890a1; font-size: .7rem; }
.map-panel { margin-top: 25px; padding: 15px; border: 1px solid #c9ddea; border-radius: 14px; background: #ffffffb8; } .map-heading { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; } .map-panel .eyebrow { margin: 0; } .map-panel p:not(.eyebrow) { margin: 5px 0 12px; color: #59738a; font-size: .78rem; } #point-map { width: 100%; height: 260px; border-radius: 9px; background: #dff4ff; overflow: hidden; } #reset-map { border: 1px solid #c9ddea; border-radius: 8px; padding: 7px 9px; white-space: nowrap; color: #31536c; background: #fff; font: 700 .7rem "DM Sans"; cursor: pointer; } #reset-map:disabled { opacity: .45; cursor: not-allowed; }
.footer-links { margin-top: auto; padding-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer-links a { color: #31536c; text-decoration: none; font-weight: 700; }
.footer-links span { color: #eb7f68; margin-left: 5px; }
@media (min-width: 600px) { main { padding-top: 32px; } }
