/* Live Earth: map-first list/detail shell. All overrides stay inside .le-page. */
.le-page {
  --le-panel-width: clamp(20rem, 27vw, 22.5rem);
  --le-height: max(34rem, calc(100svh - var(--header-h) - 5rem));
  --le-glass: color-mix(in srgb, var(--surface) 96%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--le-panel-width);
  grid-template-rows: minmax(0, 1fr);
  /* Legacy .live-earth-page has flex:1; keep its content from growing the shell. */
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: var(--le-height);
  max-height: var(--le-height);
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  isolation: isolate;
}
@supports (height: 100dvh) {
  .le-page { --le-height: max(34rem, calc(100dvh - var(--header-h) - 5rem)); }
}
.le-page *, .le-page *::before, .le-page *::after { box-sizing: border-box; }
.le-page [hidden] { display: none !important; }
.le-page > .dash-earth-board {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100% !important;
  border: 0;
  border-radius: 15px 0 0 15px;
}
.le-page.is-panel-collapsed { grid-template-columns: minmax(0, 1fr); }
.le-page.is-panel-collapsed > .dash-earth-board { border-radius: 15px; }
.le-page.is-panel-collapsed > .le-panel { display: none; }
.le-page .dash-earth-map-gl .maplibregl-canvas { filter: none; }
.le-page .dash-earth-scrim { opacity: .48; }
.le-page .dash-earth-status {
  top: auto;
  left: 14px;
  bottom: calc(var(--le-attribution-height, 24px) + 12px);
  right: auto;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  min-height: 30px;
  border-radius: 8px;
  font-size: .75rem;
  white-space: normal;
  box-shadow: none;
}
.le-page .dash-earth-status > span { animation: none; }
.le-page .dash-earth-preparation {
  top: auto;
  bottom: 86px;
  left: 14px;
  right: 14px;
  width: auto;
  max-width: 440px;
  min-width: 0;
  transform: none;
}
.le-page .dash-earth-prep-head, .le-page .dash-earth-prep-sub { flex-wrap: wrap; }
.le-page .dash-earth-prep-stages { flex-wrap: wrap; }
.le-page .dash-earth-map-gl .maplibregl-ctrl-top-right {
  top: auto;
  bottom: calc(var(--le-attribution-height, 24px) + 72px);
  right: 12px;
  transform: none;
}
.le-page .dash-earth-map-gl .maplibregl-ctrl-bottom-right { max-width: 100%; opacity: 1; }
.le-page .dash-earth-map-gl .maplibregl-ctrl-attrib {
  max-width: 100%;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: .7rem;
  line-height: 1.5;
  opacity: 1;
}
.le-page .dash-earth-map-gl .maplibregl-ctrl-attrib[open] { padding: 9px 52px 9px 12px; }
.le-page .dash-earth-map-gl .maplibregl-ctrl-attrib:not([open]) {
  box-sizing: border-box;
  width: 44px;
  max-width: 44px;
  padding: 0;
  overflow: hidden;
}
.le-page .dash-earth-map-gl .maplibregl-ctrl-attrib:not([open]) .maplibregl-ctrl-attrib-inner { display: none; }
.le-page .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner { max-height: min(12rem, 30svh); overflow: auto; overscroll-behavior: contain; }
.le-page .maplibregl-ctrl-attrib a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.le-page .dash-earth-map-gl .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text);
  background-color: var(--surface-muted);
  background-image: none;
}
.le-page .maplibregl-ctrl-attrib-button::before { content: "ⓘ"; font-size: 1.2rem; font-weight: 700; }
.le-page .maplibregl-ctrl-group button { min-width: 44px; min-height: 44px; }
.le-page .dash-map-pill--wxstamp { max-width: calc(100% - 28px); white-space: normal; }
.le-page .dash-flyover-exit { max-width: calc(100% - 28px); min-height: 44px; white-space: normal; }
.le-page .live-earth-empty { bottom: 124px; max-height: calc(100% - 220px); overflow: auto; }

/* A single compact tool row replaces overlapping floating controls. */
.le-page .le-toolbar {
  position: absolute;
  z-index: 6;
  inset: 14px 14px auto;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  pointer-events: none;
}
.le-page .le-toolbar > * { pointer-events: auto; min-width: 0; max-width: 100%; }
.le-page .le-toolbar:has(.le-layers[open]) { z-index: 9; }
.le-page .le-toolbar .dash-earth-scope,
.le-page .le-toolbar .dash-earth-actions,
.le-page .le-controls {
  position: static;
  inset: auto;
  transform: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--le-glass);
  backdrop-filter: none;
  box-shadow: var(--shadow);
}
.le-page .le-toolbar .dash-earth-actions { margin-left: auto; }
.le-page .le-toolbar .dash-earth-scope { flex: 0 0 auto; width: max-content; }
.le-page .le-toolbar .dash-earth-scope button,
.le-page .le-toolbar .dash-earth-actions button { flex: 1 0 auto; min-width: 44px; overflow-wrap: normal; word-break: normal; }
.le-page .dash-earth-board > .le-controls {
  position: absolute;
  z-index: 6;
  inset: auto 14px calc(var(--le-attribution-height, 24px) + 12px) auto;
  max-width: calc(100% - 28px);
}
.le-page .le-toolbar button,
.le-page .le-controls button,
.le-page .le-layers > summary {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}
.le-page .le-toolbar button:hover,
.le-page .le-controls button:hover,
.le-page .le-layers > summary:hover { color: var(--text); background: var(--surface-muted); }
.le-page .le-toolbar button.on,
.le-page .le-toolbar button[aria-pressed="true"],
.le-page .le-controls button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: none;
}
.le-page .le-toolbar > button {
  flex: 0 0 auto;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: var(--le-glass);
  box-shadow: var(--shadow);
}
.le-page .le-layers {
  position: static;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--le-glass);
  box-shadow: var(--shadow);
}
.le-page .le-layers > summary { list-style: none; }
.le-page .le-layers > summary::-webkit-details-marker { display: none; }
.le-page .le-layers > summary::after { content: "⌄"; margin-left: 2px; }
.le-page .le-layers[open] > summary::after { transform: rotate(180deg); }
.le-page .le-layers > :not(summary) { pointer-events: auto; }
.le-page .le-layer-body {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, 100%);
  max-width: 100%;
  max-height: min(28rem, calc(100svh - 200px));
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: auto;
  overscroll-behavior: contain;
}
.le-page .le-layer-body .dash-earth-actions { margin: 0 8px 8px; max-width: calc(100% - 16px); box-shadow: none; }
.le-page .le-layer-body .le-hint { max-width: 280px; margin: 0; padding: 10px 12px; color: var(--muted); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.le-page .le-layers .dash-earth-rail {
  position: static;
  inset: auto;
  transform: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(300px, calc(100vw - 60px));
  max-width: 100%;
  gap: 6px;
  padding: 8px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.le-page .le-layers .dash-earth-rail button {
  justify-content: flex-start;
  padding: 8px;
  gap: 8px;
  text-align: left;
  color: var(--text);
}
.le-page .le-layers .dash-earth-rail b {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 1.15rem;
}
.le-page .le-layers .dash-earth-rail button span { font-size: .78rem; }
.le-page .le-layers .dash-earth-rail .on b { color: var(--accent); box-shadow: none; }
.le-page .le-layers label { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; font-size: .8rem; }
.le-page .le-layers select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

/* The reading surface is opaque: no expensive nested glass on the map. */
.le-page .le-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-radius: 0 15px 15px 0;
  background: var(--surface);
  overflow: hidden;
}
.le-page .le-panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 15px 18px 11px;
}
.le-page .le-panel-head > :first-child { min-width: 0; }
.le-page .le-panel-head h2,
.le-page .le-panel-head h3,
.le-page .le-panel-head strong { margin: 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.le-page .le-panel button {
  min-height: 44px;
  max-width: 100%;
  font: inherit;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}
.le-page .le-panel-head button {
  flex: 0 0 auto;
  min-width: 44px;
  max-width: 48%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: .8rem;
  cursor: pointer;
}
.le-page .le-panel-stats { flex: 0 0 auto; padding: 0 18px 14px; }
.le-page .le-panel-stats > p { margin: 0 0 8px; color: var(--muted); font-size: .75rem; }
.le-page .le-panel .dash-earth-mini-stats {
  position: static;
  inset: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  width: 100%;
  min-width: 0;
  color: var(--muted);
}
.le-page .le-panel .dash-earth-mini-stats span {
  min-width: 0;
  padding: 8px 9px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  font-size: .7rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.le-page .le-panel .dash-earth-mini-stats span:first-child { padding-left: 0; border-left: 0; }
.le-page .le-panel .dash-earth-mini-stats b {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.2;
}
.le-page .le-panel .dash-earth-mini-stats span:first-child b { color: var(--accent-strong); }
.le-page .le-next { flex: 0 0 auto; padding: 14px 18px; border-top: 1px solid var(--line); }
.le-page .le-panel .dash-earth-duty-pill {
  position: static;
  inset: auto;
  transform: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  backdrop-filter: none;
  box-shadow: none;
  white-space: normal;
  overflow: visible;
}
.le-page .le-panel .dash-earth-duty-pill > span { display: none; }
.le-page .le-panel .dash-earth-duty-pill em,
.le-page .le-panel .dash-earth-duty-pill small,
.le-page .le-panel .dash-earth-duty-pill b {
  grid-column: auto;
  min-width: 0;
  color: var(--muted);
  font-size: .8rem;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.le-page .le-panel .dash-earth-duty-pill b { color: var(--text); font-size: 1.45rem; letter-spacing: -.02em; }
.le-page .le-panel-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 16px 18px 22px;
  border-top: 1px solid var(--line);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.le-page .le-panel-body > * { min-width: 0; max-width: 100%; }
.le-page .le-month-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.le-page .le-month-nav > :not(button) { flex: 1; min-width: 0; text-align: center; font-size: .88rem; overflow-wrap: anywhere; }
.le-page .le-month-nav button {
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
}
.le-page .le-flights { display: grid; gap: 7px; }
.le-page .le-flight {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.le-page .le-flight:hover { border-color: var(--accent); }
.le-page .le-flight[aria-pressed="true"],
.le-page .le-flight.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.le-page .le-flight strong, .le-page .le-flight b { font-size: 1rem; }
.le-page .le-flight small, .le-page .le-flight > span { color: var(--muted); font-size: .78rem; }
.le-page .le-kicker { margin: 0 0 7px; color: var(--muted); font-size: .75rem; font-weight: 650; line-height: 1.5; }
.le-page .le-flights h3 { margin: 0 0 3px; font-size: .95rem; }
.le-page .le-route-detail { display: grid; gap: 14px; }
.le-page .le-route-detail h2,
.le-page .le-route-detail h3 { margin: 0; color: var(--text); font-size: 1.6rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.le-page .le-route-detail p { margin: 0; font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.le-page .le-route-detail dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; margin: 0; }
.le-page .le-route-detail dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.le-page .le-route-detail dt { color: var(--muted); font-size: .78rem; }
.le-page .le-route-detail dd { margin: 0; font-size: .88rem; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.le-page .le-route-detail dl > dd { padding: 0 0 12px; border-bottom: 1px solid var(--line); text-align: left; }
.le-page .le-route-detail details { border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.le-page .le-route-detail details > summary { min-height: 44px; padding: 10px 12px; font-size: .8rem; cursor: pointer; }
.le-page .le-route-detail details > :not(summary) { margin: 0 12px 12px; max-width: calc(100% - 24px); }
.le-page .le-route-detail .le-hint { color: var(--muted); font-size: .76rem; }
.le-page .le-route-detail button,
.le-page .le-next > button {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
}
.le-page .le-next > button { margin-top: 12px; }
.le-page .le-next > .le-flight { text-align: left; background: var(--surface-muted); color: var(--text); border-color: var(--line); }
.le-page .le-route-detail button.primary { background: var(--accent); color: var(--surface); }
.le-page .le-quality { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.le-page .le-quality legend { color: var(--muted); font-size: .78rem; padding: 0 4px; }
.le-page .le-quality button { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface-muted); font-size: .78rem; cursor: pointer; }
.le-page .le-quality button[aria-pressed="true"] { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent); }
.le-page .le-data-status {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: .78rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.le-page .le-data-status > summary { padding: 12px; min-height: 44px; color: var(--text); font-weight: 650; cursor: pointer; }
.le-page .le-data-status > :not(summary) { margin: 0; padding: 0 12px 12px; }
.le-page .le-data-status p { margin: 0 0 9px; }
.le-page .le-data-status a { color: var(--accent-strong); text-underline-offset: 3px; }
.le-page .le-data-status dl > div { margin-bottom: 10px; }
.le-page .le-data-status dt { color: var(--text); font-weight: 650; }
.le-page .le-data-status dd { margin: 2px 0 0; }
.le-page .le-data-status dl > dd { margin-bottom: 12px; }
.le-page .le-empty { padding: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }

/* Relocated legacy calendar retains its event handlers and semantic hidden state. */
.le-page .le-panel .dash-earth-calendar,
.le-page .le-panel .dash-earth-calendar.is-collapsed {
  position: static;
  inset: auto;
  transform: none;
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.le-page .le-panel .dash-earth-calendar strong { color: var(--text); }
.le-page .le-panel .dash-earth-calendar em { color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.le-page .le-panel .dash-earth-cal-kicker { color: var(--accent-strong); font-size: .7rem; }
.le-page .le-panel .dash-earth-cal-toggle { width: 44px; color: var(--text); background: var(--surface-muted); border-color: var(--line); border-radius: 8px; }
.le-page .le-panel .dash-earth-cal-week,
.le-page .le-panel .dash-earth-cal-grid { gap: 3px; }
.le-page .le-panel .dash-earth-cal-week b { color: var(--muted); font-size: .72rem; }
.le-page .le-panel .dash-earth-cal-day { min-width: 0; min-height: 44px; padding: 0; color: var(--text); background: var(--surface-muted); font-size: .75rem; }
.le-page .le-panel .dash-earth-cal-day.outside { color: var(--muted); background: transparent; }
.le-page .le-panel .dash-earth-cal-day.today { color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent); }
.le-page .le-panel .dash-earth-cal-day.selected { color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.le-page .le-panel .dash-earth-cal-day i { background: var(--accent); }
.le-page .le-panel .dash-earth-cal-day i.duty { background: var(--ok); }
.le-page .le-panel .dash-earth-cal-day i.off { background: var(--muted); }
.le-page .le-panel .dash-earth-cal-brief { color: var(--text); border-color: var(--line); gap: 8px; padding-top: 10px; }
.le-page .le-panel .dash-earth-brief-head { flex-wrap: wrap; }
.le-page .le-panel .dash-earth-brief-head b { color: var(--accent-strong); }
.le-page .le-panel .dash-earth-brief-row { grid-template-columns: 3rem minmax(0, 1fr); }
.le-page .le-panel .dash-earth-brief-row b,
.le-page .le-panel .dash-earth-brief-row span { color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.le-page .le-panel .dash-earth-brief-row em { grid-column: 2; justify-self: start; color: var(--muted); background: var(--surface-muted); }
.le-page .le-panel .dash-earth-brief-row em.flight { color: var(--accent-strong); background: var(--accent-soft); }
.le-page .le-panel .dash-earth-brief-empty,
.le-page .le-panel .dash-earth-brief-more { color: var(--muted); }
.le-page :is(button, summary, select, a):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.le-page button:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 899px) {
  .le-page,
  .le-page.is-panel-collapsed {
    --le-height: max(34rem, calc(100svh - var(--header-h) - 6rem));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: var(--le-height);
    min-height: 0;
    border-radius: 13px;
  }
  @supports (height: 100dvh) {
    .le-page, .le-page.is-panel-collapsed { --le-height: max(34rem, calc(100dvh - var(--header-h) - 6rem)); }
  }
  .le-page > .dash-earth-board,
  .le-page.is-panel-collapsed > .dash-earth-board { grid-area: 1 / 1; height: 100% !important; min-height: 0; border-radius: 12px; }
  .le-page .le-toolbar { inset: 10px 10px auto; gap: 6px; }
  .le-page .le-toolbar .dash-earth-actions { margin-left: 0; }
  .le-page .le-toolbar .dash-earth-actions button { font-size: .75rem; padding: 8px; }
  .le-page .le-toolbar .dash-earth-scope button { font-size: .78rem; }
  .le-page .le-toolbar .dash-earth-mobile-fpl { display: none; }
  .le-page .le-layer-body { max-height: max(44px, calc(var(--le-height) - var(--le-sheet-height, 17rem) - 9em)); }
  .le-page .dash-earth-board > .le-controls {
    inset: auto 8px calc(var(--le-sheet-height, 17rem) + var(--le-attribution-height, 44px) + 12px) auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(44px, 1fr));
    gap: 2px;
    max-width: calc(100% - 16px);
  }
  .le-page .le-panel,
  .le-page.is-panel-collapsed .le-panel {
    grid-area: 1 / 1;
    z-index: 7;
    display: flex;
    align-self: end;
    width: 100%;
    max-height: 72%;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 20px 20px 12px 12px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 26px color-mix(in srgb, var(--bg) 22%, transparent);
  }
  .le-page .le-panel::before { content: ""; width: 36px; height: 4px; flex: 0 0 4px; margin: 8px auto 0; border-radius: 4px; background: var(--line-strong); }
  .le-page .le-panel-head { padding: 7px 16px; gap: 8px; }
  .le-page .le-panel-head :is(h2, h3, strong) { font-size: .9rem; }
  .le-page .le-panel-stats { padding: 0 16px 10px; }
  .le-page .le-panel-stats .dash-earth-mini-stats b { font-size: 1rem; }
  .le-page .le-next { padding: 9px 16px 12px; }
  .le-page .le-next .dash-earth-duty-pill { gap: 2px; }
  .le-page .le-next .dash-earth-duty-pill b { font-size: 1.2rem; }
  .le-page .le-next .dash-earth-duty-pill em,
  .le-page .le-next .dash-earth-duty-pill small { font-size: .75rem; }
  .le-page .le-next > button { margin-top: 8px; padding: 8px; }
  /* Map-first mobile resting state: one compact journey handle, not a card that
     consumes the lower half of the globe. Full totals and flights remain behind
     the same explicit expand action. */
  .le-page:not(.is-sheet-open) .le-panel-stats,
  .le-page:not(.is-sheet-open) .le-next { display: none; }
  .le-page .le-panel-body { display: none; padding: 14px 16px 20px; }
  .le-page.is-sheet-open .le-panel { max-height: 100%; }
  .le-page.is-sheet-open .le-panel-body { display: grid; }
  .le-page.is-sheet-open .le-next { display: none; }
  .le-page.is-sheet-open .dash-earth-board > .le-controls { visibility: hidden; }
  .le-page .dash-earth-status { bottom: auto; top: 124px; left: 10px; right: auto; max-width: calc(100% - 72px); font-size: .7rem; }
  .le-page .dash-earth-preparation { top: 170px; bottom: auto; left: 10px; right: 10px; }
  .le-page .dash-earth-map-gl .maplibregl-ctrl-top-right { top: auto; bottom: calc(var(--le-sheet-height, 17rem) + var(--le-attribution-height, 44px) + 120px); right: 8px; }
  .le-page .dash-earth-map-gl .maplibregl-ctrl-bottom-right,
  .le-page .dash-earth-map-gl .maplibregl-ctrl-bottom-left { bottom: calc(var(--le-sheet-height, 17rem) + 5px); max-width: calc(100% - 20px); }
  .le-page .live-earth-empty { top: 180px; bottom: auto; max-height: calc(100% - 390px); }
  .le-page .dash-map-pill--wxstamp { bottom: auto; top: 157px; left: 10px; right: auto; font-size: .68rem; }
}
@media (max-width: 380px) {
  .le-page .le-toolbar { gap: 4px; inset-inline: 6px; }
  .le-page .le-toolbar button, .le-page .le-layers > summary { padding-inline: 8px; }
  .le-page .le-panel-head, .le-page .le-next, .le-page .le-panel-body { padding-inline: 12px; }
  .le-page .le-panel-stats { padding-inline: 12px; }
  .le-page .le-route-detail dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .le-page .le-route-detail dd { text-align: left; }
}
@media (max-height: 520px) and (max-width: 899px) {
  .le-page { --le-height: 34rem; }
  .le-page.is-sheet-open .le-panel { max-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .le-page *, .le-page *::before, .le-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
