.workspace{grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);align-items:start}.preview,.controls{min-width:0}#map svg{display:block;width:100%;height:auto;border-radius:8px;touch-action:none}#map g[data-station]{cursor:grab}#map g:focus circle:nth-child(2){stroke:#c32d25;stroke-width:4}#map g:focus{outline:none}.buttons{display:flex;gap:.45rem;flex-wrap:wrap;margin:.65rem 0}.controls label{display:grid;gap:.3rem;margin-bottom:.7rem}.controls select,.controls textarea,.controls input{width:100%;box-sizing:border-box}.controls details{border-top:1px solid #7777;padding-top:.9rem}.controls summary{cursor:pointer;margin-bottom:1rem}.controls small,.hint{font-size:.85rem;opacity:.75}.controls textarea{font:13px/1.65 monospace}.controls ol{padding-left:1.3rem}.controls li{margin:.35rem 0}#journey{font-weight:bold}#status{min-height:1.5em}@media(max-width:760px){.workspace{grid-template-columns:1fr}}
#journey{color:var(--accent)}#status{font-size:.92rem;color:var(--text-2)}.controls details summary{font-weight:600}
/* 어두운 테마에서 밝은 종이색 지도가 눈부시지 않게 화면에서만 낮춘다(저장하는 SVG 는 그대로) */
@media screen{:root:not([data-theme="light"]) #map svg{filter:brightness(.78)}}
/* 폰: 지도를 600px 아래로 줄이지 않고 옆으로 밀어 보게 한다(그대로 줄이면 역 이름이 6px 쯤). 역을 끌 때만 밀기를 막는다 */
@media(max-width:680px){#map{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:8px}#map svg{min-width:600px;touch-action:pan-x pan-y}#map g[data-station]{touch-action:none}}
