.korea-stations-dialog{width:min(1040px,calc(100vw - 24px));max-height:calc(100dvh - 30px);padding:20px 24px;border:1px solid #ccd8e4;border-radius:10px;box-shadow:0 20px 55px #183b5b55;color:#1c3c55}
.korea-stations-dialog::backdrop{background:#173a5b80}
.korea-stations-head,.korea-station-row,.korea-stations-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.korea-stations-head h2{margin:0 0 10px;font-size:20px}
.korea-stations-head button{font-size:25px;line-height:1}
#koreaStationsList{max-height:76px;overflow:auto;margin:8px 0 14px}
.korea-station-row{padding:8px 0;border-bottom:1px solid #dbe4ed}
.korea-station-row span{flex:1;min-width:0}
.korea-station-row small{display:block;color:#667f92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.korea-stations-dialog form{display:grid;gap:6px}
.korea-station-workspace{display:grid;grid-template-columns:minmax(290px,42%) minmax(330px,1fr);gap:18px;min-height:0}
.korea-station-fields{display:grid;align-content:start;gap:6px;max-height:min(68dvh,680px);overflow:auto;padding-right:4px}
.korea-station-map-panel{position:relative;min-width:0}
#koreaStationMap{height:min(54dvh,510px);min-height:320px;border:1px solid #c7d5e2;border-radius:7px;background:#e5edf3}
.korea-station-search{display:flex;gap:6px}.korea-station-search input{min-width:0;flex:1}.korea-station-search button{flex:none;white-space:nowrap}
.korea-station-help{margin:0}
#koreaStationSearchResults{position:absolute;z-index:1001;top:8px;left:8px;right:8px;max-height:75%;overflow:auto;padding:10px;background:#fff;border:1px solid #b7cbdc;border-radius:8px;box-shadow:0 10px 30px #183b5b44}
.korea-station-results-head{display:flex;justify-content:space-between;align-items:center}
#koreaStationPostcode{height:260px;overflow:auto}#koreaStationPostcode:empty{height:0}
#koreaStationPostcode>button,#koreaStationCandidates>button{display:block;width:100%;margin:5px 0;text-align:left}
.korea-stations-dialog form label{font-size:12px;font-weight:700;margin-top:5px}
.korea-stations-dialog form input,.korea-stations-dialog form select,.korea-stations-dialog form textarea{width:100%;box-sizing:border-box;padding:9px;border:1px solid #c7d5e2;border-radius:6px;font:inherit}
.korea-stations-dialog form input[type=file]{padding:6px}
#koreaStationPreview{width:100%;max-height:140px;object-fit:contain;background:#f2f6f9}
.korea-stations-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:8px}
#koreaStationError{min-height:18px;margin:4px 0;color:#a63828}
.korea-station-popup{min-width:200px;max-width:320px}
.korea-station-popup img{display:block;width:100%;max-height:160px;object-fit:cover;border-radius:5px;margin-bottom:8px}
.korea-station-popup h3{margin:5px 0;font-size:16px}
.korea-station-popup p{margin:5px 0;overflow-wrap:anywhere}
.korea-station-pin{filter:hue-rotate(160deg) saturate(1.4)}
@media(max-width:720px){.korea-station-workspace{grid-template-columns:1fr}.korea-station-fields{max-height:none;overflow:visible}#koreaStationMap{height:320px}.korea-stations-dialog{padding:14px}}

.korea-stations-dialog form #koreaStationPhoto{background:#f8fbff;border:1px solid #c7d9e9;border-radius:6px;color:#345269;padding:6px}
.korea-stations-dialog form #koreaStationPhoto::file-selector-button{background:#e8f2ff;color:#174d78;border:1px solid #adc9df;border-radius:5px;padding:7px 12px;margin-right:12px;font:inherit;font-weight:600;cursor:pointer}
