.layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(235px,.65fr);gap:1rem}.map{min-width:0;padding:clamp(.8rem,2.5vw,1.6rem);background:var(--surface);border:1px solid var(--border);border-radius:14px}.bar,.legend{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;margin:.5rem 0 1rem}.bar h2{margin:0}#terrain{width:100%;display:block;border-radius:6px;touch-action:none;cursor:crosshair}.legend{font-size:.8rem;color:var(--text-2);justify-content:flex-end}.legend i{width:100px;height:8px;border-radius:4px;background:linear-gradient(90deg,#59908a,#a9c197,#dad3a3,#b49370,#eee6d3)}#profile{width:100%;display:block;background:#f2f0e4;border-radius:5px}#length{display:block;margin-top:.6rem;color:var(--text-2)}.controls .bar{justify-content:flex-start;margin-top:1rem}.controls input[type=range]{width:100%}.controls>button{margin-top:.6rem}@media(max-width:650px){.layout{grid-template-columns:1fr}}

/* 2026-12-01 다듬기: 도구를 지도 바로 위로, 어두운 화면에서 지도 밝기 낮춤 */
.map{border-color:var(--line);border-radius:16px}
.maptools{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:0 0 .8rem}
.maptools label{margin:0;color:var(--text-2)}.maptools select{flex:1 1 180px;width:auto}
@media screen{#terrain{filter:brightness(.76)}}
#profile{background:#101014;border:1px solid var(--line)}
#pos{color:var(--accent);font-weight:600}
