/* ==========================================================================
   Ask K24 — the voice flight assistant (home-page overlay + terminal kiosk)
   Surface inside the site's instrument-panel world: tokens from styles.css.
   ========================================================================== */

:root {
  /* Flight categories: the MetarIQ lamp values, so the screen and the light agree. */
  --asst-vfr:  #30d158;
  --asst-mvfr: #1a6eff;
  --asst-ifr:  #ff453a;
  --asst-lifr: #ff2d95;
  /* Taxiway cyan: routes and distances. A magenta line sat beside the LIFR pink and read as weather. */
  --asst-route: var(--taxi);
  --asst-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Launcher on the home page: hero button + left-edge tab ---- */
.asst-launch { gap: .7rem; }
.asst-launch__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--asst-cat, #8895a7);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--asst-cat, #8895a7) 25%, transparent), 0 0 14px var(--asst-cat, #8895a7); flex: none; }
.asst-tab {
  /* viewport-fit=cover: in landscape the sensor housing sits over the left edge */
  position: fixed; left: env(safe-area-inset-left, 0px); top: 50%; transform: translateY(-50%); z-index: 140;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1rem .55rem; cursor: pointer; border: 1px solid var(--night-line); border-left: 0; border-radius: 0 12px 12px 0;
  background: var(--night); color: var(--on-night); box-shadow: 8px 0 24px -12px rgba(0,0,0,.5);
  font: inherit; transition: transform .35s var(--asst-ease), background .25s;
}
.asst-tab:hover, .asst-tab:focus-visible { background: var(--night-2); transform: translateY(-50%) translateX(4px); outline: none; }
.asst-tab:focus-visible { box-shadow: 8px 0 24px -12px rgba(0,0,0,.5), 0 0 0 2px var(--beacon-glow); }
.asst-tab__mic { width: 22px; height: 22px; color: var(--beacon-glow); }
.asst-tab__lbl { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 640px) {
  .asst-tab { top: auto; bottom: calc(env(safe-area-inset-bottom) + 16px); left: calc(env(safe-area-inset-left, 0px) + 14px); transform: none; flex-direction: row; gap: .5rem;
    padding: .6rem .95rem; min-height: 44px; border: 1px solid var(--night-line); border-radius: 999px; }
  .asst-tab:hover, .asst-tab:focus-visible { transform: translateY(-2px); }
  .asst-tab__lbl { writing-mode: horizontal-tb; transform: none; font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { .asst-tab { transition: none; } }

/* ---- The desk: full-screen overlay (web) or the whole page (kiosk) ---- */
.asst {
  position: fixed; inset: 0; z-index: 400;
  display: grid; grid-template-columns: minmax(300px, 38%) 1fr; grid-template-rows: 1fr auto;
  background: var(--night); color: var(--on-night);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .32s var(--asst-ease), transform .5s var(--asst-ease), visibility 0s linear .5s;
}
.asst[data-open="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* A definite height, as the overlay has: without it the 1fr row grows with the captions and the
   card, type row and footer fall off a screen that cannot scroll. */
.asst--page { position: relative; inset: auto; height: 100vh; height: 100svh; min-height: 0; opacity: 1; visibility: visible; transform: none; }
.asst *, .asst *::before, .asst *::after { box-sizing: border-box; }
.asst ::selection { background: color-mix(in oklab, var(--taxi) 45%, transparent); color: var(--on-night); }
/* Zero specificity, so each control's own font size and family still apply. */
:where(.asst) button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
/* No radius here: the ring follows each control's own shape, the orb stays round. */
.asst :focus-visible { outline: 3px solid var(--taxi); outline-offset: 2px; }
.asst [hidden] { display: none !important; }
.asst__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Talk column */
.asst__talk {
  grid-row: 1; grid-column: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--night-line);
  padding: calc(env(safe-area-inset-top) + 1.1rem) clamp(1rem, 2.4vw, 2rem) 1rem max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, color-mix(in oklab, var(--night-2) 70%, transparent), transparent 40%);
  /* Short windows and large text: the column scrolls rather than pushing controls off-screen. */
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--night-line) transparent;
}
.asst__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* When the talk column scrolls (short screens, large text, captions brought into view), the
   wordmark and the overlay's close button stay pinned at its top. The column's top padding moves
   into the header, so at rest nothing shifts and, scrolled, nothing shows above it. */
@media (min-width: 821px) {
  .asst:not([data-layout="radio"]) .asst__talk > .asst__head { position: sticky; top: calc(-1 * (env(safe-area-inset-top) + 1.1rem)); z-index: 6;
    margin-top: calc(-1 * (env(safe-area-inset-top) + 1.1rem)); padding: calc(env(safe-area-inset-top) + 1.1rem) 0 0;
    background: color-mix(in oklab, var(--night-2) 70%, var(--night)); }
}
.asst__brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.asst__brand svg { width: 34px; height: 34px; flex: none; }
.asst__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1; }
.asst__sub { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: var(--on-night-soft); margin-top: 4px; }
.asst__close { flex: none; width: 44px; height: 44px; border-radius: 11px; cursor: pointer;
  background: var(--night-2); border: 1px solid var(--night-line); display: grid; place-items: center; transition: background .2s; }
.asst__close:hover { background: var(--night-3); }
.asst__close svg { width: 18px; height: 18px; }

/* Only the captions flex; everything else in the column keeps its size, so a short phone
   never squeezes the status line under the chips. */
.asst__head, .asst__orbwrap, .asst__status, .asst__hear, .asst__chips, .asst__type, .asst__offrail { flex: none; }

/* The orb. The bottom padding leaves room for the speaking halo, which reaches 26px past the
   orb and grows with the voice, so it never crosses the status line. */
.asst__orbwrap { display: grid; place-items: center; padding-block: clamp(.8rem, 3vh, 2rem) 1.9rem; }
.asst__orb {
  --ring: var(--asst-cat, #8895a7); --level: 0;
  position: relative; width: clamp(150px, 22vmin, 240px); aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 38% 34%, color-mix(in oklab, var(--night-3) 85%, white) 0%, var(--night-2) 42%, var(--night) 100%);
  border: 1px solid var(--night-line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 -18px 40px -24px rgba(0,0,0,.8);
  transition: transform .25s var(--asst-ease), box-shadow .3s;
}
.asst__orb:active { transform: scale(.97); }
.asst__orb::before {           /* category ring */
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 3px solid var(--ring);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ring) 25%, transparent), 0 0 28px color-mix(in oklab, var(--ring) 70%, transparent), inset 0 0 18px color-mix(in oklab, var(--ring) 35%, transparent);
  opacity: .9; transition: box-shadow .3s, opacity .3s, transform .12s linear, border-color .4s;
  transform: scale(calc(1 + var(--level) * .08));
}
.asst__orb::after {            /* speaking halo */
  content: ""; position: absolute; inset: -26px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--ring) 45%, transparent);
  opacity: 0; transform: scale(.92); transition: opacity .3s, transform .3s;
}
.asst[data-state="speaking"] .asst__orb::after { opacity: 1; transform: scale(calc(1 + var(--level) * .12)); }
.asst[data-state="listening"] .asst__orb::before { border-color: var(--on-night); box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 40%, transparent), 0 0 36px var(--ring); }
.asst[data-state="connecting"] .asst__orb::before, .asst[data-state="thinking"] .asst__orb::before { animation: asstSpin 1.6s linear infinite; border-style: dashed; }
@keyframes asstSpin { to { transform: rotate(360deg); } }
.asst__orb-ico { position: absolute; inset: 0; display: grid; place-items: center; }
.asst__orb-ico svg { width: 30%; height: 30%; color: var(--on-night); filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); transition: color .3s, transform .3s var(--asst-ease); }
.asst[data-state="listening"] .asst__orb-ico svg { color: var(--ring); transform: scale(1.06); }
.asst[data-state="idle"] .asst__orb-ico .i-stop, .asst[data-state="error"] .asst__orb-ico .i-stop, .asst[data-state="ended"] .asst__orb-ico .i-stop { display: none; }
.asst:not([data-state="idle"]):not([data-state="error"]):not([data-state="ended"]) .asst__orb-ico .i-mic { display: none; }
.asst__orb-cat { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: color-mix(in oklab, var(--ring) 72%, white); font-weight: 700; }
/* Switched off by the board: the orb is only a picture, unlit and still. */
.asst__orb--off { --ring: var(--night-line); cursor: default; opacity: .7; }
.asst__orb--off:active { transform: none; }
.asst__orb--off .asst__orb-ico svg { color: var(--on-night-soft); }

.asst__status { text-align: center; font-size: 1.02rem; color: var(--on-night); min-height: 1.6em; text-wrap: balance; padding-inline: .5rem; margin-top: .45rem; }
.asst__status small { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; color: var(--on-night-soft); margin-top: .35rem; text-transform: uppercase; }
.asst__rail.asst__offrail { margin-top: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.asst__offrail a { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--taxi); text-underline-offset: 4px; }
.asst__offrail .v { white-space: nowrap; }

/* Shown only when the browser refused to start the voice without a tap. */
.asst__hear { align-self: center; margin-top: .6rem; cursor: pointer; min-height: 44px; padding: .62rem 1.1rem; border-radius: 10px;
  border: 1px solid var(--beacon); background: color-mix(in oklab, var(--beacon) 18%, transparent); color: var(--on-night); font-size: .95rem; font-weight: 600; }
.asst__hear:hover { background: color-mix(in oklab, var(--beacon) 30%, transparent); }

/* Suggestion chips */
.asst__chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; padding: .9rem 0 .4rem; }
/* A row that scrolls sideways fades at whichever edge still has chips past it (set by the client). */
.asst__chips[data-fade="end"] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); }
.asst__chips[data-fade="start"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem); mask-image: linear-gradient(90deg, transparent, #000 3rem); }
.asst__chips[data-fade="start end"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
/* Kiosk: five chips in one row that never wraps, so the captions keep the column's height. The
   auto margins centre the row while it fits and fall away once it scrolls. */
.asst--kiosk .asst__chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
.asst--kiosk .asst__chips::-webkit-scrollbar { display: none; }
.asst--kiosk .asst__chip { flex: none; }
.asst--kiosk:not([data-layout="radio"]) .asst__chip:first-child { margin-left: auto; }
.asst--kiosk:not([data-layout="radio"]) .asst__chip:last-child { margin-right: auto; }
.asst__chip { cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--on-night); background: color-mix(in oklab, var(--night-3) 55%, transparent);
  border: 1px solid var(--night-line); border-radius: 10px; padding: .62rem .9rem; min-height: 44px;
  transition: border-color .2s, background .2s, transform .2s var(--asst-ease); }
.asst__chip:hover { border-color: var(--taxi); background: color-mix(in oklab, var(--taxi) 12%, transparent); transform: translateY(-1px); }
.asst__chip:disabled { opacity: .45; cursor: default; transform: none; }

/* Captions. They are the only text form of the answer, so they keep a few lines however short the
   screen; the column scrolls instead. */
.asst__cap { flex: 1; min-height: 4.5em; overflow-y: auto; overscroll-behavior: contain; margin-top: .4rem; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--night-line) transparent; }
/* Once lines scroll past the top they fade out there instead of being sliced through. */
.asst__cap[data-scrolled="true"] { -webkit-mask-image: linear-gradient(180deg, transparent, #000 1.25rem); mask-image: linear-gradient(180deg, transparent, #000 1.25rem); }
.asst__cap::-webkit-scrollbar { width: 6px; } .asst__cap::-webkit-scrollbar-thumb { background: var(--night-line); border-radius: 3px; }
.asst__line { padding: .55rem 0; border-bottom: 1px solid color-mix(in oklab, var(--night-line) 60%, transparent); font-size: .98rem; line-height: 1.5; }
.asst__line:last-child { border-bottom: 0; }
.asst__line.is-pending { display: none; }   /* holds the question's place until its transcript arrives */
.asst__line b { display: block; font-family: var(--font-mono); font-weight: 600; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-soft); margin-bottom: .15rem; }
.asst__line--you { color: var(--taxi); }
.asst__line--you b { color: var(--taxi); }
.asst__line--k24 { color: var(--on-night); }
.asst__line--sys { color: var(--on-night-soft); font-size: .86rem; }
.asst__line--sys b { color: var(--tungsten); }

/* Text entry */
.asst__type { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; }
.asst__type input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--on-night); background: var(--night-2);
  border: 1px solid color-mix(in oklab, var(--on-night) 45%, var(--night)); border-radius: 10px; padding: .72rem .9rem; caret-color: var(--beacon-glow); }
.asst__type input::placeholder { color: var(--on-night-soft); }
.asst__type input:focus { border-color: var(--taxi); outline: none; }
.asst__type button { cursor: pointer; min-width: 44px; height: 44px; border-radius: 10px; border: 1px solid transparent; background: var(--beacon); color: #fff; display: grid; place-items: center; }
.asst__type button:hover { background: var(--beacon-deep); }
.asst__type button svg { width: 18px; height: 18px; }
/* A 44px target that still sits on the footer's one line: the extra height reaches into its padding. */
.asst__typetoggle { cursor: pointer; background: none; border: 0; color: var(--on-night-soft); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px;
  padding: .5rem; align-self: center; min-height: 44px; margin-block: -10px; border-radius: 6px; }
.asst__typetoggle:hover { color: var(--on-night); }

/* Stage */
.asst__stage { grid-row: 1; grid-column: 2; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--night); isolation: isolate; }
.asst__map { position: absolute; inset: 0; z-index: 0; background: #0f1721; }
.asst__map .leaflet-container { background: #0f1721; font-family: var(--font-body); }
.asst__map .leaflet-tile { filter: brightness(.82) saturate(.9); }
.asst__map[data-layer="satellite"] .leaflet-tile, .asst__map[data-layer="sectional"] .leaflet-tile, .asst__map .asst-radar .leaflet-tile { filter: none; }
.asst__map .leaflet-control-attribution { background: color-mix(in oklab, var(--night) 90%, transparent); color: var(--on-night-soft); font-size: .62rem; font-family: var(--font-mono); }
.asst__map .leaflet-control-attribution a { color: var(--on-night-soft); }
.asst__map .leaflet-control-zoom { display: none; }
.asst__maplabel { position: absolute; z-index: 1; top: clamp(.8rem, 2vw, 1.6rem); left: clamp(.8rem, 2vw, 1.6rem); margin: 0; pointer-events: none;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--on-night);
  background: color-mix(in oklab, var(--night) 88%, transparent); border: 1px solid var(--night-line); border-radius: 6px; padding: .3rem .55rem; }
.asst-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--taxi); border: 2px solid var(--night); box-shadow: 0 0 0 2px var(--taxi), 0 0 14px color-mix(in oklab, var(--taxi) 70%, transparent); }
.asst-pin--home { background: var(--beacon-glow); box-shadow: 0 0 0 2px var(--beacon-glow), 0 0 16px var(--beacon-glow); }
/* The destination is the larger cyan pin at the end of the course line. */
.asst-pin--dest { width: 18px; height: 18px; margin: -2px; background: var(--asst-route); box-shadow: 0 0 0 2px var(--asst-route), 0 0 16px var(--asst-route); }
.asst-pinlbl { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; color: var(--on-night); background: color-mix(in oklab, var(--night) 82%, transparent);
  border: 1px solid var(--night-line); border-radius: 6px; padding: .18rem .4rem; white-space: nowrap; transform: translate(10px, -50%); }
.asst-pinlbl b { color: var(--taxi); font-weight: 600; }

/* Stage cards sit over the map */
.asst__card {
  position: absolute; left: clamp(.8rem, 2vw, 1.6rem); right: max(clamp(.8rem, 2vw, 1.6rem), env(safe-area-inset-right, 0px)); bottom: clamp(.8rem, 2vw, 1.6rem); z-index: 2;
  max-height: calc(100% - 2rem); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--night-line) transparent;
  background: color-mix(in oklab, var(--night-2) 90%, transparent); border: 1px solid var(--night-line); border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: clamp(.9rem, 1.6vw, 1.3rem) clamp(1rem, 1.8vw, 1.5rem);
  opacity: 0; transform: translateY(18px); transition: opacity .32s var(--asst-ease), transform .55s var(--asst-ease);
}
.asst__card[data-in="true"] { opacity: 1; transform: none; }
/* A card with more below fades at its foot, so a cut line reads as "scroll", not as the end. */
.asst__card[data-fade~="end"] { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 2.4rem), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 2.4rem), transparent); }
.asst__card--top { bottom: auto; top: clamp(.8rem, 2vw, 1.6rem); max-height: calc(100% - 2rem); }
.asst__card--full { top: clamp(.8rem, 2vw, 1.6rem); bottom: auto; }
.asst__card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.asst__cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.asst__cardtag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--on-night-soft); text-transform: uppercase; }
.asst__note { font-size: .86rem; color: var(--on-night-soft); margin: .6rem 0 0; }
/* Stale copies and feeds that did not answer: said before the data, in the fuel-and-caution amber. */
.asst__warn { font-size: .86rem; color: var(--tungsten); margin: 0 0 .7rem; }
/* The same amber for a standing caution read after the list it qualifies. */
.asst__warn--after { margin: .7rem 0 0; }
.asst__srcline { margin: .8rem 0 0; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; color: var(--on-night-soft); }
.asst__srcline a { color: var(--taxi); }

/* METAR readout: the field-at-a-glance grammar */
.asst__cat { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-weight: 700; letter-spacing: .08em;
  color: color-mix(in oklab, var(--asst-cat, #8895a7) 72%, white); }
.asst__cat i { width: 12px; height: 12px; border-radius: 50%; background: var(--asst-cat, #8895a7); box-shadow: 0 0 12px var(--asst-cat, #8895a7); }
.asst__cat small { font-family: var(--font-body); font-weight: 500; letter-spacing: 0; color: var(--on-night-soft); }
.asst__rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0; border-top: 1px solid var(--night-line); border-left: 1px solid var(--night-line); margin-top: .7rem; }
.asst__cell { padding: .6rem .75rem; border-right: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.asst__cell .k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; color: var(--on-night-soft); text-transform: uppercase; }
.asst__cell .v { font-family: var(--font-mono); font-size: clamp(1rem, 1.2vw, 1.3rem); font-weight: 600; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.asst__cell .v small { font-size: .7em; font-weight: 500; color: var(--on-night-soft); }
.asst__raw { margin: .7rem 0 0; font-family: var(--font-mono); font-size: .76rem; color: var(--on-night-soft); word-break: break-word; }

/* Route card: the METAR card's ruled mono rail. Four cells land one after another, then the two
   ends continue the same ruled table as columns. No boxes inside the card. */
.asst__rail.asst__rail--route { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.asst__rail--route .asst__cell { opacity: 0; transform: translateY(8px); animation: asstChip .5s var(--asst-ease) forwards; animation-delay: var(--d, 0s); }
.asst__rail--route .v { color: var(--taxi); }
@keyframes asstChip { to { opacity: 1; transform: none; } }
.asst__ends { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--night-line); }
.asst__end { min-width: 0; padding: .6rem .75rem .7rem; border-right: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.asst__end .k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-soft); }
.asst__end .k b { color: var(--on-night); font-weight: 600; letter-spacing: .08em; }
.asst__end .nm { font-weight: 700; font-size: .98rem; margin-top: .15rem; }
.asst__end .ln { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; margin-top: .4rem; font-family: var(--font-mono); font-size: .84rem; font-variant-numeric: tabular-nums; }
.asst__end .ln .asst__cat { font-size: .8rem; gap: .4rem; }
.asst__end .ln .asst__cat i { width: 10px; height: 10px; }
/* The wind's box matters only on a phone's fold; elsewhere the end's words flow and wrap as words. */
.asst__end .ln .lx { display: contents; }
.asst__end .ag { margin-top: .25rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--on-night-soft); }
.asst__end .rw { margin-top: .4rem; font-size: .82rem; line-height: 1.4; color: var(--on-night-soft); }
.asst__end .asst__warn { margin: .35rem 0 0; font-size: .8rem; }
.asst__alerts { margin-top: .7rem; }
.asst__alerts .asst__warn { margin: 0 0 .35rem; }
/* The route head's hazard tag speaks for the warnings below the ends; only the fold needs it. */
.asst__hz { display: none; color: var(--tungsten); }
/* Folded details: only phones and short screens fold them, behind this button. */
.asst__more { display: none; margin-top: .55rem; min-height: 44px; padding: .5rem .8rem; cursor: pointer; border-radius: 9px; border: 1px solid var(--night-line); background: none;
  color: var(--taxi); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.asst__more:hover { border-color: var(--taxi); }

/* Lists: NOTAMs, TFRs, advisories, places, airports */
.asst__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.asst__item { border: 1px solid var(--night-line); border-radius: 10px; padding: .7rem .85rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; align-items: start; }
.asst__item .tag { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tungsten); padding-top: .2rem; white-space: nowrap; }
/* Lifted toward white: the card lets 10% of a light map through, and pure beacon red fell under 4.5:1. */
.asst__item .tag[data-w="3"] { color: color-mix(in oklab, var(--beacon-glow) 72%, white); }
.asst__item .tag[style] { color: color-mix(in oklab, var(--asst-cat) 72%, white); }
.asst__card a { color: var(--taxi); text-underline-offset: 3px; }
.asst__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.asst__link { font-family: var(--font-mono); font-size: .76rem; text-decoration: none; color: var(--on-night) !important; padding: .55rem .8rem; border-radius: 9px;
  border: 1px solid var(--night-line); background: color-mix(in oklab, var(--night-3) 60%, transparent); min-height: 44px; display: inline-flex; align-items: center; }
a.asst__link:hover { border-color: var(--taxi); }
.asst__rail--fc { margin-top: .9rem; }
.asst__freqs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.asst__freq { font-family: var(--font-mono); font-size: .8rem; padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--night-line);
  background: color-mix(in oklab, var(--night-3) 55%, transparent); font-variant-numeric: tabular-nums; }
.asst__freq b { color: var(--taxi); font-weight: 600; font-size: .68rem; letter-spacing: .1em; margin-right: .2rem; }
.asst__freq small { color: var(--on-night-soft); }
.asst__item .t { font-size: .92rem; line-height: 1.45; }
.asst__item .m { grid-column: 2; font-family: var(--font-mono); font-size: .68rem; color: var(--on-night-soft); letter-spacing: .04em; }
.asst__empty { padding: 1.2rem 0; color: var(--on-night-soft); font-size: .95rem; }

.asst__places { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.asst__place { border: 1px solid var(--night-line); border-radius: 11px; overflow: hidden; background: color-mix(in oklab, var(--night-3) 40%, transparent); }
.asst__place img { width: 100%; height: 120px; object-fit: cover; display: block; }
.asst__place .b { padding: .7rem .8rem .8rem; }
.asst__place .n { font-weight: 700; font-size: .98rem; }
.asst__place .d { font-size: .86rem; color: var(--on-night-soft); margin-top: .25rem; line-height: 1.45; }
.asst__place .c { font-family: var(--font-mono); font-size: .7rem; color: var(--taxi); margin-top: .4rem; letter-spacing: .04em; }

.asst__gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; }
.asst__gal figure { margin: 0; border: 1px solid var(--night-line); border-radius: 11px; overflow: hidden; background: var(--night-3); }
.asst__gal img { width: 100%; height: clamp(160px, 24vh, 300px); object-fit: cover; display: block; }
.asst__gal figcaption { padding: .5rem .7rem; font-size: .8rem; color: var(--on-night-soft); line-height: 1.4; }
.asst__gal figcaption small { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .04em; margin-top: .2rem; }

.asst__kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .95rem; }
.asst__kv dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-soft); padding-top: .25rem; }
.asst__kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Thinking rule across the stage */
.asst__busy { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--taxi), transparent); background-size: 40% 100%;
  opacity: 0; transition: opacity .2s; }
.asst[data-state="thinking"] .asst__busy { opacity: 1; animation: asstBusy 1.2s linear infinite; }
@keyframes asstBusy { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* Footer */
.asst__foot { grid-row: 2; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .55rem max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom) + .55rem) max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--night-line);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--on-night-soft); background: var(--night); }
.asst__foot a { color: var(--taxi); text-decoration: none; }
.asst__foot b { color: var(--on-night); font-weight: 600; }
.asst__foot .nw { white-space: nowrap; }     /* a phone number never breaks at its hyphen */
.asst__timer { font-variant-numeric: tabular-nums; }

/* Attract state on the kiosk */
.asst--page[data-idle="true"] .asst__orb::before { animation: asstBreathe 4.2s ease-in-out infinite; }
.asst--page.asst--off .asst__orb::before { animation: none; }
@keyframes asstBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---- Flight strips: one per answer that put something on the stage; tap to bring it back ---- */
/* Flex with wrap: when the text and its meta (an age, say) do not fit one line, the meta takes a
   second line instead of the text being cut to a stub. */
.asst__strip { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .65rem; width: 100%; text-align: left; cursor: pointer; min-height: 44px;
  margin: .45rem 0; padding: .55rem .7rem; border-radius: 9px; border: 1px solid var(--night-line);
  background: linear-gradient(90deg, color-mix(in oklab, var(--night-3) 75%, transparent), color-mix(in oklab, var(--night-2) 60%, transparent));
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; color: var(--on-night); transition: border-color .2s, transform .2s var(--asst-ease); }
.asst__strip:hover { border-color: var(--taxi); transform: translateX(2px); }
.asst__striptag { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .68rem; letter-spacing: .12em; color: var(--tungsten); white-space: nowrap; }
.asst__striptag[style] { color: color-mix(in oklab, var(--asst-cat) 72%, white); }
.asst__striptag i { width: 8px; height: 8px; border-radius: 50%; background: var(--asst-cat); box-shadow: 0 0 8px var(--asst-cat); }
.asst__striptext { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.asst__stripmeta { flex: none; margin-left: auto; color: var(--on-night-soft); font-size: .7rem; white-space: nowrap; }
/* Chips and strips live in scrollers that would clip a ring drawn outside them. */
.asst .asst__chip:focus-visible, .asst .asst__strip:focus-visible { outline-offset: -3px; }

/* ---- Layout: radio — the map fills the screen; the orb sits in a dock like a push-to-talk switch ---- */
.asst[data-layout="radio"] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.asst[data-layout="radio"] .asst__stage { grid-row: 1; grid-column: 1; }
.asst[data-layout="radio"] .asst__talk {
  grid-row: 1; grid-column: 1; align-self: end; justify-self: center; z-index: 4; position: relative;
  width: min(980px, calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); max-height: calc(100% - 2rem); margin-bottom: 1rem;
  border: 1px solid var(--night-line); border-radius: 18px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "orb head" "orb status" "orb chips" "hear hear" "cap cap" "type type";
  column-gap: 1.2rem; align-items: center;
  padding: 1rem 1.2rem; background: color-mix(in oklab, var(--night) 84%, transparent);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
}
.asst[data-layout="radio"] .asst__head { grid-area: head; }
.asst[data-layout="radio"] .asst__head .asst__sub { display: none; }
/* The ring and the speaking halo draw outside the orb's box; give them room inside the dock. */
.asst[data-layout="radio"] .asst__orbwrap { grid-area: orb; padding: 26px; margin: -10px; }
.asst[data-layout="radio"] .asst__orb { width: clamp(92px, 12vmin, 128px); }
.asst[data-layout="radio"] .asst__status { grid-area: status; text-align: left; padding: 0; }
.asst[data-layout="radio"] .asst__hear { grid-area: hear; justify-self: start; margin-top: .7rem; }
.asst[data-layout="radio"] .asst__offrail { grid-area: chips; }   /* switched off: who to call sits where the chips would */
/* End padding as wide as the fade, so the last chip can scroll clear of it. */
.asst[data-layout="radio"] .asst__chips { grid-area: chips; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: .55rem 0 0; }
.asst[data-layout="radio"] .asst__chips::-webkit-scrollbar { display: none; }
.asst[data-layout="radio"] .asst__chip { flex: none; }
.asst[data-layout="radio"] .asst__cap { grid-area: cap; min-height: 0; max-height: 5.4em; margin-top: .6rem; }
.asst[data-layout="radio"] .asst__type { grid-area: type; }
/* --asst-dock-top is measured by the client: the card always ends above the dock. */
.asst[data-layout="radio"] .asst__card { bottom: auto; top: clamp(4.5rem, 9vh, 6rem); left: max(clamp(.8rem, 2vw, 1.6rem), env(safe-area-inset-left, 0px)); right: auto; width: min(760px, calc(100% - 1.6rem));
  max-height: min(46%, calc(var(--asst-dock-top, 100%) - clamp(4.5rem, 9vh, 6rem) - .8rem)); }
.asst[data-layout="radio"] .asst__foot { grid-row: 2; }

/* ---- Layout: strip — the conversation becomes a stack of flight strips; only the latest words stay.
   System notes stay visible: the thirty-second warning and failures are the only notice the user gets. ---- */
.asst[data-layout="strip"] .asst__line--you { display: none; }
.asst[data-layout="strip"] .asst__line--k24 { display: none; }
.asst[data-layout="strip"] .asst__line--k24.is-latest { display: block; }
.asst[data-layout="strip"] .asst__strip { padding: .8rem .9rem; font-size: .9rem; }
.asst[data-layout="strip"] .asst__striptag { font-size: .74rem; }
/* The latest answer keeps three lines, so the newest strip above it stays on screen; a tap, or
   keyboard focus on the captions, opens the rest. */
.asst[data-layout="strip"] .asst__line--k24.is-latest > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; cursor: pointer; }
.asst[data-layout="strip"] .asst__line--k24.is-latest.is-open > span,
.asst[data-layout="strip"] .asst__cap:focus-visible .asst__line--k24.is-latest > span { display: block; -webkit-line-clamp: unset; line-clamp: none; cursor: auto; }

/* ---- Kiosk: cold fingers on a lobby touchscreen; every control is at least 56px ---- */
.asst--kiosk .asst__chip, .asst--kiosk .asst__strip, .asst--kiosk .asst__hear, .asst--kiosk .asst__type input, .asst--kiosk .asst__more { min-height: 56px; }
.asst--kiosk .asst__type button { min-width: 56px; height: 56px; }
.asst--kiosk .asst__typetoggle { min-height: 56px; margin-block: -16px; }

/* ---- Phone: stage on top, orb at the bottom ---- */
@media (max-width: 820px) {
  .asst { grid-template-columns: 1fr; grid-template-rows: minmax(0, 38%) minmax(0, 1fr) auto; }
  .asst__stage { grid-row: 1; grid-column: 1; }
  .asst__talk { grid-row: 2; grid-column: 1; border-right: 0; border-top: 1px solid var(--night-line); padding-top: .7rem;
    padding-right: max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-right, 0px)); }
  .asst__foot { grid-row: 3; grid-column: 1; }
  /* The header floats over the top of the stage on a dark gradient so the wordmark never fights the map. */
  .asst__head { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: calc(env(safe-area-inset-top) + .6rem) .8rem 1.4rem;
    background: linear-gradient(180deg, color-mix(in oklab, var(--night) 92%, transparent) 0%, color-mix(in oklab, var(--night) 60%, transparent) 60%, transparent 100%); pointer-events: none; }
  .asst__head > * { pointer-events: auto; }
  .asst__sub { display: none; }
  .asst__brand .asst__title { font-size: 1rem; }
  .asst__brand svg { width: 28px; height: 28px; }
  .asst__orbwrap { padding-block: .2rem; }
  .asst__orb { width: clamp(84px, 12vh, 104px); }
  .asst__orb::after { display: none; }          /* no room for the halo between orb and status here */
  .asst__status { font-size: .94rem; min-height: 0; margin-top: .55rem; }
  .asst__status small { margin-top: .2rem; }
  /* The ring's colour needs its word here too: smaller, never hidden. */
  .asst__orb-cat { font-size: .52rem; bottom: 9%; }
  .asst__chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: .6rem 0 .3rem; scrollbar-width: none; }
  .asst__chips::-webkit-scrollbar { display: none; }
  .asst__chip { flex: none; }
  .asst__cap { min-height: 4.5em; max-height: 7.5em; }
  .asst__card { left: .6rem; right: .6rem; bottom: .6rem; max-height: calc(100% - 4.2rem); padding: .8rem .9rem; }
  /* bottom: auto again, or the rule above stretches a top card down the stage over its own map. */
  .asst__card--top, .asst__card--full { top: 3.6rem; bottom: auto; }
  .asst__maplabel { top: 3.6rem; left: .6rem; }
  .asst__card h3 { font-size: 1rem; }
  .asst__rail { grid-template-columns: repeat(3, 1fr); }
  .asst__cell { padding: .45rem .55rem; }
  .asst__cell .v { font-size: .95rem; }
  .asst__raw { display: none; }
  .asst__ends { grid-template-columns: 1fr; }
  .asst__foot { font-size: .62rem; gap: .5rem; }
  .asst__foot .asst__typetoggle { padding: .3rem; }
  .asst__strip { margin: .3rem 0; padding: .45rem .55rem; font-size: .72rem; }
  .asst[data-layout="radio"] { grid-template-rows: minmax(0, 1fr) auto; }
  .asst[data-layout="radio"] .asst__talk { width: calc(100% - 1rem); margin-bottom: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--night-line); overflow-y: auto; column-gap: .7rem; }
  .asst[data-layout="radio"] .asst__head { position: static; padding: 0; background: none; }
  .asst[data-layout="radio"] .asst__orbwrap { padding: 20px; margin: -8px; }
  .asst[data-layout="radio"] .asst__card { top: 3.6rem; left: .6rem; right: .6rem; width: auto; max-height: min(40%, calc(var(--asst-dock-top, 100%) - 3.6rem - .6rem)); }
  .asst[data-layout="radio"] .asst__maplabel { top: .6rem; }
  .asst[data-layout="radio"] .asst__cap { max-height: 3.4em; }
}

/* Taller phones have room for the original 46% stage; shorter ones give it to the captions. */
@media (max-width: 820px) and (min-height: 740px) {
  .asst { grid-template-rows: minmax(0, 46%) minmax(0, 1fr) auto; }
}
/* Switched off there are no captions or chips, so the field card gets the height. */
@media (max-width: 820px) {
  .asst.asst--off { grid-template-rows: minmax(0, 1fr) auto auto; }
}

/* ---- Short screens: landscape phones, small windows, large default text. 45em is measured
   against the browser's own font size, so a large default text size counts as a short screen. ---- */
@media (max-height: 560px), (min-width: 821px) and (max-height: 45em) {
  .asst__orbwrap { padding-block: .3rem .9rem; }
  .asst__orb { width: clamp(64px, 18vh, 110px); }
  .asst__orb::after { display: none; }
  .asst__chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-block: .5rem .3rem; scrollbar-width: none; }
  .asst__chips::-webkit-scrollbar { display: none; }
  .asst__chip { flex: none; }
  .asst__orb-cat { font-size: .52rem; bottom: 9%; }
}
@media (max-height: 560px) {
  .asst__sub { display: none; }               /* it wrapped to two lines beside the wordmark */
}
/* Short portrait phones (an SE in Safari): the stage gives up height so the captions keep theirs. */
@media (max-width: 820px) and (max-height: 560px) and (orientation: portrait) {
  .asst { grid-template-rows: minmax(0, 30%) minmax(0, 1fr) auto; }
  .asst__orbwrap { padding-block: .2rem; }
  .asst__orb { width: clamp(72px, 14vh, 84px); }
}
/* Landscape phones: the talk column sits beside the stage, as on a desk, so the captions are not
   pushed below the fold under the orb and chips. */
@media (max-width: 820px) and (max-height: 560px) and (orientation: landscape) {
  .asst { grid-template-columns: minmax(280px, 40%) 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .asst__stage { grid-row: 1; grid-column: 2; }
  .asst__talk { grid-row: 1; grid-column: 1; border-top: 0; border-right: 1px solid var(--night-line); padding-top: calc(env(safe-area-inset-top) + .7rem); }
  .asst__foot { grid-row: 2; grid-column: 1 / -1; }
  .asst__head { position: sticky; top: calc(-1 * (env(safe-area-inset-top) + .7rem)); margin-top: calc(-1 * (env(safe-area-inset-top) + .7rem));
    padding: calc(env(safe-area-inset-top) + .7rem) 0 0; background: color-mix(in oklab, var(--night-2) 70%, var(--night)); }
  .asst__card { max-height: calc(100% - 1.2rem); }
  .asst__card--top, .asst__card--full, .asst__maplabel { top: .6rem; }
}
/* The radio dock cannot float over a stage this short without covering it, at any width: it docks
   beside it instead. Portrait phones keep the floating dock, which has the height for it. */
@media (max-height: 560px) and (orientation: landscape) {
  .asst[data-layout="radio"] { grid-template-columns: minmax(280px, 38%) 1fr; }
  .asst[data-layout="radio"] .asst__stage { grid-column: 2; }
  .asst[data-layout="radio"] .asst__foot { grid-column: 1 / -1; }
  .asst[data-layout="radio"] .asst__talk { grid-column: 1; align-self: stretch; justify-self: stretch; align-items: stretch; width: auto; max-height: none; margin: 0;
    display: flex; flex-direction: column; border: 0; border-right: 1px solid var(--night-line); border-radius: 0;
    padding: calc(env(safe-area-inset-top) + 1.1rem) clamp(1rem, 2.4vw, 2rem) 1rem max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-left, 0px));
    background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .asst[data-layout="radio"] .asst__talk > .asst__head { position: sticky; top: calc(-1 * (env(safe-area-inset-top) + 1.1rem)); z-index: 6;
    margin-top: calc(-1 * (env(safe-area-inset-top) + 1.1rem)); padding: calc(env(safe-area-inset-top) + 1.1rem) 0 0; background: var(--night); }
  .asst[data-layout="radio"] .asst__orbwrap { padding: .3rem 0 .9rem; margin: 0; }
  .asst[data-layout="radio"] .asst__orb { width: clamp(64px, 18vh, 110px); }
  .asst[data-layout="radio"] .asst__status { text-align: center; }
  .asst[data-layout="radio"] .asst__hear { align-self: center; }
  .asst[data-layout="radio"] .asst__cap { min-height: 4.5em; max-height: none; }
  .asst[data-layout="radio"] .asst__card { top: clamp(.8rem, 2vw, 1.6rem); left: clamp(.8rem, 2vw, 1.6rem); right: max(clamp(.8rem, 2vw, 1.6rem), env(safe-area-inset-right, 0px)); width: auto; max-height: calc(100% - 2rem); }
  .asst[data-layout="radio"] .asst__card.asst__card--route { max-height: 50%; }
  .asst[data-layout="radio"] .asst__maplabel { top: .6rem; }
}

/* ---- Route card on phones and short screens: the title, the rail and one line per end, the
   rest folded behind "Show details". It stops at about half the stage, so the course line and
   both pins stay in view above it; where half a short phone's stage cannot hold those lines whole,
   it takes 9.5rem, and fit() still draws the course line clear above it. ---- */
@media (max-width: 820px), (max-height: 560px) {
  .asst__card.asst__card--route { max-height: max(50%, 9.5rem); padding-block: .55rem; }
  /* A short fade: the usual 2.4rem covered a third of this card, and the second end with it. */
  .asst__card--route[data-fade~="end"] { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1rem), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 1rem), transparent); }
  .asst__card--route:not([data-more="true"]) .asst__dtl { display: none; }
  .asst__card--route .asst__cardhead { margin-bottom: .4rem; }
  .asst__card--route .asst__rail--route { margin-top: 0; }
  .asst__card--route .asst__rail--route .asst__cell { padding: .25rem .5rem; }
  .asst__card--route .asst__rail--route .k { line-height: 1.25; }
  .asst__card--route .asst__rail--route .v { font-size: .92rem; margin-top: 0; line-height: 1.25; }
  .asst__card--route .asst__ends { grid-template-columns: 1fr; }
  /* One row per end: the ident leads, since the title already reads departure → arrival. */
  .asst__card--route .asst__end { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; padding: .3rem .55rem; line-height: 1.3; }
  .asst__card--route .asst__end .k .lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .asst__card--route .asst__end .ln { font-size: .8rem; }
  .asst__card--route .asst__end .ln, .asst__card--route .asst__end .ag { margin-top: 0; }
  .asst__card--route .asst__end .nm, .asst__card--route .asst__end .rw, .asst__card--route .asst__end .asst__warn { flex-basis: 100%; }
  .asst__card--route .asst__more { display: inline-flex; align-items: center; }
  /* One row per end whatever the weather (routeEnd): the category, visibility and ceiling hold it, cut
     short only past any real width, and the wind shows where it fits whole. */
  .asst__card--route:not([data-more="true"]) .asst__end .ln { flex: 1 1 0; flex-wrap: nowrap; min-width: 0; }
  .asst__card--route:not([data-more="true"]) .asst__end .ln > .asst__cat { flex: none; }
  .asst__card--route:not([data-more="true"]) .asst__end .lt { display: flex; gap: .6em; flex: 1 1 0; min-width: 0; }
  .asst__card--route:not([data-more="true"]) .asst__end .lv { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* The wind sits in a one-line box behind an empty first item: where it does not fit whole it wraps to
     the box's hidden second line, rather than push the destination under the fold or show a cut number.
     Only this box clips, so the category dot keeps its glow. Chromium, WebKit and Firefox all let an
     item follow a first item that has no size at all on its line, so this one is a line high. */
  .asst__card--route:not([data-more="true"]) .asst__end .lx { display: flex; flex-wrap: wrap; flex: 1 1 0; min-width: 0; line-height: 1.3; max-height: 1.3em; overflow: hidden; }
  .asst__card--route:not([data-more="true"]) .asst__end .lx::before { content: ''; width: 0; height: 1.3em; }
  .asst__card--route:not([data-more="true"]) .asst__end .lw { flex: none; white-space: nowrap; }
  .asst__card--route .asst__end .fr { flex-basis: 100%; }
  /* The warnings sit under the fold, so the head says there are some: one line, cut short, never wrapped. */
  .asst__card--route:not([data-more="true"]) .asst__cardhead { flex-wrap: nowrap; }
  .asst__card--route .asst__cardhead h3 { flex: none; }
  .asst__card--route .asst__hz { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .asst, .asst__card, .asst__rail--route .asst__cell { transition: none; animation: none; opacity: 1; transform: none; }
  .asst__orb::before, .asst__orb::after, .asst__busy, .asst--page[data-idle="true"] .asst__orb::before { animation: none !important; transition: none; }
  .asst[data-state="connecting"] .asst__orb::before, .asst[data-state="thinking"] .asst__orb::before { border-style: dotted; }
}
