/* ───────── content pages (src/pages_content.py): features, about, help, legal, compare, 404 */

/* shared: a symbol in a soft square, centred heroes, topic chips */
.ct-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.04), 0 4px 10px -6px rgba(0,0,0,.12); }
.ct-ic .sym { width: 17px; height: 17px; }
.ct-ic svg { width: 17px; height: 17px; }
.ct-hero { padding-bottom: 72px; }
.ct-hero .lead { max-width: 640px; }
.ct-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; max-width: 820px; }
.ct-chips a { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 500 13.5px/1 var(--sans); color: var(--ink-2); white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .2s, box-shadow .2s; }
.ct-chips a:hover { border-color: var(--faint); box-shadow: 0 0 0 4px var(--soft); }
.ct-count { margin-top: 20px; font-size: 13px; color: var(--faint); }
.gs--ct-space .gc { height: 72px; }

/* ── legal documents */
.ct-dochero .lead { max-width: 640px; }
.ct-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.ct-tabs a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; font: 500 14px/1 var(--sans); color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.ct-tabs a:hover { background: var(--soft); color: var(--ink); }
.ct-tabs a[aria-current] { background: #171717; color: #fff; }
.ct-prose { padding-top: 16px; }
.ct-prose > :first-child { margin-top: 24px; }
.ct-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ct-prose a:hover { text-decoration-color: var(--ink); }
.ct-prose h2 a.hlink { text-decoration: none; }
.ct-prose strong { color: var(--ink); font-weight: 600; }
.ct-prose ul { list-style: disc; padding-left: 22px; }
.ct-prose ul + ul { margin-top: 20px; }
.ct-prose li { overflow-wrap: anywhere; }
.ct-mtoc { display: none; }
.ct-docmore .ct-doclinks, .ct-404links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ct-doclink { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.ct-doclink:hover { border-color: var(--faint); box-shadow: 0 0 0 4px var(--soft); }
.ct-doclink b { font: 500 15px/1.3 var(--display); color: var(--ink-2); }
.ct-doclink small { font-size: 13.5px; line-height: 1.45; color: var(--muted-2); }
.ct-ask b { font-size: 17px; }
.ct-ask small { overflow-wrap: anywhere; }

/* ── features: a sticky title on the left, the features on the right */
.ct-fg { display: grid; grid-template-columns: 380px 1fr; }
.ct-fg__head { border-right: 1px solid var(--line); background: var(--band); }
.ct-fg__stick { position: sticky; top: 64px; padding: 48px 40px; display: flex; flex-direction: column; align-items: flex-start; }
.ct-fg__n { font: 500 13px/1 var(--mono); color: var(--faint); }
.ct-fg__stick h2 { margin-top: 14px; font: 500 30px/1.15 var(--display); letter-spacing: -.01em; color: var(--ink-2); }
.ct-fg__stick p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted-2); }
.ct-fg__c { margin-top: 14px; padding: 5px 9px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 500 12px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.ct-cover { width: 100%; margin-top: 28px; border-radius: 12px; border: 1px solid var(--line); }
.ct-feats { display: grid; grid-template-columns: 1fr 1fr; align-content: start; background: var(--band); }
.ct-feat { display: flex; align-items: flex-start; gap: 14px; padding: 26px 32px; border-bottom: 1px solid var(--line); background: #fff; transition: background .2s; }
.ct-feat:nth-child(odd) { border-right: 1px solid var(--line); }
.ct-feat:hover { background: var(--band); }
.ct-feat b { display: block; font: 500 15px/20px var(--sans); color: var(--ink-2); }
.ct-feat small { display: block; margin-top: 3px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.ct-feats .ct-feat:last-child, .ct-feats .ct-feat:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

/* ── about */
.ct-abouthero .bpill { margin-bottom: 4px; }
.ct-story { padding: 80px 48px; display: flex; justify-content: center; }
.ct-story__txt { max-width: 680px; display: grid; gap: 22px; font-size: 19px; line-height: 1.65; color: #404040; }
.ct-story__big { font: 500 clamp(26px, 3.2vw, 34px)/1.3 var(--display); letter-spacing: -.01em; color: var(--ink-2); text-wrap: balance; }
.ct-sign { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 15px; color: var(--muted-2); }
.ct-sign .brand__icon { width: 32px; height: 32px; border-radius: 50%; }
.ct-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.ct-split__txt { padding: 72px 48px; }
.ct-split__txt .lead { max-width: 440px; }
.ct-split__art { padding: 48px; border-left: 1px solid var(--line); background: var(--band); align-self: stretch; display: grid; align-content: center; }
.ct-split__art .ct-cover { margin: 0; }
.ct-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ct-mode { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 7px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.04); font: 500 14px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.ct-mode .pic { width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.ct-care .ct-ic { margin-bottom: 10px; }
.ct-plain { margin-top: 20px; display: grid; gap: 14px; font-size: 16px; line-height: 1.7; color: #404040; max-width: 480px; }
.ct-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ct-badges li { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; background: var(--soft); font: 500 13px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.ct-badges .sym { width: 13px; height: 13px; }
.ct-facts { display: grid; border-radius: 16px; background: #fff; box-shadow: var(--depth); overflow: hidden; }
.ct-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 22px; }
.ct-facts > div + div { border-top: 1px solid var(--line); }
.ct-facts dt { font-size: 14px; color: var(--muted-2); white-space: nowrap; }
.ct-facts dd { font: 500 15px/1.4 var(--sans); color: var(--ink-2); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ct-facts a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ct-hello { padding: 88px var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ── help: search, topics, answers */
.ct-search { width: 100%; max-width: 560px; margin-top: 32px; }
.ct-search__f { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 16px; border-radius: 14px; background: #fff; box-shadow: var(--depth); cursor: text; }
.ct-search__f > svg { width: 18px; height: 18px; color: var(--faint); }
.ct-search__f input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 16px/1 var(--sans); color: var(--ink); }
.ct-search__f input::placeholder { color: var(--faint); }
.ct-search__f input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ct-search__f:focus-within { box-shadow: var(--depth), 0 0 0 4px #e5e5e5; }
.ct-search__f kbd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); font: 500 12px/1 var(--sans); color: var(--muted-2); }
.ct-search__n { margin-top: 14px; font-size: 13px; color: var(--faint); min-height: 1.5em; }
.ct-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.ct-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 28px 24px; background: #fff; transition: background .2s; }
.ct-cat:hover { background: var(--band); }
.ct-cat .ct-ic { margin-bottom: 12px; }
.ct-cat b { font: 500 15px/1.35 var(--sans); color: var(--ink-2); }
.ct-cat small { font-size: 13px; color: var(--muted-2); }
.ct-hg { display: grid; grid-template-columns: 320px 1fr; }
.ct-hg__head { border-right: 1px solid var(--line); background: var(--band); }
.ct-hg__stick { position: sticky; top: 64px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ct-hg__stick h2 { margin-top: 10px; font: 500 22px/1.25 var(--display); color: var(--ink-2); text-wrap: balance; }
.ct-hg__stick small { font-size: 13px; color: var(--muted-2); }
.ct-hg__qa { max-width: none; margin: 0; padding: 16px 40px 24px; }
.ct-qa:last-child { border-bottom: 0; }
.ct-qa summary svg { flex: none; }
.ct-qa p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ct-qa[hidden] { display: none; }
.ct-empty { padding: 56px var(--pad); text-align: center; font-size: 16px; color: var(--muted-2); }
.ct-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gs[hidden] { display: none; }
.ct-contact { align-items: flex-start; }
.ct-contact .ct-ic { margin-bottom: 10px; }
.ct-contact .btn { margin-top: auto; }
.ct-contact p { margin-bottom: 14px; }

/* ── compare */
.ct-appic { display: block; width: 56px; height: 56px; border-radius: 22.5%; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 6px 16px -6px rgba(0,0,0,.25); }
.ct-appic--shoo { display: grid; place-items: center; background: #000; }
.ct-appic--shoo svg { width: 55%; height: 55%; fill: #fff; }
.ct-appic--sm { width: 30px; height: 30px; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 2px 6px -2px rgba(0,0,0,.18); }
.ct-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; font-size: 13.5px; color: var(--muted-2); }
.ct-crumbs a:hover { color: var(--ink); }
.ct-crumbs span[aria-current] { color: var(--ink-2); }
.ct-pair { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.ct-pair i, .ct-vscard__ics i { font: 500 13px/1 var(--sans); font-style: normal; color: var(--faint); }
.ct-hero--vs .lead { font-size: 17px; line-height: 27px; }
.ct-vs { padding: 0 var(--pad) 64px; max-width: 880px; margin: 0 auto; }
.ct-vs__t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.ct-vs__t th, .ct-vs__t td { height: 56px; padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.ct-vs__t thead th { height: 92px; font: 500 13px/1.25 var(--sans); color: var(--muted); }
.ct-vs__t th:first-child { width: 40%; text-align: left; padding-left: 0; }
.ct-vs__t tbody th { font-weight: 500; color: var(--ink-2); }
.ct-vs__t .cs { background: rgba(249,115,22,.045); border-bottom-color: rgba(249,115,22,.14); }
.ct-vs__t thead .cs { border-radius: 14px 14px 0 0; }
.ct-vs__t tbody tr:last-child .cs { border-radius: 0 0 14px 14px; }
.ct-vs__t tbody tr:last-child th, .ct-vs__t tbody tr:last-child td { border-bottom: 0; }
.ct-vs__t .cmp__app { color: var(--ink-2); }
.ct-vs__t .cs .cmp__app { font: 700 15px/1 var(--display); color: var(--ink); }
.ct-cv { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.ct-vs__t small { display: block; font-size: 12px; line-height: 1.25; color: var(--muted-2); }
.ct-vs__price td, .ct-vs__price th { height: 96px; }
.ct-vs__price small + small { margin-top: 2px; }
.ct-vs__price small span, .ct-vs__price .cv-t { white-space: nowrap; }
.ct-vs__price .cv-t { margin-bottom: 4px; }
.ct-vs .cmp__foot { flex-wrap: wrap; }
.ct-vs .cmp__tm { text-align: left; }
.ct-vsgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.ct-vsgrid--hub { border-top: 0; }
.ct-vsgrid .ct-vscard:last-child:nth-child(3n+2) { grid-column: span 2; }
.ct-vscard { display: flex; flex-direction: column; gap: 6px; min-height: 210px; padding: 32px var(--pad); background: #fff; transition: background .2s; }
.ct-vscard:hover { background: var(--band); }
.ct-vscard:hover .rcard__go svg { transform: translateX(4px); }
.ct-vscard__ics { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ct-vscard__ics .ct-appic { width: 44px; height: 44px; }
.ct-vscard b { font: 500 17px/1.3 var(--display); color: var(--ink-2); }
.ct-vscard small { font-size: 14px; line-height: 20px; color: var(--muted-2); }
.ct-stack { display: flex; }
.ct-stack .ct-appic { width: 28px; height: 28px; margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.ct-stack .ct-appic:first-child { margin-left: 0; }

/* ── 404: a departure that isn't in service */
.ct-404 { padding-top: 96px; padding-bottom: 88px; }
.ct-board { margin-bottom: 36px; padding: 10px; border-radius: 18px; background: #0b0b0c; box-shadow: var(--depth); }
.ct-board__row { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 18px 0 8px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #fff; white-space: nowrap; }
.ct-board__b { display: flex; gap: 3px; }
.ct-flap { position: relative; display: grid; place-items: center; width: 30px; height: 40px; border-radius: 6px; background: #1f1f22; font: 700 22px/1 var(--display); color: #fbbf24; overflow: hidden;
  animation: ct-flap .6s cubic-bezier(.3,.7,.2,1) var(--d) both; }
.ct-flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.6); }
.ct-board__row b { font: 500 16px/1 var(--sans); }
.ct-board__row em { margin-left: 10px; font: 500 13px/1 var(--sans); font-style: normal; color: #f87171; }
@keyframes ct-flap { 0% { transform: rotateX(90deg); opacity: 0; } 60% { transform: rotateX(-12deg); opacity: 1; } 100% { transform: none; } }
.ct-404links { grid-template-columns: repeat(4, 1fr); padding: 40px; }
@media (prefers-reduced-motion: reduce) { .ct-flap { animation: none; } }

/* ── narrower */
@media (max-width: 1000px) {
  .ct-fg, .ct-hg { grid-template-columns: 300px 1fr; }
  .ct-fg__stick { padding: 40px 28px; }
  .ct-hg__stick { padding: 32px 28px; }
  .ct-feats { grid-template-columns: 1fr; }
  .ct-feat:nth-child(odd) { border-right: 0; }
  .ct-feats .ct-feat:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .ct-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ct-mtoc { display: block; margin: 24px 20px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--band); }
  .ct-mtoc summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font: 500 14px/1 var(--sans); color: var(--muted); cursor: pointer; list-style: none; }
  .ct-mtoc summary::-webkit-details-marker { display: none; }
  .ct-mtoc summary svg { width: 15px; height: 15px; }
  .ct-mtoc summary .chev { margin-left: auto; width: 10px; height: 10px; transition: transform .3s var(--ease); }
  .ct-mtoc[open] summary .chev { transform: rotate(180deg); }
  .ct-mtoc nav { display: grid; gap: 12px; padding: 4px 14px 16px 36px; }
  .ct-mtoc a { font-size: 14px; line-height: 1.4; color: var(--muted); }
  .ct-docmore .ct-doclinks, .ct-404links { grid-template-columns: 1fr; }
  .ct-404links { padding: 24px 20px; }
  .ct-fg, .ct-hg, .ct-split { grid-template-columns: 1fr; }
  .ct-fg__head, .ct-hg__head { border-right: 0; border-bottom: 1px solid var(--line); }
  .ct-fg__stick, .ct-hg__stick { position: static; padding: 32px var(--pad); }
  .ct-fg__stick .ct-cover { max-width: 520px; }
  .ct-hg__stick { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .ct-hg__stick h2 { margin: 0; font-size: 20px; flex: 1; min-width: 0; }
  .ct-hg__stick small { width: 100%; padding-left: 48px; }
  .ct-hg__qa { padding: 4px var(--pad) 16px; }
  .ct-feat { padding: 20px var(--pad); }
  .ct-split__txt { padding: 56px var(--pad); }
  .ct-split__art { border-left: 0; border-top: 1px solid var(--line); padding: 32px var(--pad); }
  .ct-story { padding: 56px var(--pad); }
  .ct-story__txt { font-size: 17px; gap: 18px; }
  .ct-vsgrid { grid-template-columns: 1fr; }
  .ct-vsgrid .ct-vscard:last-child:nth-child(3n+2) { grid-column: auto; }
  .ct-vscard { min-height: 0; }
  .ct-vs { padding: 0 16px 48px; }
  .ct-vs .cmp__foot { margin: 20px 0 0; }
  .ct-vs .cmp__tm { margin: 8px 0 0; }
}
@media (max-width: 600px) {
  .ct-hero { padding-left: 20px; padding-right: 20px; padding-bottom: 56px; }
  .ct-chips { gap: 6px; }
  .ct-chips a { height: 30px; padding: 0 11px; font-size: 13px; }
  .ct-cats { grid-template-columns: 1fr 1fr; }
  .ct-cat { padding: 20px 16px; }
  .ct-cat b { font-size: 14px; }
  .ct-search__f kbd { display: none; }
  .ct-tabs { gap: 4px; }
  .ct-tabs a { height: 30px; padding: 0 10px; font-size: 13px; }
  .ct-vs__t { font-size: 13px; }
  .ct-vs__t th:first-child { width: 36%; }
  .ct-vs--2 .ct-vs__t th:first-child { width: 28%; }
  .ct-vs--2 .ct-vs__t thead th.cs { width: 30%; }
  .ct-vs__t thead th { height: 80px; font-size: 12px; }
  .ct-vs__t .cmp__app { white-space: normal; }
  .ct-vs__t small { font-size: 11px; }
  .ct-pair .ct-appic { width: 48px; height: 48px; }
  .ct-board__row { gap: 10px; padding: 0 12px 0 6px; }
  .ct-board__row b { font-size: 14px; }
  .ct-board__row em { display: none; }
  .ct-flap { width: 26px; height: 36px; font-size: 19px; }
  .ct-facts > div { padding: 16px 18px; }
  .ct-hello { padding: 64px var(--pad); }
}
/* another app: its initials in a plain tile (never its icon) */
.ct-appic--mono { display: grid; place-items: center; width: var(--s, 56px); height: var(--s, 56px); background: #f4f4f5; color: #525252; box-shadow: inset 0 0 0 1px var(--line); font: 600 calc(var(--s, 56px) * .34)/1 var(--sans); letter-spacing: -.02em; }

/* ───────── film.html: the launch film, described */
.fd__player { padding: 0 var(--pad) 48px; }
.fd__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: #0a0a0a; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 60px -24px rgba(0,0,0,.28); }
.fd__video::cue { font: 500 20px/1.35 var(--sans); color: #fff; background: rgba(10,10,10,.72); }
.fd { padding: 56px var(--pad) 72px; }
.fd__list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; }
.fd__s { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.fd__s:first-child { border-top: 0; padding-top: 0; }
.fd__t { justify-self: start; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font: 600 13px/28px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background .2s, color .2s; }
.fd__t:hover { background: #171717; color: #fff; }
.fd__t:focus-visible { outline: 2px solid #171717; outline-offset: 2px; }
.fd__b { display: grid; gap: 6px; min-width: 0; }
.fd__b p { margin: 0; font-size: 16px; line-height: 1.65; color: #404040; }
.fd__b .fd__on { font: 500 19px/1.35 var(--display); color: var(--ink-2); letter-spacing: -.005em; }
.fd__foot { max-width: 720px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2); }
.fd__foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .fd__player { padding: 0 16px 32px; }
  .fd__video { border-radius: 12px; }
  .fd__video::cue { font-size: 13px; }
  .fd { padding: 36px 16px 56px; }
  .fd__s { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .fd__b .fd__on { font-size: 17px; }
  .fd__b p { font-size: 15px; }
}

/* ───────── /live: the network map (src/pages_livemap.py, livemap.js)
   A full-screen map, a floating top bar like the site's nav, white panels with the site's depth,
   and the dashboard sheet that rises over the map. Every rule is scoped to the page (.lm-page). */
.lm-page { --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --late: #c2410c; --text-2: var(--muted); --text-3: var(--muted-2);
  --spring: cubic-bezier(.34, 1.36, .44, 1); --glass: rgba(255,255,255,.86); --lm-sheet-pad: 40px;
  background: #f3f1ec; color: var(--ink); }
.lm-html { scrollbar-width: none; scroll-behavior: auto; }
.lm-html::-webkit-scrollbar { display: none; }
.lm-page [hidden] { display: none !important; }
.lm-page kbd { font: 500 12px/1 var(--sans); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted-2); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.lm-noscroll, .lm-getapp-open { overflow: hidden; }

/* the map, full screen under everything */
.lm-map, .lm-map.maplibregl-map { position: fixed !important; top: 0; left: 0; width: 100%; height: 100%; height: 100lvh; z-index: 0; background: #f3f1ec; }
.lm-map .maplibregl-ctrl-bottom-right { position: fixed; top: auto; bottom: 16px; right: 16px; z-index: 26; } /* the credits sit bottom right, as Apple's do: the top right is the weather's */
.lm-map .maplibregl-ctrl-attrib { font: 400 11px/1.4 var(--sans); }
.lm-map .maplibregl-ctrl-attrib.maplibregl-compact { margin: 0; display: flex; align-items: center; min-height: 28px; padding: 0 28px 0 0; border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: var(--depth); }
.lm-map .maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 3px 30px 3px 12px; }
.lm-map .maplibregl-ctrl-attrib-button { top: 2px; right: 2px; }

/* ───────── the top bar: the site's nav, floating over the map */
.lm-top { position: fixed; z-index: 8; top: 12px; left: 12px; right: 12px; height: 56px; padding: 0 10px 0 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(14px); backdrop-filter: saturate(1.8) blur(14px); box-shadow: var(--depth); }
.lm-brand { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border-radius: 10px; white-space: nowrap; }
.lm-brand__icon { width: 28px; height: 28px; border-radius: 8px; }
.lm-brand__icon svg { width: 16px; height: 16px; fill: #fff; }
.lm-brand__name { font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.lm-brand__live { display: inline-flex; align-items: center; height: 24px; padding: 0 8px 0 9px; margin-left: 2px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 13.5px/1 var(--sans); color: var(--ink-2); }
.lm-brand__dot { width: 8px; height: 8px; margin-left: -2px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: lm-pulse 1.8s infinite; transition: background-color .4s; }
.lm-brand__dot.is-off { background: var(--line-2); animation: none; }
@keyframes lm-pulse { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.lm-search { display: flex; align-items: center; gap: 10px; width: min(440px, 38vw); height: 40px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted-2); font: 400 14.5px/1 var(--sans); text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s; }
.lm-search:hover { border-color: var(--line-2); box-shadow: 0 0 0 4px #ececec; }
.lm-search svg { width: 15px; height: 15px; flex: none; color: var(--ink-2); }
.lm-search span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-top__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lm-site { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 8px; font: 500 14px/1 var(--sans); color: var(--muted); white-space: nowrap; transition: background-color .15s, color .15s; }
.lm-site:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.lm-site svg { width: 13px; height: 13px; }
.lm-cta { height: 36px; padding: 0 16px 0 14px; border-radius: 999px; gap: 8px; }
.lm-cta svg { width: 10px; height: 15px; }

/* ───────── chips on the map: the weather and the alerts */
.lm-chips { position: fixed; z-index: 7; top: 80px; right: 16px; display: flex; align-items: flex-start; gap: 8px; }
.lm-wx { position: relative; animation: lm-in .4s var(--spring); }
.lm-wx__chip, .lm-alerts-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: var(--depth); font: 600 14px/1 var(--sans); white-space: nowrap; animation: lm-in .4s var(--spring); transition: transform .3s var(--spring); }
.lm-wx__chip { padding: 0 12px 0 10px; }
.lm-alerts-chip { padding: 0 5px 0 11px; }
.lm-wx__chip:hover, .lm-alerts-chip:hover { transform: scale(1.05); }
.lm-alerts-chip svg { width: 15px; height: 15px; color: var(--late); }
.lm-alerts-chip b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff4ea; color: #c2410c; font-size: 12px; display: grid; place-items: center; }
.lm-wx__bubble { position: absolute; top: calc(100% + 10px); left: auto; right: 0; width: max-content; min-width: 240px; max-width: calc(100vw - 32px); padding: 16px; border-radius: 18px; background: #fff;
  box-shadow: var(--depth-front); animation: lm-in .3s var(--spring); transform-origin: calc(100% - 20px) 0; }
.lm-wx__bubble::before { content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; box-shadow: -1px -1px 0 rgba(0,0,0,.05); }
.lm-wx__head { display: flex; align-items: center; gap: 12px; }
.lm-wx__head b { display: block; font: 600 26px/1.1 var(--display); letter-spacing: -.01em; }
.lm-wx__head small { display: block; font: 400 14px/1.3 var(--sans); color: var(--muted-2); }
.lm-wx__bubble p { margin-top: 12px; font: 500 15px/21px var(--sans); white-space: nowrap; } /* the tip is always one line: the bubble grows to fit it */
.lm-wx__meta { display: flex; gap: 16px; margin-top: 12px; font: 500 13px/1 var(--sans); color: var(--muted-2); }
.lm-wx__meta span { display: inline-flex; align-items: center; gap: 4px; }
.lm-wx__src { display: inline-block; margin-top: 12px; font: 500 11px/1 var(--sans); color: var(--muted-2); }
.lm-wx svg.lm-ic { display: block; width: 18px; height: 18px; }
.lm-wx__head > span svg.lm-ic { width: 32px; height: 32px; }
.lm-wx__meta svg.lm-ic { width: 15px; height: 15px; }

/* the pill at the top of the map: what you're looking at (the app's dark guide banner) */
.lm-focus { position: fixed; z-index: 8; top: 80px; left: 16px; /* top left: the weather and the alerts have the top right */ display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 8px; max-width: calc(100% - 300px);
  border-radius: 22px; background: rgba(11,11,12,.96); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 6px 32px rgba(0,0,0,.28); font: 600 14px/1 var(--sans); white-space: nowrap; animation: lm-in .35s var(--spring); }
.lm-focus__what { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.lm-focus__what > span { min-width: 0; max-width: calc(100vw - 170px); }
.lm-focus__what > svg { width: 16px; height: 16px; color: #3ddc84; margin-left: 4px; }
.lm-focus button { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); transition: background-color .2s, transform .3s var(--spring); }
.lm-focus button:hover { background: rgba(255,255,255,.26); transform: scale(1.08); }
.lm-focus button svg { width: 11px; height: 11px; color: #fff; }

/* a note on the map (reconnecting, being set up): an iOS notification */
.lm-mapnote { position: fixed; z-index: 7; left: 50%; top: 134px; translate: -50% 0; width: max-content; max-width: min(420px, calc(100% - 32px)); padding: 11px 16px; border-radius: 18px;
  background: rgba(246,246,248,.86); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: var(--depth-front);
  font: 500 14px/1.35 var(--sans); color: #1c1c1e; text-align: center; text-wrap: balance; animation: lm-fade .3s ease; }

/* the map blurs a little more with every pixel the dashboard rises */
.lm-veil { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0; background: rgba(243,241,236,.35); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); will-change: opacity; }
.lm-veiled .lm-top > *, .lm-veiled .lm-chips, .lm-veiled .lm-focus { pointer-events: none; }

/* ───────── a vehicle, when you tap one */
.lm-vcard { position: fixed; z-index: 20; left: 16px; top: 132px; width: 320px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--depth-front); animation: lm-in .35s var(--spring); }
.lm-vcard__close { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; transition: background-color .2s; }
.lm-vcard__close:hover { background: var(--line); }
.lm-vcard__close svg { width: 10px; height: 10px; }
.lm-vcard h3 { display: flex; align-items: center; gap: 10px; padding-right: 30px; font: 600 18px/1.25 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.lm-vcard p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.lm-vcard h3 > .lm-badge { flex: none; }
.lm-vcard__to { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.lm-vcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; border-radius: 12px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.lm-vcard dl > div { padding: 10px 12px; background: #fff; }
.lm-vcard dl > div:last-child:nth-child(odd) { grid-column: span 2; }
.lm-vcard dt { font: 500 12px/1.3 var(--sans); color: var(--muted-2); }
.lm-vcard dd { margin: 2px 0 0; font: 600 16px/1.3 var(--sans); }
.lm-vcard .btn { margin-top: 14px; width: 100%; }

/* how full, carriage by carriage */
.lm-cars { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--band); box-shadow: 0 0 0 1px var(--line) inset; }
.lm-cars__train { display: flex; gap: 2px; }
.lm-car { flex: 1; min-width: 0; height: 26px; display: grid; place-items: center; font: 700 10px/1 var(--sans); color: #fff; border-radius: 3px; position: relative; }
.lm-car small { position: absolute; top: -9px; font-size: 9px; }
.lm-car small svg.lm-ic { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; }
.lm-car.is-front { border-radius: 12px 3px 3px 8px; }
.lm-car.is-rear { border-radius: 3px 12px 8px 3px; }
.lm-car.is-single { flex: none; width: 96px; border-radius: 10px; }
.lm-car--seats { background: #16a34a; } .lm-car--few { background: #e8a317; color: #1a1a1a; } .lm-car--standing { background: #ea580c; } .lm-car--full { background: #dc2626; } .lm-car--unknown { background: #d4d4d4; color: #525252; }
.lm-cars__legend { display: flex; gap: 12px; margin-top: 8px; font: 500 11px/1 var(--sans); color: var(--muted-2); white-space: nowrap; }
.lm-cars__legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; vertical-align: 0; }
.lm-cars__legend .seats::before { background: #16a34a; } .lm-cars__legend .few::before { background: #e8a317; } .lm-cars__legend .standing::before { background: #ea580c; }

/* ───────── the dashboard: a white sheet that rises over the map */
.lm-sheet { position: relative; z-index: 10; width: calc(100% - 32px); max-width: 1080px; margin: 58vh auto 16px; padding: 22px var(--lm-sheet-pad) 40px; min-height: 42vh; border-radius: 20px; background: #fff; box-shadow: var(--depth-front); }
.lm-sheet__grab { display: none; }
.lm-sheet.is-collapsed { margin-top: calc(100vh - var(--peek, 118px)); margin-top: calc(100svh - var(--peek, 118px)); height: var(--peek, 118px); min-height: 0; overflow: hidden; cursor: pointer; }
.lm-view > * { transition: opacity .3s ease, visibility 0s linear 0s; }
.lm-sheet.is-collapsed .lm-view > :not(.lm-head):not(.lm-linehead):not(.lm-modes):not(.lm-freeze), .lm-sheet.is-collapsed .lm-freeze > .lm-tabs, .lm-sheet.is-collapsed .lm-freeze > .lm-filter { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.lm-sheet.is-collapsed .lm-modes { cursor: default; }
/* the fold arrow, pinned to the sheet's top-right corner */
.lm-fold { position: sticky; top: 0; height: 0; z-index: 5; }
.lm-fold button { position: absolute; right: 0; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: background-color .15s, box-shadow .15s, transform .3s var(--spring); }
.lm-fold button:hover { background: var(--band); box-shadow: 0 0 0 4px #ececec; }
.lm-fold button:active { transform: scale(.94); }
.lm-fold svg { width: 16px; height: 16px; transition: transform .45s var(--swipe); }
.lm-sheet.is-collapsed .lm-fold svg { transform: rotate(180deg); }
.lm-sheet.is-collapsed .lm-fold { position: relative; }
/* the top of each view stays pinned as the sheet scrolls */
.lm-freeze { position: sticky; top: 0; z-index: 3; margin: 0 calc(-1 * var(--lm-sheet-pad)); padding: 16px 90px 16px var(--lm-sheet-pad); background: #fff; transition: box-shadow .25s ease; }
.lm-freeze.is-stuck { box-shadow: 0 1px 0 var(--line), 0 12px 24px -20px rgba(0,0,0,.35); }
.lm-sheet.is-collapsed .lm-freeze { position: static; box-shadow: none; }

.lm-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.lm-head > div:first-child { min-width: 0; }
.lm-title { font: 500 34px/1.1 var(--display); letter-spacing: -.015em; color: var(--ink-2); white-space: nowrap; }
.lm-sub { margin-top: 4px; font-size: 15px; color: var(--muted-2); white-space: nowrap; }
.lm-head__right { display: flex; align-items: center; gap: 10px; }
.lm-dl { gap: 8px; }
.lm-dl svg { width: 10px; height: 15px; }

/* the modes, ticked like Show on map in the app */
.lm-modes { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 20px; margin-right: calc(var(--lm-sheet-pad) - 90px); } /* under the fold arrow's column: the tiles take the whole row */
.lm-modes button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--band);
  font: 500 15px/1 var(--sans); color: var(--muted-2); white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .4s var(--spring); }
.lm-modes button:hover { background: #fff; box-shadow: 0 0 0 4px #f0f0f0; }
.lm-modes button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.lm-modes .pic { width: 26px; height: 26px; border-radius: 7px; font-size: 14px; transition: background-color .25s; }
.lm-modes button[aria-pressed="false"] .pic { background: var(--line-2); }
.lm-modes button i { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); position: relative; transition: background-color .25s, box-shadow .25s; }
.lm-modes button[aria-pressed="true"] i { background: var(--ink); box-shadow: none; }
.lm-modes button i::after { content: ""; position: absolute; left: 50%; top: 50%; box-sizing: border-box; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -62%) rotate(45deg) scale(.4); opacity: 0; transition: transform .35s var(--spring), opacity .2s; }
.lm-modes button[aria-pressed="true"] i::after { opacity: 1; transform: translate(-50%, -62%) rotate(45deg) scale(1); }
.lm-modes button.is-tapped { animation: lm-tap .45s var(--spring); }
@keyframes lm-tap { 40% { transform: scale(.94); } }

/* numbers: the site's ruled stat grid */
.lm-summary, .lm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: 12px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.lm-summary { margin: 24px 0 8px; }
.lm-summary:empty, .lm-stats:empty { display: none; }
.lm-kpi { padding: 16px 18px; background: #fff; min-width: 0; }
.lm-kpi small { display: block; font: 500 13px/1.3 var(--sans); color: var(--muted-2); white-space: nowrap; }
.lm-kpi b { display: block; margin-top: 6px; font: 500 30px/1.1 var(--display); letter-spacing: -.015em; color: var(--ink-2); white-space: nowrap; }
.lm-kpi b em { font: 500 15px/1 var(--sans); font-style: normal; color: var(--muted-2); letter-spacing: 0; }

/* the table of lines */
.lm-table { margin-top: 18px; }
.lm-tr { display: grid; grid-template-columns: minmax(260px, 2.6fr) 1fr 1.3fr 1fr 1.6fr; align-items: center; gap: 16px; min-height: 58px; padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
.lm-th { min-height: 36px; font: 500 13px/1 var(--sans); color: var(--muted-2); border-bottom-color: var(--line); white-space: nowrap; }
#rows .lm-tr { cursor: pointer; border-radius: 10px; transition: background-color .15s; }
#rows .lm-tr:hover, #rows .lm-tr:focus-visible { background: var(--band); outline: 0; }
.lm-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lm-line__txt { display: block; min-width: 0; }
.lm-line b { display: block; font: 500 15px/1.35 var(--sans); }
.lm-tr__meta, .lm-tr__meta.lm-mq { display: none; }
.lm-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--c, #555); color: var(--t, #fff); font: 700 12.5px/1 var(--sans); white-space: nowrap; }
.lm-badge--xl { min-width: 54px; height: 40px; border-radius: 10px; font-size: 20px; }
.lm-num { font: 500 15px/1.3 var(--sans); white-space: nowrap; }
.lm-num small { font-size: 13px; font-weight: 400; color: var(--muted-2); }
.lm-meter { display: flex; align-items: center; gap: 10px; }
.lm-meter__bar { flex: 1; max-width: 90px; height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.lm-meter__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ok); transition: width .6s var(--ease); }
.lm-alert { font: 500 13px/1.3 var(--sans); color: var(--late); min-width: 0; }
.lm-alert--none { color: var(--muted-2); font-weight: 400; }
.lm-foot { margin-top: 22px; font-size: 13px; line-height: 19px; color: var(--muted-2); max-width: 760px; }
.lm-empty { padding: 30px 12px; color: var(--muted-2); font-size: 15px; }

/* one line */
.lm-back { display: inline-flex; align-items: center; gap: 6px; height: 32px; max-height: 40px; padding: 0 12px 0 9px; margin-bottom: 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 500 13.5px/1 var(--sans); white-space: nowrap; overflow: hidden;
  transition: background-color .15s, box-shadow .15s, max-height .4s var(--swipe), margin .4s var(--swipe), opacity .25s; }
.lm-back:hover { background: var(--band); box-shadow: 0 0 0 4px #ececec; }
.lm-back svg { width: 13px; height: 13px; }
.lm-sheet.is-collapsed .lm-back { max-height: 0; margin-bottom: 0; opacity: 0; border-width: 0; }
.lm-sheet.is-collapsed .lm-linehead { margin-top: 2px; }
.lm-linehead { display: flex; align-items: center; gap: 16px; }
.lm-linehead > div { flex: 1; min-width: 0; }
.lm-linehead .lm-title { font-size: 30px; }
.lm-status { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font: 500 13.5px/1 var(--sans); white-space: nowrap; background: #eafaf0; color: #15803d; box-shadow: 0 0 0 1px #c9f0d6 inset; }
.lm-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lm-status.warn { background: #fff4ea; color: #b45309; box-shadow: 0 0 0 1px #fed7b5 inset; }
.lm-status.bad { background: #fdecec; color: #b91c1c; box-shadow: 0 0 0 1px #f8caca inset; }
.lm-status--time { background: var(--band); color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset; }
.lm-status--time::before { display: none; }
.lm-status:empty { display: none; }
.lm-tabs { position: relative; display: flex; gap: 6px; margin: 22px 0 0; border-bottom: 1px solid var(--line); }
.lm-tabs button { position: relative; height: 40px; padding: 0 4px; margin-right: 18px; font: 500 15px/1 var(--sans); color: var(--muted-2); transition: color .2s; }
.lm-tabs button[aria-selected="true"] { color: var(--ink); }
.lm-tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--swipe), width .35s var(--swipe); }
.lm-panel { padding-top: 18px; }
.lm-issues { margin-top: 16px; display: grid; gap: 10px; }
.lm-issue { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff7ed; box-shadow: 0 0 0 1px #fde3c8 inset; }
.lm-issue svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--late); }
.lm-issue b { display: block; font: 500 15px/20px var(--sans); }
.lm-issue a { font: 500 13px/1.6 var(--sans); color: var(--late); text-decoration: underline; text-underline-offset: 2px; }
.lm-issue--ok { background: #f0fdf4; box-shadow: 0 0 0 1px #c9f0d6 inset; }
.lm-issue--ok svg { color: var(--ok); }
.lm-issues__group { border-radius: 12px; background: #fff7ed; box-shadow: 0 0 0 1px #fde3c8 inset; overflow: hidden; }
.lm-issues__group summary { list-style: none; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.lm-issues__group summary::-webkit-details-marker { display: none; }
.lm-issues__group summary svg { width: 18px; height: 18px; color: var(--late); }
.lm-issues__group summary b { font: 600 15px/1 var(--sans); white-space: nowrap; }
.lm-issues__group summary > span { min-width: 0; font-size: 14px; color: var(--muted); }
.lm-issues__group summary i { width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2); transform: rotate(45deg); transition: transform .3s var(--spring); }
.lm-issues__group[open] summary i { transform: rotate(-135deg); }
.lm-issues__group[open] summary span { visibility: hidden; }
.lm-issues__group.is-closing summary span { visibility: visible; }
.lm-issues__list { display: grid; gap: 1px; padding: 0 8px 8px; overflow: hidden; transition: height .35s var(--swipe); }
.lm-issues__list .lm-issue { background: #fff; box-shadow: none; border-radius: 8px; }
.lm-dir { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px/1 var(--sans); white-space: nowrap; transition: background-color .15s, box-shadow .15s; }
.lm-dir:hover { background: var(--band); box-shadow: 0 0 0 4px #ececec; }
.lm-dir svg { width: 16px; height: 16px; transition: transform .5s var(--spring); }
.lm-dir.is-flipped svg { transform: rotate(180deg); }
.lm-dir span { display: inline-block; }
.lm-dir span.is-swapping { animation: lm-dir-out .18s ease-in forwards; }
.lm-dir span.is-in { animation: lm-dir-in .32s var(--spring); }
@keyframes lm-dir-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes lm-dir-in { from { opacity: 0; transform: translateY(8px); } }
.lm-stops { margin-top: 16px; position: relative; }
.lm-stops::before { content: ""; position: absolute; left: 11px; top: 16px; bottom: 16px; width: 4px; border-radius: 2px; background: var(--c, #999); }
.lm-stop { position: relative; display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 6px 12px 6px 0; border-radius: 10px; cursor: pointer; transition: background-color .15s; }
.lm-stop:hover, .lm-stop:focus-visible { background: var(--band); outline: 0; }
.lm-stop::before { content: ""; flex: none; width: 14px; height: 14px; margin-left: 6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--c, #999); position: relative; z-index: 1; }
.lm-stop b { flex: 1; min-width: 0; font: 500 15px/1.35 var(--sans); }
.lm-stop.is-major b { font-weight: 700; }
.lm-stop.is-major::before { width: 18px; height: 18px; margin-left: 4px; box-shadow: inset 0 0 0 4px var(--ink); }
.lm-stop.is-gliding { transition: transform .6s var(--swipe); }
.lm-stop__veh { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 9px; border-radius: 999px; background: var(--c, #999); color: var(--t, #fff); font: 700 12px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: transform .3s var(--spring); }
.lm-stop__veh:hover { transform: scale(1.06); }
.lm-stop__veh i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: lm-blink 1.4s ease-in-out infinite; }
@keyframes lm-blink { 50% { opacity: .25; transform: scale(.7); } }
.lm-stop__go { flex: none; font: 500 13px/1 var(--sans); color: var(--muted-2); white-space: nowrap; }

/* one station: a departures board */
.lm-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.lm-filter button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 13px/1 var(--sans); color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.lm-filter button[aria-pressed="true"] { background: #000; border-color: #000; color: #fff; }
.lm-filter:empty { display: none; }
.lm-board { margin-top: 10px; }
.lm-dep { display: grid; grid-template-columns: 88px auto 1fr auto 110px; align-items: center; gap: 14px; min-height: 60px; padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
.lm-dep__time { white-space: nowrap; }
.lm-dep__time s { display: block; font-size: 13px; color: var(--muted-2); }
.lm-dep__time b { font: 600 17px/1.2 var(--sans); }
.lm-dep__dest { min-width: 0; }
.lm-dep__dest b { display: block; font: 500 16px/1.35 var(--sans); }
.lm-dep__dest small { display: block; font-size: 13px; color: var(--muted-2); }
.lm-dep__plat { font: 500 13px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.lm-dep__state { text-align: right; font: 500 14px/1 var(--sans); color: var(--ok); white-space: nowrap; }
.lm-dep__state.late { color: var(--late); }
.lm-dep__state.sched { color: var(--muted-2); font-weight: 400; }

/* ───────── search: a command palette */
.lm-modal { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(10,10,10,.18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: lm-fade .2s ease; }
.lm-modal__box { width: min(620px, 100%); max-height: 70vh; max-height: 70svh; display: flex; flex-direction: column; border-radius: 16px; background: #fff; box-shadow: var(--depth-front); overflow: hidden; animation: lm-in .3s var(--spring); }
.lm-modal__field { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--line); }
.lm-modal__field svg { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.lm-modal__field input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 17px/1 var(--sans); background: none; color: var(--ink); -webkit-appearance: none; appearance: none; }
.lm-modal__field input::-webkit-search-cancel-button { display: none; }
.lm-results { overflow: auto; overscroll-behavior: contain; padding: 6px 8px 8px; scrollbar-width: none; }
.lm-results::-webkit-scrollbar { display: none; }
.lm-results h4 { padding: 12px 10px 6px; font: 500 12px/1 var(--sans); color: var(--muted-2); }
.lm-result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 10px; border-radius: 10px; text-align: left; transition: background-color .1s; }
.lm-result:hover, .lm-result.is-active { background: var(--soft); }
.lm-result > span:last-child { min-width: 0; }
.lm-result b { display: block; font: 500 15px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-result small { display: block; font-size: 13px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-result__ic { width: 40px; height: 24px; flex: none; display: grid; place-items: center; }

/* ───────── alerts: a window over the blurred map */
.lm-alerts { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start; padding: 6vh 16px 16px; background: rgba(10,10,10,.22); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); animation: lm-fade .25s ease; }
.lm-alerts__box { width: min(920px, 100%); max-height: 88vh; max-height: 88svh; display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: var(--depth-front); overflow: hidden; animation: lm-in .35s var(--spring); }
.lm-alerts__box header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 22px 8px; }
.lm-alerts__box h2 { font: 500 26px/1.15 var(--display); letter-spacing: -.01em; }
.lm-alerts__box header p { margin-top: 4px; font-size: 14px; color: var(--muted-2); }
.lm-alerts__close { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: background-color .15s; }
.lm-alerts__close:hover { background: var(--band); }
.lm-alerts__close svg { width: 11px; height: 11px; }
.lm-alerts__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 22px 14px; border-bottom: 1px solid var(--line); }
.lm-alerts__tabs button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px/1 var(--sans); color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.lm-alerts__tabs button:first-child { padding-left: 14px; }
.lm-alerts__tabs button .pic { width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }
.lm-alerts__tabs button em { font-style: normal; font-size: 12px; color: var(--muted-2); }
.lm-alerts__tabs button[aria-pressed="true"] { background: #000; border-color: #000; color: #fff; }
.lm-alerts__tabs button[aria-pressed="true"] em { color: rgba(255,255,255,.6); }
.lm-alerts__list { overflow: auto; overscroll-behavior: contain; padding: 8px 12px 16px; scrollbar-width: none; -webkit-mask: linear-gradient(#000 calc(100% - 28px), transparent); mask: linear-gradient(#000 calc(100% - 28px), transparent); }
.lm-alerts__list::-webkit-scrollbar { display: none; }
.lm-al { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 14px 12px; border-bottom: 1px solid #f0f0f0; animation: lm-row .4s var(--ease) both; }
.lm-al:last-child { border-bottom: 0; }
.lm-al__lines { display: flex; flex-wrap: wrap; gap: 4px; width: 96px; }
.lm-al__line { border-radius: 6px; transition: transform .3s var(--spring); }
.lm-al__line:hover { transform: scale(1.08); }
.lm-al b { display: block; font: 500 15px/21px var(--sans); }
.lm-al a { display: inline-block; margin-top: 4px; font: 500 13px/1.4 var(--sans); color: var(--muted-2); text-decoration: underline; text-underline-offset: 2px; }
.lm-al.is-high b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--bad); vertical-align: 2px; }
@media (min-width: 900px) { .lm-alerts__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-content: start; } .lm-al:last-child { border-bottom: 1px solid #f0f0f0; } }

/* ───────── get the app (computers): a QR code */
.lm-getapp { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(10,10,10,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: lm-fade .25s ease; }
.lm-getapp__box { position: relative; width: min(380px, 100%); padding: 32px 28px 26px; border-radius: 20px; background: #fff; color: var(--ink); text-align: center; box-shadow: var(--depth-front); animation: lm-in .45s var(--swipe); }
.lm-getapp.is-leaving { animation: lm-fade-out .2s ease forwards; }
.lm-getapp.is-leaving .lm-getapp__box { animation: lm-box-out .2s ease forwards; }
.lm-getapp__close { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; transition: background-color .15s; }
.lm-getapp__close:hover { background: var(--band); }
.lm-getapp__close svg { width: 11px; height: 11px; }
.lm-getapp__icon { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto; display: grid; }
.lm-getapp__icon svg { width: 30px; height: 30px; fill: #fff; }
.lm-getapp__box h2 { margin-top: 16px; font: 500 24px/1.2 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.lm-getapp__box p { margin-top: 6px; font-size: 15px; color: var(--muted-2); text-wrap: balance; }
.lm-getapp__qr { width: 200px; height: 200px; margin: 22px auto 0; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.lm-getapp__qr img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.lm-getapp__store { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font: 500 14px/1 var(--sans); color: var(--muted-2); transition: color .2s; }
.lm-getapp__store:hover { color: var(--ink); }
.lm-getapp__ext { width: 12px; height: 12px; }

/* ───────── map markers (Apple Maps, when used) */
.lm-veh { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.3); cursor: pointer; animation: lm-veh-in .4s ease both; transition: opacity .3s ease, transform .3s ease; }
@keyframes lm-veh-in { from { opacity: 0; transform: scale(.4); } }
.lm-veh.is-selected { position: relative; z-index: 2; transform: scale(1.4); }
.lm-veh.is-selected::after { content: none; } /* no pulse: the picked vehicle just grows and comes forward */
@keyframes lm-sel { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.lm-stopmark { position: relative; animation: lm-fade .4s ease both; }
.lm-stopmark span { position: absolute; top: calc(100% + 4px); left: -120px; right: -120px; text-align: center; white-space: nowrap; font: 700 12px/1 var(--sans); color: #111; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; stroke-linejoin: round; pointer-events: none; } /* centred by layout (never a half pixel) with a crisp white edge */
.lm-pin { width: 38px !important; height: 38px !important; border-radius: 0; background: none; box-shadow: none; }
.lm-pin svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.25)); transition: transform 1s linear; }
.lm-pin__ring { fill: #fff; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.lm-pin__body { fill: var(--c); stroke: var(--c); stroke-width: 1; stroke-linejoin: round; transition: fill .3s ease; }
.lm-pin.is-dwell .lm-pin__body { fill: #fff; stroke-width: 3.5; }
.lm-pin b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 var(--sans); color: var(--t, #fff); letter-spacing: -.01em; pointer-events: none; }
.lm-pin.is-dwell b { color: var(--c); }
.lm-pin[data-n="3"] b { font-size: 10px; } .lm-pin[data-n="4"] b { font-size: 8.5px; } .lm-pin[data-n="5"] b { font-size: 7.5px; letter-spacing: -.04em; }
.lm-pin.is-selected { transform: scale(1.3); }
.lm-veh.is-gone, .lm-stopmark.is-gone { opacity: 0; transform: scale(.4); }

/* text that doesn't fit glides to show the rest (the app's MarqueeText) */
.lm-mq { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.lm-mq__in { display: inline-block; white-space: nowrap; will-change: transform; }
.lm-mq--on { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent); }

/* a badge in the focus pill is never a marquee box: it keeps its own centred layout */
.lm-badge.lm-mq { display: inline-flex; overflow: visible; -webkit-mask-image: none; mask-image: none; }

/* ───────── motion: nothing appears or disappears without a transition */
@keyframes lm-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes lm-fade { from { opacity: 0; } }
@keyframes lm-fade-out { to { opacity: 0; } }
@keyframes lm-view-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes lm-row { from { opacity: 0; transform: translateY(6px); } }
@keyframes lm-view-out { to { opacity: 0; transform: translateY(4px); } }
@keyframes lm-box-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes lm-pill-out { to { opacity: 0; transform: translateY(-6px) scale(.96); } }
.lm-page .is-entering { animation: lm-view-in .35s var(--ease) both; }
.lm-page .is-leaving { animation: lm-view-out .18s ease forwards !important; pointer-events: none; }
.lm-page .is-swapping { opacity: 0 !important; transition: opacity .14s ease !important; }
.lm-modal.is-leaving, .lm-alerts.is-leaving { animation: lm-fade-out .18s ease forwards !important; }
.lm-modal.is-leaving .lm-modal__box, .lm-alerts.is-leaving .lm-alerts__box { animation: lm-box-out .18s ease forwards; }
.lm-vcard.is-leaving, .lm-wx__bubble.is-leaving { animation: lm-box-out .18s ease forwards !important; }
.lm-focus.is-leaving { animation: lm-pill-out .18s ease forwards !important; }
.lm-alerts-chip.is-leaving { animation: lm-fade-out .18s ease forwards !important; }
.lm-panel.is-entering, .lm-focus__what.is-entering, #s-board.is-entering, #rows.is-entering, #alerts-list.is-entering { animation: lm-view-in .3s var(--ease) both; }
.lm-measuring, .lm-measuring * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .lm-page .is-entering, .lm-page .is-entering *, .lm-page .is-leaving, .lm-page .is-swapping, .lm-veh { animation: none !important; transition: none !important; }
}
/* touch: every chip takes a full finger without changing how it looks */
@media (hover: none), (pointer: coarse) {
  .lm-wx__chip, .lm-alerts-chip { position: relative; }
  .lm-wx__chip::after, .lm-alerts-chip::after, .lm-fold button::after { content: ""; position: absolute; inset: -5px; }
  .lm-wx__chip:hover, .lm-alerts-chip:hover, .lm-fold button:hover { transform: none; }
}

/* ───────── narrower screens */
@media (max-width: 1099px) {
  .lm-tr { grid-template-columns: minmax(200px, 2.4fr) 1fr 1.3fr 1fr; }
  .lm-tr > :nth-child(5) { display: none; }
  .lm-summary, .lm-stats { grid-template-columns: repeat(2, 1fr); }
  .lm-site { display: none; }
}
@media (max-width: 809px) {
  .lm-page { --lm-sheet-pad: 16px; }
  .lm-top { top: 8px; left: 8px; right: 8px; height: 52px; padding: 0 6px; gap: 8px; grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 14px; }
  .lm-brand { padding: 0 2px 0 2px; gap: 6px; }
  .lm-brand__name { display: none; }
  .lm-brand__live { margin-left: 0; padding: 0 7px 0 8px; font-size: 13px; }
  .lm-search { width: 100%; min-width: 0; padding: 0 12px; font-size: 14px; }
  .lm-search kbd { display: none; }
  .lm-cta { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .lm-cta span { display: none; }
  .lm-cta svg { width: 11px; height: 17px; }
  .lm-chips { top: 68px; right: 8px; }
  .lm-map .maplibregl-ctrl-bottom-right { top: calc(52vh - 40px); bottom: auto; right: 8px; }
  .lm-focus { top: 110px; left: 50%; translate: -50% 0; max-width: calc(100% - 16px); }
  .lm-mapnote { top: 162px; max-width: calc(100% - 16px); font-size: 13.5px; }
  .lm-vcard { left: 8px; right: 8px; top: auto; bottom: calc(48vh + 8px); width: auto; padding: 12px 12px 12px 14px; border-radius: 16px; }
  /* phones: the card stays light, docked on the folded sheet: the line, where it's going, one line of facts, the button */
  body:has(.lm-sheet.is-collapsed) .lm-vcard { bottom: calc(var(--lm-peek, 118px) + 8px); }
  .lm-vcard__close { top: 10px; right: 10px; }
  .lm-vcard h3 { font-size: 17px; padding-right: 34px; min-height: 28px; }
  .lm-vcard p, .lm-vcard .lm-cars { display: none; }
  .lm-vcard dl { display: flex; flex-wrap: nowrap; gap: 0; margin-top: 6px; border-radius: 0; background: none; box-shadow: none; overflow: hidden; white-space: nowrap; }
  .lm-vcard dl > div { display: flex; padding: 0; background: none; }
  .lm-vcard dl > div + div::before { content: "·"; margin: 0 7px; color: var(--muted-2); }
  .lm-vcard dt { display: none; }
  .lm-vcard dd { margin: 0; font: 500 14px/20px var(--sans); color: var(--muted); }
  .lm-vcard .btn { margin-top: 10px; height: 40px; }
  /* the departure board, lighter: no clock time next to the minutes, no crowding note (the minutes and the status say enough) */
  .lm-dep__clock, .lm-dep__occ, .lm-dep__occ + i, .lm-dep__dest small i:has(+ .lm-dep__occ) { display: none; }
  .lm-sheet { width: 100%; margin-top: 52vh; margin-bottom: 0; padding: 22px 16px 32px; border-radius: 20px 20px 0 0; }
  .lm-freeze { padding: 10px 62px 12px 16px; }
  .lm-fold button { top: 12px; width: 36px; height: 36px; }
  .lm-head { flex-direction: row; align-items: center; gap: 12px; }
  .lm-head > div:first-child { flex: 1; }
  .lm-title, .lm-linehead .lm-title { font-size: 24px; }
  #view-network .lm-head__right { display: none; }
  /* the modes: five tiles, letter over name */
  .lm-modes { gap: 6px; margin-top: 14px; margin-right: -46px; }
  .lm-modes button { flex-direction: column; height: auto; padding: 8px 2px 7px; gap: 5px; font-size: 11.5px; letter-spacing: -.1px; border-radius: 10px; }
  .lm-modes button i { display: none; }
  .lm-modes .pic { width: 24px; height: 24px; font-size: 13px; }
  .lm-summary { margin-top: 16px; }
  .lm-kpi { padding: 12px 14px; }
  .lm-kpi b { font-size: 24px; }
  /* a line row: full name on top, a quiet summary below */
  .lm-th { display: none; }
  #rows .lm-tr { grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 64px; padding: 10px 8px; }
  #rows .lm-tr > :not(.lm-line) { display: none; }
  .lm-line b { line-height: 20px; }
  .lm-tr__meta, .lm-tr__meta.lm-mq { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted-2); }
  .lm-tr__alert { color: var(--late); font-weight: 500; }
  /* a line and a station: the name gets the row, the status sits under it */
  .lm-linehead { flex-wrap: wrap; }
  .lm-linehead > div { flex: 1 1 calc(100% - 88px); }
  .lm-linehead > .lm-status { order: 3; margin-left: 70px; }
  .lm-linehead > div:first-child + .lm-status { margin-left: 0; }
  #view-station .lm-linehead { flex-wrap: nowrap; align-items: flex-start; }
  #view-station .lm-linehead > .lm-status { order: 0; margin-left: 0; }
  #s-lines { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
  #s-clock { display: none; }
  .lm-stop__go { font-size: 0; }
  .lm-stop__go::after { content: "›"; font-size: 20px; line-height: 1; color: var(--muted-2); }
  /* filters: one row that scrolls sideways, like the app */
  .lm-filter, .lm-alerts__tabs { flex: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lm-filter::-webkit-scrollbar, .lm-alerts__tabs::-webkit-scrollbar { display: none; }
  .lm-filter { margin: 14px -16px 0; padding: 0 16px 2px; }
  .lm-alerts__tabs { padding: 10px 16px 12px; }
  .lm-filter button, .lm-alerts__tabs button { flex: none; }
  .lm-dep { grid-template-columns: 52px auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 4px; }
  .lm-dep__plat { display: none; }
  .lm-dep__state { font-size: 13px; }
  .lm-dep__time b { font-size: 16px; }
  .lm-alerts { padding: 8vh 8px 8px; }
  .lm-al { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 14px 4px; }
  .lm-al__lines { width: auto; max-width: none; }
  .lm-wx__bubble { max-width: calc(100vw - 16px); }
  .lm-wx__bubble p { font-size: clamp(11px, 3.3vw, 14px); }
}
@media (max-width: 340px) {
  .lm-modes { gap: 4px; }
  .lm-modes button { padding: 8px 0 6px; }
}

/* ───────── one line: what matters first (status, alerts), then the line itself with its vehicles, then the numbers */
.lm-route { margin-top: 22px; }
.lm-route__head { display: grid; justify-items: start; gap: 10px; } /* the heading, then the direction on its own row: the same place on every line */
.lm-route__head h3 { min-width: 0; font: 600 17px/1.3 var(--sans); color: var(--ink-2); white-space: nowrap; }
.lm-route__head h3 small { font: 500 15px/1 var(--sans); color: var(--muted-2); }
#view-line .lm-stats { margin-top: 22px; grid-template-columns: repeat(2, 1fr); }
#view-line .lm-issue--ok { background: #f3fbf6; box-shadow: 0 0 0 1px #d6f2e0 inset; }
#view-line .lm-issue--ok svg { color: #15803d; }

/* ───────── computers: the dashboard is a column on the left, the map takes the rest */
@media (min-width: 1024px) {
  .lm-page { --lm-panel: 440px; --lm-sheet-pad: 24px; }
  .lm-sheet { position: fixed; left: 16px; top: 80px; bottom: 16px; width: var(--lm-panel); max-width: none; margin: 0; padding: 0 24px 24px; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .lm-sheet::-webkit-scrollbar { display: none; }
  .lm-sheet.is-collapsed { margin-top: 0; bottom: auto; height: var(--peek, 118px); }
  .lm-freeze { padding: 18px 64px 14px 24px; }
  .lm-fold button { top: 16px; }
  .lm-title { font-size: 26px; }
  .lm-linehead .lm-title { font-size: 24px; }
  .lm-linehead { flex-wrap: wrap; row-gap: 10px; }
  .lm-linehead > div { flex: 1 1 calc(100% - 72px); }
  .lm-linehead > .lm-status { order: 3; margin-left: 70px; }
  .lm-linehead > div:first-child + .lm-status { margin-left: 0; }
  #view-station .lm-linehead { flex-wrap: nowrap; align-items: flex-start; }
  #view-station .lm-linehead > .lm-status { order: 0; margin-left: 0; }
  #view-network .lm-head__right { display: none; }
  .lm-modes { gap: 6px; margin-top: 16px; margin-right: -40px; }
  .lm-modes button { flex-direction: column; height: auto; padding: 9px 2px 8px; gap: 6px; font-size: 12.5px; border-radius: 10px; }
  .lm-modes button i { display: none; }
  .lm-summary, .lm-stats { grid-template-columns: repeat(2, 1fr); }
  .lm-summary { margin-top: 18px; }
  .lm-kpi { padding: 12px 14px; }
  .lm-kpi b { font-size: 24px; }
  .lm-th { display: none; }
  #rows .lm-tr { grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 60px; padding: 10px 8px; }
  #rows .lm-tr > :not(.lm-line) { display: none; }
  .lm-line b { line-height: 20px; }
  .lm-tr__meta, .lm-tr__meta.lm-mq { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted-2); }
  .lm-tr__alert { color: var(--late); font-weight: 500; }
  .lm-foot { font-size: 12.5px; }
  .lm-dep { grid-template-columns: 52px auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 4px; }
  .lm-dep__plat { display: none; }
  .lm-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -24px 0; padding: 0 24px 2px; }
  .lm-filter::-webkit-scrollbar { display: none; }
  .lm-filter button { flex: none; }
  .lm-focus { left: calc(var(--lm-panel) + 32px); max-width: calc(100% - var(--lm-panel) - 300px); }
  .lm-mapnote { left: calc(50% + var(--lm-panel) / 2 + 8px); }
  .lm-vcard { left: calc(var(--lm-panel) + 32px); top: 132px; }
}

/* ───────── a station: the app's departure board */
#s-lines { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 8px; overflow: hidden; }
#s-lines .lm-badge { flex: none; }
.lm-more { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--soft); font: 600 12px/1 var(--sans); color: var(--muted); }
#s-clock { display: none; }
.lm-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.lm-filter::-webkit-scrollbar { display: none; }
.lm-filter button { flex: none; gap: 7px; height: 34px; padding: 0 13px 0 9px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.lm-filter button[data-filter="All"] { padding: 0 14px; }
.lm-filter button[aria-pressed="true"] .pic { box-shadow: 0 0 0 1.5px #fff; }
.lm-board { margin-top: 6px; }
.lm-dep, #s-board .lm-dep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 4px; border-bottom: 1px solid #f0f0f0; }
.lm-dep:last-child { border-bottom: 0; }
.lm-dep .lm-badge { min-width: 40px; height: 26px; font-size: 13px; border-radius: 7px; }
.lm-dep__dest b { display: block; font: 600 16px/1.3 var(--sans); white-space: nowrap; }
.lm-dep__dest small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-2); white-space: nowrap; }
.lm-dep__when { text-align: right; white-space: nowrap; }
.lm-dep__when b { display: block; font: 600 20px/1.1 var(--display); letter-spacing: -.01em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lm-dep__when b small { font: 500 13px/1 var(--sans); color: var(--muted-2); letter-spacing: 0; }
.lm-dep__when b.is-now { color: var(--ok); }
.lm-dep__when > small { display: block; margin-top: 3px; font: 500 12.5px/1 var(--sans); color: var(--ok); }
.lm-dep__when > small.late { color: var(--late); }
.lm-dep__when > small.sched { color: var(--muted-2); font-weight: 400; }

/* the weather's bubble opens over a vehicle's card */
.lm-chips { z-index: 21; }
/* phones: the sheet slides over the weather and the alerts as it rises (the vehicle card sits low, out of the bubble's way) */
@media (max-width: 809px) { .lm-chips { z-index: 9; } }

/* ───────── stations and lines (src/pages_places.py): dub's ruled grid, the app's line badges */

/* the hero: breadcrumb, mode squares (or the line's badge), the name, one sentence */
.pl-hero { padding-bottom: 56px; }
.pl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 500 14px/20px var(--sans); color: var(--muted-2); }
.pl-crumbs a { white-space: nowrap; transition: color .15s; }
.pl-crumbs a:hover { color: var(--ink); }
.pl-crumbs [aria-current] { color: var(--ink-2); }
.pl-chev { width: 12px; height: 12px; flex: none; color: var(--faint); }
.pl-modes { display: flex; align-items: center; gap: 6px; margin-top: 28px; }
.pl-modes .pic { width: 28px; height: 28px; border-radius: 8px; font-size: 15px; }
.pl-hero .pl-h1 { margin-top: 16px; overflow-wrap: anywhere; }
.pl-hero:not(:has(.pl-modes)) .pl-h1 { margin-top: 28px; }
.pl-hero .pl-lead { max-width: 640px; }
.pl-btns { margin-top: 32px; }
.pl .line { white-space: nowrap; }
.pl-badge--lg { min-width: 56px; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 18px; letter-spacing: -.01em; }

/* a section's head: title, a count, a line under it */
.pl-shead { padding: 40px 40px 20px; }
.pl-h2 { display: flex; align-items: center; gap: 10px; font: 500 24px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink-2); }
.pl-h2 .pic { width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }
.pl-h3 { font: 500 18px/1.3 var(--display); color: var(--ink-2); }
.pl-count { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--band); font: 500 12.5px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.pl-sub { margin-top: 4px; font-size: 14px; color: var(--muted-2); }
.pl-tag { flex: none; height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--band); font: 500 12.5px/1 var(--sans); color: var(--muted); white-space: nowrap; }

/* dub's ruled grid: each cell draws its own right and bottom rule; the outer ones fall under the column's */
.pl-gwrap { overflow: hidden; border-top: 1px solid var(--line); }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -1px -1px 0; }
.pl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-grid > li { min-width: 0; box-shadow: inset -1px -1px 0 var(--line); }
.pl-grid > li[hidden] { display: none; }
.pl-cell { display: flex; min-width: 0; height: 100%; padding: 18px 24px; transition: background-color .15s; }
a.pl-cell:hover { background: var(--band); }
.pl-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-chev { transition: transform .2s var(--ease), color .2s; }
a:hover > .pl-chev, .pl-lname:hover .pl-chev { transform: translateX(2px); color: var(--ink); }

/* index rows: a station and its lines; a line and its name */
.pl-srow { align-items: center; justify-content: space-between; gap: 12px; }
.pl-srow b { min-width: 0; font: 500 15px/1.35 var(--sans); color: var(--ink-2); }
.pl-srow .pl-badges { flex: none; justify-content: flex-end; max-width: 55%; }
.pl-lrow { align-items: center; gap: 12px; }
.pl-lrow > span:not(.line) { flex: 1; min-width: 0; font: 500 15px/1.35 var(--sans); color: var(--ink-2); }
.pl-lrow .line { min-width: 38px; height: 24px; font-size: 12.5px; border-radius: 6px; }
.pl-near { flex-direction: column; gap: 8px; padding-top: 20px; padding-bottom: 20px; }
.pl-near b { font: 500 15px/1.35 var(--sans); color: var(--ink-2); }
.pl-near small { margin-top: -4px; font-size: 13px; color: var(--muted-2); }

/* lines at a station, each way along them */
.pl-lcell { flex-direction: column; padding: 24px; }
.pl-lcell__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-lname { display: flex; align-items: center; gap: 10px; min-width: 0; font: 500 16px/1.35 var(--sans); color: var(--ink-2); }
.pl-lname .line { min-width: 40px; height: 26px; border-radius: 7px; font-size: 13px; }
.pl-lname:hover span:not(.line) { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pl-ways { margin-top: 12px; }
.pl-ways li { position: relative; display: flex; flex-wrap: wrap; gap: 2px 8px; padding: 6px 0 6px 18px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.pl-ways li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.pl-ways b { font-weight: 500; color: var(--ink-2); }
.pl-ways a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.pl-ways a:hover { text-decoration-color: var(--ink); }

/* next departures, live: a white card on a dotted band, rows as the app's board */
.pl-band--deps > .gc { background: var(--band) radial-gradient(#e5e5e5 1px, transparent 1px) 0 0 / 16px 16px; }
.pl-pad { padding: 40px; }
.pl-deps { background: #fff; border-radius: 14px; box-shadow: var(--depth); overflow: hidden; }
.pl-deps__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.pl-live { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 var(--sans); color: var(--muted-2); white-space: nowrap; }
.pl-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pl-deps.is-live .pl-live { color: #15803d; }
.pl-deps.is-live .pl-live i { background: #22c55e; animation: pulse 2s infinite; }
.pl-deps__note { padding: 20px 24px; font-size: 15px; line-height: 24px; color: var(--muted-2); }
.pl-deps__note a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pl-dep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 24px; border-top: 1px solid #f0f0f0; }
.pl-dep:first-child { border-top: 0; }
.pl-dep .line { min-width: 42px; height: 28px; border-radius: 7px; font-size: 13.5px; }
.pl-dep__d { display: flex; flex-direction: column; min-width: 0; }
.pl-dep__d b { font: 600 16px/1.25 var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-dep__m { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 500 13px/1 var(--sans); white-space: nowrap; overflow: hidden; }
.pl-dep__p { padding: 3px 6px; border-radius: 5px; background: #f0f0f2; color: #3a3a3c; font-weight: 600; font-size: 12.5px; }
.pl-dep__s { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); }
.pl-dep__s.is-ok { color: #1f9d55; } .pl-dep__s.is-late { color: #d9480f; }
.pl-dep__s.is-ok::before, .pl-dep__s.is-late::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pl-dep__t { text-align: right; white-space: nowrap; font-size: 13px; color: var(--muted-2); }
.pl-dep__t b { font: 600 20px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }

/* good to know */
.pl-faq { max-width: 840px; padding: 0 40px 40px; }

/* a line's stops, both ways: the line drawn down the side in its own colour */
.pl-dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-dirs--1 { grid-template-columns: minmax(0, 1fr); }
.pl-dir { min-width: 0; }
.pl-dir + .pl-dir { border-left: 1px solid var(--line); }
.pl-dir .pl-shead { padding-bottom: 12px; }
.pl-stops { padding: 8px 40px 40px; }
.pl-stop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 38px; padding: 7px 0 7px 32px; font: 400 15px/1.35 var(--sans); color: var(--ink-2); }
.pl-stop::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 4px; background: var(--c); }
.pl-stop:first-child::before { top: 50%; }
.pl-stop:last-child::before { bottom: 50%; }
.pl-stop::after { content: ""; position: absolute; left: 3px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--c); }
.pl-stop--end { font-weight: 600; }
.pl-stop--end::after { left: 1px; width: 16px; height: 16px; margin-top: -8px; box-shadow: inset 0 0 0 4px var(--c), 0 0 0 2px #fff; }
.pl-stop a { transition: color .15s; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.pl-stop a:hover { text-decoration-color: var(--line-2); }
.pl-stop__x { display: flex; flex-wrap: wrap; gap: 3px; }
.pl-stop__x .line { min-width: 26px; height: 18px; padding: 0 5px; border-radius: 4px; font-size: 10.5px; }

/* the index: find as you type, the modes as dub's pills */
.pl-find { width: 100%; max-width: 640px; margin-top: 36px; }
.pl-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: border-color .15s, box-shadow .15s; cursor: text; }
.pl-search:focus-within { border-color: #a3a3a3; box-shadow: 0 0 0 4px #e5e5e5; }
.pl-search__ic { width: 18px; height: 18px; color: var(--muted-2); }
.pl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 400 16px/1 var(--sans); color: var(--ink); }
.pl-search input::placeholder { color: var(--faint); }
.bpills.pl-pills { flex-wrap: wrap; overflow: visible; margin-top: 16px; }
.pl-pill__n { margin-left: 6px; font-size: 12px; opacity: .55; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 40px 40px; border-top: 1px solid var(--line); }
.pl-chip { display: inline-flex; border-radius: 8px; transition: transform .15s var(--ease), box-shadow .15s; }
.pl-chip[hidden] { display: none; }
.pl-chip .line { min-width: 48px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; }
.pl-chip:hover { transform: translateY(-1px); box-shadow: 0 0 0 3px #e5e5e5; }
.pl-empty__t { padding: 56px 40px; text-align: center; font-size: 15px; color: var(--muted-2); }

/* tablets and phones */
@media (max-width: 900px) {
  .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pl-hero { padding-bottom: 40px; }
  .pl-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .pl-shead { padding: 32px 20px 16px; }
  .pl-cell { padding: 16px 20px; }
  .pl-lcell { padding: 20px; }
  .pl-pad { padding: 20px; }
  .pl-deps__head, .pl-deps__note { padding-left: 16px; padding-right: 16px; }
  .pl-dep { gap: 12px; padding: 12px 16px; }
  .pl-faq { padding: 0 20px 32px; }
  .pl-dirs { grid-template-columns: minmax(0, 1fr); }
  .pl-dir + .pl-dir { border-left: 0; border-top: 1px solid var(--line); }
  .pl-stops { padding: 4px 20px 32px; }
  .pl-chips { padding: 20px; }
  .pl-empty__t { padding: 40px 20px; }
}
@media (max-width: 600px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-btns .btn { flex: 1 1 auto; }
  .bpills.pl-pills { gap: 4px; }
  .bpills.pl-pills .bpill { padding: 0 12px; }
}
