:root {
  --bg: #0f1720;
  --panel: #17212c;
  --panel2: #1e2a37;
  --line: #2a3846;
  --text: #e6edf3;
  --muted: #8b9bab;
  --accent: #5fb3ff;
  --accent-text: #04121f;
  --header-bg: rgba(15, 23, 32, .96);
  --raw-bg: #111a23;
  --raw-text: #cfd9e3;
  --strip-bg: #0c131a;
  --row-line: #22303d;
  --fav-off: #4a5a6a;
  --na: #2b3642;
  --na-badge: #445263;
  --grid: #25323f;
  --grid-day: #34465a;
  --map-bg: #0a1622; --map-land: #1a2733; --map-other: #121c26; --map-border: #8fa3b6;
  --banner-bg: #3a2c10; --banner-line: #6b5016; --banner-text: #ffdca0;
  --info-bg: #10283a; --info-line: #1f4d6e; --info-text: #cfe8ff;
  --vfr: #2fbf71;
  --mvfr: #3d8bff;
  --ifr: #ff4d4f;
  --lifr: #d14dff;
  --warn: #f5b041;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
/* Motyw jasny */
:root[data-theme="light"] {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --panel2: #eef2f6;
  --line: #d9e0e8;
  --text: #15202b;
  --muted: #5b6b7b;
  --accent: #0b6fd1;
  --accent-text: #ffffff;
  --header-bg: rgba(243, 245, 248, .96);
  --raw-bg: #f1f4f8;
  --raw-text: #1d2a36;
  --strip-bg: #e3e8ee;
  --row-line: #e6ebf0;
  --fav-off: #a7b3bf;
  --na: #c9d2dc;
  --na-badge: #8b98a6;
  --grid: #e3e8ee;
  --grid-day: #c4cfda;
  --map-bg: #cfe0ee; --map-land: #fbfcfd; --map-other: #eceee6; --map-border: #5b6b7b;
  --banner-bg: #fff4dc; --banner-line: #f0cf8a; --banner-text: #6b4a00;
  --info-bg: #e7f2ff; --info-line: #b8d8fb; --info-text: #0b3d6e;
  --vfr: #1f9d5a;
  --mvfr: #2a6fe0;
  --ifr: #e0353a;
  --lifr: #b33ad9;
  --warn: #b7791f;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

.top { position: sticky; top: 0; z-index: 10; background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: calc(8px + var(--safe-top)) 12px 8px; }
.top-row { display: flex; align-items: center; gap: 8px; max-width: 980px; margin: 0 auto; }
h1 { font-size: 17px; margin: 0; flex: 1; font-weight: 650; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h1 .logo { width: 26px !important; height: 26px !important; max-width: 26px; border-radius: 7px; vertical-align: -6px; margin-right: 8px; }
h1 .sub { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 4px; }
.icon-btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; font-size: 18px; flex: none; }
.icon-btn.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.controls { display: flex; gap: 8px; margin: 8px auto 0; max-width: 980px; flex-wrap: wrap; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg button { background: none; border: 0; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
#search { flex: 1; min-width: 160px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 7px 10px; font-size: 15px; }

main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 10px 10px 20px; }
.banner { max-width: 980px; margin: 8px auto 0; width: calc(100% - 20px); padding: 8px 12px; border-radius: 10px; font-size: 13.5px;
  background: var(--banner-bg); border: 1px solid var(--banner-line); color: var(--banner-text); }
.banner.install { background: var(--info-bg); border-color: var(--info-line); color: var(--info-text); display: flex; gap: 10px; align-items: center; }
.banner.install button { background: var(--accent); color: var(--accent-text); border: 0; border-radius: 8px; padding: 5px 10px; font-weight: 600; }
.banner.install .x { background: none; color: var(--muted); padding: 0 4px; margin-left: auto; font-size: 18px; }

/* Lista */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; transition: border-color .15s; position: relative; }
.card:hover { border-color: var(--accent); }
.card-h { display: flex; align-items: center; gap: 8px; }
.icao { font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.name { color: var(--muted); font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav { background: none; border: 0; font-size: 19px; color: var(--fav-off); padding: 0 2px; line-height: 1; }
.fav.on { color: #ffc84a; }
.cat { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .4px; color: #fff; flex: none; }
.cat.VFR { background: var(--vfr); } .cat.MVFR { background: var(--mvfr); } .cat.IFR { background: var(--ifr); } .cat.LIFR { background: var(--lifr); }
.cat.NA { background: var(--na-badge); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; }
.facts span b { font-weight: 600; }
.facts .lbl { color: var(--muted); }
.raw { font-family: var(--mono); font-size: 12.5px; line-height: 1.45; color: var(--raw-text); white-space: pre-wrap; word-break: break-word;
  background: var(--raw-bg); border-radius: 8px; padding: 6px 8px; margin: 0; }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.age.old { color: var(--warn); }
.empty { color: var(--muted); text-align: center; padding: 40px 10px; }

/* Szczegóły */
.d-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 2px 10px; }
.d-head .icao { font-size: 24px; }
.d-head .name { font-size: 14.5px; white-space: normal; }
.section { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 8px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.big-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 8px; }
.bf { background: var(--panel2); border-radius: 10px; padding: 7px 9px; }
.bf .k { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
.bf .v { font-size: 17px; font-weight: 600; margin-top: 2px; }
.range { display: flex; gap: 4px; }
.range button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 12.5px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.range button.on { color: var(--text); border-color: var(--accent); }
.strip { display: flex; height: 18px; border-radius: 5px; overflow: hidden; background: var(--strip-bg); margin: 4px 0 2px; }
.strip i { flex: 1; min-width: 1px; }
.strip i.VFR { background: var(--vfr); } .strip i.MVFR { background: var(--mvfr); } .strip i.IFR { background: var(--ifr); } .strip i.LIFR { background: var(--lifr); } .strip i.NA { background: var(--na); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.hist { display: flex; flex-direction: column; gap: 4px; }
.hrow { display: grid; grid-template-columns: 54px 1fr; gap: 8px; align-items: start; padding: 5px 0; border-top: 1px solid var(--row-line); }
.hrow:first-child { border-top: 0; }
.hrow .t { font-family: var(--mono); font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.hrow .t .c { display: block; width: 100%; height: 4px; border-radius: 2px; margin-top: 4px; }
.hrow .raw { background: none; padding: 0; }
.day { color: var(--accent); font-size: 12px; font-weight: 600; padding: 8px 0 2px; border-top: 1px solid var(--line); }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.taf-item { margin-bottom: 8px; }
.taf-item .meta { margin-bottom: 3px; }

.foot { max-width: 980px; margin: 0 auto; width: 100%; padding: 10px 12px calc(14px + var(--safe-bot)); color: var(--muted); font-size: 12px; }
#status { margin-bottom: 6px; }
#status .err { color: var(--warn); }
.legal { opacity: .8; line-height: 1.4; }

@media (max-width: 420px) {
  h1 .logo { width: 26px !important; height: 26px !important; max-width: 26px; border-radius: 7px; vertical-align: -6px; margin-right: 8px; }
h1 .sub { display: none; }
  .seg button { padding: 6px 8px; font-size: 13.5px; }
}

.chart .grid { stroke: var(--grid); }
.chart .gridday { stroke: var(--grid-day); }
.legend i.na { background: var(--na); }
.theme-btn { font-size: 16px; }

a.icon-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; }
.foot-links { margin-bottom: 6px; }
.foot-links a, .legal a { color: var(--accent); text-decoration: none; }
.banner.install a.go { background: var(--accent); color: var(--accent-text); border-radius: 8px; padding: 5px 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- strona instalacji ---------- */
.inst { max-width: 620px; margin: 0 auto; padding: 14px 14px 30px; }
.inst-hero { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; }
.inst-hero img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 4px 14px rgba(0,0,0,.25); flex: none; }
.inst-hero h1 { white-space: normal; font-size: 21px; }
.inst-hero p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.dev-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.dev-tabs button { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px 6px; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dev-tabs button svg { width: 24px; height: 24px; }
.dev-tabs button.on { color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.detected { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.inst-note { border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; margin-bottom: 12px; background: var(--info-bg); border: 1px solid var(--info-line); color: var(--info-text); }
.inst-note.warn { background: var(--banner-bg); border-color: var(--banner-line); color: var(--banner-text); }
.inst-note.ok { background: color-mix(in srgb, var(--vfr) 15%, var(--panel)); border-color: var(--vfr); color: var(--text); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: st; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 54px; position: relative; font-size: 15px; line-height: 1.45; }
.steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps li b.t { display: block; font-size: 15.5px; margin-bottom: 2px; }
.steps li .sub { color: var(--muted); font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 4px 10px; font-size: 14px; font-weight: 600; margin: 6px 6px 0 0; color: var(--text); }
.chip svg { width: 20px; height: 20px; }
.chip.blue { color: #0a84ff; }
.tog { display: inline-block; width: 32px; height: 19px; border-radius: 10px; background: #34c759; position: relative; }
.tog::after { content: ""; position: absolute; right: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.mock { margin: 8px 0 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.mock .bar { flex: 1; background: var(--panel); border-radius: 8px; padding: 5px 8px; color: var(--text); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock .hl { outline: 2px solid #0a84ff; outline-offset: 2px; border-radius: 6px; color: #0a84ff; display: inline-flex; padding: 1px 3px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.btn-main { background: var(--accent); color: var(--accent-text); border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 650; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-sec { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
.urlbox { font-family: var(--mono); font-size: 16px; font-weight: 700; background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; text-align: center; margin: 10px 0; user-select: all; }
.faq h2 { font-size: 15px; margin: 18px 0 8px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq details p { margin: 8px 0 2px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- mapa stref AUP ---------- */
.view-map { max-width: 1400px; }
.nav-tabs { display: flex; gap: 4px; padding: 6px 2px 0; }
.nav-tabs a { padding: 6px 12px; border-radius: 9px 9px 0 0; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.nav-tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.map-layout { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { .map-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } .map-side { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow: auto; } }
.map-side { display: flex; flex-direction: column; gap: 8px; }
.ms-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; font-size: 13.5px; }
.ms-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.ms-time { margin-top: 8px; font-family: var(--mono); font-size: 14px; }
.ms-alt { margin-top: 4px; font-size: 13px; }
.ms-alt b { font-family: var(--mono); }
.ms-h { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 5px; }
.ms-h:first-child { margin-top: 0; }
.ms-chk { display: flex; flex-direction: column; gap: 4px; }
.ms-chk label { display: flex; gap: 7px; align-items: center; }
.map-side .map-legend { margin: 0; }
/* suwaki z dwoma uchwytami */
.dsl { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.dsl-track { position: absolute; background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 3px; }
.dsl-fill { position: absolute; background: var(--accent); border-radius: 3px; }
.dsl button { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: grab; }
.dsl button span { position: absolute; white-space: nowrap; font: 700 11px var(--mono); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 4px; pointer-events: none; }
.dsl button.same span { display: none; }
.dsl-ticks i { position: absolute; font: 10px var(--mono); color: var(--muted); font-style: normal; pointer-events: none; }
.dsl-h { height: 34px; margin: 0 16px; }
.dsl-h .dsl-track { left: 0; right: 0; top: 8px; height: 5px; }
.dsl-h .dsl-fill { top: 0; bottom: 0; min-width: 3px; transform: translateX(-1.5px); }
.dsl-h button { top: 1.5px; transform: translateX(-50%); }
.dsl-h button span { bottom: 20px; left: 50%; transform: translateX(-50%); }
.dsl-h .dsl-ticks i { top: 17px; transform: translateX(-50%); }
.dsl-v { width: 30px; height: 100%; }
.dsl-v .dsl-track { top: 0; bottom: 0; left: 6px; width: 5px; }
.dsl-v .dsl-fill { left: 0; right: 0; min-height: 3px; transform: translateY(1.5px); }
.dsl-v button { left: -0.5px; transform: translateY(50%); }
.dsl-v button span { right: 22px; top: 50%; transform: translateY(-50%); }
.dsl-v .dsl-ticks i { left: 16px; transform: translateY(50%); }
.map-alt { position: absolute; right: 6px; top: 172px; bottom: 74px; width: 72px; display: flex; flex-direction: column; align-items: flex-end; background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 10px; }
.map-alt .ma-t { font-size: 10.5px; color: var(--muted); font-weight: 600; align-self: center; margin-bottom: 12px; }
.map-alt #m-alt { flex: 1; width: 52px; position: relative; }
.map-alt #m-alt.dsl-v .dsl-track { left: 6px; }
.map-time { position: absolute; left: 6px; right: 86px; bottom: 6px; background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 22px 6px 2px; }
.map-svg .grid { fill: none; stroke: var(--map-border); stroke-width: .6; opacity: .28; vector-effect: non-scaling-stroke; }
.map-svg .gridlbl { font: 10px var(--mono); fill: var(--muted); paint-order: stroke; stroke: var(--map-bg); stroke-width: 3px; pointer-events: none; }
.map-svg .cty { fill: var(--map-other); stroke: var(--map-border); stroke-width: .7; stroke-opacity: .55; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-svg .cty-pl { fill: var(--map-land); }
.map-svg .ctylbl { font: italic 600 11px var(--sans); fill: var(--muted); text-anchor: middle; letter-spacing: .06em; text-transform: uppercase; paint-order: stroke; stroke: var(--map-other); stroke-width: 3px; pointer-events: none; opacity: .85; }
.map-svg .scale-bg { fill: color-mix(in srgb, var(--panel) 80%, transparent); stroke: var(--line); }
.map-svg .scale-ln { fill: none; stroke: var(--text); stroke-width: 1.6; }
.map-svg .scale-t { font: 600 10.5px var(--mono); fill: var(--text); }
.chip-btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 13px; color: var(--muted); }
.chip-btn.on { color: var(--text); border-color: var(--accent); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--map-bg); }
.map-svg { display: block; width: 100%; height: min(76vh, 720px); min-height: 460px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-svg:active { cursor: grabbing; }
.map-zoom { position: absolute; right: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.map-zoom button { width: 36px; height: 36px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); font-size: 18px; color: var(--text); }
.map-msg { position: absolute; left: 8px; top: 8px; right: 54px; background: var(--banner-bg); border: 1px solid var(--banner-line); color: var(--banner-text); border-radius: 9px; padding: 6px 10px; font-size: 13px; }
.map-panel { position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: 55%; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.35); font-size: 13.5px; }
@media (min-width: 760px) { .map-panel { left: auto; width: 400px; top: 8px; right: 54px; bottom: auto; max-height: calc(100% - 100px); } }
.map-panel { z-index: 3; }
.mp-x { position: absolute; right: 6px; top: 4px; background: none; border: 0; font-size: 20px; color: var(--muted); }
.mp-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 2px 24px 4px 0; }
.mp-z { border-top: 1px solid var(--row-line); padding-top: 8px; margin-top: 8px; }
.mp-z:first-of-type { border-top: 0; margin-top: 0; }
.mp-t { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12.5px; }
.mp-t th { text-align: left; color: var(--muted); font-weight: 600; padding: 3px 4px; }
.mp-t td { padding: 3px 4px; border-top: 1px solid var(--row-line); font-family: var(--mono); font-size: 12px; }
.mp-t tr.on td { color: var(--text); font-weight: 700; }
.mp-link { display: inline-block; margin-top: 6px; color: var(--accent); text-decoration: none; font-weight: 600; }
.mp-st { margin-top: 8px; font-size: 12.5px; }
.st-on { color: #fff; background: var(--ifr); border-radius: 6px; padding: 1px 6px; font-size: 11.5px; font-weight: 700; }
.mut { color: var(--muted); } .small { font-size: 12.5px; }
.map-filters { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.map-filters summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.mf-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 13.5px; }
.mf-l { color: var(--muted); min-width: 110px; }
.mf-row input[type=range] { flex: 1; min-width: 140px; accent-color: var(--accent); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chk-row label { display: flex; gap: 6px; align-items: center; margin-right: 10px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); margin: 6px 2px 10px; }
.map-legend .lg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid currentColor; }
.lg-dash { border-style: dashed !important; color: var(--muted); }
.lg-ap { border-radius: 3px !important; background: var(--vfr); color: var(--vfr); width: 10px !important; }
.zlist { display: flex; flex-direction: column; gap: 4px; }
.zrow { display: grid; grid-template-columns: 52px 92px 110px 1fr; gap: 6px 10px; align-items: center; text-align: left; background: none; border: 0; border-top: 1px solid var(--row-line); padding: 6px 2px; color: var(--text); font-size: 13px; }
.zrow:first-child { border-top: 0; }
.zitem { border-top: 1px solid var(--row-line); }
.zitem:first-child { border-top: 0; }
.zitem > summary.zrow { border-top: 0; cursor: pointer; list-style: none; position: relative; padding-right: 22px; }
.zitem > summary.zrow::-webkit-details-marker { display: none; }
.zitem > summary.zrow::after { content: '▸'; position: absolute; right: 4px; top: 7px; color: var(--muted); transition: transform .15s; }
.zitem[open] > summary.zrow::after { transform: rotate(90deg); }
.zitem[open] > summary.zrow { background: var(--panel2); border-radius: 8px; }
.zdet { padding: 4px 4px 10px 62px; }
@media (max-width: 520px) { .zdet { padding-left: 4px; } }
.zgo { margin-top: 8px; }
.zdet .mp-t { max-width: 720px; }
@media (max-width: 600px) { .map-alt { width: 50px; } .map-alt #m-alt { width: 30px; } .map-alt .dsl-ticks { display: none; } .map-alt .ma-t { font-size: 9.5px; } .map-time { right: 62px; } }
.mp-t sup { font-size: 9px; color: var(--muted); }
.zrow .mut { grid-column: 1 / -1; padding-left: 62px; font-size: 12px; margin-top: -4px; }
@media (max-width: 520px) { .zrow { grid-template-columns: 48px 1fr; } .zrow span:nth-child(3), .zrow span:nth-child(4) { grid-column: 2; font-size: 12px; color: var(--muted); } .zrow .mut { padding-left: 0; } }
.zt { font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 5px; color: #fff; text-align: center; background: var(--zc); }
.map-src { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 8px 2px 16px; }
/* kolory typów stref */
.z-TSA { --zc: #d9480f; } .z-TRA { --zc: #f08c00; } .z-D { --zc: #ae3ec9; } .z-R { --zc: #e03131; }
.z-MRT { --zc: #0ca678; } .z-ATZ { --zc: #1c7ed6; } .z-ADHOC { --zc: #c2a100; }
.chip-btn.on[class*="z-"] { border-color: var(--zc); color: var(--text); box-shadow: inset 3px 0 0 var(--zc); }
.map-legend .lg.z-TSA, .map-legend .lg.z-TRA, .map-legend .lg.z-D, .map-legend .lg.z-R, .map-legend .lg.z-MRT, .map-legend .lg.z-ATZ, .map-legend .lg.z-ADHOC { color: var(--zc); background: color-mix(in srgb, var(--zc) 35%, transparent); }
.map-svg .fir { fill: var(--map-land); stroke: var(--map-border); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-svg .fir-tw { fill: none; stroke: var(--map-border); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .6; }
.map-svg .zn { vector-effect: non-scaling-stroke; stroke: var(--zc); stroke-linejoin: round; }
.map-svg .zn.act { fill: var(--zc); fill-opacity: .28; stroke-width: 1.6; }
.map-svg .zn.later { fill: none; stroke-width: 1.2; stroke-dasharray: 5 4; opacity: .75; }
.map-svg .st { fill: none; vector-effect: non-scaling-stroke; stroke-width: 1; }
.map-svg .st-CTR { stroke: #4dabf7; stroke-dasharray: 6 3; } .map-svg .st-MCTR { stroke: #9775fa; stroke-dasharray: 6 3; }
.map-svg .st-TMA, .map-svg .st-MTMA { stroke: #868e96; stroke-dasharray: 2 3; }
.map-svg .st-P { stroke: #e03131; fill: #e03131; fill-opacity: .15; } .map-svg .st-R { stroke: #e03131; stroke-dasharray: 2 2; }
.map-svg .st-ADIZ { stroke: #868e96; stroke-dasharray: 8 4; } .map-svg .st-FIS { stroke: var(--map-border); stroke-dasharray: 1 4; opacity: .7; }
.map-svg .zlbl { font: 600 10.5px var(--sans); fill: var(--text); text-anchor: middle; paint-order: stroke; stroke: var(--map-land); stroke-width: 3px; pointer-events: none; }
.map-svg .ap { cursor: pointer; }
.map-svg .ap circle, .map-svg .ap rect { stroke: var(--map-land); stroke-width: 2; fill: var(--na-badge); }
.map-svg .ap.cat-VFR circle, .map-svg .ap.cat-VFR rect { fill: var(--vfr); } .map-svg .ap.cat-MVFR circle, .map-svg .ap.cat-MVFR rect { fill: var(--mvfr); }
.map-svg .ap.cat-IFR circle, .map-svg .ap.cat-IFR rect { fill: var(--ifr); } .map-svg .ap.cat-LIFR circle, .map-svg .ap.cat-LIFR rect { fill: var(--lifr); }
.map-svg .aplbl { font: 700 10.5px var(--mono); fill: var(--text); paint-order: stroke; stroke: var(--map-land); stroke-width: 3px; }

/* przełącznik języka */
.lang-btn { font: 700 12.5px var(--sans); letter-spacing: .03em; width: auto; min-width: 38px; padding: 0 8px; }
