/* RailPilot live-map v2 — concept skins (visual exploration, 4–5 Nov 2026).
   Loaded after ../live-map/livemap.css. Two skins on the v2 renderer:
     .skin-premium    Concept A · Premium Evolution — the frozen navy / teal identity, executed harder:
                      glass-core ribbons, crisp hollow stations, the Premium capsule marker, a teal spot
                      and burst on selection, a hero Follow panel.
     .skin-immersive  Concept B · Immersive Reinvention — a lit diorama: graphite ground with a city dot
                      texture, an elevated guideway (shadow · side face · concrete deck · LED strip),
                      platform slabs, dimensional cars with ground shadows and headlight pools.
   Shared v2 parts: the service strip under the network view, the new Follow panel, the selection burst. */

/* =========================================================== shared v2 ================================= */
.lm:is(.skin-premium, .skin-immersive) { --lm-ease: cubic-bezier(.2,.7,.2,1); }
.lm:is(.skin-premium, .skin-immersive) .lm-track-hl { transform: none; }
.lm:is(.skin-premium, .skin-immersive) .lm-train .hit { r: 22px; }
/* selection burst: one ring expands from the tapped train */
.lm-train .burst { fill: none; stroke: var(--lm-teal); stroke-width: 2px; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.lm-train.pop .burst { animation: lm-burst .85s var(--lm-ease) forwards; }
@keyframes lm-burst { 0% { opacity: .95; transform: scale(.45); stroke-width: 3px; } 100% { opacity: 0; transform: scale(2.8); stroke-width: .4px; } }
.lm.reduced .lm-train.pop .burst { animation: none; }
/* light pools and the selection spot live under the trains, above the tracks */
.lm-pool .pl, .lm-pool .spot { opacity: 0; transition: opacity .45s var(--lm-ease); pointer-events: none; }
.lm-pool.sel .spot { opacity: 1; }
.lm-pool.dim .pl, .lm-pool.stale .pl, .lm-pool.dying .pl, .lm-pool.dying .spot { opacity: 0 !important; }
.lm.reduced .lm-pool .pl { display: none; }
/* ground shadows of dimensional cars (empty paths for flat markers) */
.lm-trsh .gsh { fill: rgba(0,0,0,.55); transition: opacity .4s var(--lm-ease); }
.lm-trsh.dim { opacity: .25; } .lm-trsh.stale { opacity: .35; } .lm-trsh.dying { opacity: 0; transition: opacity 1s; }
.lm-train .side { fill: #46556A; }
/* platform slabs are a Concept B device; hidden elsewhere */
.lm-stn .platg, .lm-stn .platshg { display: none; }
/* stations ahead of the followed train */
.lm:is(.skin-premium, .skin-immersive).has-sel .lm-stn:not(.ahead):not(.major) .ring { opacity: .55; }

/* ---- service strip (network view, phones) ---------------------------------------------------------- */
.lm-strip { position: absolute; left: 12px; right: 12px; bottom: 54px; border-radius: 16px; padding: 8px 12px 7px; display: flex; flex-direction: column; gap: 4px; pointer-events: auto; animation: lm-strip .4s var(--lm-ease); }
@keyframes lm-strip { from { opacity: 0; transform: translateY(8px); } }
.lm.reduced .lm-strip { animation: none; }
.lm-strip .rows { display: flex; flex-direction: column; }
.lm-strip .row { display: grid; grid-template-columns: 14px 1fr auto 28px; align-items: center; gap: 8px; height: 26px; font-size: 12.5px; }
.lm-strip .sw { width: 14px; height: 4px; border-radius: 2px; }
.lm-strip .row.G .sw { background: var(--lm-G); box-shadow: 0 0 6px rgba(61,190,108,.6); } .lm-strip .row.O .sw { background: var(--lm-O); box-shadow: 0 0 6px rgba(246,169,75,.6); }
.lm-strip .nm { font-weight: 600; color: var(--lm-text); white-space: nowrap; }
.lm-strip .st { color: var(--lm-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.lm-strip .n { font-family: var(--lm-display); font-weight: 700; font-size: 15px; text-align: right; color: var(--lm-text); }
.lm-strip .hint { font-size: 10.5px; color: var(--lm-muted); text-align: center; letter-spacing: .02em; border-top: 1px solid var(--lm-line); padding-top: 5px; }
.lm.view-follow .lm-strip, .lm.desk .lm-strip { display: none; }
@container (max-width: 340px) { .lm-strip .st { display: none; } .lm-strip .row { grid-template-columns: 14px 1fr 28px; } }

/* ---- the Follow panel, v2 layout ---------------------------------------------------------------------- */
.lm:is(.skin-premium, .skin-immersive) .lm-sheet { gap: 12px; padding: 8px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .hd { display: flex; align-items: center; gap: 10px; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .hd .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .hd h3 { margin: 0; font-family: var(--lm-display); font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .hd h3 small { font-family: var(--lm-mono); font-weight: 500; font-size: 11.5px; color: var(--lm-muted); margin-left: 4px; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .hd .sub { font-size: 12.5px; color: var(--lm-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .hero { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .nx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .nx b { font-family: var(--lm-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; color: var(--lm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .nx .sub { font-size: 12px; color: var(--lm-text-2); line-height: 1.35; margin-top: 3px; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .eta { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; min-width: 76px; text-align: right; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .eta b { font-family: var(--lm-display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: .95; color: var(--lm-teal); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .eta.soon b { font-size: 28px; line-height: 1.2; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .eta.none b { color: var(--lm-muted); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .eta small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lm-teal); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .eta.none small { color: var(--lm-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .eta .at { font-size: 12px; color: var(--lm-muted); margin-top: 2px; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg { display: grid; grid-template-columns: minmax(0, max-content) 1fr minmax(0, max-content); align-items: center; gap: 10px; font-size: 11.5px; color: var(--lm-text-2); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg .a, .lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg .b { white-space: nowrap; max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg .b { text-align: right; font-weight: 600; color: var(--lm-text); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg .bar { position: relative; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg .bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; transition: width .6s linear; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg .bar.G .fill { background: var(--lm-G); } .lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg .bar.O .fill { background: var(--lm-O); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .seg .bar .dot { position: absolute; top: 50%; width: 14px; height: 9px; border-radius: 5px; background: #E9EFF4; border: 1.5px solid #0A1826; transform: translate(-50%, -50%); transition: left .6s linear; box-shadow: 0 0 0 2px rgba(38,214,197,.35), 0 2px 4px rgba(0,0,0,.5); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--lm-text-2); }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .meta .ver { margin-left: auto; color: var(--lm-muted); font-size: 11.5px; white-space: nowrap; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .then { font-size: 12.5px; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .note { font-size: 10.5px; }
.lm:is(.skin-premium, .skin-immersive) .lm-sheet .acts .lm-btn { height: 40px; }
@container (max-width: 340px) {
  .lm:is(.skin-premium, .skin-immersive) .lm-sheet .nx b { font-size: 22px; }
  .lm:is(.skin-premium, .skin-immersive) .lm-sheet .eta b { font-size: 30px; }
  .lm:is(.skin-premium, .skin-immersive) .lm-sheet .meta .ver { margin-left: 0; width: 100%; }
}

/* =========================================================== A · Premium Evolution ===================== */
.lm.skin-premium {
  --lm-bg: #06182A; --lm-water: #0A2238; --lm-surface: #0F2638; --lm-surface-2: #16334A; --lm-line: rgba(173,196,214,.16);
  --lm-glow: .32; --lm-outline: #071423; --lm-glass: #10202E;
}
.lm.skin-premium[data-zoom="far"] { --lm-rw: 3px; } .lm.skin-premium[data-zoom="mid"] { --lm-rw: 4.5px; } .lm.skin-premium[data-zoom="near"] { --lm-rw: 6.5px; }
.lm.skin-premium::before { background: radial-gradient(80% 55% at 25% 0%, rgba(38,214,197,.07) 0%, rgba(38,214,197,0) 60%), radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 48%, rgba(0,0,0,.4) 100%); }
.lm.skin-premium .lm-bay { fill: var(--lm-water); stroke: rgba(173,196,214,.16); stroke-width: 1px; }
.lm.skin-premium .lm-river { stroke-width: 6px; }
.lm.skin-premium .lm-ctxlbl { font-family: var(--lm-display); font-weight: 600; letter-spacing: .2em; opacity: .4; }
/* ribbons: dark casing · colour · a glass core down the middle */
.lm.skin-premium .lm-track-casing { stroke: #04101C; stroke-width: calc(var(--lm-rw) + 3px); }
.lm.skin-premium .lm-track.G { filter: drop-shadow(0 0 6px rgba(61,190,108,var(--lm-glow))); } .lm.skin-premium .lm-track.O { filter: drop-shadow(0 0 6px rgba(246,169,75,var(--lm-glow))); }
.lm.skin-premium[data-zoom="far"] .lm-track { filter: none; }
.lm.skin-premium .lm-track-hl { display: block; stroke: rgba(255,255,255,.3); stroke-width: 1px; }
.lm.skin-premium[data-zoom="far"] .lm-track-hl { stroke-width: .7px; stroke: rgba(255,255,255,.22); }
.lm.skin-premium[data-zoom="near"] .lm-track-hl { stroke-width: 1.2px; stroke: rgba(255,255,255,.34); }
.lm.skin-premium .lm-track-shadow { display: none; }
.lm.skin-premium.has-sel .lm-track { filter: none; } .lm.skin-premium.has-sel .lm-track-hl { opacity: .5; }
.lm.skin-premium.has-sel.sel-G .lm-track.O, .lm.skin-premium.has-sel.sel-O .lm-track.G { opacity: .26; }
.lm.skin-premium.has-sel.sel-G .lm-track-hl.O, .lm.skin-premium.has-sel.sel-O .lm-track-hl.G { opacity: .15; }
.lm.skin-premium .lm-route-glow { stroke-width: 16px; opacity: .22; } .lm.skin-premium .lm-route { stroke-width: calc(var(--lm-rw) + .5px); }
.lm.skin-premium .lm-route-flow { stroke: rgba(255,255,255,.75); stroke-width: 1.6px; stroke-dasharray: 3 24; }
/* stations: hollow, crisp; interchange and termini carry a core */
.lm.skin-premium .lm-stn .ring { fill: var(--lm-bg); stroke: #EEF4F8; stroke-width: 2px; r: 4px; }
.lm.skin-premium .lm-stn.major .ring { stroke: #FFFFFF; stroke-width: 2.4px; r: 5.6px; }
.lm.skin-premium .lm-stn.junction .ring { r: 6.8px; stroke-width: 2.6px; }
.lm.skin-premium .lm-stn.terminus .core, .lm.skin-premium .lm-stn.junction .core { r: 2px; fill: #FFFFFF; }
.lm.skin-premium[data-zoom="far"] .lm-stn .ring { r: 3px; stroke-width: 1.6px; } .lm.skin-premium[data-zoom="far"] .lm-stn.major .ring { r: 4.4px; stroke-width: 2.1px; }
.lm.skin-premium[data-zoom="near"] .lm-stn .ring { r: 6px; } .lm.skin-premium[data-zoom="near"] .lm-stn.major .ring { r: 7.5px; } .lm.skin-premium[data-zoom="near"] .lm-stn .core { r: 1.8px; }
.lm.skin-premium .lm-stn.ahead .ring { stroke: var(--lm-teal); }
.lm.skin-premium .lm-stn.ahead.major .core { fill: var(--lm-teal); }
.lm.skin-premium .lm-lbl { font-size: 11.5px; font-weight: 500; fill: #D3DEE7; stroke-width: 4px; }
.lm.skin-premium .lm-lbl.major { font-family: var(--lm-display); font-size: 13px; font-weight: 700; fill: #FFFFFF; letter-spacing: -.005em; }
.lm.skin-premium.has-sel .lm-lbl:not(.major) { opacity: .55; }
/* the Premium capsule */
.mk-prem .sh { fill: rgba(0,0,0,.42); }
.mk-prem .car { stroke: var(--lm-outline); stroke-width: 1px; transition: fill .5s, stroke .3s; }
.mk-prem .cab { transition: fill .5s; } .lm-train.G .mk-prem .cab { fill: var(--lm-G); } .lm-train.O .mk-prem .cab { fill: var(--lm-O); }
.mk-prem .shield { fill: var(--lm-glass); transition: fill .4s; }
.mk-prem .lamp { fill: #FFF4CC; stroke: #FFF4CC; stroke-width: 1.1px; stroke-linecap: round; opacity: .3; transition: opacity .4s; }
.mk-prem .win { fill: none; stroke: var(--lm-glass); stroke-width: 1.6px; stroke-linecap: round; }
.mk-prem .seam { stroke: var(--lm-outline); stroke-width: .6px; opacity: .25; } .mk-prem .sep { stroke: var(--lm-outline); stroke-width: .9px; opacity: .6; } .mk-prem .door { stroke: var(--lm-glass); stroke-width: 1px; opacity: .8; }
.mk-prem .tail { stroke: var(--lm-tail); stroke-width: 1.4px; stroke-linecap: round; opacity: .45; transition: opacity .4s; }
.mk-prem .beam { opacity: 0; transition: opacity .5s; }
.lm-train.moving .mk-prem .lamp { opacity: 1; filter: drop-shadow(0 0 2px #FFF4CC); } .lm-train.moving .mk-prem .tail { opacity: .95; } .lm-train.moving .mk-prem .beam { opacity: .3; }
.lm[data-zoom="far"] .mk-prem .beam { display: none; }
.lm-train.dwell .mk-prem .shield { fill: #FFE8A3; }
.lm-train.stale .mk-prem .car { fill: #8A98A3; } .lm-train.stale .mk-prem .cab { fill: #5E6C78; } .lm-train.stale .mk-prem .lamp, .lm-train.stale .mk-prem .tail, .lm-train.stale .mk-prem .beam { opacity: 0; }
.lm-train.sel .mk-prem .car { stroke: var(--lm-teal); stroke-width: 1.5px; }
.lm-train.late .mk-prem .car { stroke: var(--lm-warn); }
.lm.skin-premium .lm-train .ltr.car { fill: var(--lm-outline); }
.lm.skin-premium .lm-train.moving .glow { opacity: .3; } .lm.skin-premium .lm-train.sel .glow { opacity: 0; }
.lm.skin-premium .lm-train .selring { r: 19px; stroke-width: 2px; }
.lm.skin-premium .lm-pool .spot { opacity: 0; } .lm.skin-premium .lm-pool.sel .spot { opacity: .75; }
.lm.skin-premium .lm-pool .pl { display: none; }
.lm.skin-premium .lm-tail.on .t0 { opacity: .3; } .lm.skin-premium .lm-tail.on .t1 { opacity: .15; } .lm.skin-premium .lm-tail.on .t2 { opacity: .06; }
/* chrome */
.lm.skin-premium .lm-modebar, .lm.skin-premium .lm-back, .lm.skin-premium .lm-status, .lm.skin-premium .lm-ibtn, .lm.skin-premium .lm-stamp { background: rgba(6,24,42,.78); box-shadow: inset 0 0 0 1px rgba(173,196,214,.14), 0 8px 24px rgba(0,0,0,.35); }
.lm.skin-premium .lm-chip { font-weight: 600; }
.lm.skin-premium .lm-chip[aria-pressed="true"] { box-shadow: 0 4px 14px rgba(38,214,197,.35); }
.lm.skin-premium .lm-strip { background: rgba(6,24,42,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(173,196,214,.14), 0 10px 30px rgba(0,0,0,.35); }
.lm.skin-premium .lm-callout rect { fill: rgba(6,24,42,.92); stroke: var(--lm-teal); }
.lm.skin-premium .lm-sheet { background: rgba(12,33,51,.97); box-shadow: 0 -12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.lm.skin-premium .lm-sheet .grab { background: rgba(173,196,214,.25); }
.lm.skin-premium .lm-sheet .seg .bar { background: rgba(255,255,255,.1); }

/* =========================================================== B · Immersive Reinvention ================= */
.lm.skin-immersive {
  --lm-bg: #0A0F16; --lm-water: #0C1824; --lm-surface: #121A24; --lm-surface-2: #1A2531; --lm-line: rgba(190,206,220,.12);
  --lm-text: #F4F7FA; --lm-text-2: #C4D0DA; --lm-muted: #8798A6; --lm-glow: .5; --lm-outline: #0A1420; --lm-glass: #0C1824;
  --lm-deck: #B5C2CE; --lm-deck-edge: rgba(255,255,255,.5); --lm-side: #1B2631; --lm-slab: #E4EBF1; --lm-slab-side: #2A3744;
}
.lm.skin-immersive[data-zoom="far"] { --lm-rw: 2.4px; } .lm.skin-immersive[data-zoom="mid"] { --lm-rw: 4.2px; } .lm.skin-immersive[data-zoom="near"] { --lm-rw: 6.5px; }
.lm.skin-immersive::before { background: radial-gradient(120% 90% at 50% 42%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.lm.skin-immersive::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(10,15,22,.82) 0%, rgba(10,15,22,.25) 16%, rgba(10,15,22,0) 34%); }
.lm.skin-immersive.has-sel::before { background: radial-gradient(120% 90% at 50% 42%, rgba(0,0,0,0) 30%, rgba(0,0,0,.7) 100%); }
/* ground: water with a soft shore, a city dot texture at district zoom and closer, a lit corridor along the line */
.lm.skin-immersive .lm-bay { fill: var(--lm-water); stroke: rgba(120,160,190,.18); stroke-width: 1.5px; }
.lm.skin-immersive .lm-river { stroke: var(--lm-water); stroke-width: 8px; }
.lm.skin-immersive .lm-ctxlbl { font-family: var(--lm-display); font-weight: 600; letter-spacing: .22em; opacity: .35; }
.lm-ground { display: none; } .lm-dot { fill: rgba(170,190,210,.11); }
.lm.skin-immersive:not([data-zoom="far"]) .lm-ground { display: block; }
.lm-corridor { display: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lm.skin-immersive[data-zoom="mid"] .lm-corridor { display: block; stroke: rgba(120,150,180,.045); stroke-width: 150px; }
.lm.skin-immersive[data-zoom="near"] .lm-corridor { display: block; stroke: rgba(120,150,180,.04); stroke-width: 280px; }
/* the elevated guideway: ground shadow · side face · deck · LED strip */
.lm.skin-immersive .lm-track-shadow { display: block; stroke: rgba(0,0,0,.5); stroke-width: calc(var(--lm-rw) + 7px); transform: translate(3px, 7px); }
.lm.skin-immersive[data-zoom="far"] .lm-track-shadow { stroke-width: calc(var(--lm-rw) + 5px); transform: translate(2px, 4px); stroke: rgba(0,0,0,.45); }
.lm-track-side { fill: none; stroke-linecap: round; stroke-linejoin: round; display: none; }
.lm.skin-immersive .lm-track-side { display: block; stroke: var(--lm-side); stroke-width: calc(var(--lm-rw) + 3px); transform: translate(0, 3px); }
.lm.skin-immersive[data-zoom="far"] .lm-track-side { transform: translate(0, 2px); }
.lm.skin-immersive .lm-track-casing { display: none; }
.lm-track-deck { fill: none; stroke-linecap: round; stroke-linejoin: round; display: none; }
.lm.skin-immersive .lm-track-deck { display: block; stroke: var(--lm-deck); stroke-width: calc(var(--lm-rw) + 3px); }
/* far zoom: the guideway collapses to an extruded colour ribbon (side face + shadow stay), so the lines keep their identity */
.lm.skin-immersive[data-zoom="far"] .lm-track-deck { display: none; }
.lm.skin-immersive .lm-track { stroke-width: 2.2px; transition: opacity .5s var(--lm-ease), stroke-width .3s; }
.lm.skin-immersive[data-zoom="far"] .lm-track { stroke-width: 3.2px; } .lm.skin-immersive[data-zoom="near"] .lm-track { stroke-width: 2.8px; }
.lm.skin-immersive[data-zoom="far"] .lm-track-side { stroke-width: calc(var(--lm-rw) + 1.4px); stroke: #0F1820; }
.lm.skin-immersive .lm-track.G { filter: drop-shadow(0 0 4px rgba(61,190,108,.75)); } .lm.skin-immersive .lm-track.O { filter: drop-shadow(0 0 4px rgba(246,169,75,.75)); }
.lm.skin-immersive[data-zoom="far"] .lm-track { filter: none; }
.lm.skin-immersive .lm-track-hl { display: none; }
.lm.skin-immersive[data-zoom="near"] .lm-track-hl { display: block; stroke: var(--lm-deck-edge); stroke-width: 1px; transform: translate(0, -4.2px); }
.lm.skin-immersive.has-sel .lm-track { filter: none; opacity: .5; } .lm.skin-immersive.has-sel.sel-G .lm-track.O, .lm.skin-immersive.has-sel.sel-O .lm-track.G { opacity: .25; }
.lm.skin-immersive.has-sel .lm-track-deck { opacity: .75; }
.lm.skin-immersive .lm-route-glow { stroke-width: 18px; opacity: .3; } .lm.skin-immersive .lm-route { stroke-width: 3px; filter: drop-shadow(0 0 6px currentColor); }
.lm.skin-immersive .lm-route.G { color: rgba(61,190,108,.9); } .lm.skin-immersive .lm-route.O { color: rgba(246,169,75,.9); }
.lm.skin-immersive .lm-route-flow { stroke: rgba(255,255,255,.85); stroke-width: 1.8px; stroke-dasharray: 4 30; animation-duration: 1.4s; }
/* stations: platform slabs along the guideway, a lit canopy edge */
.lm.skin-immersive .lm-stn .ring, .lm.skin-immersive .lm-stn .core { display: none; }
.lm.skin-immersive .lm-stn .platg, .lm.skin-immersive .lm-stn .platshg { display: block; }
.lm.skin-immersive .lm-stn .plat { fill: var(--lm-slab); transition: fill .4s; x: -9px; y: -3.5px; width: 18px; height: 7px; rx: 2px; }
.lm.skin-immersive .lm-stn .platsh { fill: var(--lm-slab-side); x: -9px; y: -3.5px; width: 18px; height: 7px; rx: 2px; }
.lm.skin-immersive .lm-stn .canopy { stroke: rgba(255,255,255,.9); stroke-width: 1px; stroke-linecap: round; transition: stroke .4s; }
.lm.skin-immersive .lm-stn.major .plat, .lm.skin-immersive .lm-stn.major .platsh { x: -12px; width: 24px; y: -4px; height: 8px; }
.lm.skin-immersive[data-zoom="far"] .lm-stn .plat, .lm.skin-immersive[data-zoom="far"] .lm-stn .platsh { x: -5px; width: 10px; y: -1.8px; height: 3.6px; rx: 1.2px; }
.lm.skin-immersive[data-zoom="far"] .lm-stn.major .plat, .lm.skin-immersive[data-zoom="far"] .lm-stn.major .platsh { x: -6.5px; width: 13px; y: -2.3px; height: 4.6px; }
.lm.skin-immersive[data-zoom="far"] .lm-stn .platshg { transform: translate(0, 1.4px); }
.lm.skin-immersive[data-zoom="far"] .lm-stn .canopy { display: none; }
.lm.skin-immersive[data-zoom="near"] .lm-stn .plat, .lm.skin-immersive[data-zoom="near"] .lm-stn .platsh { x: -14px; width: 28px; y: -5px; height: 10px; rx: 3px; }
.lm.skin-immersive[data-zoom="near"] .lm-stn.major .plat, .lm.skin-immersive[data-zoom="near"] .lm-stn.major .platsh { x: -18px; width: 36px; y: -6px; height: 12px; }
.lm.skin-immersive .lm-stn.lit-G .plat { fill: #CFF5DC; } .lm.skin-immersive .lm-stn.lit-O .plat { fill: #FFE7C2; }
.lm.skin-immersive .lm-stn.ahead .plat { fill: #FFFFFF; } .lm.skin-immersive .lm-stn.ahead .canopy { stroke: var(--lm-teal); stroke-width: 1.6px; }
.lm.skin-immersive.has-sel .lm-stn:not(.ahead) .plat { fill: #9DAAB6; }
.lm.skin-immersive .lm-stn.sel .plat { fill: var(--lm-teal); }
.lm.skin-immersive .lm-stn .halo { stroke-width: 2.5px; }
.lm.skin-immersive .lm-lbl { font-size: 11.5px; font-weight: 500; fill: #CBD6E0; stroke: var(--lm-bg); stroke-width: 4px; }
.lm.skin-immersive .lm-lbl.major { font-family: var(--lm-display); font-size: 13px; font-weight: 700; letter-spacing: .005em; fill: #FFFFFF; }
.lm.skin-immersive.has-sel .lm-lbl:not(.major) { opacity: .5; }
/* the Dimensional car */
.lm.skin-immersive .lm-train .glow { display: none; }
.lm.skin-immersive .lm-train .selring { r: 20px; stroke-width: 1.5px; opacity: 0; } .lm.skin-immersive .lm-train.sel .selring { opacity: .9; }
.mk-dim .car { stroke: var(--lm-outline); stroke-width: .8px; transition: fill .5s, stroke .3s; }
.mk-dim .cabface { fill: var(--lm-glass); transition: fill .4s; }
.mk-dim .lamp { fill: #FFF4CC; opacity: .3; transition: opacity .4s; }
.mk-dim .strip { fill: none; stroke-width: 1.2px; stroke-linecap: round; transition: stroke .5s; } .lod-compact .strip { stroke-width: 1px; }
.lm-train.G .mk-dim .strip { stroke: var(--lm-G); } .lm-train.O .mk-dim .strip { stroke: var(--lm-O); }
.mk-dim .win { fill: none; stroke: var(--lm-glass); stroke-width: 1.5px; stroke-linecap: round; }
.mk-dim .sep { stroke: var(--lm-outline); stroke-width: .9px; opacity: .55; } .mk-dim .door { stroke: var(--lm-glass); stroke-width: 1px; opacity: .85; transition: stroke .4s; } .mk-dim .vent { fill: #5B6B79; opacity: .7; }
.mk-dim .badge { stroke: rgba(255,255,255,.4); stroke-width: .6px; transition: fill .5s; } .lm-train.G .mk-dim .badge { fill: var(--lm-G); } .lm-train.O .mk-dim .badge { fill: var(--lm-O); }
.mk-dim .tail { stroke: var(--lm-tail); stroke-width: 1.4px; stroke-linecap: round; opacity: .45; transition: opacity .4s; }
.lm.skin-immersive .lm-train .ltr.badge { fill: #FFFFFF; }
.lm-train.moving .mk-dim .lamp { opacity: 1; filter: drop-shadow(0 0 2.5px #FFF4CC); } .lm-train.moving .mk-dim .tail { opacity: .95; filter: drop-shadow(0 0 2px #FF6B5C); }
.lm.skin-immersive .lm-pool.on .pl { opacity: .75; } .lm.skin-immersive[data-zoom="near"] .lm-pool .pl { transform: scale(1.5); }
.lm.skin-immersive .lm-pool.sel .spot { opacity: 1; }
.lm-train.dwell .mk-dim .cabface { fill: #FFE1A0; } .lm-train.dwell .mk-dim .door { stroke: #FFE1A0; opacity: 1; }
.lm-train.stale .mk-dim .car { fill: #7E8A95; } .lm-train.stale .mk-dim .cabface { fill: #1A242D; } .lm-train.stale .mk-dim .badge { fill: #6B7680; } .lm-train.stale .mk-dim .strip { stroke: #6B7680; }
.lm-train.stale .mk-dim .lamp, .lm-train.stale .mk-dim .tail { opacity: 0; } .lm-train.stale .side { fill: #3A4652; }
.lm-train.sel .mk-dim .car { stroke: var(--lm-teal); stroke-width: 1.3px; }
.lm-train.late .mk-dim .car { stroke: var(--lm-warn); }
.lm.skin-immersive .lm-tail.on .t0 { opacity: .22; } .lm.skin-immersive .lm-tail.on .t1 { opacity: .1; } .lm.skin-immersive .lm-tail.on .t2 { opacity: .04; }
.lm.skin-immersive .lm-obs { stroke-width: 1.5px; }
/* chrome: dark glass with a hairline */
.lm.skin-immersive .lm-modebar, .lm.skin-immersive .lm-back, .lm.skin-immersive .lm-status, .lm.skin-immersive .lm-ibtn, .lm.skin-immersive .lm-stamp { background: rgba(12,18,26,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.45); }
.lm.skin-immersive .lm-chip[aria-pressed="true"] { background: #F4F7FA; color: #0A0F16; }
.lm.skin-immersive .lm-recenter { box-shadow: 0 8px 26px rgba(38,214,197,.35), inset 0 0 0 1px rgba(255,255,255,.25); }
.lm.skin-immersive .lm-strip { background: rgba(12,18,26,.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 12px 34px rgba(0,0,0,.45); }
.lm.skin-immersive .lm-strip .hint { border-top-color: rgba(255,255,255,.08); }
.lm.skin-immersive .lm-callout rect { fill: rgba(12,18,26,.92); stroke: rgba(255,255,255,.35); } .lm.skin-immersive .lm-callout text { fill: #fff; }
.lm.skin-immersive .lm-sheet { background: rgba(12,18,26,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -14px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1); border-radius: 24px 24px 0 0; }
.lm.skin-immersive .lm-sheet .grab { background: rgba(255,255,255,.22); }
.lm.skin-immersive .lm-sheet .k, .lm.skin-immersive .lm-sheet .kicker { color: #8798A6; }
.lm.skin-immersive .lm-sheet .seg .bar { height: 6px; background: #3B4753; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); }
.lm.skin-immersive .lm-sheet .seg .bar .fill { opacity: .95; }
.lm.skin-immersive .lm-sheet .fields, .lm.skin-immersive .lm-sheet .chip.est { background: rgba(255,255,255,.06); }
.lm.skin-immersive .lm-btn.quiet { background: rgba(255,255,255,.08); }
.lm.skin-immersive .lm-legend { background: rgba(12,18,26,.96); }

/* =========================================================== Home card (thumb.js) ====================== */
/* The Home screen's map card: the premium skin's ground, ribbons and station rings, drawn once into one
   SVG by app/livemap/thumb.js and placed inside the mock's 16:9 .rp-mapcard button. It fills the card
   rather than claiming the renderer's height, takes no taps (the button does), and never moves: no
   transition or keyframe the skin defines may run on it. Sizes are a step under the far tier's, because
   the whole commute, or the whole network, is 200 px tall here. The commute marks (livemap.css) are
   restated at this specificity because the premium ring rule above outranks them. */
.lm.lm-thumb { display: block; position: absolute; inset: 0; width: auto; height: auto; min-height: 0; pointer-events: none; container-type: normal; border-radius: inherit; --lm-rw: 3px; }
.lm.lm-thumb, .lm.lm-thumb * { transition: none !important; animation: none !important; }
/* The chrome's hairline on the card's edge, so it reads as a tile on the navy Home and not as a hole in it. */
.lm.skin-premium.lm-thumb::before { border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(173,196,214,.14); }
.lm.skin-premium.lm-thumb .lm-track { filter: none; }
.lm.skin-premium.lm-thumb .lm-track-hl { stroke-width: .7px; stroke: rgba(255,255,255,.22); }
.lm.skin-premium.lm-thumb .lm-river { stroke-width: 4px; }
.lm.skin-premium.lm-thumb .lm-stn .ring { r: 2.6px; stroke-width: 1.5px; }
.lm.skin-premium.lm-thumb .lm-stn.major .ring, .lm.skin-premium.lm-thumb .lm-stn.junction .ring, .lm.skin-premium.lm-thumb .lm-stn.commute .ring { r: 3.6px; stroke-width: 1.8px; }
.lm.skin-premium.lm-thumb .lm-stn.commute .ring { stroke: var(--lm-teal); }
.lm.skin-premium.lm-thumb .lm-stn.commute-end .ring { r: 4.6px; stroke-width: 2px; fill: rgba(38,214,197,.28); }
.lm.skin-premium.lm-thumb .lm-stn .core { r: 0; }
.lm.skin-premium.lm-thumb .lm-stn.terminus .core, .lm.skin-premium.lm-thumb .lm-stn.commute-end .core { r: 1.4px; }
.lm.skin-premium.lm-thumb .lm-stn.commute-end .core { fill: var(--lm-teal); }
/* The origin is the card's subject: the stop the rider leaves from, the frame's centre. */
.lm.skin-premium.lm-thumb .lm-stn.origin .ring { r: 5.8px; stroke-width: 2.4px; fill: rgba(38,214,197,.36); }
.lm.skin-premium.lm-thumb .lm-stn.origin .core { r: 1.9px; }
.lm.skin-premium.lm-thumb[data-fit="network"] .lm-stn:not(.major):not(.commute) .ring { r: 1.8px; stroke-width: 1.2px; }
.lm.skin-premium.lm-thumb .lm-lbl { font-size: 11px; }
.lm.skin-premium.lm-thumb .lm-lbl.major { font-size: 12px; }
.lm.skin-premium.lm-thumb .lm-lbl.commute { fill: #FFFFFF; }
/* A train, where the feed last reported it. Frozen as the marker is: grey, dimmed, a warn outline. */
.lm-thumb .lm-tdot { stroke: var(--lm-outline); stroke-width: 1.2px; }
.lm-thumb .lm-tdot.G { fill: var(--lm-G); } .lm-thumb .lm-tdot.O { fill: var(--lm-O); }
.lm-thumb .lm-tdot.stale { fill: #8A98A3; stroke: var(--lm-warn); opacity: .62; }

/* =========================================================== City in Motion (8 Nov 2026) =============== */
/* The Map keeps Concept A's grammar and takes the app's night (docs/design/vamos305-city-in-motion/): the
   shell's navy-violet canvas, electric cyan where it had teal, glass chrome tinted to the canvas. Trains,
   stations, labels and the two lines' colours keep their meaning; the Home card (lm-thumb) inherits it all. */
.lm.skin-premium {
  --lm-bg: #0A0E24; --lm-water: #111846; --lm-land: #0C1230; --lm-surface: #141A3C; --lm-surface-2: #1E2552; --lm-line: rgba(176,184,236,.16);
  --lm-text: #F7F5FC; --lm-text-2: #CDCCE8; --lm-muted: #9B9EC7;
  --lm-teal: #3DEFEA; --lm-teal-ink: #04282A; --lm-teal-dim: rgba(61,239,234,.14);
  --lm-G: #45D27A; --lm-O: #FFAE4A; --lm-G-lit: #A4F5C2; --lm-O-lit: #FFD9A0;
  --lm-warn: #FFCD6B; --lm-severe: #FF5C5C; --lm-warn-dim: rgba(255,205,107,.14);
  --lm-outline: #070B20; --lm-glass: #10152E; --lm-glow: .34;
}
.lm.skin-premium::before { background: radial-gradient(70% 50% at 15% 0%, rgba(106,63,176,.26) 0%, rgba(106,63,176,0) 60%), radial-gradient(55% 45% at 100% 100%, rgba(248,87,127,.10) 0%, rgba(248,87,127,0) 60%), radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 48%, rgba(0,0,0,.42) 100%); }
.lm.skin-premium .lm-bay { stroke: rgba(176,184,236,.18); }
.lm.skin-premium .lm-track-casing { stroke: #05081C; }
.lm.skin-premium .lm-track.G { filter: drop-shadow(0 0 6px rgba(69,210,122,var(--lm-glow))); } .lm.skin-premium .lm-track.O { filter: drop-shadow(0 0 6px rgba(255,174,74,var(--lm-glow))); }
.lm.skin-premium .lm-modebar, .lm.skin-premium .lm-back, .lm.skin-premium .lm-status, .lm.skin-premium .lm-ibtn, .lm.skin-premium .lm-stamp { background: rgba(10,14,36,.78); box-shadow: inset 0 0 0 1px rgba(176,184,236,.16), 0 8px 24px rgba(0,0,0,.35); }
.lm.skin-premium .lm-chip[aria-pressed="true"] { box-shadow: 0 4px 14px rgba(61,239,234,.35); }
.lm.skin-premium .lm-recenter { box-shadow: 0 8px 22px rgba(61,239,234,.3); }
.lm.skin-premium .lm-strip { background: rgba(10,14,36,.8); box-shadow: inset 0 0 0 1px rgba(176,184,236,.16), 0 10px 30px rgba(0,0,0,.35); }
.lm.skin-premium .lm-strip .row.G .sw { box-shadow: 0 0 6px rgba(69,210,122,.6); } .lm.skin-premium .lm-strip .row.O .sw { box-shadow: 0 0 6px rgba(255,174,74,.6); }
.lm.skin-premium .lm-callout rect { fill: rgba(10,14,36,.92); }
.lm.skin-premium .lm-sheet { background: rgba(16,21,50,.97); box-shadow: 0 -12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.lm.skin-premium .lm-sheet .grab { background: rgba(176,184,236,.3); }
.lm.skin-premium .lm-sheet .fields { background: rgba(10,14,36,.55); }
.lm.skin-premium .lm-legend { background: rgba(20,26,60,.97); }
.lm.skin-premium .lm-stamp.live .dot { box-shadow: 0 0 8px var(--lm-teal); }
.lm.skin-premium .lm-sheet .eta b { text-shadow: 0 0 16px rgba(61,239,234,.3); }
.lm.skin-premium .lm-sheet .seg .bar .dot { box-shadow: 0 0 0 2px rgba(61,239,234,.35), 0 2px 4px rgba(0,0,0,.5); }
.lm.skin-premium.lm-thumb::before { box-shadow: inset 0 0 0 1px rgba(176,184,236,.16); }

/* ---- Phase 3 (8 Nov 2026, evening): the Follow sheet as the signature card ------------------------------
   The sheet takes the Home card's glass, the head sits on a rule in the train's line colour, the arrival
   is the one large element, the segment bar reads as track with the train on it. The map's chrome keeps
   its places; the mode bar and pills now get their authored padding (the reset in livemap.css is :where). */
.lm.skin-premium .lm-sheet { background: linear-gradient(170deg, rgba(40,28,92,.9) 0%, rgba(16,21,50,.97) 40%); backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15); box-shadow: inset 0 1px 0 rgba(61,239,234,.22), inset 0 0 0 1px rgba(176,184,236,.16), 0 -16px 48px rgba(0,0,0,.5); }
.lm.skin-premium .lm-sheet .hd { padding-bottom: 10px; position: relative; }
.lm.skin-premium .lm-sheet .hd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--lm-hd, rgba(61,239,234,.6)), transparent 80%); }
.lm.skin-premium .lm-sheet:has(.lmdot.G) { --lm-hd: rgba(69,210,122,.7); } .lm.skin-premium .lm-sheet:has(.lmdot.O) { --lm-hd: rgba(255,174,74,.7); }
.lm.skin-premium .lm-sheet .hd h3 { font-size: 18px; }
.lm.skin-premium .lm-sheet .hd h3 small { font-family: var(--lm-font); font-weight: 500; color: var(--lm-muted); }
.lm.skin-premium .lm-sheet .lmdot { width: 30px; height: 30px; font-size: 14px; }
.lm.skin-premium .lm-sheet .lmdot.G { box-shadow: 0 0 12px rgba(69,210,122,.45); } .lm.skin-premium .lm-sheet .lmdot.O { box-shadow: 0 0 12px rgba(255,174,74,.45); }
.lm.skin-premium .lm-sheet .nx .k, .lm.skin-premium .lm-sheet .eta .k { letter-spacing: .14em; color: var(--lm-muted); }
.lm.skin-premium .lm-sheet .nx b { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.lm.skin-premium .lm-sheet .eta b { font-size: 42px; letter-spacing: -.04em; text-shadow: 0 0 22px rgba(61,239,234,.45); }
.lm.skin-premium .lm-sheet .eta.soon b { font-size: 34px; }
.lm.skin-premium .lm-sheet .eta small { font-size: 10.5px; }
.lm.skin-premium .lm-sheet .seg { font-size: 12px; }
.lm.skin-premium .lm-sheet .seg .bar { height: 6px; background: rgba(176,184,236,.14); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.lm.skin-premium .lm-sheet .seg .bar.G .fill { background: linear-gradient(90deg, rgba(69,210,122,.55), var(--lm-G)); box-shadow: 0 0 10px rgba(69,210,122,.5); }
.lm.skin-premium .lm-sheet .seg .bar.O .fill { background: linear-gradient(90deg, rgba(255,174,74,.55), var(--lm-O)); box-shadow: 0 0 10px rgba(255,174,74,.5); }
.lm.skin-premium .lm-sheet .seg .bar .dot { width: 18px; height: 10px; border-radius: 5px; background: #F2F6FA; border-color: #070B20; box-shadow: 0 0 0 2px rgba(61,239,234,.5), 0 0 12px rgba(61,239,234,.5), 0 2px 4px rgba(0,0,0,.5); }
.lm.skin-premium .lm-sheet .chip.est { background: rgba(176,184,236,.12); color: var(--lm-text-2); }
.lm.skin-premium .lm-sheet .acts .lm-btn { height: 42px; padding: 0 16px; font-size: 13.5px; }
.lm.skin-premium .lm-sheet .acts .lm-btn.on { box-shadow: inset 0 0 0 1px var(--lm-teal), 0 0 16px rgba(61,239,234,.2); }
.lm.skin-premium .lm-sheet .acts .lm-btn.quiet { background: rgba(176,184,236,.12); }
/* the network view's chrome: pills in the shell's glass, the active chip in electric cyan */
.lm.skin-premium .lm-modebar { padding: 4px; }
.lm.skin-premium .lm-chip { height: 36px; padding: 0 14px; font-size: 13px; }
.lm.skin-premium .lm-back, .lm.skin-premium .lm-status, .lm.skin-premium .lm-recenter { height: 44px; font-size: 13px; }
.lm.skin-premium .lm-strip { border-radius: 18px; padding: 10px 14px 8px; background: linear-gradient(170deg, rgba(40,28,92,.7) 0%, rgba(10,14,36,.86) 60%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(176,184,236,.16), 0 12px 32px rgba(0,0,0,.4); }
.lm.skin-premium .lm-strip .row { height: 28px; }
.lm.skin-premium .lm-strip .n { font-size: 17px; }
.lm.skin-premium .lm-strip .hint { color: var(--lm-muted); letter-spacing: .04em; text-transform: uppercase; font-size: 10px; font-weight: 600; }
.lm.skin-premium .lm-stamp { height: 34px; }
.lm.skin-premium .lm-callout rect { fill: rgba(16,21,50,.94); stroke: var(--lm-teal); }
/* the station sheet's prediction rows share the board's finish */
.lm.skin-premium .lm-sheet .pr .in { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.lm.skin-premium .lm-sheet .pr:first-of-type .in { color: var(--lm-teal); text-shadow: 0 0 14px rgba(61,239,234,.4); }
.lm.skin-premium .lm-sheet .kicker { letter-spacing: .12em; }
/* the followed train breathes: its selection ring eases between two opacities over 2.4 s (opacity only,
   compositor-cheap; off under reduced motion via the renderer's .reduced class and the media query) */
@keyframes lm-selbreathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.lm.skin-premium .lm-train.sel .selring { animation: lm-selbreathe 2.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(61,239,234,.6)); }
.lm.reduced .lm-train.sel .selring { animation: none; }
@media (prefers-reduced-motion: reduce) { .lm:not(.motion-forced) .lm-train.sel .selring { animation: none; } }

/* ---------- Station-first Home (9 Nov 2026): fewer controls on the map, the same capabilities ----------
   No mode bar: the network is the view; framing the commute is one icon button in the right column. The
   trains-in-service strip is one row (two counts and the hint). Following has a labelled Stop. */
.lm-ibtn.commute { color: var(--lm-teal); }
.lm-ibtn.commute[aria-pressed="true"] { background: var(--lm-teal); color: var(--lm-teal-ink); }
.lm.skin-premium .lm-strip { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 0 14px; height: 40px; border-radius: 999px; left: 12px; right: auto; min-width: 0; max-width: calc(100% - 24px); }
.lm.skin-premium .lm-strip .rows { flex-direction: row; gap: 14px; }
.lm.skin-premium .lm-strip .row { display: inline-flex; grid-template-columns: none; gap: 6px; height: 40px; }
.lm.skin-premium .lm-strip .row .st { display: none; }
.lm.skin-premium .lm-strip .nm { font-size: 12.5px; font-weight: 600; }
.lm.skin-premium .lm-strip .n { font-size: 14px; font-weight: 700; }
.lm.skin-premium .lm-strip .hint { border-top: 0; padding: 0 0 0 12px; border-left: 1px solid var(--lm-line); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; white-space: nowrap; }
@container (max-width: 360px) { .lm.skin-premium .lm-strip .hint { display: none; } .lm.skin-premium .lm-strip { padding-right: 14px; } }
.lm-btn.stop { background: transparent; color: #F8577F; box-shadow: inset 0 0 0 1.5px rgba(248,87,127,.75); height: 36px; padding: 0 12px 0 10px; margin-left: auto; flex: none; }
.lm-btn.stop svg { width: 15px; height: 15px; }
.lm.skin-premium .lm-back { font-size: 13px; }
/* the sheet can be swiped down to close (livemap.js): the handle and head own their touches, the body scrolls */
.lm-sheet { overscroll-behavior: contain; overflow-anchor: none; }
/* The sheet's parts keep their own height: the sheet scrolls, it never squeezes them to fit. */
.lm-sheet > * { flex-shrink: 0; }
.lm-sheet .grab, .lm-sheet .hd, .lm-sheet .lm-hd-slot, .lm-sheet .ttl { touch-action: none; }
.lm-sheet .grab { position: relative; }
.lm-sheet .grab::before { content: ""; position: absolute; left: -60px; right: -60px; top: -12px; bottom: -14px; }

/* The map key (9 Nov 2026): it opened over the buttons that toggle it, so it could not be closed. It
   now sits left of the button column, carries its own close, and a tap on it or on the map closes it. */
.lm-legend { right: 64px; width: min(300px, calc(100% - 88px)); cursor: pointer; }
.lm-legend .row.hd { justify-content: space-between; margin: -4px -6px 2px 0; }
.lm-legend .row.hd b { font-size: 13px; color: var(--lm-text); font-weight: 700; }
.lm-legend .row.hd .lm-ibtn.x { width: 32px; height: 32px; flex: none; }
.lm-legend .row small { margin-left: auto; text-align: right; }

/* ---- Reliability first (12 Nov 2026): nothing over the map blurs what is behind it ---------
   Every control and the Follow sheet sat on the map with a backdrop-filter, so each frame the
   map moved (a followed train, a pan, a zoom) the browser blurred the pixels under all of them
   again. On a phone that is the most expensive thing the screen did, and it bought a hint of
   map through a panel. The panels are now simply opaque enough to read; shape, border and
   shadow are unchanged. The route's flowing dash stops while a train is followed (it repainted
   the whole route 60 times a second under the sheet), and the selected train's ring keeps its
   pulse without a filter. To put any of it back, delete this block.
   (.lm[class] matches the skins' own specificity, so this wins by coming last.) */
.lm[class] .lm-sheet, .lm[class] .lm-strip, .lm[class] .lm-modebar, .lm[class] .lm-back, .lm[class] .lm-status,
.lm[class] .lm-ibtn, .lm[class] .lm-stamp, .lm[class] .lm-roster { backdrop-filter: none; -webkit-backdrop-filter: none; }
.lm.skin-premium .lm-sheet { background: linear-gradient(170deg, rgb(38,28,88) 0%, rgb(16,21,50) 40%); }
.lm.skin-premium .lm-strip { background: linear-gradient(170deg, rgba(38,28,88,.95) 0%, rgba(10,14,36,.96) 60%); }
.lm.skin-premium .lm-modebar, .lm.skin-premium .lm-back, .lm.skin-premium .lm-status, .lm.skin-premium .lm-ibtn:not(.x) { background: rgba(10,14,36,.94); }
.lm.skin-premium .lm-stamp { background: rgba(10,14,36,.95); }
.lm.view-follow .lm-route-flow { animation: none; }
.lm.skin-premium .lm-train.sel .selring { filter: none; }
