/* mapa-lotu.css — wspólna mapa lotu (MapaLotu) + ekran „Po locie” (Z68/E2+E3).
   Wzór: docs/mockups/hodowla-dzien-lotu--claude.html. Elementy NA MAPIE (chmurki, etykiety, legenda, chipy)
   mają stałe jasne kolory jak makieta — podkład „positron” jest jasny w każdym motywie. Panel boczny
   korzysta z kolorów motywu DaisyUI (zmienne --b1/--b2/--b3/--bc/--p). Prefiksy: ml- (mapa), pl- (strona). */

/* ===== Mapa ===== */
.ml-wrap { position: relative; width: 100%; height: 100%; min-height: 220px; background: #eceae4; overflow: hidden; }
/* Selektor .ml-wrap .ml-map: maplibre-gl.css (ladowany leniwie, PO tym pliku) ustawia .maplibregl-map{position:relative} — bez wyzszej specyficznosci mapa ma wysokosc 0. */
.ml-wrap .ml-map, .ml-wrap .ml-map.maplibregl-map { position: absolute; inset: 0; }
.ml-map .maplibregl-ctrl-attrib { font-size: 10.5px; }
.ml-map .maplibregl-popup { z-index: 8; }
.ml-map .maplibregl-popup-close-button { width: 44px; height: 44px; right: 2px; top: 2px; display: grid; place-items: center; font-size: 26px; line-height: 1; color: #26241f; border-radius: 8px; cursor: pointer; }
.ml-map .maplibregl-popup-close-button:hover { background: #e7f0eb; }
.ml-map .maplibregl-popup-close-button:focus-visible { outline: 2px solid #2f6b4f; outline-offset: -3px; }

.ml-tools { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; z-index: 6; max-width: calc(100% - 24px); }
.ml-basemaps { display: flex; gap: 4px; }
.ml-google { position: relative; }
.ml-google summary { list-style: none; }
.ml-google summary::-webkit-details-marker { display: none; }
.ml-google-links { position: absolute; top: calc(100% + 5px); right: 0; width: 225px; padding: 6px; border-radius: 10px; background: #fff; color: #26241f; box-shadow: 0 3px 15px rgba(0,0,0,.2); }
.ml-google-links a { display: block; padding: 10px 8px; font-size: 13px; color: #2f6b4f; text-decoration: none; border-radius: 6px; }
.ml-google-links a:hover, .ml-google-links a:focus-visible { background: #e7f0eb; }
.ml-google-links small { display: block; padding: 5px 8px; font-size: 10px; color: #57534a; }
.ml-photo-note { position: absolute; top: 52px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,.95); color: #26241f; font-size: 10px; z-index: 2; }
.ml-navigation { position: absolute; top: 120px; left: 12px; display: flex; gap: 6px; max-width: calc(100% - 24px); z-index: 4; }
.ml-navigation .ml-chip { min-height: 36px; }
.ml-wrap.ml-fullscreen { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important; z-index: 10000; border-radius: 0; }
.ml-map-expanded { overflow: hidden; }
.fade-in:has(.ml-fullscreen) { animation: none; transform: none; }
.ml-fullscreen .dl-timeline { display: flex !important; }
.ml-wrap.ml-fullscreen:has(.dl-timeline) .maplibregl-ctrl-bottom-right { bottom: 125px; }
@media (max-width: 767px) {
  .ml-fullscreen .dl-hours { display: flex; overflow-x: auto; }
  .ml-fullscreen .dl-hr { flex: 0 0 54px; }
}
.ml-map .maplibregl-ctrl-fullscreen, .ml-map .maplibregl-ctrl-shrink { width: 44px; height: 44px; }
/* Dzień lotu: kontrolki i źródła nad osią godzin; pełny ekran obejmuje również przyciski i oś. */
.dl .ml-map .maplibregl-ctrl-bottom-right { bottom: 125px; }
.ml-chips { position: absolute; top: 80px; left: 12px; display: flex; gap: 6px; z-index: 5; flex-wrap: wrap; max-width: calc(100% - 24px); }
.ml-chip {
  background: #fff; border: 1px solid #e6e4df; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: #57534a;
  cursor: pointer; display: inline-flex; gap: 5px; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); min-height: 32px; line-height: 1;
}
.ml-chip:hover { border-color: #2f6b4f; }
.ml-chip:focus-visible { outline: 2px solid #2f6b4f; outline-offset: 2px; }
.ml-chip[aria-pressed="true"] { background: #2f6b4f; border-color: #2f6b4f; color: #fff; }
.ml-chip svg { width: 15px; height: 15px; flex: none; }

.ml-legend {
  position: absolute; top: 12px; right: 12px; background: #fff; border: 1px solid #e6e4df; border-radius: 10px;
  padding: 8px 10px; font-size: 11.5px; color: #57534a; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,.08); max-width: 200px; line-height: 1.35;
}
.ml-legend b { display: block; font-weight: 600; color: #26241f; }
.ml-legend small { display: block; color: #7a766c; font-size: 10.5px; }
.ml-legend .row { display: flex; gap: 10px; margin-top: 5px; }
.ml-legend .t { color: #2f6b4f; font-weight: 600; }
.ml-legend .h { color: #b4531f; font-weight: 600; }
.ml-legend .n { color: #7a766c; font-weight: 600; }

.ml-msg {
  position: absolute; top: 52px; left: 12px; z-index: 2; background: #fff6e0; border: 1px solid #e2c27a; color: #6b4d0c;
  font-size: 12px; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.ml-attr { font-size: 10.5px; color: oklch(var(--bc) / .7); line-height: 1.4; }
.ml-sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 11px; }
.ml-sources a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ml-source-details summary { cursor: pointer; min-height: 32px; padding: 7px 0; width: fit-content; }
.ml-source-details[open] { flex-basis: 100%; }
.ml-source-content p { margin: 0 0 6px; }
.ml-sources a:focus-visible, .ml-source-details summary:focus-visible { outline: 2px solid #2f6b4f; outline-offset: 2px; }

/* Znaczniki HTML na mapie */
.ml-pin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.ml-pin, .ml-lbl { z-index: 3; }
.ml-description-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.ml-description-lines line { stroke: #6b665b; stroke-width: 1; stroke-opacity: .65; }
.ml-lbl { background: #26241f; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; width: max-content; pointer-events: none; }
.ml-punkt { pointer-events: auto; cursor: pointer; }
.ml-punkt:focus-visible { outline: 3px solid #4f8fc7; outline-offset: 4px; }
.ml-pin.ml-punkt::before { content: ''; position: absolute; width: 40px; height: 40px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ml-point-info { color: #26241f; font-size: 12px; line-height: 1.4; max-height: 235px; overflow-y: auto; padding: 3px; }
.ml-point-info h3 { margin: 0 38px 6px 0; min-height: 32px; font-size: 14px; font-weight: 600; }
.ml-point-info p { margin: 6px 0; }
.ml-point-info button, .ml-point-info a { display: block; margin-top: 6px; padding: 8px; border-radius: 6px; font-size: 12px; text-align: center; }
.ml-point-info button { width: 100%; background: #2f6b4f; color: #fff; border: 0; cursor: pointer; }
.ml-point-info a { color: #2f6b4f; background: #e7f0eb; text-decoration: none; }
.ml-flight-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 10px 0 14px; }
.ml-flight-picker label, .ml-flight-choice { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.ml-flight-picker select { padding: 8px; min-height: 40px; border: 1px solid oklch(var(--bc) / .25); border-radius: 8px; background: oklch(var(--b1)); color: oklch(var(--bc)); font: inherit; max-width: 100%; }
.ml-flight-choice { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.ml-flight-choice select { width: auto; }
.ml-flight-select { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ml-flight-select select { min-width: 0; }
.ml-flight-step { flex: none; width: 44px; height: 40px; border: 1px solid oklch(var(--bc) / .25); border-radius: 8px; background: oklch(var(--b1)); color: oklch(var(--bc)); font-size: 24px; line-height: 1; cursor: pointer; }
.ml-flight-step:disabled { opacity: .35; cursor: default; }
.ml-flight-step:focus-visible { outline: 2px solid #2f6b4f; outline-offset: 2px; }
.ml-flight-picker span { font-size: 12px; }
.ml-flight-picker span button { text-decoration: underline; }
.ml-wx {
  z-index: 2;
  background: #fff; border: 1px solid #d9d6cf; border-radius: 10px; padding: 4px 8px; font-size: 11.5px; color: #26241f;
  box-shadow: 0 2px 6px rgba(0,0,0,.12); white-space: nowrap; display: flex; gap: 6px; align-items: center; width: max-content; line-height: 1.3;
}
.ml-wx svg { color: #6b665b; flex: none; }
.ml-wx b { font-size: 12.5px; }
.ml-wx .c { color: #7a766c; }
.ml-wx .h { color: #b4531f; font-weight: 700; }
.ml-wx .t { color: #2f6b4f; font-weight: 700; }
.ml-wx .n { color: #7a766c; }
.ml-wx.storm { border-color: #c4512b; background: #fff6f3; }
/* Telefon: chmurka w jednej linii (wiatr + składowa wzdłuż), żeby 3 chmurki nie nachodziły na siebie na mapie 330 px. */
.ml-wx.kompakt { padding: 3px 7px; gap: 5px; font-size: 11px; }
.ml-wx.kompakt svg { width: 15px; height: 15px; }
.ml-wx.kompakt b { font-size: 11.5px; }
.ml-wx.storm svg { color: #c4512b; }

/* ===== Strona „Po locie” ===== */
.pl {
  --pl-bg: oklch(var(--b2)); --pl-card: oklch(var(--b1)); --pl-border: oklch(var(--b3));
  --pl-txt: oklch(var(--bc)); --pl-txt2: oklch(var(--bc) / .82); --pl-txt3: oklch(var(--bc) / .7);
  --pl-primary: oklch(var(--p)); --pl-primary-soft: oklch(var(--p) / .12);
  /* R38 (próba): zielony akcent panelu liczony ze skórki — zieleń „success” motywu przyciemniona/rozjaśniona kolorem tekstu,
     żeby trzymała kontrast w każdej skórce. Wycofanie próby = jedna linia: --pl-akcent: var(--pl-primary); */
  --pl-akcent: color-mix(in oklab, oklch(var(--su)) 65%, oklch(var(--bc)));
  --pl-ok: #2f6b4f; --pl-ok-bg: #e7f0eb; --pl-warn: #8a5a12; --pl-warn-bg: #f8eedb; --pl-bad: #9b2c2c; --pl-bad-bg: #f8e3e1;
  --pl-head: #b4531f; --pl-tail: #2f6b4f; --pl-band: #e2c27a;
  /* Dzień lotu: lekki odcień akcentu (aktywna godzina, wiersz) i kolor tekstu na tle akcentu (przyciski, ▶). */
  --pl-akcent-soft: color-mix(in oklab, var(--pl-akcent) 12%, transparent); --pl-on-akcent: #fff;
}
:is([data-theme="dark"], [data-theme="forest"], [data-theme="dracula"], [data-theme="luxury"], [data-theme="night"], [data-theme="business"], [data-theme="coffee"], [data-theme="dim"]) .pl {
  --pl-ok: #8fd1ae; --pl-ok-bg: rgba(47,107,79,.35); --pl-warn: #f0c47a; --pl-warn-bg: rgba(138,90,18,.35); --pl-bad: #f2a3a3; --pl-bad-bg: rgba(155,44,44,.35);
  --pl-head: #e8905e; --pl-tail: #7fcaa3; --pl-band: #a98a3d; --pl-on-akcent: #10231a;
}

.pl { animation: pl-fade .3s ease-in-out; }
@keyframes pl-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .pl { animation: none; } }

.pl-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; border: 1px solid var(--pl-border); border-radius: 14px; overflow: hidden;
  background: var(--pl-card); height: calc(100vh - 150px); min-height: 560px;
}
.pl-mapcol { position: relative; min-width: 0; min-height: 0; }
.pl-panel { background: var(--pl-card); border-left: 1px solid var(--pl-border); overflow: auto; padding: 16px 18px 20px; color: var(--pl-txt); min-width: 0; }

.pl-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--pl-txt2); text-decoration: none; background: none; border: 0; padding: 0 0 6px; cursor: pointer; min-height: 28px; }
.pl-back:hover { color: var(--pl-akcent); text-decoration: underline; }
.pl-eyebrow { font-size: 11.5px; color: var(--pl-txt3); text-transform: uppercase; letter-spacing: .5px; }
.pl-title { font-size: 18px; font-weight: 700; margin: 3px 0 4px; line-height: 1.25; }
.pl-meta { font-size: 12.5px; color: var(--pl-txt2); display: flex; gap: 4px 12px; flex-wrap: wrap; }

.pl-card { border: 1px solid var(--pl-border); border-radius: 12px; padding: 12px 14px; margin-top: 12px; background: var(--pl-card); }
.pl-card h3 { font-size: 12.5px; color: var(--pl-txt3); font-weight: 600; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pl-card h3 .r { font-weight: 400; }

.pl-pill { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pl-pill.ok { background: var(--pl-ok-bg); color: var(--pl-ok); }
.pl-pill.warn { background: var(--pl-warn-bg); color: var(--pl-warn); }
.pl-pill.bad { background: var(--pl-bad-bg); color: var(--pl-bad); }
.pl-pill.brak { background: var(--pl-bg); color: var(--pl-txt2); }
.pl-pill svg { width: 14px; height: 14px; flex: none; }

.pl-verdict { font-size: 15px; font-weight: 600; margin: 8px 0 6px; line-height: 1.35; }
.pl-reasons { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--pl-txt2); display: grid; gap: 6px; }
.pl-reasons li { display: flex; gap: 8px; align-items: flex-start; }
.pl-reasons svg { width: 16px; height: 16px; color: var(--pl-txt3); flex: none; margin-top: 1px; }

.pl-kgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-k { background: var(--pl-bg); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.pl-k b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.pl-k span { font-size: 11.5px; color: var(--pl-txt3); }
.pl-note { font-size: 12px; color: var(--pl-txt3); margin: 8px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }

.pl-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pl-tbl th, .pl-tbl td { padding: 6px 4px; border-bottom: 1px solid var(--pl-border); text-align: left; }
.pl-tbl th { font-weight: 600; color: var(--pl-txt3); font-size: 11.5px; }
.pl-tbl td.num, .pl-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pl-tbl tr.best td { font-weight: 700; }
.pl-tbl tr:last-child td { border-bottom: 0; }
.pl-tbl a, .pl-link { color: var(--pl-akcent); cursor: pointer; }
.pl-link { text-decoration: underline; }
.pl-tbl-more { font-size: 12px; color: var(--pl-txt3); margin: 6px 0 0; }

.pl-okno { position: relative; height: 30px; background: var(--pl-bg); border-radius: 8px; margin: 6px 0 4px; overflow: hidden; }
.pl-okno .band { position: absolute; top: 4px; bottom: 4px; background: var(--pl-band); border-radius: 6px; }
.pl-okno .mine { position: absolute; top: 4px; bottom: 4px; background: var(--pl-akcent); border-radius: 6px; opacity: .85; min-width: 4px; }
.pl-okno-l { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--pl-txt3); flex-wrap: wrap; }
.pl-legend2 { font-size: 12.5px; color: var(--pl-txt2); margin: 6px 0 0; line-height: 1.5; display: flex; gap: 4px 14px; flex-wrap: wrap; }
.pl-legend2 i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: baseline; }

.pl-btns { display: flex; gap: 8px; margin-top: 14px; }
.pl-btn {
  flex: 1; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--pl-border); background: var(--pl-card);
  color: var(--pl-txt); cursor: pointer; display: inline-flex; gap: 6px; justify-content: center; align-items: center; min-height: 44px; text-decoration: none;
}
.pl-btn:hover { border-color: var(--pl-akcent); }
.pl-attr { margin-top: 12px; }

.pl-warn-box { border: 1px solid var(--pl-warn); background: var(--pl-warn-bg); color: var(--pl-warn); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-top: 12px; }

.pl-empty { border: 1px solid var(--pl-border); border-radius: 14px; background: var(--pl-card); padding: 28px 18px; text-align: center; color: var(--pl-txt); }
.pl-empty svg { width: 36px; height: 36px; color: var(--pl-txt3); margin: 0 auto 8px; display: block; }
.pl-empty p { margin: 0 0 12px; color: var(--pl-txt2); }

.pl-m-only { display: none; }
.pl-grab { display: none; }

/* ===== Telefon: mapa 400 px + arkusz z uchwytem pod spodem ===== */
@media (max-width: 767px) {
  .pl-grid { display: block; height: auto; min-height: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .pl-mapcol { height: 400px; border-radius: 14px 14px 0 0; overflow: hidden; }
  .pl-panel {
    border-left: 0; overflow: visible; margin-top: -14px; position: relative; z-index: 3; border-radius: 16px 16px 0 0;
    padding: 10px 14px 16px; box-shadow: 0 -4px 12px rgba(0,0,0,.06);
  }
  .pl-grab { display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--pl-border); margin: 0 auto 10px; }
  .pl-m-only { display: block; }
  .pl-d-only { display: none !important; }
  .pl-mhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 6px; }
  .pl-mhead .pl-title { font-size: 16px; margin: 0; }
  .pl-mverdict { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0 0 10px; }
  /* Telefon jak makieta: bez legendy na mapie (kolory trasy objaśniają chmurki „▲ w ogon / ▼ w dziób”). */
  .ml-legend { display: none; }
  .ml-legend small { display: none; }
  .ml-legend .row { margin-top: 2px; }
  .ml-chip { padding: 5px 9px; font-size: 11.5px; min-height: 30px; }
  .ml-msg { top: 48px; }
  .dl .ml-map .maplibregl-ctrl-bottom-right { bottom: 14px; }
  .pl-back { min-height: 36px; }

  /* Dzień lotu: warstwy także na telefonie; oś godzin w arkuszu, szczegóły pod przyciskiem „Szczegóły” */
  .dl .dl-timeline { display: none; }
  .dl .dl-m-tl { display: flex; gap: 6px; overflow-x: auto; margin: 10px -2px 0; padding: 0 2px 6px; -webkit-overflow-scrolling: touch; }
  .dl-m-tl .dl-m-in { position: relative; display: flex; gap: 6px; padding-top: 20px; min-width: max-content; }
  /* Telefon: kontener przewija się (overflow) — etykieta TERAZ mieści się w górnym marginesie osi, nie nad nim */
  .dl-m-tl .dl-teraz { top: 20px; bottom: 0; }
  .dl-m-tl .dl-teraz-l { margin-bottom: 0; }
  .dl-m-tl .dl-hr { min-width: 46px; flex: none; border: 1px solid var(--pl-border); background: var(--pl-card); color: var(--pl-txt2); min-height: 62px; }
  .dl-m-tl .dl-hr b { color: var(--pl-txt); }
  .dl-m-tl .dl-hr.on { border-color: var(--pl-akcent); background: var(--pl-akcent-soft); }
  .dl-m-tl .dl-hr .fl { bottom: -1px; }
  .dl-details:not(.open) { display: none; }
  .dl .dl-starts .dl-row td { padding: 12px 4px; }
}

/* mapa wypełnia kolumnę mapy (desktop: komórka siatki, telefon: 400 px) */
.pl-mapcol > .ml-wrap { position: absolute; inset: 0; height: auto; min-height: 0; }

/* ===== Mapa: stado i legenda ze skalą (Dzień lotu, E4.3) ===== */
.ml-flock {
  width: 14px; height: 14px; border-radius: 50%; background: #c4512b; border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(196,81,43,.25); pointer-events: none; z-index: 3;
}
.ml-legend .bar { height: 6px; width: 150px; max-width: 100%; border-radius: 3px; background: linear-gradient(90deg, #9cc3e6, #4f8fc7, #e0a43a, #c4512b); margin: 5px 0 3px; }
.ml-legend .sc { display: flex; justify-content: space-between; }

/* ===== Dzień lotu (E4.3) — prefiks dl-; wzór: makieta hodowla-dzien-lotu--claude.html ===== */
.dl-info { border: 1px solid var(--pl-border); background: var(--pl-bg); color: var(--pl-txt2); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-top: 12px; }

/* Oś godzin na dole mapy (desktop). Elementy NA MAPIE mają stałe jasne kolory jak makieta (podkład „positron” jest jasny w każdym motywie). */
.dl-timeline {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; background: #fff; border: 1px solid #e6e4df; border-radius: 12px;
  padding: 8px 10px; display: flex; gap: 8px; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.dl-play {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--pl-akcent); color: var(--pl-on-akcent); cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.dl-play svg { width: 16px; height: 16px; }
.dl-play:focus-visible, .dl-hr:focus-visible, .dl-row-btn:focus-visible { outline: 2px solid var(--pl-akcent); outline-offset: 2px; }
/* Liczba kolumn osi jest dynamiczna (≥ 10) — ustawia ją strona inline; 10 to wartość awaryjna. */
.dl-hours { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; flex: 1; min-width: 0; position: relative; }
.dl-hr {
  border: 1px solid transparent; border-radius: 8px; padding: 4px 0; text-align: center; font-size: 11.5px; color: #57534a; cursor: pointer;
  position: relative; background: none; font-family: inherit; min-width: 0; display: block;
}
.dl-hr .dl-h { display: block; }
.dl-hr .dl-ic { display: block; height: 18px; margin: 1px 0; }
.dl-hr .dl-ic svg { width: 16px; height: 16px; margin: 1px auto 0; display: block; }
.dl-hr b { display: block; font-weight: 600; color: #26241f; }
.dl-hr.on { border-color: var(--pl-akcent); background: var(--pl-akcent-soft); }
.dl-hr .fl { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 2px; }
.dl-hr.inflight .fl { background: #c9a24a; }

/* Telefon: oś przewijana poziomo w arkuszu (bez ▶) */
.dl-m-tl { display: none; }

/* Tabela „Porównaj godzinę startu” */
.dl-starts .dl-row { cursor: pointer; }
.dl-starts .dl-row td { padding: 9px 4px; }
.dl-starts .dl-row:hover td { background: var(--pl-bg); }
.dl-starts .dl-row.sel td { font-weight: 700; }
.dl-starts .dl-row:last-child td { border-bottom: 0; }
.dl-row-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; min-height: 28px; text-align: left; }
.dl-plan { color: var(--pl-txt2); font-weight: 400; }
.dl-hd { color: var(--pl-head); }
.dl-tl { color: var(--pl-tail); }
.pl-pill.dl-sm { padding: 2px 8px; }
.dl-sun { align-items: center; gap: 6px; }
.dl-sep { color: var(--pl-txt3); }
/* Meta „Dnia lotu”: ikony przed dystansem, kursem i czasem prognozy (jak makieta) */
.dl .pl-meta span { display: inline-flex; gap: 4px; align-items: center; }
.dl .pl-meta svg { width: 14px; height: 14px; flex: none; }
.dl .pl-mmeta { margin: 0 0 10px; }
.dl-sun span { display: inline-flex; gap: 4px; align-items: center; }
.dl-sun svg { width: 14px; height: 14px; flex: none; }
.dl-approx { align-items: center; gap: 6px; flex-wrap: nowrap; }
.dl-approx svg { width: 14px; height: 14px; flex: none; color: var(--pl-warn); }

/* Przycisk główny (koszowanie): akcent skórki z jasnym albo ciemnym tekstem zależnie od motywu */
.pl-btn.pri { background: var(--pl-akcent); border-color: var(--pl-akcent); color: var(--pl-on-akcent); }
.pl-btn.pri:hover { filter: brightness(1.06); border-color: var(--pl-akcent); }
.pl-btn:disabled { opacity: .55; cursor: not-allowed; }
.pl-btn:disabled:hover { border-color: var(--pl-border); filter: none; }
.pl-btn.pri:disabled:hover { border-color: var(--pl-akcent); }
.pl-btn svg { width: 16px; height: 16px; flex: none; }
.pl-btn:focus-visible { outline: 2px solid var(--pl-akcent); outline-offset: 2px; }

/* ===== Animowany wiatr (E5.1): canvas cząstek w kontenerze płótna mapy, pod markerami (chmurki, pinezki) ===== */
.ml-wiatr { position: absolute; left: 0; top: 0; pointer-events: none; }
.ml-legend .ml-anim-note { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .ml-wiatr { display: none; } }

/* ===== Lot na żywo (E6.3) — karta, znacznik TERAZ na osi, pulsujący marker stada ===== */
.dl { --pl-on-head: #fff; }
:is([data-theme="dark"], [data-theme="forest"], [data-theme="dracula"], [data-theme="luxury"], [data-theme="night"], [data-theme="business"], [data-theme="coffee"], [data-theme="dim"]) .dl { --pl-on-head: #2a1608; }

.dl-live h3 { align-items: center; }
.dl-live-h { display: inline-flex; gap: 8px; align-items: center; color: var(--pl-txt); font-size: 13.5px; font-weight: 700; }
/* Kropka bywa też poza .pl (kafelek Pulpitu) — stały kolor awaryjny */
.dl-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pl-head, #b4531f); flex: none; animation: dl-puls 1.8s ease-out infinite; }
@keyframes dl-puls {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--pl-head, #b4531f) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.dl-live-line { font-size: 13px; color: var(--pl-txt2); margin: 6px 0 0; line-height: 1.45; }
.dl-live-line b { color: var(--pl-txt); }
.dl-live-bar { position: relative; height: 10px; background: var(--pl-bg); border-radius: 8px; margin: 10px 0 2px; overflow: hidden; }
.dl-live-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--pl-akcent); border-radius: 8px; min-width: 4px; }
.dl-live-wx { display: flex; gap: 8px; align-items: flex-start; }
.dl-live-wx svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--pl-txt3); }

/* Znacznik TERAZ na osi godzin: pionowa kreska + etykieta HH:MM nad osią. Na desktopie oś leży na jasnym tle mapy — stałe kolory. */
.dl-teraz { position: absolute; top: -2px; bottom: -3px; width: 0; border-left: 2px solid var(--pl-head); z-index: 2; pointer-events: none; --teraz-bg: var(--pl-head); --teraz-txt: var(--pl-on-head); }
.dl-timeline .dl-teraz { border-left-color: #b4531f; --teraz-bg: #b4531f; --teraz-txt: #fff; }
.dl-teraz-l {
  position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); pointer-events: auto; cursor: pointer; border: 0;
  background: var(--teraz-bg); color: var(--teraz-txt); font: inherit; font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 3px 7px; border-radius: 999px; white-space: nowrap; margin-bottom: 2px;
}
/* Pole kliknięcia min. 44 px mimo małej etykiety */
.dl-teraz-l::after { content: ""; position: absolute; left: 50%; top: -20px; width: 44px; height: 44px; transform: translateX(-50%); }
.dl-teraz-l:focus-visible { outline: 2px solid var(--pl-akcent); outline-offset: 2px; }
.dl-timeline .dl-hours { margin-top: 20px; }

/* Marker stada „na żywo”: puls obwódki (animacja box-shadow — bez transform, bo ten zajmuje MapLibre) */
.ml-flock.na-zywo { animation: ml-flock-puls 1.8s ease-in-out infinite; }
@keyframes ml-flock-puls {
  0%, 100% { box-shadow: 0 0 0 4px rgba(196,81,43,.28); }
  50% { box-shadow: 0 0 0 11px rgba(196,81,43,.06); }
}
@media (prefers-reduced-motion: reduce) {
  .dl-live-dot, .ml-flock.na-zywo { animation: none; }
}

/* Z99: krótka kontrolka informacji; pełna legenda i dostępność pod i. */
.ml-weather-help { position: static; color: #26241f; }
.ml-weather-help summary { list-style: none; min-width: 36px; justify-content: center; font-weight: 700; }
.ml-weather-help summary::-webkit-details-marker { display: none; }
.ml-weather-alert { color: #9b2c2c; }
.ml-weather-panel { position: absolute; top: calc(100% + 5px); left: 0; width: 260px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 3px 15px rgba(0,0,0,.2); font-size: 12px; line-height: 1.4; max-height: 300px; overflow-y: auto; }
.ml-weather-panel p { margin: 6px 0; }
.ml-weather-panel small { display: block; color: #57534a; }
.ml-layer-status { padding-top: 6px; border-top: 1px solid #e6e4df; }
.ml-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.ml-key.rain { background: #4f8fc7; }.ml-key.possible { background: #e0a43a; }.ml-key.storm { background: #c4512b; }
.ml-wx[role=button] { cursor: pointer; }
.ml-wx[role=button]:focus-visible { outline: 2px solid #2f6b4f; outline-offset: 3px; }
.ml-photo-note button { text-decoration: underline; margin-left: 4px; min-height: 28px; }
@media (max-width: 767px) {
  .ml-weather-panel { width: min(280px, calc(100vw - 48px)); max-height: 260px; }
}

.ml-mobile-view { display: none; position: relative; }
.ml-mobile-view summary { list-style: none; }
.ml-mobile-view summary::-webkit-details-marker { display: none; }
.ml-view-links { position: absolute; top: calc(100% + 5px); right: 0; width: 150px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,.2); }
.ml-view-links .ml-chip { width: 100%; margin: 3px 0; border-radius: 6px; box-shadow: none; }
@media (max-width: 767px) {
  .ml-tools { flex-wrap: wrap; gap: 6px; }
  .ml-mobile-view { display: block; }
  .ml-navigation { display: none; }
  .ml-chips { top: 54px; }
  .ml-photo-note { top: auto; bottom: 52px; }
}

/* Kontrolki muszą przyjmować kliknięcie także, gdy pinezka stoi tuż pod nimi. */
.ml-map .maplibregl-ctrl-bottom-right, .ml-map .maplibregl-ctrl-bottom-left, .ml-map .maplibregl-ctrl-top-right, .ml-map .maplibregl-ctrl-top-left { z-index: 7; }
