.toolbar,.stats { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; }
.toolbar label { position:relative; background:#edb766; color:#251d0f; overflow:hidden; padding:.65rem 1rem; font-weight:700; border-radius:8px; }
.toolbar label:focus-within { outline:3px solid white; }
.toolbar input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
#source { color:#bbcdbd; overflow-wrap:anywhere; }
.stats { margin:1rem 0; gap:.5rem; }
.stats div { flex:1; background:#1b211e; border:1px solid #39443c; padding:.8rem; border-radius:8px; color:#c5d1c7; }
.stats strong { display:block; color:#f0ce8a; font-size:clamp(1.05rem,3vw,1.7rem); }
.trail { background:#151c18; border:1px solid #39493e; border-radius:14px; padding:clamp(.8rem,2.5vw,1.7rem); }
.trail svg { display:block; width:100%; border-radius:8px; }
#map { background-color:#202f25; background-image:linear-gradient(#789c7620 1px,transparent 1px),linear-gradient(90deg,#789c7620 1px,transparent 1px); background-size:28px 28px; max-height:360px; margin-bottom:1rem; }
#profile { background:#202c24; max-height:110px; min-height:65px; cursor:crosshair; margin-bottom:1rem; }
.trail h2 { display:flex; justify-content:space-between; margin-bottom:.6rem; }
.trail small { font-size:.85rem; color:#bfcfbd; }
.route,.height { fill:none; stroke:#ebbc68; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.height { stroke:#a2d3ac; }
.marker { fill:white; stroke:#794f24; stroke-width:2; }
#point { width:100%; accent-color:#efb65f; }
output { color:#dfcba1; }
[data-theme="light"] .stats div, [data-theme="light"] .trail { background:#f4f8f2;color:#39483c;border-color:#c5d3c5; }
[data-theme="light"] .stats strong, [data-theme="light"] output { color:#79501c; }
[data-theme="light"] #source, [data-theme="light"] .trail small { color:#495c49; }
