*{box-sizing:border-box}body{margin:0;background:#f5f7f6;color:#203735;font:14px/1.5 -apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit;background:#fff;border:1px solid #dbe5e2;border-radius:10px;padding:8px 13px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #187d75;outline-offset:3px}[hidden]{display:none!important}header{height:60px;background:#fff;border-bottom:1px solid #e3e9e7;display:flex;align-items:center;gap:18px;padding:0 24px}header a{color:#187d75;text-decoration:none;font-weight:750}header strong{font-size:17px}.official{margin-left:auto;font-size:12px;font-weight:400;color:#657c76}main{max-width:1440px;padding:20px;margin:auto}.search-wrap{position:relative;max-width:520px;margin-bottom:14px;z-index:5}#search{width:100%;height:46px;border:1px solid #dbe5e2;border-radius:14px;padding:0 17px;background:white;color:inherit}#results{position:absolute;top:50px;width:100%;max-height:300px;overflow:auto;background:#fff;border:1px solid #dbe5e2;border-radius:12px;box-shadow:0 8px 24px #20373516}#results button{display:block;width:100%;text-align:left;border:0;border-radius:0;padding:12px 17px}#results button:hover{background:#eef6f3}.map-card{background:#fff;border:1px solid #dbe5e2;border-radius:20px;overflow:hidden}#lines{display:flex;gap:8px;padding:14px;overflow-x:auto;scrollbar-width:thin}#lines button{flex-shrink:0;display:flex;gap:8px;align-items:center;font-size:12px}#lines i{width:10px;height:10px;border-radius:50%;background:var(--color)}#lines button[aria-pressed=true]{border-color:var(--color);background:#f3f7f5}.toolbar{display:flex;gap:7px;padding:10px 14px;border-top:1px solid #edf1ef;border-bottom:1px solid #edf1ef}.toolbar span{flex:1}.toolbar button{font-size:12px;padding:6px 11px}#map{height:calc(100dvh - 252px);min-height:480px;max-height:900px;background:#fff}.station-dot{width:15px;height:15px;border:0;background:transparent;padding:0;position:absolute;border-radius:50%}.station-dot:before{content:'';position:absolute;inset:4px;border:2px solid var(--color);background:white;border-radius:50%}.station-dot.interchange:before{inset:2px;border-color:#52635f}.station-label{position:absolute;white-space:nowrap;font-size:10px;line-height:14px;left:16px;top:1px;pointer-events:auto;cursor:pointer;text-shadow:1px 0 white,-1px 0 white,0 1px white,0 -1px white,2px 2px white,-2px -2px white}.station-dot.dim{opacity:.18}.maplibregl-popup-content{background:#152330;color:white;border-radius:15px;padding:17px 18px 13px;box-shadow:0 8px 25px #172e3526;min-width:238px}.maplibregl-popup-tip{border-top-color:#152330!important;border-bottom-color:#152330!important}.station-heading{display:flex;align-items:center;gap:9px;padding-right:15px}.station-heading h2{font-size:18px;margin:0}.station-heading span{font-size:11px;color:#afc4c7}.popup-actions{display:flex;margin-top:13px;padding-top:10px;border-top:1px solid #ffffff24;gap:4px}.popup-actions button,.popup-actions a{flex:1;text-align:center;background:transparent;color:white;border:0;text-decoration:none;font-size:12px;padding:6px}.popup-actions b{display:block;font-size:20px;font-weight:400;line-height:25px}.maplibregl-popup-close-button{color:#acb9c0;right:4px;top:3px;font-size:19px;border:0;padding:0 6px}.pin{position:absolute;width:60px;height:52px;display:flex;flex-direction:column;align-items:center;gap:14px;filter:drop-shadow(0 1px 2px #183a3530)}.pin b{height:22px;line-height:22px;padding:0 8px;border-radius:11px;background:var(--pin);color:#fff;font-size:12px;font-weight:800;white-space:nowrap}.pin i{width:16px;height:16px;box-sizing:border-box;border:4px solid var(--pin);border-radius:50%;background:#fff}.pin button{right:-2px!important;top:-9px!important}.pin button{position:absolute;right:-5px;top:-3px;width:18px;height:18px;padding:0;border:1.5px solid #203735;color:#203735;background:white;border-radius:50%;font:17px/15px Arial}.pin button:after{content:'';position:absolute;inset:-7px}#selection{position:absolute;z-index:4;bottom:30px;left:50%;transform:translateX(-50%);width:290px;max-width:calc(100% - 32px);background:#fff;border:1px solid #dbe5e2;border-radius:16px;padding:17px 20px;box-shadow:0 6px 24px #2037351a}#selection strong{font-size:13px}#selection b{display:block;font-size:23px;color:#187d75;margin:8px 0}#selection a{font-size:12px;color:#187d75}#selection button{position:absolute;bottom:-15px;right:-10px;border-radius:50%;width:28px;height:28px;padding:0;font:24px/1 sans-serif;background:#414c58;color:white;border:2px solid white}.sources{font-size:11px;color:#6c817a;margin-top:15px}.sources p{max-width:640px}.sources a{color:inherit}.maplibregl-ctrl-attrib{font-size:10px!important}@media(max-width:650px){header{height:52px;padding:0 13px;gap:10px}header strong{font-size:13px}header a{font-size:12px}.official{font-size:10px}main{padding:13px 10px}#lines{padding:11px;gap:6px}#map{height:calc(100dvh - 232px);min-height:460px}.station-label{font-size:10px}}

.station-info-icon{pointer-events:auto;border:0;background:white;color:#187d75;padding:0 2px;font:12px/14px sans-serif;vertical-align:baseline;cursor:pointer}.station-info{max-height:260px;overflow:auto;margin-top:12px;padding-top:9px;border-top:1px solid #ffffff25}.station-info h3{font-size:13px;margin:0 0 8px}.toilet-row{margin-top:10px}.toilet-row strong{font-size:11px;color:#9fd8cd}.toilet-row p,.station-info p{font-size:12px;line-height:1.6;margin:4px 0}.station-info details{font-size:10px;color:#a7bcbf;margin-top:12px}

.station-label small{display:block;font-size:8px;line-height:10px;color:#6f7d7b}.korean-only .station-label small{display:block}.toolbar select{max-width:130px;border:0;background:#fff;color:#536c66;font-size:11px}.station-foreign{color:#b5c6ce;font-size:12px;margin-top:3px}.maplibregl-popup-content{max-height:420px;overflow:auto}.arrivals{border-top:1px solid #ffffff24;margin-top:10px;padding-top:12px}.arrival-title{display:flex;align-items:center;justify-content:space-between;font-size:12px}.arrival-title button{border:0;background:transparent;color:#a9d8d0;font-size:10px;padding:2px}.arrival-group{margin-top:10px}.arrival-group h4{font-size:11px;color:#a9d8d0;margin:0 0 5px}.arrival-row{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:4px 0}.arrival-row b{font-size:11px;text-align:right;max-width:145px}.arrival-group small{font-size:9px;color:#99aeb7}.arrivals p{font-size:12px}

.maplibregl-popup-content{max-height:310px}

.version-switch{display:flex;gap:8px;margin:0 0 12px}.version-switch a{font-size:12px;color:#526c66;text-decoration:none;padding:7px 11px;border:1px solid #dbe5e2;border-radius:9px;background:#fff}.version-switch a[aria-current]{border-color:#187d75;color:#187d75;font-weight:700}

.arrival-tabs{display:flex;gap:5px;margin:10px 0}.arrival-tabs button{font-size:11px;padding:5px 8px;color:#b5c6ce;background:transparent;border-color:#ffffff35}.arrival-tabs button[aria-pressed=true]{color:#fff;background:#ffffff20;border-color:#a9d8d0}.arrival-group h4{font-size:12px;color:#b5c6ce}.arrival-row b{color:#a9e4d3;font-size:13px}.arrival-row{padding:7px 0}

.original-map{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;max-width:none}.original-hit,.original-hit.interchange{background:transparent!important;border:0!important;width:24px!important;height:22px!important;box-shadow:none!important}.original-hit .station-label{display:none!important}.original-hit:focus-visible{outline:2px solid #187d75;background:#187d7530!important}.original-version #lines,.original-version #language{display:none}.original-version #map{height:calc(100dvh - 190px)}

.original-hit:before{display:none!important}

/* 지도 최소 높이가 휴대폰 주소창 아래로 밀어내지 않게 한다. */
#map,.original-version #map{min-height:220px}
#selection{padding-right:44px;bottom:24px}
#selection button{top:9px;right:9px;bottom:auto;width:28px;height:28px;border:0;background:#eef3f1;color:#526b65;font-size:22px}
#selection button:after{content:'';position:absolute;inset:-6px}

.route-facts{font-size:12px;line-height:1.7}.route-fare strong{font-size:14px!important}.route-facts small{color:#6c817a;font-size:11px}#selection .route-retry{position:static;width:auto;height:auto;background:none;font-size:12px;color:#187d75;text-decoration:underline}

@media(max-width:650px){
 .maplibregl-popup{position:fixed!important;left:10px!important;right:10px!important;top:auto!important;bottom:var(--sheet-bottom,10px)!important;width:auto!important;max-width:none!important;transform:none!important;translate:none!important;z-index:20}
 .maplibregl-popup-tip{display:none!important}
 .maplibregl-popup-content{width:100%;min-width:0;padding:20px 20px 16px;border-radius:20px;box-shadow:0 8px 30px #15233035;overscroll-behavior:contain}
 .station-heading h2{font-size:20px}.station-foreign{font-size:13px}.station-foreign:empty{display:none}
 .popup-actions{margin-top:14px;padding-top:10px}.popup-actions button{padding:6px;font-size:13px;min-height:54px}.popup-actions b{font-size:23px}
 .maplibregl-popup-close-button{right:10px;top:9px;width:32px;height:32px}
}

/* 양방향을 같은 높이에서 비교한다. */
.arrival-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;align-items:stretch}
.arrival-directions .arrival-group{margin:0;border:1px solid #ffffff25;border-radius:10px;overflow:hidden;min-width:0;display:flex;flex-direction:column}
.arrival-directions .arrival-group h4{margin:0;padding:10px 9px;background:#ffffff09;color:#fff;min-height:38px;font-size:12px;overflow-wrap:anywhere}
.arrival-directions .arrival-row{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:3px;padding:11px 9px;border-top:1px solid #ffffff16;min-height:72px}
.arrival-directions .arrival-row:first-of-type{background:#a9e4d315}
.arrival-directions .arrival-row b{max-width:none;text-align:left;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.arrival-directions .arrival-row span{font-size:11px;color:#d5e1e4;overflow-wrap:anywhere}
.arrival-directions .arrival-group small{padding:8px 9px;margin-top:auto;font-size:9px}
@media(min-width:651px){.maplibregl-popup:has(.arrivals:not([hidden])){max-width:370px!important;width:370px}.maplibregl-popup:has(.arrivals:not([hidden])) .maplibregl-popup-content{width:100%}}

/* 온센픽 서울: 흰색 하단 역 패널 */
.station-dot.interchange:before{inset:2px -2px;border:1.8px solid #394944;border-radius:7px;background:#fff}
.station-dot.interchange .station-label{font-weight:650}
.station-label small{font-weight:400}
.maplibregl-popup,.maplibregl-popup:has(.arrivals:not([hidden])){position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:var(--sheet-bottom,10px)!important;width:min(480px,calc(100% - 20px))!important;max-width:none!important;transform:translateX(-50%)!important;translate:none!important;z-index:20}
.maplibregl-popup-tip{display:none!important}
.maplibregl-popup-content{width:100%;min-width:0;background:#fff;color:#203735;border:1px solid #dbe5e2;border-radius:24px;padding:30px 24px 20px;box-shadow:0 5px 32px #20373524;overscroll-behavior:contain;animation:station-sheet-in .22s ease-out}
@keyframes station-sheet-in{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.maplibregl-popup-content{animation:none}}
.sheet-handle{position:absolute;top:0;left:50%;transform:translateX(-50%);width:70px;height:26px;border:0;background:none;padding:0}
.sheet-handle:after{content:'';position:absolute;top:10px;left:17px;width:36px;height:4px;background:#ccd6d2;border-radius:4px}
.station-heading h2{font-size:22px;letter-spacing:-.04em}
.station-foreign{color:#74847e;font-size:12px;margin-top:2px}
.maplibregl-popup-close-button{right:12px;top:22px;width:32px;height:32px;color:#657971;background:#f3f6f4;border-radius:50%;font-size:23px}
.popup-actions{margin-top:18px;padding-top:14px;border-top:1px solid #e5ece8;gap:8px}
.popup-actions button{color:#31574c;background:#f3f7f5;border:1px solid transparent;border-radius:12px;padding:9px 6px;font-size:13px;min-height:60px}
.popup-actions button:hover,.popup-actions button[aria-expanded=true]{background:#e7f2ec;border-color:#b5d4c6}
.popup-actions b{font-size:22px;line-height:25px;color:#187d75}
.arrivals{border-top:1px solid #e5ece8;margin-top:18px;padding-top:16px}
.arrival-title{font-size:14px}.arrival-title button{color:#187d75;font-size:11px;min-height:32px}
.arrival-tabs{gap:7px;margin:8px 0 12px}.arrival-tabs button{color:#60746b;border-color:#dbe5e2;border-radius:20px;padding:6px 12px}
.arrival-tabs button[aria-pressed=true]{background:var(--line-color);border-color:var(--line-color);color:white}
.arrival-directions{gap:12px;margin-top:10px}
.arrival-directions .arrival-group{border:1px solid #e0e8e4;border-top:3px solid var(--line-color);border-radius:12px;background:#fff}
.arrival-directions .arrival-group h4{background:#f6f8f7;color:#304a40;padding:10px;font-size:12px}
.arrival-directions .arrival-row{border-top:1px solid #edf1ef;padding:11px 10px;min-height:68px;gap:2px}
.arrival-directions .arrival-row:first-of-type{background:#edf6f1}
.arrival-directions .arrival-row b{color:#187d75;font-size:18px;font-variant-numeric:tabular-nums;font-weight:750}
.arrival-directions .arrival-row span{color:#41594f;font-size:12px}
.arrival-directions .arrival-group small{color:#89988f;font-size:9px;padding:9px 10px}
.station-info{border-top:1px solid #e5ece8;max-height:none;overflow:visible;margin-top:16px;padding-top:16px}
.station-info h3{font-size:14px}.toilet-row{background:#f5f8f6;border-radius:12px;padding:12px}.toilet-row strong{color:#187d75}.toilet-row p{color:#52695f;font-size:12px}
@media(max-width:650px){.maplibregl-popup-content{padding:28px 18px 16px;border-radius:22px}.station-heading h2{font-size:21px}.popup-actions{margin-top:14px;padding-top:12px}.arrival-directions{gap:10px}}

/* 원본 노선도의 글자 폭에 맞춘 클릭 영역 */
.original-hit,.original-hit.interchange{width:var(--hit-width,24px)!important;height:var(--hit-height,24px)!important;cursor:pointer}
.sheet-handle{touch-action:none;cursor:ns-resize}
/* 온센픽 onsen-motion.source.js와 같은 열림 시간·거리·곡선 */
.maplibregl-popup-content{animation:station-sheet-in .22s cubic-bezier(.23,1,.32,1)}
@keyframes station-sheet-in{from{opacity:.65;translate:0 10px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.maplibregl-popup-content{animation:none}}

/* 사용자 제공 역 정보 레이아웃: 번호 탭 / 노선 띠 / 양방향 열차 */
.station-expanded{display:flex;flex-direction:column}
.station-expanded>.station-heading,.station-expanded>.station-foreign{display:none}
.station-expanded>.arrivals{order:1;border:0;margin:0;padding:0}
.station-expanded>.popup-actions{order:2;margin:0;padding:10px 0;border-top:1px solid #e2e4e5}
.station-expanded>.station-info{order:3}


.transit-head{display:flex;align-items:center;min-height:57px;border-bottom:1px solid #dedede;margin:0 -14px 15px;padding:0 58px 8px 14px}
.transit-head .arrival-tabs{margin:0;gap:9px;align-items:center}
.transit-head .arrival-tabs button{position:relative;min-width:34px;height:34px;padding:0 7px;border:2px solid var(--tab-color);border-radius:50%;font-size:18px;font-weight:700;color:var(--tab-color);background:white}
.transit-head .arrival-tabs button[aria-pressed=true]{background:var(--tab-color);color:white}
.transit-head .arrival-tabs button[aria-pressed=true]:after{content:'';position:absolute;left:-2px;right:-2px;bottom:-9px;height:2px;background:var(--tab-color)}
.transit-head>[data-refresh]{margin-left:auto;background:none;border:0;color:#7c807f;font-size:27px;padding:0 8px}
.station-line-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(94px,1fr) minmax(0,1fr);align-items:center;background:var(--line-color);border-radius:30px;color:white;margin:0 0 18px;min-height:34px}
.station-line-strip>span{padding:4px 8px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.station-line-strip>span:last-child{text-align:right}
.station-line-strip strong{background:white;color:#292d2b;border:3px solid var(--line-color);border-radius:32px;text-align:center;font-size:20px;line-height:1.35;padding:4px 2px;margin:-4px 0;white-space:nowrap}
.arrival-directions{gap:0;margin:0 0 12px}
.arrival-directions .arrival-group{border:0;border-radius:0;background:none;padding:0 12px 0 0}
.arrival-directions .arrival-group+.arrival-group{border-left:1px solid #e5e5e5;padding:0 0 0 12px}
.arrival-directions .arrival-row,.arrival-directions .arrival-row:first-of-type{display:block;min-height:0;padding:4px 0;background:none;border:0}
.arrival-directions .arrival-row>div{display:flex;flex-wrap:wrap;gap:2px 6px;align-items:baseline}
.arrival-directions .arrival-row b{font-size:17px;color:#c83530;font-weight:700;line-height:1.35}
.arrival-directions .arrival-row span{font-size:16px;color:#353a37;line-height:1.35}
.arrival-directions .arrival-row small{display:block;padding:0;color:#929592;font-size:11px;line-height:1.3}
.arrival-status{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ddd;padding:9px 0;color:#8c9791}
.arrival-status>span{border-radius:18px;background:#eef3f3;color:#61979a;padding:4px 14px;font-size:13px;font-weight:700}
.arrival-status small{font-size:10px}
.station-expanded .popup-actions button{background:none;min-height:36px;padding:3px;font-size:12px}
.station-expanded .popup-actions b{display:inline;font-size:15px;margin-right:5px}

/* 첫 선택도 같은 역 안내판을 쓰고, 열차 상세만 접는다. */
.maplibregl-popup-content>div{display:flex;flex-direction:column}
.maplibregl-popup-content .station-heading,.maplibregl-popup-content .station-foreign{display:none}
.maplibregl-popup-content .arrivals{order:1;border:0;margin:0;padding:0}
.maplibregl-popup-content .popup-actions{order:2;margin:0;padding:10px 0 0;border-top:1px solid #e2e4e5}
.maplibregl-popup-content .station-info{order:3}

.maplibregl-popup-content{padding:24px 14px 14px}
.maplibregl-popup-close-button{top:33px;right:10px;background:none;color:#7c807f;font-size:28px}
.maplibregl-popup-content .popup-actions button{background:none;min-height:36px;padding:3px;font-size:12px}
.maplibregl-popup-content .popup-actions b{display:inline;font-size:15px;margin-right:5px}
.sheet-handle:focus:not(:focus-visible){outline:none}

/* MapLibre가 마커에 쓰는 인라인 opacity보다 선택 상태를 우선한다. */
.station-dot.dim{opacity:.12!important}
/* 여행정보.css의 손잡이 치수와 터치 영역을 그대로 사용한다. */
.maplibregl-popup-content .sheet-handle{display:block;position:relative;flex:0 0 56px;top:0;left:0;transform:none;width:calc(100% - 60px);height:56px;min-height:56px;padding:0;border:0;background:#fff;color:#7b8985;cursor:ns-resize;touch-action:none;z-index:2;order:-1;margin:0}
.sheet-handle:before,.sheet-handle:after{display:none}
.sheet-handle .travel-grip-line{position:absolute;top:20px;left:calc(50% + 8px);width:44px;height:4px;border-radius:3px;background:#7b8985}
.maplibregl-popup-content{padding-top:0}
.maplibregl-popup-content.is-dragging{transition:none!important}

/* 손잡이는 회색 막대만 보이고 키보드 포커스도 막대에만 표시한다. */
.maplibregl-popup-content .sheet-handle{width:100%;flex-basis:24px;height:24px;min-height:24px;border-radius:0;outline:none!important;box-shadow:none!important;background:transparent;-webkit-tap-highlight-color:transparent}
.sheet-handle .travel-grip-line{top:10px;left:50%;transform:translateX(-50%);background:#bcc2bf}
.sheet-handle:focus-visible .travel-grip-line{background:#187d75}
.maplibregl-popup-content .transit-head{min-height:48px;margin-bottom:15px}
.maplibregl-popup-close-button{top:32px}

/* 접힘/펼침에 공통인 헤더: 상태별 상단 패딩을 두지 않는다. */
.maplibregl-popup-content{padding:0 14px 14px}
.maplibregl-popup-close-button{top:24px;right:10px;width:32px;height:40px;line-height:40px;padding:0}

.station-line-strip>button{border:0;border-radius:30px;background:transparent;color:inherit;padding:4px 8px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;min-height:36px}
.station-line-strip>button:last-child{text-align:right}
.station-line-strip>button:hover{background:#ffffff20}

.transit-head>[data-timetable]{margin-left:auto;background:none;border:0;padding:5px;color:#7c807f;display:grid;place-items:center}
.transit-head>[data-refresh]{margin-left:4px}
.timetable-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:560px;max-height:100dvh;margin:auto;border:0;padding:0 16px 28px;background:#f5f6f8;color:#263534;overflow:auto}
.timetable-dialog::backdrop{background:#0005}
.timetable-dialog>header{position:sticky;top:0;z-index:2;background:#f5f6f8;height:60px;padding:0;justify-content:center}
.timetable-dialog>header button{position:absolute;left:0;border:0;border-radius:0;background:transparent;box-shadow:none;width:44px;height:44px;padding:10px;line-height:1;-webkit-tap-highlight-color:transparent}
.timetable-top{padding:18px;background:white;border-radius:20px;margin:10px 0 14px}
.timetable-top h2{margin:0 0 16px;font-size:23px}.timetable-top h2 i{display:inline-block;color:white;font-style:normal;font-size:14px;border-radius:24px;padding:6px 10px;vertical-align:middle}
.timetable-top nav{display:flex;border-radius:24px;background:#edf0ef;padding:3px}.timetable-top nav button{flex:1;border:0;background:none;padding:7px 0;border-radius:20px}.timetable-top nav button[aria-pressed=true]{background:white;font-weight:700;color:#187d75}
.timetable-body table{width:100%;table-layout:fixed;border-collapse:collapse;background:white;font-variant-numeric:tabular-nums}
.timetable-body th,.timetable-body td{text-align:left;vertical-align:top;padding:14px 8px;border-bottom:1px solid #dce1df}
.timetable-body thead th{color:#73807b;background:#f0f3f4}.timetable-body tbody th b{display:block;background:#e7f2ec;border-radius:9px;text-align:center;color:#187d75}
.timetable-body td div{line-height:1.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timetable-body td strong{font-size:18px;margin-right:4px}.timetable-body td span{font-size:14px;color:#8b9390}
.timetable-body .current-hour{background:#f0f6f4}.timetable-body .current-hour th b{background:#187d75;color:white}.timetable-credit{font-size:11px;color:#7b8781}

.timetable-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.timetable-dialog>header,.timetable-top,.timetable-credit{flex-shrink:0}.timetable-body{flex:1;min-height:0;overflow:auto}.timetable-body thead{position:sticky;top:0;z-index:1}.timetable-top{margin-top:4px}.timetable-credit{margin-bottom:0}

.timetable-filters{display:flex;gap:8px;align-items:center}.timetable-filters nav{flex:1;min-width:0}.timetable-filters>[data-express]{display:flex;align-items:center;gap:4px;flex-shrink:0;border:1px solid #dc9a71;background:#fff7ef;color:#bc531a;border-radius:22px;padding:7px 10px;font-size:13px}.timetable-filters>[data-express][aria-pressed=true]{background:#c65b1f;color:white;border-color:#c65b1f}.timetable-body .express-train span{color:#b74c13}.express-train em{font-style:normal;background:#c65b1f;color:white;font-size:11px;border-radius:4px;padding:1px 3px}

/* 노선 탭은 줄바꿈 없이 스크롤하고 조작 아이콘은 고정한다. */
.maplibregl-popup-content .transit-head{display:flex;gap:5px;padding-right:44px;min-height:48px}
.transit-head .arrival-tabs{flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:0 1px 10px;gap:6px;margin-bottom:-10px}
.transit-head .arrival-tabs::-webkit-scrollbar{display:none}.transit-head .arrival-tabs{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
.transit-head .arrival-tabs button{flex:0 0 auto;white-space:nowrap;word-break:keep-all;min-width:34px;width:auto;height:34px;border-radius:20px;font-size:15px;line-height:30px;padding:0 9px}
.transit-head .arrival-tabs button[aria-label$="호선"]{width:34px;padding:0;border-radius:50%;font-size:18px}
.transit-head>[data-timetable],.transit-head>[data-refresh]{flex:0 0 30px;width:30px;min-width:30px;margin:0;padding:0;height:38px}

/* 사용자 사진의 작은 노선 배지: 선택 채움 + 얇은 밑줄. */
.transit-head .arrival-tabs{gap:6px;align-items:center;padding-bottom:8px;margin-bottom:-8px}
.transit-head .arrival-tabs button{height:27px;min-width:27px;padding:0 7px;line-height:23px;font-size:14px;font-weight:600;border-width:2px;border-radius:18px;background:white;color:var(--tab-color)}
.transit-head .arrival-tabs button[aria-label$="호선"]{width:27px;min-width:27px;height:27px;padding:0;font-size:17px;line-height:23px}
.transit-head .arrival-tabs button[aria-pressed=true]{background:var(--tab-color);color:white}
.transit-head .arrival-tabs button[aria-pressed=true]:after{left:-2px;right:-2px;bottom:-7px;height:1px;background:var(--tab-color)}
.maplibregl-popup-content .transit-head{min-height:40px;padding-bottom:7px;margin-bottom:15px}
.maplibregl-popup-close-button{top:22px}

/* 지도 위 출발·도착 선택, 하단은 도착 안내판으로 분리. */
.station-choice{display:flex;background:#fff;border-radius:15px;box-shadow:0 3px 18px #20373530;padding:8px 12px;gap:0;z-index:4}
.station-choice:after{content:'';position:absolute;bottom:-7px;left:calc(50% - 7px);width:14px;height:14px;background:white;transform:rotate(45deg)}
.station-choice button{position:relative;border:0;border-radius:0;background:white;min-width:60px;padding:0 10px;font-size:12px;color:#187d75;z-index:1}
.station-choice button+button{border-left:1px solid #edf0ee;color:#d75e4d}
.station-choice b{display:grid;place-items:center;width:29px;height:29px;margin:0 auto 3px;border-radius:50%;background:#187d75;color:white;box-shadow:0 2px 7px #20373520}
.station-choice [data-role=to] b{background:#d75e4d}
.station-choice svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.maplibregl-popup-content .popup-actions{display:none}
.arrival-status{gap:10px;padding:7px 0;margin:0 -14px;padding-left:14px;padding-right:14px;border-bottom:1px solid #ddd}
.live-mode-tabs{display:flex;align-items:center;border-radius:20px;background:#eef3f3;padding:2px;white-space:nowrap;margin-right:auto}
.live-mode-tabs>span{background:white;border-radius:18px;padding:3px 10px;font-size:13px;font-weight:700;color:#61979a}
.arrival-status button{border:0;background:none;color:#818784;padding:0;display:grid;place-items:center;min-width:24px;height:28px}
.live-mode-tabs button{display:block;padding:0 8px;font-size:13px;color:#949b98}
.arrival-status .station-favorite{font-size:27px}.station-favorite[aria-pressed=true]{color:#187d75}
.maplibregl-popup-content .transit-head{padding-right:44px}
.transit-head>[data-refresh]{margin-left:auto}
.station-info{margin-top:12px}
/* 기본 높이 안에 하단 조작 줄까지 온전히 들어오게 간격을 맞춘다. */
.maplibregl-popup-content .station-line-strip{margin-bottom:12px}
.maplibregl-popup-content .arrival-directions{margin-bottom:6px}
.maplibregl-popup-content .arrival-directions .arrival-row{padding:3px 0}

.mobile-map-menu{display:none}.location-notice{position:fixed;left:50%;transform:translateX(-50%);top:65px;width:max-content;max-width:calc(100% - 24px);z-index:30;background:#203735;color:#fff;border-radius:12px;padding:12px 16px;font-size:13px;box-shadow:0 4px 15px #0002}
@media(min-width:0px){
 body>header{height:56px;padding:0 12px;background:#203f3a;border:0;position:relative;z-index:12}
 body>header>a,body>header>strong{display:none}
 .mobile-map-menu{display:flex;align-items:center;width:100%;gap:10px}
 .mobile-map-menu button{display:grid;place-items:center;width:36px;height:40px;padding:6px;border:0;background:none;color:white;border-radius:20px}
 .mobile-map-menu svg{width:25px;height:25px}.mobile-map-menu button.active,.mobile-map-menu button[aria-expanded=true]{background:#ffffff25;color:#b6e3d8}
 .mobile-map-menu .mobile-settings{margin-left:auto;width:auto;padding:6px 12px;background:#ffffff18;font-size:13px;white-space:nowrap}
 main{padding:0;max-width:none}.map-card{border:0;border-radius:0}#map{min-height:220px;max-height:none;height:calc(100dvh - 56px)}
 .search-wrap,.version-switch,#lines,.toolbar,.sources{display:none}
 body.mobile-search .search-wrap{display:block;position:absolute;top:64px;left:10px;right:10px;max-width:none;z-index:11;margin:0}
 body.mobile-lines #lines{display:flex;position:absolute;top:64px;left:10px;right:10px;z-index:11;flex-wrap:wrap;max-height:55dvh;overflow:auto;background:white;border-radius:15px;box-shadow:0 4px 20px #0002}
 body.mobile-settings .version-switch{display:flex;position:absolute;top:64px;left:10px;right:10px;padding:12px;background:white;border-radius:15px 15px 0 0;z-index:11;margin:0}
 body.mobile-settings .toolbar{display:flex;position:absolute;top:122px;left:10px;right:10px;background:white;border-radius:0 0 15px 15px;z-index:11;box-shadow:0 8px 14px #0001}
}

@media(min-width:0px){
 body>header>.subway-title{display:block;flex-shrink:0;color:white;font-size:14px;white-space:nowrap}
 body>header{gap:10px}
 .mobile-map-menu{width:auto;flex:1;gap:3px;justify-content:flex-end}
 .mobile-map-menu .mobile-settings{margin-left:0;padding:6px 8px;font-size:12px}
 .mobile-map-menu button{width:32px}
}

.station-area-dialog{position:fixed;inset:0;margin:auto;width:100%;max-width:900px;height:100dvh;max-height:100dvh;padding:0;border:0;background:#f5f6f8;color:#203735;overflow:hidden}.station-area-dialog[open]{display:flex;flex-direction:column}.station-area-dialog::backdrop{background:#0005}.station-area-dialog>header{height:56px;flex-shrink:0;position:relative;justify-content:center;padding:0 54px;background:#fff}.station-area-dialog>header button{position:absolute;left:12px;width:44px;height:44px;padding:10px;background:none;border:0;border-radius:0;display:grid;place-items:center}.station-area-dialog>header strong{font-size:16px;outline:none}.station-area-canvas{flex:1;min-height:0}.station-area-message{position:absolute;top:45%;left:20px;right:20px;text-align:center;padding:18px;background:white;border-radius:14px}.station-area-message button{display:block;margin:14px auto 0}

/* iPhone 입력 자동 확대 및 문서 가로 이동 방지. 지도 자체 확대는 유지. */
html,body{max-width:100%;overflow-x:clip}
/* 지도 이름은 첫 화면에서도 읽히도록 고정 대비와 외곽선을 유지한다. */
.station-label{font-size:12px;line-height:16px;color:#203735;color-scheme:light;text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 0 4px #fff}
.station-label small{color:#52635f}
.maplibregl-popup,.maplibregl-popup:has(.arrivals:not([hidden])){left:var(--sheet-left,50%)!important;width:var(--sheet-width,min(480px,calc(100% - 20px)))!important}
@media(max-width:650px){#search{font-size:16px}.mobile-map-menu{min-width:0}.maplibregl-popup-content{touch-action:pan-y}.sheet-handle{touch-action:none}}

.station-route-actions{display:flex;justify-content:center;gap:8px;margin:0 0 12px;flex-shrink:0}.station-route-actions button{border:0;border-radius:20px;padding:6px 13px;font-size:12px;font-weight:650;line-height:1.4;white-space:nowrap;background:#e6f3ee;color:#187d75}.station-route-actions [data-role=to]{background:#fff0eb;color:#c65b4d}

.mobile-map-menu button[data-mobile=lines]{display:flex;align-items:center;gap:5px;width:auto;padding:6px 8px;border:1px solid #ffffff35;border-radius:20px;font-size:12px;white-space:nowrap}.line-menu-symbol{display:flex;align-items:center}.line-menu-symbol i{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;font:700 11px/1 sans-serif;color:white;background:#2456b8;border:1px solid #ffffffa0}.line-menu-symbol i+ i{background:#159447;margin-left:-4px}.mobile-map-menu button[data-mobile=lines][aria-expanded=true]{background:#e4f3ec;color:#164d40;border-color:#b6e3d8}

/* PC 상단 메뉴: 아이콘 사이 간격과 클릭 영역 확보 */
@media(min-width:651px){
 body>header{padding:0 24px}
 .mobile-map-menu{gap:14px;flex:0 0 auto;margin-left:auto}
 .mobile-map-menu button{width:44px;height:44px;padding:10px}
 .mobile-map-menu button[data-mobile=lines]{padding:8px 12px;gap:8px;font-size:13px}
 .mobile-map-menu .mobile-settings{padding:8px 14px;font-size:13px;min-height:44px}
}

/* 역 시설 요약: 선택 노선에 해당하는 확인된 정보만 표시 */
.station-facility-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e5e9e8;padding:12px 0;color:#657571;font-size:11px;white-space:nowrap}
.station-facility-summary>span,.station-facility-summary>button{display:flex;align-items:center;gap:4px;min-width:0}
.station-facility-summary button{border:0;background:none;padding:0;color:inherit;font:inherit;cursor:pointer}
.station-facility-summary svg{width:16px;height:16px;flex-shrink:0}
.station-facility-summary .facility-unavailable{color:#8b9693}

#selection .route-info,#selection .route-summary-actions button{position:static;inset:auto;width:auto;height:auto;border:0;background:transparent;color:#187d75;font-size:13px;padding:7px;line-height:1.4}
#selection .route-info:after,#selection .route-summary-actions button:after{content:none}
.route-summary-actions{display:flex;justify-content:space-between;gap:16px;margin-top:8px;border-top:1px solid #e3e9e7}
.route-detail-dialog{position:fixed;inset:0;margin:auto;width:560px;max-width:100%;max-height:90dvh;border:0;border-radius:20px;padding:0;background:#f5f7f6;color:#203b36;overflow:auto}
.route-detail-dialog::backdrop{background:#122b2866}
.route-detail-dialog>header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;height:60px;padding:0 24px;background:#fff;z-index:1}
.route-detail-dialog h2{font-size:18px;margin:0}.route-detail-dialog>header button{border:0;background:none;font-size:28px;color:#566b66;width:44px;height:44px;cursor:pointer}
.route-detail-body{padding:24px}.route-endpoints{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;background:white;border-radius:16px}.route-endpoints>div{display:flex;flex-direction:column;gap:6px}.route-endpoints small{color:#68827b}.route-endpoints strong{font-size:22px}
.route-overview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 8px;font-size:14px}.route-overview>strong{font-size:21px}.route-overview button{margin-left:auto;border:0;background:none;color:#187d75;font:inherit;cursor:pointer}
.route-note{font-size:12px;line-height:1.7;color:#72817d;margin:10px 0 20px}
.route-leg{background:white;border-radius:14px;padding:20px;border-left:4px solid var(--leg-color);margin-top:16px}.route-leg-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.route-leg-heading>span{color:var(--leg-color);font-weight:700}.route-leg-heading>strong{font-size:17px}.route-leg p{font-size:14px;color:#657571}.route-leg summary{cursor:pointer;color:#187d75;font-size:13px;padding:8px 0}.route-leg ol{padding-left:22px;line-height:2;font-size:14px}.route-transfer{font-size:13px;margin:14px 8px;color:#526b64}.route-map-return{width:100%;padding:13px;border:1px solid #b9ccc6;border-radius:12px;background:white;color:#187d75;font:inherit;cursor:pointer}
.fare-route{font-weight:700;margin:0 0 20px}.fare-table{width:100%;table-layout:fixed;border-collapse:collapse;background:white;font-size:14px;font-variant-numeric:tabular-nums}.fare-table th,.fare-table td{padding:16px 8px;text-align:center;border-bottom:1px solid #e3e9e7}.fare-table th:first-child{text-align:left;padding-left:14px}.fare-table thead{background:#eaf2ef}.fare-source{font-size:13px;color:#187d75}
@media(max-width:650px){.route-detail-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.route-detail-body{padding:18px}.route-detail-dialog>header{padding:0 12px}}

/* 상세 화면 공통: 장식 없는 뒤로 가기, 제목에 초기 초점 */
.route-detail-dialog>header{justify-content:center}
.route-detail-dialog>header>button{position:absolute;left:12px;display:grid;place-items:center;border:0;border-radius:0;box-shadow:none;background:transparent;padding:10px;-webkit-tap-highlight-color:transparent}
.route-detail-dialog h2:focus{outline:none}
.route-detail-dialog button:focus:not(:focus-visible){outline:none}
.route-endpoints [data-detail-swap]{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:0;border-radius:0;background:transparent;color:#187d75;cursor:pointer;padding:10px}

/* 검색 결과: 역 이름과 실제 노선색 배지 */
#results button{display:flex;align-items:center;gap:12px;min-height:56px}
.search-station-name{flex-shrink:0;font-weight:600}
.search-line-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.search-line-badge{display:inline-flex;align-items:center;justify-content:center;border:1.5px solid var(--badge-color);color:var(--badge-color);border-radius:20px;min-height:26px;padding:2px 9px;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.search-line-badge.numbered{width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:50%;background:var(--badge-color);color:white;font-size:15px}

.search-result-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #edf1ef}
.search-result-row:last-child{border-bottom:0}
#results .search-station-button{flex:1;min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:6px;padding:6px 2px;border:0;background:transparent;text-align:left}
.search-result-actions{display:flex;gap:6px;flex-shrink:0}
#results .search-result-actions button{width:auto;min-height:38px;padding:8px 10px;border:0;border-radius:18px;background:#e5f3ef;color:#187d75;font-size:12px;font-weight:600}
#results .search-result-actions [data-search-role=to]{background:#fff0eb;color:#c95645}
@media(min-width:651px){#results .search-station-button{flex-direction:row;align-items:center;gap:12px}.search-result-row{padding:8px 18px}}

.route-clock{font-size:13px;line-height:1.6;color:#187d75;margin:10px 0}.route-leg-live{padding:12px;background:#f4f8f6;border-radius:10px;margin:12px 0;font-size:13px}.route-leg-live>strong{font-size:12px;color:#617970}.route-leg-live p{margin:8px 0;color:#b74338}.route-leg-live button{background:none;border:0;color:#187d75;padding:6px 0;cursor:pointer;font-size:12px}

#selection [data-route-swap]{position:static;width:36px;height:36px;display:inline-grid;place-items:center;padding:4px;background:transparent;border:0;border-radius:0;color:#187d75;font-size:22px;vertical-align:middle}#selection [data-route-swap]:after{content:none}

.route-train-controls{display:flex;align-items:center;gap:8px}.route-train-controls span{flex:1}.route-train-controls button{border:0;background:transparent;color:var(--accent,#187d75);font-size:28px;min-width:36px;min-height:44px;padding:0}.route-train-controls button:disabled{opacity:.22}.route-clock>small{display:block;font-size:13px;line-height:1.6;color:#637c77}

#selection .route-train-controls button{position:static;inset:auto;width:36px;height:44px;background:transparent;color:#187d75;border:0;border-radius:0;font-size:28px}#selection .route-train-controls button:after{content:none}

/* 경로 카드: 시각과 기준을 분리하고 기존 초록·흰 카드 유지 */
#selection .route-clock,.route-detail-body .route-clock{margin:12px 0 18px;padding:12px 0;border-top:1px solid #e3e9e7;border-bottom:1px solid #e3e9e7;color:#203735}
.route-train-controls{gap:4px}.route-train-controls>span{display:grid;grid-template-columns:1fr 20px 1fr;grid-template-rows:auto auto;align-items:center;text-align:center;column-gap:8px;min-width:0}
.route-train-controls em{font-style:normal;font-size:11px;color:#526b65;grid-row:1;white-space:nowrap}.route-train-controls em:first-child{grid-column:1}.route-train-controls em:last-child{grid-column:3}.route-train-controls strong,#selection .route-train-controls strong{grid-row:2;font-size:23px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.5;white-space:nowrap}.route-train-controls strong:nth-child(2){grid-column:1}.route-train-controls strong:nth-child(4){grid-column:3}.route-train-controls i{grid-column:2;grid-row:2;font-style:normal;font-size:16px;color:#526b65}
.route-clock>small{margin-top:6px;font-size:11px;color:#526b65;text-align:center;line-height:1.6}
#selection .route-summary-actions{margin-top:12px}#selection .route-summary-actions button{padding:10px 0}

/* 역 정보와 같은 하단 고정 경로 팝업 */
#selection{position:fixed;left:50%;bottom:8px;transform:translateX(-50%);width:560px;max-width:calc(100% - 20px);padding:24px 28px 16px;border-radius:20px;overflow:auto;overscroll-behavior:contain;z-index:15}
#selection:before{content:'';display:block;width:44px;height:4px;margin:-14px auto 12px;background:#b9c4c0;border-radius:4px}
#selection>strong{display:flex;align-items:center;gap:8px;font-size:16px;padding-right:32px}#selection>b{font-size:28px;margin:4px 0}
#selection>button{width:32px;height:32px;top:18px;right:18px}
#selection .route-clock{margin:8px 0 10px;padding:8px 0}.route-facts>small{display:block}
@media(max-width:650px){#selection{padding:24px 18px 12px}#selection .route-clock>small{font-size:10px}#selection .route-summary-actions{margin-top:8px}}

.route-line-band{display:flex;gap:4px;margin:12px 0 8px}.route-line-band>span{border-top:6px solid;min-width:0;padding-top:5px;text-align:center;font-size:11px;font-weight:600;color:#203735;white-space:nowrap}
.route-bottom-detail{inset:auto auto 8px 50%;transform:translateX(-50%);width:560px;max-width:calc(100% - 20px);height:65dvh;max-height:calc(100dvh - 80px);margin:0;border:1px solid #dbe5e2;border-radius:20px;background:#f5f7f6;box-shadow:0 6px 24px #2037351a;z-index:25}
.route-bottom-detail>header:before{content:'';position:absolute;top:7px;left:calc(50% - 22px);width:44px;height:4px;border-radius:4px;background:#b9c4c0}
@media(max-width:650px){.route-bottom-detail{width:calc(100% - 20px);height:65dvh;max-height:calc(100dvh - 80px);border-radius:20px}.route-bottom-detail .route-detail-body{padding:18px}.route-bottom-detail>header{height:60px}}

/* 경로 요약: 소요시간 → 시각·요금 → 노선 순서 */
#selection{display:flex;flex-direction:column}#selection:before{order:-3}#selection>b{order:-2;font-size:30px;line-height:1.3;margin:0 40px 8px 0}#selection>strong{order:-1;font-size:14px;color:#526b65}
#selection .route-clock{border:0;padding:0;margin:8px 0 6px}#selection .route-fare{padding:0 0 6px;color:#526b65}#selection .route-line-band{margin:6px 0 10px;gap:4px}#selection .route-line-band>span{border-top-width:10px;padding-top:4px}

#selection:before,.route-bottom-detail>header:before{display:none}
#selection .route-sheet-grip,.route-bottom-detail>header .route-sheet-grip{position:absolute;top:0;left:50%;right:auto;bottom:auto;transform:translateX(-50%);width:calc(100% - 100px);height:24px;min-height:24px;border:0;border-radius:0;background:transparent;padding:0;touch-action:none;cursor:ns-resize;z-index:3}
#selection .route-sheet-grip:after{content:none}.route-sheet-grip span{display:block;width:44px;height:4px;background:#b9c4c0;border-radius:4px;margin:auto}.route-bottom-detail>header .route-sheet-grip{height:20px;min-height:20px}
#selection.is-dragging,.route-bottom-detail.is-dragging{user-select:none}

/* 긴 영문 역명이 옆 역과 노선 위로 흘러가지 않도록 실제 높이로 배치 */
.station-label small{max-width:112px;white-space:normal;overflow-wrap:normal;word-break:normal}
.station-label{width:max-content}.station-label small{width:max-content;max-width:112px}

/* 요약 팝업: 시각·요금을 한 행에, 노선은 한 덩어리로 */
#selection{padding:26px 18px 12px}#selection>b{font-size:30px;margin-bottom:4px}#selection>strong{font-size:13px;margin-bottom:8px}
#selection .route-facts{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center}
#selection .route-clock{display:contents}
#selection .route-train-controls{grid-column:1;grid-row:1;gap:0}
#selection .route-train-controls>span{display:flex;justify-content:center;align-items:center;gap:5px;white-space:nowrap}
#selection .route-train-controls em{display:none}#selection .route-train-controls strong{font-size:16px;font-weight:500;color:#526b65;line-height:1.5}
#selection .route-train-controls i{font-size:13px}#selection .route-train-controls button{width:26px;min-width:26px;height:36px;min-height:36px;font-size:23px}
#selection .route-fare{grid-column:2;grid-row:1;font-size:0;white-space:nowrap;padding:0;color:#526b65}
#selection .route-fare strong{font-size:15px!important;font-weight:500}#selection .route-info{padding:4px;font-size:13px}
#selection .route-clock>small{grid-row:2;grid-column:1/-1;text-align:left;margin:0 0 12px;font-size:10px;line-height:1.4;color:#526b65}
#selection .route-line-band{grid-column:1/-1;display:flex;margin:0 0 12px;gap:3px;min-height:28px;border-radius:8px;overflow:hidden}
#selection .route-line-band>span{border:0;background:var(--route-line-color);color:white;display:flex;align-items:center;justify-content:center;min-width:44px;padding:5px 6px;font-size:12px;line-height:18px;text-shadow:0 1px 2px #0006}
#selection .route-facts>small,#selection .route-summary-actions{grid-column:1/-1}
#selection .route-facts>small{font-size:11px;color:#526b65}#selection .route-summary-actions{margin-top:8px}#selection .route-summary-actions button{padding:8px 0}

#selection .route-line-band em{font-style:normal;background:white;color:#203735;border-radius:4px;padding:0 5px;font-size:11px;text-shadow:none;white-space:nowrap}

#selection>.route-detail-body{padding:0;margin-top:8px;border-top:1px solid #e3e9e7;order:1}
#selection .route-detail-body button{position:static;inset:auto;width:auto;height:auto;border:0;border-radius:0;background:transparent;color:#187d75;font:inherit;padding:8px 0}
#selection .route-detail-body button:after{content:none}
#selection .route-detail-body .route-leg{padding:16px;margin-top:14px}
#selection .route-detail-body .route-leg-heading strong{font-size:15px}#selection .route-detail-body .route-leg p{font-size:13px}
#selection .route-detail-body .route-map-return{display:block;width:100%;padding:12px}
#selection[data-detail-open=true] .route-summary-actions{display:none}

/* 출발 시간은 기존 경로 팝업에서 작은 버튼으로 조정 */
#selection .route-summary-actions{display:flex;align-items:center;justify-content:space-between}
#selection .route-summary-actions .route-time-edit{position:static;inset:auto;width:auto;height:auto;padding:8px 10px;border:0;border-radius:8px;background:#edf4f2;font-size:13px;color:#203735;white-space:nowrap}
#selection[data-detail-open=true] .route-summary-actions{display:flex}#selection[data-detail-open=true] [data-route-detail]{visibility:hidden}
.route-time-picker{position:fixed;inset:auto 0 12px;margin:0 auto;width:calc(100% - 24px);max-width:440px;padding:18px;border:1px solid #dbe5e2;border-radius:22px;background:#fff;color:#203735;box-sizing:border-box;box-shadow:0 8px 40px #20373520}
.route-time-picker::backdrop{background:#0005}.route-time-picker header{display:flex;align-items:center;justify-content:space-between;font-weight:600}.route-time-picker button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.route-time-picker header button{width:40px;height:40px;font-size:25px}
.time-wheels{position:relative;display:flex;height:220px;margin:12px 0;isolation:isolate}.time-wheels:before{content:'';position:absolute;top:88px;left:0;right:0;height:44px;background:#edf4f2;border-radius:10px;z-index:-1;pointer-events:none}
.time-wheel{flex:1;min-width:0;height:220px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;box-sizing:border-box;padding:88px 0;mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent)}
.time-wheel::-webkit-scrollbar{display:none}.time-wheel button{display:block;width:100%;height:44px;min-height:44px;padding:0;scroll-snap-align:center;color:#7b8b87;font-size:24px}.time-wheel button[aria-selected=true]{color:#203735;font-weight:600}
.time-picker-note,.time-picker-error{font-size:12px;color:#637c77;text-align:center;margin:8px 0;line-height:1.6}.time-picker-error:empty{display:none}.route-time-picker footer{display:flex;border-top:1px solid #e3e9e7;padding-top:10px;gap:8px}.route-time-picker footer button{flex:1;min-height:44px;color:#187d75}.route-time-picker [data-confirm]{background:#edf4f2;border-radius:10px;font-weight:600}

.route-time-picker header span:focus{outline:none}

/* 경로 안에서 역을 직접 변경하고, 상세는 노선 색의 세로 흐름으로 연결 */
#selection [data-edit-from],#selection [data-edit-to]{position:static;inset:auto;width:auto;height:36px;padding:0;border:0;background:transparent;border-radius:0;color:#203735;font-size:15px;font-weight:600;white-space:nowrap}
#selection [data-edit-from]:after,#selection [data-edit-to]:after{content:none}
.route-station-search{width:100%;padding:12px 14px;border:1px solid #b9ceca;border-radius:12px;font:inherit}.route-edit-note{font-size:13px;color:#637c77}.route-station-results{display:grid;gap:0}.route-station-option{display:flex;align-items:center;gap:8px;padding:15px 0;border:0;border-bottom:1px solid #edf1ef;border-radius:0;background:white;text-align:left;flex-wrap:wrap}.route-station-option strong{margin-right:auto}.route-station-option span{border:2px solid;border-radius:20px;font-size:12px;padding:2px 7px}.route-station-option:disabled{opacity:.4}
#selection .route-detail-body .route-leg{position:relative;margin:18px 0 0 10px;padding:2px 0 18px 24px;border:0;border-left:5px solid var(--leg-color);border-radius:0;background:transparent;box-shadow:none}
#selection .route-detail-body .route-leg:before{content:'';position:absolute;left:-9px;top:4px;width:13px;height:13px;background:white;border:3px solid var(--leg-color);border-radius:50%;box-sizing:border-box}
#selection .route-leg-heading{display:flex;flex-wrap:wrap;gap:8px;align-items:center}#selection .route-leg-heading>span{color:#203735;background:white;border:2px solid var(--leg-color);border-radius:8px;padding:2px 6px;font-size:12px}
#selection .route-leg-live{background:#f5f8f7;border:1px solid #e3e9e7;border-radius:12px;padding:12px;margin:12px 0}#selection .route-leg-live:empty{display:none}#selection .route-leg-live p{margin:8px 0}#selection .route-leg-live>strong{font-size:12px;color:#637c77}
#selection .route-transfer{margin:0 0 0 10px;padding:12px 0 12px 27px;border-left:3px dotted #bcc8c4;font-size:12px;color:#637c77}#selection .route-leg details{font-size:13px}#selection .route-leg ol{padding-left:18px;line-height:2}

/* 경로 요약의 최종 정렬: 시각 조작을 한 묶음으로 유지 */
#selection{width:480px;padding:26px 20px 14px}
#selection>b{font-size:28px;letter-spacing:-1px;line-height:1.3;margin:0 40px 10px 0}
#selection>strong{gap:10px;margin:0 0 14px;padding-right:0}
#selection [data-edit-from],#selection [data-edit-to]{font-size:15px;height:30px}
#selection [data-route-swap]{width:28px;height:30px;font-size:23px}
#selection .route-facts{column-gap:12px;row-gap:0}
#selection .route-train-controls{justify-content:flex-start;gap:4px;width:max-content;max-width:100%}
#selection .route-train-controls>span{flex:none;gap:7px}
#selection .route-train-controls strong{font-size:15px;font-weight:600;color:#203735}
#selection .route-train-controls button{width:26px;min-width:26px;height:36px;min-height:36px;font-size:22px;border-radius:50%;background:#f4f7f6}
#selection .route-train-controls button:disabled{background:transparent;opacity:.25}
#selection .route-fare strong{font-size:14px!important;color:#203735}
#selection .route-clock>small{font-size:11px;margin:2px 0 16px;color:#71837f}
#selection .route-line-band{gap:6px;min-height:0;overflow:visible;align-items:center;justify-content:flex-start;margin:0 0 10px;border-radius:0}
#selection .route-line-band>span{flex:0 0 auto!important;min-width:0;padding:0;background:transparent;overflow:visible}
#selection .route-line-band>span+span:before{content:'›';color:#9baaa6;font-size:16px;margin-right:6px;text-shadow:none}
#selection .route-line-band em{font-size:12px;line-height:22px;padding:0 8px;border:1.5px solid var(--route-line-color);border-radius:7px;background:white;color:#203735}
#selection .route-facts>small{font-size:11px;line-height:1.5;color:#71837f}
#selection .route-summary-actions{margin-top:14px;padding-top:10px;align-items:center;min-height:40px}
#selection .route-summary-actions [data-route-detail]{font-size:13px;padding:8px 0}
#selection .route-summary-actions .route-time-edit{background:transparent;font-size:12px;color:#526b65;padding:8px 0 8px 10px;border-radius:0}
@media(max-width:420px){#selection{padding:25px 16px 12px}#selection .route-facts{column-gap:5px}#selection .route-train-controls{gap:2px}#selection .route-train-controls>span{gap:4px}#selection .route-train-controls button{width:24px;min-width:24px}#selection .route-train-controls strong{font-size:14px}#selection .route-fare strong{font-size:13px!important}}

/* 출발·도착역과 소요시간을 같은 중앙 축에 정렬 */
#selection>b{align-self:stretch;text-align:center;margin:0 38px 10px;order:-2}
#selection>strong{justify-content:center;align-self:stretch;text-align:center;padding:0;margin:0 0 14px;order:-1}

/* 사용자 지정: 노선 색 바 유지 */
#selection .route-line-band{display:flex;gap:3px;min-height:28px;overflow:hidden;align-items:stretch;margin:0 0 12px;border-radius:8px}
#selection .route-line-band>span{flex-grow:1!important;flex-shrink:1!important;flex-basis:0!important;min-width:44px;background:var(--route-line-color);padding:4px 6px;justify-content:center}
#selection .route-line-band>span+span:before{content:none}
#selection .route-line-band em{border:0;border-radius:4px;line-height:20px;padding:0 5px;font-size:11px;background:#fff;color:#203735}

/* 소요시간 바로 아래에 노선 바, 그 아래 출발·도착역 */
#selection>b{order:-3;margin-bottom:12px}
#selection>.route-line-band{order:-2;flex-shrink:0;margin:0 0 14px;width:100%}
#selection>strong{order:-1}

/* 노선 이름은 별도 목록 없이 해당 색 바 안에 표시 */
#selection>.route-line-band{gap:3px;min-height:32px}
#selection>.route-line-band>span{justify-content:flex-start;padding:3px;min-height:32px}
#selection>.route-line-band em{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 7px;border-radius:6px;font-size:12px;font-weight:600;line-height:1;white-space:nowrap}

/* 사용자 표시: 시각·소요시간·요금을 상단 한 줄에 */
#selection{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:6px;padding-top:44px}
#selection>.route-facts,#selection .route-clock{display:contents}
#selection>b{grid-column:2;grid-row:1;order:0;margin:0;text-align:center;font-size:25px;align-self:center;white-space:nowrap}
#selection .route-train-controls{grid-column:1;grid-row:1;order:0;gap:0;align-self:center;max-width:none}
#selection .route-train-controls>span{gap:3px}#selection .route-train-controls strong{font-size:12px}
#selection .route-train-controls button{width:18px;min-width:18px;height:32px;min-height:32px;background:transparent;font-size:20px}
#selection .route-fare{grid-column:3;grid-row:1;justify-self:end;align-self:center;padding:0}
#selection .route-fare strong{font-size:12px!important}#selection .route-info{font-size:12px;padding:2px}
#selection .route-clock>small{grid-column:1/-1;grid-row:2;text-align:left;margin:4px 0 12px;font-size:10px}
#selection>.route-line-band{grid-column:1/-1;grid-row:3;order:0;margin:0 0 12px}
#selection>strong{grid-column:1/-1;grid-row:4;order:0;margin:0 0 12px}
#selection .route-facts>small{grid-column:1/-1;grid-row:5}
#selection .route-summary-actions{grid-column:1/-1;grid-row:6;margin-top:12px}
#selection>.route-detail-body{grid-column:1/-1;grid-row:7;order:0}
@media(max-width:420px){#selection{column-gap:4px}#selection>b{font-size:23px}#selection .route-train-controls strong{font-size:11px}#selection .route-train-controls>span{gap:2px}#selection .route-train-controls button{width:15px;min-width:15px}#selection .route-fare strong{font-size:12px!important}}

/* 닫기 버튼과 요금 행의 영역을 분리 */
#selection{padding-top:66px}
#selection>button[aria-label="경로 선택 해제"]{top:14px;right:14px;width:28px;height:28px}
#selection .route-fare{padding-right:10px}

.station-dot.station-highlight{z-index:10!important;opacity:1!important}.station-highlight:after{content:'';position:absolute;inset:-14px;border:3px solid #187d75;border-radius:50%;background:#187d7520;pointer-events:none;animation:station-pulse 1.25s ease-out 3}.station-highlight .station-label{font-weight:700;color:#123f38;background:#fff;border-radius:5px;padding:3px 5px;box-shadow:0 1px 8px #20373522;z-index:11}
@keyframes station-pulse{from{transform:scale(.5);opacity:1}to{transform:scale(1.5);opacity:0}}
@media(prefers-reduced-motion:reduce){.station-highlight:after{animation:none;opacity:.8}}

/* 역 시설: 기존 시트 안에서 노선별 정보만 펼친다. */
.facility-section{padding:14px 0;border-bottom:1px solid #e5ece8}
.facility-section h3{margin:0 0 8px;font-size:14px}
.facility-section p{margin:6px 0;font-size:13px;line-height:1.65;color:#52695f;overflow-wrap:anywhere}
.facility-section summary,.station-phone{color:#187d75;font-size:13px;cursor:pointer}
.facility-source{font-size:11px;line-height:1.7;color:#657571;margin-top:18px}
.facility-source a{color:inherit}.facility-line{margin:0;font-size:14px}
.station-facility-summary{flex-wrap:wrap;justify-content:flex-start;gap:12px;font-size:11px}

/* 독립 지도 화면의 Safari 당겨서 새로고침 방지. 시트 내부 스크롤은 유지. */
@media(max-width:650px){
 html{height:100%;overflow:hidden;overscroll-behavior:none}
 body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
 #map .maplibregl-canvas-container,#map .maplibregl-canvas{touch-action:none}
 .maplibregl-popup-content,#selection,#results,dialog{overscroll-behavior-y:contain}
}

/* 모바일 검색·실시간 목록의 행 간격과 터치 영역. */
@media(max-width:650px){
 .search-result-row{padding:12px;gap:12px}
 #results .search-station-button{gap:8px;padding:6px 0}
 .search-result-actions{gap:8px}
 #results .search-result-actions button{min-height:44px;padding:10px 12px;font-size:13px}
 .maplibregl-popup-content .station-line-strip{margin-bottom:18px}
 .maplibregl-popup-content .arrival-directions .arrival-row{padding:8px 0}
 .arrival-directions .arrival-row>div{flex-direction:column;align-items:flex-start;gap:4px}
 .arrival-directions .arrival-row b{line-height:1.5}
 .arrival-directions .arrival-row span{font-size:14px;line-height:1.5}
 .arrival-directions .arrival-row small{margin-top:4px;line-height:1.5}
 .arrival-directions .arrival-group{padding-right:16px}
 .arrival-directions .arrival-group+.arrival-group{padding-left:16px}
 .live-mode-tabs{padding:4px;gap:4px}
 .live-mode-tabs>span,.live-mode-tabs>button{min-height:40px;padding:10px 12px;line-height:20px}
}

#selection .route-summary-actions .route-time-edit{display:inline-flex;align-items:center;gap:6px;line-height:20px}
.route-time-edit svg{display:block;width:16px;height:16px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* PC 역정보는 끌어올리지 않고 오른쪽 패널에서 읽는다. */
@media(min-width:651px){
 body .maplibregl-popup,body .maplibregl-popup:has(.arrivals:not([hidden])){position:fixed!important;left:auto!important;right:16px!important;top:88px!important;bottom:auto!important;width:400px!important;max-width:calc(100vw - 32px)!important;transform:none!important;translate:none!important;z-index:20}
 body .maplibregl-popup .maplibregl-popup-content{height:auto!important;max-height:calc(100dvh - 104px)!important;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;border-radius:20px;padding:16px 18px}
 .maplibregl-popup-tip,.maplibregl-popup-content .sheet-handle{display:none!important}
 .maplibregl-popup-content .station-heading{display:block;position:sticky;top:-16px;background:white;z-index:5;margin:0 -18px;padding:16px 58px 12px 18px;border-bottom:1px solid #e2e8e5}
 .station-heading h2{margin:0;font-size:20px}
 .maplibregl-popup-close-button{position:absolute;top:16px;right:18px;z-index:7;width:36px;height:36px}
 .maplibregl-popup-content .arrival-row>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
 .maplibregl-popup-content .arrival-row{padding:8px 0}
 .maplibregl-popup-content .station-info{display:block!important}
}

.mobile-map-menu .mobile-settings{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.mobile-map-menu .mobile-settings .settings-chevron{display:block;flex-shrink:0;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mobile-map-menu .mobile-settings[aria-expanded="true"] .settings-chevron{transform:rotate(180deg)}

/* PC 검색창은 오른쪽 위 검색 단추 아래에 좁게(2026-10-22 사용자) */
@media(min-width:651px){body.mobile-search .search-wrap{left:auto;right:12px;width:420px;z-index:30}}
/* PC 경로 결과는 역 정보처럼 오른쪽에(2026-10-22 사용자) */
@media(min-width:651px){
 #selection{left:auto!important;right:16px!important;top:88px!important;bottom:auto!important;transform:none!important;width:400px!important;height:auto!important;max-height:calc(100dvh - 104px)!important;border-radius:20px}
 #selection .route-sheet-grip{display:none}
}
/* 설정: 역 이름 언어 줄(2026-10-22 사용자) */
.toolbar #language{display:none!important}
.toolbar{flex-wrap:wrap;row-gap:10px;align-items:center}
.language-setting{order:-1;flex-basis:100%;display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid #edf1ef}
.language-setting>span{font-size:12px;color:#526b65;white-space:nowrap}
.language-setting>div{display:flex;flex-wrap:wrap;gap:6px}
.toolbar .language-setting button{font-size:12px;padding:6px 11px;border-radius:999px;color:#526b65}
.toolbar .language-setting button[aria-pressed=true]{border-color:#187d75;color:#187d75;background:#eef6f3;font-weight:650}
.original-version .language-setting{display:flex}
@media(min-width:651px){body.mobile-settings .version-switch,body.mobile-settings .toolbar{left:auto;right:12px;width:420px}}
@media(max-width:650px){.language-setting{flex-direction:column;align-items:stretch;gap:8px}.language-setting>div{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.toolbar .language-setting button{padding:7px 2px;white-space:nowrap}}
/* 설정: 역 이름 → 노선도 A/B → 지도 단추 순서, 경로 결과 위에(2026-10-22 사용자) */
body.mobile-settings .toolbar{top:64px;border-radius:15px;z-index:30}
.toolbar .version-switch{order:-1;flex-basis:100%;margin:0;padding:0 0 10px;border-bottom:1px solid #edf1ef}
body.mobile-settings .toolbar .version-switch{display:flex;position:static;padding:0 0 10px;width:auto;background:none;border-radius:0;box-shadow:none}
/* 설정: 역 이름 → 노선도 A/B → 지도 단추 순서, 경로 결과 위에(2026-10-22 사용자) */
body.mobile-settings .toolbar{top:64px;border-radius:15px;z-index:30}
.toolbar .version-switch{order:-1;flex-basis:100%;margin:0;padding:0 0 10px;border-bottom:1px solid #edf1ef}
body.mobile-settings .toolbar .version-switch{display:flex;position:static;padding:0 0 10px;width:auto;background:none;border-radius:0;box-shadow:none}

/* 원본 지도 클릭은 실제 역 표시와 이름 영역을 함께 판정한다. */
.original-version .original-hit{pointer-events:none;width:24px!important;height:24px!important}

/* 선택한 언어를 주표기로, 한국어를 보조 표기로 표시한다. */
.station-line-strip strong{min-width:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center;line-height:1.25;padding:6px 8px}
.station-line-strip strong span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.station-line-strip strong small{display:block;font-size:10px;font-weight:400;color:#6f7d7b}
.station-line-strip>button{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:not([lang=ko]) .station-line-strip{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr)}
html:not([lang=ko]) .station-line-strip strong span{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}

/* 출입구 주변 시설명은 한국어 화면에서만 제공한다. */
html:not([lang="ko"]) [data-exits]{display:none!important}
/* 경로 후보 — 비슷하게 걸리는 길을 같이 보여 준다(2026-10-24 사용자) */
#selection>.route-options{grid-column:1/-1;grid-row:4;display:flex;gap:6px;margin:0 0 12px;overflow-x:auto;scrollbar-width:none}
#selection>strong{grid-row:5}#selection .route-facts>small{grid-row:6}#selection .route-summary-actions{grid-row:7}#selection>.route-detail-body{grid-row:8}
#selection .route-options button{position:static;inset:auto;width:auto;height:auto;flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px 10px;border:1.5px solid #dbe5e2;border-radius:12px;background:#fff;color:#203735;font-size:12px;text-align:left}
#selection .route-options button:after{content:none}
#selection .route-options button[aria-pressed=true]{border-color:#187d75;background:#eef6f3}
#selection .route-options b{display:block;margin:0;font-size:13px;color:#203735;font-weight:700}
.route-option-lines{display:flex;gap:3px;flex-wrap:nowrap}.route-option-lines i{font-style:normal;font-size:11px;line-height:18px;padding:0 5px;border-radius:5px;border:1.5px solid var(--c);white-space:nowrap}

.station-line-strip button[data-neighbor]{display:inline-flex;align-items:center;gap:6px}
.station-line-strip button[data-neighbor] svg{display:block;flex-shrink:0}

/* 역명은 노선 띠 한 곳에 표시한다. */
.maplibregl-popup-content .station-heading{display:none}

.station-line-strip>button[data-neighbor]:first-child{justify-content:flex-start}
.station-line-strip>button[data-neighbor]:last-child{justify-content:flex-end}
.station-line-strip>button[data-neighbor]>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* 닫기 X 는 늘 바탕 없이 · 노선 탭이 X 밑으로 들어가 가려지지 않게(2026-10-26 사용자) */
.maplibregl-popup-close-button,.maplibregl-popup-close-button:hover{background:transparent!important}
.maplibregl-popup .arrival-tabs{margin-right:38px}

/* 줌아웃 때 역 점·환승 캡슐을 줌에 맞춰 줄인다(--dot-scale 은 app.js dotScale) */
.station-dot:before{transform:scale(var(--dot-scale,1));transform-origin:center}

/* 지나는 역: 노선 줄(route-leg 왼쪽 선) 위에 점을 찍는다(2026-11-07) */
.leg-stops{list-style:none;margin:10px 0 0;padding:0}
.leg-stops li{position:relative;display:flex;align-items:center;gap:8px;min-height:34px;font-size:14px;color:#7a8a86}
.leg-stops li span{flex:1;min-width:0}
.leg-stops li.end{font-size:16px;font-weight:800;color:#16202b}
.leg-stops li em{font-style:normal;font-size:11px;font-weight:700;color:var(--leg-color);border:1px solid var(--leg-color);border-radius:4px;padding:0 5px;line-height:18px}
#selection .leg-stops li:before{content:'';position:absolute;box-sizing:border-box;border-radius:50%;background:white;border:2.5px solid var(--leg-color);width:10px;height:10px;left:-31.5px}
#selection .leg-stops li.end:before{width:16px;height:16px;border-width:4px;left:-34.5px}
.route-leg .leg-stops{margin-left:0}
header .city-switch{display:inline-flex!important;align-items:center;gap:6px;cursor:pointer}header .city-switch svg{display:block;flex-shrink:0;align-self:center}
/* 옆 역 이름은 한 줄, 길면 「…」(2026-11-07 사용자: 줄바꿈 말고 줄이기로 함). 도시별 css 의 줄바꿈 규칙보다 앞서게 body 를 붙임 */
body .station-line-strip>button[data-neighbor],body .station-line-strip>button[data-neighbor]>span{min-width:0;overflow:hidden}
body .station-line-strip>button[data-neighbor] b,body .station-line-strip>button[data-neighbor] small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 옆 역으로 넘어가는 동안 앞 역 칸을 흐리게(2026-11-07) */
.arrivals.arrival-loading{opacity:.5;transition:opacity .15s}
/* 위쪽 단추는 그림만: 설정은 조절 막대 그림, 노선은 1·2 동그라미만(2026-11-07 사용자: 위가 빼곡함) */
body .mobile-map-menu .mobile-settings-icon{width:40px;padding:6px;background:none;margin-left:0}
body .mobile-map-menu button[data-mobile=lines]{border:0;padding:6px;width:40px;justify-content:center}
.leg-stops li em{order:-1;min-width:38px;box-sizing:border-box;text-align:center}  /* 2026-11-07 사용자: 역 번호는 이름 왼쪽에 */
.leg-stops li[data-stop]{cursor:pointer}
.leg-focus{display:block;width:34px;height:34px;border-radius:50%;border:3px solid #c35b38;background:#c35b3826;pointer-events:none;animation:legFocus 1.1s ease-out 2}
@keyframes legFocus{0%{transform:scale(.5);opacity:1}100%{transform:scale(1.3);opacity:.15}}
/* 상세가 열려 「경로 상세보기」가 없으면 즐겨찾기를 따로 한 줄로 두지 않고 「2정거장 · 환승 1회」 줄 오른쪽에(2026-11-07 사용자: 「한 줄 잡을 필요가 없을텐데」) */
#selection[data-detail-open=true] .route-facts:not(:has(.airport-ticket))>small{grid-column:1!important;align-self:center}
#selection[data-detail-open=true] .route-summary-actions:not(:has(.airport-ticket)){grid-column:2!important;grid-row:6!important;margin-top:0!important;border-top:0;gap:8px}
#selection[data-detail-open=true] .route-summary-actions:not(:has(.airport-ticket)) [data-route-detail]{display:none}
/* 경로 아래 표 카드(공항·지하철 패스)가 있을 때도 즐겨찾기는 요약 줄 오른쪽, 카드는 그 아래 한 줄 */
#selection[data-detail-open=true] .route-facts:has(.airport-ticket)>small{grid-column:1!important;align-self:center}
#selection[data-detail-open=true] .route-summary-actions:has(.airport-ticket){display:contents}
#selection[data-detail-open=true] .route-summary-actions:has(.airport-ticket)>button{display:none}
#selection[data-detail-open=true] .route-summary-actions:has(.airport-ticket)>.route-favorite{display:flex;grid-column:2;grid-row:6;justify-self:end}
#selection[data-detail-open=true] .route-summary-actions>.airport-ticket{grid-column:1/-1;grid-row:7}
