.ls-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; outline-offset: -2px; }
.ls-wrap svg { display: block; width: 100%; min-width: 760px; height: auto; touch-action: pan-x pan-y; }
.ls-sky { fill: var(--surface); }
.ls-water { fill: var(--river); stroke: var(--river-deep); stroke-width: 1; }
.ls-alluvium { fill: var(--geo-fill); }
.ls-pleistocene { fill: var(--geo-sand); }
.ls-miocene { fill: var(--geo-mio); }
.ls-ground { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.ls-tunnel { fill: var(--accent); fill-opacity: .9; stroke: var(--ink); stroke-width: 1; }
.ls-station { fill: var(--concrete); fill-opacity: .45; stroke: var(--ink); stroke-width: 1.2; }
.ls-platform { stroke: var(--accent); stroke-width: 3; }
.ls-grid { stroke: var(--line); stroke-width: .6; stroke-dasharray: 2 4; }
.ls-tick { stroke: var(--ink-2); }
.ls-axis { font: 11px var(--font-mono); fill: var(--ink-2); }
.ls-label { font: 600 14px var(--font-sans); fill: var(--ink); }
.ls-place { font: 500 11px var(--font-mono); letter-spacing: .14em; fill: var(--ink-2); }
.ls-river { font: italic 500 15px var(--font-sans); fill: var(--ink-2); }
.ls-note { font: 500 11px var(--font-mono); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.ls-cursor-line { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 3; }
.ls-cursor-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.ls-hit { cursor: crosshair; }
.ls-readout { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line); font-size: var(--step--1); min-height: 2.4em; }
.ls-hint { padding: 0 var(--space-3); margin: var(--space-2) 0; }
.ls-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); list-style: none; padding: 0 var(--space-3) var(--space-3); margin: 0; font-size: var(--step--1); color: var(--ink-2); max-width: none; }
.ls-legend li { margin: 0; display: flex; align-items: center; gap: 6px; }
.ls-legend .sw { width: 14px; height: 10px; display: inline-block; border: 1px solid var(--line-strong); }
.ls-legend .sw.ls-water { background: var(--river); }
.ls-legend .sw.ls-alluvium { background: var(--geo-fill); }
.ls-legend .sw.ls-pleistocene { background: var(--geo-sand); }
.ls-legend .sw.ls-miocene { background: var(--geo-mio); }
.ls-legend .sw.ls-tunnel { background: var(--accent); }
.ls-legend .sw.ls-station { background: var(--concrete); }
@media print { .ls-wrap svg { min-width: 0; } .ls-hint, .ls-readout { display: none; } }
