:root{--ink: #0B1640;--muted: #5A6180;--surface: #F2F4F8;--person-a: #2440E6;--person-b: #D6336C;--best: #EAF6F0;--shadow: 0 10px 40px #0B16401F, 0 1px 3px #0B16400F}html,body,#map{margin:0;padding:0;height:100%;background-color:#e8eaf1}body{color:var(--ink);font:15px/20px system-ui,sans-serif;-webkit-font-smoothing:antialiased}h1,h2,p,ol,fieldset,legend{margin:0;padding:0}[hidden]{display:none!important}#panel{position:absolute;top:16px;left:16px;bottom:16px;z-index:2;box-sizing:border-box;width:420px;overflow-y:auto;border-radius:24px;background-color:#fff;box-shadow:var(--shadow)}.brand{display:flex;align-items:center;gap:10px;padding:20px 24px 0}.brand-mark{width:30px;height:30px;border-radius:9px;background-color:var(--ink);color:#fff;font-size:17px;font-weight:800;line-height:30px;text-align:center}.brand-name{font-size:18px;font-weight:700;letter-spacing:-.02em;line-height:22px}.title{display:flex;flex-direction:column;gap:8px;padding:28px 24px 18px}.title h1{font-size:34px;font-weight:700;letter-spacing:-.03em;line-height:38px}.title p{color:var(--muted);line-height:21px}.person{flex-shrink:0;width:28px;height:28px;border-radius:50%;color:#fff;font:800 14px/28px system-ui,sans-serif;text-align:center}.person-a{background-color:var(--person-a)}.person-b{background-color:var(--person-b)}.person-marker{box-sizing:border-box;width:40px;height:40px;border:3px solid #FFFFFF;box-shadow:0 4px 12px #0b164040;font-size:18px;line-height:34px;cursor:grab}.origins{display:flex;flex-direction:column;gap:8px;padding:0 16px}.origins-card{padding:4px;border-radius:20px;background-color:var(--surface)}.origin{display:flex;align-items:center;gap:12px;height:60px;padding:0 16px 0 14px;border-radius:16px;cursor:text}.origin:focus-within{background-color:#fff;box-shadow:0 0 0 2px var(--person-a),0 6px 16px #2440e61f}.origin-field{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0}.origin-label{color:var(--muted);font-size:12px;font-weight:500;line-height:16px}.origin input{width:100%;padding:0;border:0;outline:0;background:none;color:var(--ink);font:600 17px/22px system-ui,sans-serif;letter-spacing:-.01em;text-overflow:ellipsis}.hint{display:flex;align-items:center;gap:8px;padding:0 14px;color:var(--muted);font-size:13px;font-weight:500;line-height:18px}.hint svg{flex-shrink:0}.gap{margin-top:22px;padding:0 24px;border:0}.gap legend{font-weight:600}.gap-choices{display:flex;gap:2px;margin-top:10px;padding:3px;border-radius:12px;background-color:var(--surface)}.gap-choices label{flex:1;cursor:pointer}.gap-choices label.wide{flex:1.3}.gap-choices input{position:absolute;opacity:0;pointer-events:none}.gap-choices span{display:block;border-radius:9px;color:var(--muted);font-size:14px;font-weight:600;line-height:34px;text-align:center}.gap-choices input:checked+span{background-color:#fff;box-shadow:0 1px 3px #0b164026;color:var(--ink);font-weight:700}.gap-choices input:focus-visible+span{outline:2px solid var(--person-a)}.stations{padding:26px 16px 0}.stations h2{padding:0 8px;font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:24px}.stations-caption{padding:2px 8px 10px;color:var(--muted);font-size:13px;font-weight:500;line-height:18px}#stations{list-style:none}#stations .empty{padding:8px;color:var(--muted)}.station{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:58px;padding:8px 12px 8px 8px;border:0;border-radius:14px;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.station:hover{background-color:var(--surface)}.station[aria-current=true]{background-color:var(--best)}.rank,.station-rank{flex-shrink:0;box-sizing:border-box;width:26px;height:26px;padding:0;border:2px solid var(--ink);border-radius:50%;background-color:#fff;color:var(--ink);font:700 13px/22px system-ui,sans-serif;text-align:center}.station[aria-current=true] .rank{background-color:var(--ink);color:#fff}.station .name{flex:1;font-size:16px;font-weight:600;letter-spacing:-.01em}.times{display:flex;flex-shrink:0;flex-direction:column;gap:4px;width:170px}.time{display:flex;align-items:center;gap:6px}.letter{width:12px;font-size:12px;font-weight:800;line-height:14px}.letter-a{color:var(--person-a)}.letter-b{color:var(--person-b)}.lines{display:flex;flex:1;flex-wrap:wrap;gap:3px}.line{box-sizing:border-box;min-width:20px;height:20px;padding:0 4px;border-radius:5px;color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center;white-space:nowrap}.line-metro{border-radius:10px}.on-foot{color:var(--muted);font-size:12px;font-weight:500;line-height:20px}.value{width:46px;font-size:13px;font-weight:600;line-height:14px;text-align:right}.footnote{padding:18px 24px 20px;color:var(--muted);font-size:13px;line-height:18px}.footnote a{color:inherit}.station-rank{cursor:pointer}.station-rank.selected{z-index:1;width:32px;height:32px;border:3px solid #FFFFFF;background-color:var(--ink);box-shadow:0 4px 12px #0b164040;color:#fff;font-size:15px;line-height:26px}.station-bubble .maplibregl-popup-content{padding:10px 14px;border-radius:14px;box-shadow:0 8px 24px #0b164033;color:var(--ink);font:600 14px/18px system-ui,sans-serif}.bubble{display:flex;flex-direction:column;gap:4px}.bubble-name{font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:20px}.bubble-times{display:flex;gap:12px;white-space:nowrap}.bubble-time b{font-weight:800}#legend{position:absolute;left:452px;bottom:16px;z-index:1;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;width:400px;max-width:calc(100% - 532px);padding:16px 18px;border-radius:20px;background-color:#fff;box-shadow:var(--shadow)}.legend-title{font-weight:600}.legend-scale{display:flex;gap:3px}.legend-scale div{flex:1;font-size:14px;font-weight:700;line-height:18px}.legend-scale i{display:block;height:14px;margin-bottom:6px;border-radius:3px}.legend-scale div:first-child i{border-radius:7px 3px 3px 7px}.legend-scale div:last-child i{border-radius:3px 7px 7px 3px}.legend-note{color:var(--muted);font-size:13px;font-weight:500;line-height:18px}#loader{position:absolute;top:16px;left:452px;z-index:3;padding:8px 14px;border-radius:999px;background-color:var(--ink);color:#fff;font-size:14px;font-weight:600}@media(max-width:700px){#panel{inset:auto 8px 8px;width:auto;max-height:45%}.title{padding-top:16px}.title h1{font-size:26px;line-height:30px}#legend{inset:8px 8px auto;width:auto;max-width:none;gap:8px;padding:12px 14px}.legend-note{display:none}#loader{top:auto;left:50%;bottom:calc(45% + 16px);transform:translate(-50%)}.maplibregl-ctrl-bottom-right{display:none}}
