:root{color-scheme:dark;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f4f5f7;background:#101113;font-size:14px;--panel:rgba(24,25,28,.94);--line:rgba(255,255,255,.11);--muted:#a5a8b0;--accent:#93c3ff}
*{box-sizing:border-box}
body{margin:0;overflow:hidden}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button,summary{cursor:pointer}
button{border:0;background:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
[hidden]{display:none!important}
.top{position:absolute;inset:0 0 auto;z-index:2;height:70px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 22px;background:linear-gradient(#0b0b0df5,#0b0b0dce 65%,transparent);pointer-events:none}
.top>*{pointer-events:auto}
.brand{grid-column:2;justify-self:center;gap:8px;padding:6px 12px 6px 7px;font-size:15px;letter-spacing:-.02em;box-shadow:0 4px 20px #0006}
.brand img{width:27px;height:27px;border-radius:7px}
.brand strong{font-size:inherit;line-height:inherit;font-weight:750}
h1{font-size:14px;font-weight:600;margin:0}
.actions{grid-column:3;display:flex;gap:8px;justify-content:flex-end}
.pill{display:inline-flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:30px;padding:8px 13px;white-space:nowrap}
.pill:hover,.tools button:hover,.flight:hover{background:#33363c}
kbd{color:var(--muted);font-size:11px;margin-left:12px;padding:1px 4px;border:1px solid var(--line);border-radius:4px}
.download{font-weight:600}
#map{position:absolute;inset:0;background:#101113}
.panel,dialog,.tools{background:var(--panel);border:1px solid var(--line);box-shadow:0 10px 28px #0004;backdrop-filter:blur(16px)}
.panel{border-radius:21px;padding:0 13px}
.flight-link-notice{margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.flight-link-notice .pill{padding:4px 9px}
.flight-link-notice p{margin:0}
.flight-link-notice small{display:block;margin-top:5px;color:var(--muted)}
#last-known-position{display:inline-block;margin-top:8px;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.flight-alert{--alert-accent:#ffdc83;background:#322719;border-radius:12px;margin:12px 0;padding:14px 16px;overflow-wrap:anywhere}
.flight-alert[data-level="emergency"]{--alert-accent:#fff;background:#e11920;color:#fff}
.flight-alert h3{margin:0;color:var(--alert-accent);font-size:16px}
.flight-alert p{margin:7px 0 0;line-height:1.45}
#flight-alert-headline{font-weight:650}
.flight-alert .pill{margin-top:12px;padding:6px 0;border:0;background:none;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.aircraft[data-missing-aircraft]>.aircraft-section,
.aircraft[data-loading-flight]>.aircraft-section{display:none}
.flight-link-loading{display:grid;gap:12px}
.flight-link-loading h2{margin:0 32px 0 0}
.flight-link-loading p{font-size:13px}
.flight-link-loading .route-placeholder{height:52px}
summary{display:flex;align-items:center;gap:9px;padding:15px 2px;list-style:none;font-weight:650}
summary::-webkit-details-marker{display:none}
summary::after{content:"";width:6px;height:6px;border:solid var(--muted);border-width:0 1px 1px 0;transform:rotate(45deg);margin:0 3px 3px 0}
details[open]>summary::after{transform:rotate(225deg);margin-top:5px}
summary span{margin-left:auto;color:var(--muted);font-weight:400;font-size:12px}
.flight-list{padding-bottom:8px}
#recent-status{margin:8px 3px;font-size:12px;color:var(--muted)}
.flight-list:empty{display:none}
.flight-list p{font-size:13px;color:var(--muted);margin:8px 3px}
.flight{width:100%;display:flex;align-items:center;gap:9px;padding:9px 6px;text-align:left;border-radius:9px}
.flight-icon{display:grid;place-items:center;background:#293444;color:#adcefb;border-radius:9px;width:30px;height:30px;flex:none;font-size:16px}
.flight strong,.flight small{display:block}
.flight strong{font-size:13px}
.flight small,.flight .alt{color:var(--muted);font-size:11px}
.flight .alt{margin-left:auto;font-variant-numeric:tabular-nums}
.tools{position:absolute;left:24px;top:80px;border-radius:22px;overflow:hidden;display:grid}
.tools button{width:39px;height:39px;font-weight:600;font-size:13px}
.tools button+button{border-top:1px solid var(--line)}
.tools button[aria-expanded=true],.tools button[data-filtered],.tools button[aria-pressed=true]{color:var(--accent);background:#293444}
.tools svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;vertical-align:middle}
.map-filters{position:absolute;top:80px;left:76px;width:min(306px,calc(100% - 86px));z-index:3;padding:12px 13px;max-height:calc(100dvh - 100px);overflow:auto}
.map-filters header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.map-filters h2{font-size:14px;margin:0}
.map-filters header button{color:var(--accent);padding:5px}
.map-filters header button:disabled{opacity:.45;cursor:default}
.map-filters fieldset{border:0;padding:0;margin:0;min-width:0}
.map-filters legend,.map-filters label[for]{color:var(--muted);font-size:12px}
.map-filters legend{margin-bottom:6px}
.map-filters label[for]{display:grid;grid-template-columns:64px 1fr;gap:6px;align-items:center;margin:8px 0}
.map-filters select{width:100%;min-width:0;padding:6px;color:inherit;font:inherit;background:#24272d;border:1px solid var(--line);border-radius:6px}
@media(max-width:740px){.map-filters{top:72px;left:60px}}
.tools button:focus-visible{outline-offset:-3px}
.zoom{top:auto;bottom:40px}
.zoom button,#home{font-size:20px}
.aircraft h2{font-size:23px;letter-spacing:-.03em;margin:0 32px 3px 0}
.aircraft p{color:var(--muted);margin:0}
.aircraft dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0 0;padding-top:13px;border-top:1px solid var(--line)}
.aircraft dt{font-size:11px;color:var(--muted)}
.aircraft dd{margin:4px 0 0;font-weight:650;font-variant-numeric:tabular-nums}
.close{position:absolute;right:9px;top:9px;width:31px;height:31px;border-radius:50%;background:#ffffff10;font-size:19px}
.close:hover{background:#ffffff25}
dialog{width:min(460px,calc(100% - 28px));margin: min(16vh,120px) auto auto;padding:17px;border-radius:20px;color:inherit}
dialog::backdrop{background:#0008}
dialog label{display:block;margin:0 32px 12px 0;font-weight:650}
dialog input{width:100%;padding:12px;border-radius:11px;border:1px solid var(--line);background:#101113}
#results{max-height:min(52vh,420px);overflow:auto;margin-top:7px}
.map-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;color:var(--muted)}
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib{background:#17181ddc;color:#c1c2c8}
.maplibregl-ctrl-attrib a{color:inherit}
#map .maplibregl-ctrl-bottom-right{right:var(--panel-right,0px);bottom:var(--panel-bottom,0px)}
@media(max-width:740px){
  .top{height:60px;padding:0 12px}
  .brand{font-size:13px;gap:6px}
  .top h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .top .brand{grid-column:2}
  .top .actions{grid-column:3}
  .brand img{width:22px;height:22px}
  kbd,.download{display:none!important}
  .tools{top:108px;left:10px}
  .zoom{top:auto;bottom:34px}
}
.flight-icon img,.aircraft-logo{width:100%;height:100%;object-fit:contain;border-radius:inherit;background:#f2f4f8;padding:3px}
.aircraft-heading{display:flex;align-items:center;gap:10px;margin-right:28px}
.aircraft-heading h2{margin-right:0}
.aircraft-model{display:flex;align-items:center;gap:6px}
.airframe-type{grid-column:1/-1}
.airframe-type .aircraft-model{flex-wrap:wrap}
.aircraft-type-code{color:var(--muted);font-size:11px;font-weight:500}
.manufacturer-icon{width:18px;height:18px;flex:none;object-fit:contain}
.flight-status{margin-top:12px;padding-left:10px;border-left:2px solid var(--accent);display:grid;gap:3px;font-size:14px}
.flight-status small{color:var(--muted);font-size:12px}
.aircraft .flight-readings{grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 0;padding:0;border:0}
.flight-readings>div{background:#ffffff08;border-radius:9px;padding:8px;min-width:0}
.aircraft .flight-readings dd{margin:3px 0 0;font-size:clamp(12px,1.6vw,15px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.aircraft-logo{width:38px;height:38px;border-radius:9px;flex:none}
.tools button:disabled{opacity:.45;cursor:default}
.flight[aria-current=true]{background:#473c2c;box-shadow:inset 0 0 0 1px #ffe0a45c}
.route{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;border-top:1px solid var(--line);margin-top:12px;padding-top:12px;color:var(--muted)}
.flight-route-tabs{display:flex;gap:4px;margin-top:12px;padding:3px;border:1px solid var(--line);border-radius:8px}
.flight-route-tabs button{flex:1;border-radius:5px;padding:7px 10px;color:var(--muted);font-size:12px;font-weight:650}
.flight-route-tabs button[aria-selected="true"]{background:#ffffff12;color:#f4f5f7}
.route button{padding:0;text-align:inherit;min-width:0}
.route button:hover strong{color:var(--accent)}
.route strong{display:block;font-size:18px;color:#f4f5f7}
.route .route-message{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
.route .route-retry{color:var(--accent);padding:5px 8px}
.route small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.map-error{pointer-events:none}
@media(max-width:740px){.tools{top:72px}.zoom{top:auto}}

.aircraft-sky{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  place-items:center;
  height:clamp(90px,18vh,154px);
  margin:12px 0 0;
  border-radius:13px;
  background:linear-gradient(165deg,#10233c,#24486a 70%,#426384);
}
#aircraft-preview-card{position:relative;overflow:hidden}
#aircraft-preview-card>summary{
  position:relative;
  display:block;
  padding:0;
  border-radius:13px;
  cursor:pointer;
}
#aircraft-preview-card>summary>strong{
  position:absolute;z-index:2;bottom:14px;left:16px;right:16px;
  display:flex;align-items:center;justify-content:center;gap:9px;
  color:#fff;font-size:14px;font-weight:650;line-height:1.3;
  text-align:center;pointer-events:none;
}
#aircraft-preview-card>summary>strong>span{margin:0;color:inherit;font:inherit}
#aircraft-preview-card>summary .manufacturer-icon{
  width:28px;height:26px;object-fit:contain;filter:brightness(0) invert(1);
}
#aircraft-preview-card>summary::after,
#aircraft-preview-card[open]>summary::after{
  position:absolute;z-index:2;top:14px;right:17px;
  transform:rotate(45deg);margin:0;border-color:#fff;
}
#aircraft-preview-card .aircraft-sky{
  --preview-top-padding:29px;
  height:clamp(182px,25vh,220px);
  margin:0;border-radius:13px;box-shadow:none;
}
#aircraft-preview-card[open] .aircraft-sky{border-radius:13px 13px 0 0}
#aircraft-preview-card #airframe-section{
  margin:0;border-radius:0;background:none;box-shadow:none;
}
#aircraft-preview-card #airframe-section>summary{display:none}
#aircraft-preview-card #airframe-section>summary::after{display:none}
#aircraft-profile-motion{
  position:absolute;
  inset:var(--preview-top-padding,10px) 14px 10px;
  z-index:1;
}
#aircraft-preview-card #aircraft-profile-motion{bottom:49px;rotate:calc(var(--aircraft-pitch,0deg) * var(--aircraft-facing,1))}
.aircraft-sky[data-on-ground]{
  background:linear-gradient(#263844 0%,#59626a 72%,#555b5f 72%,#303438 100%);
}
.aircraft-sky[data-on-ground]::before{
  content:"";position:absolute;inset:72% 0 0;
  background:linear-gradient(0deg,transparent 28%,#d1b358a6 30%,#d1b358a6 34%,transparent 36%);
}
.aircraft-sky[data-on-ground]::after{
  content:"";position:absolute;left:20%;right:20%;bottom:13px;height:14px;
  background:radial-gradient(ellipse,#080d12a0,transparent 70%);
}
.aircraft-sky[data-on-ground] .aircraft-clouds{display:none}
#aircraft-sky[data-on-ground] #aircraft-profile-motion{inset:6px 14px 20px;transition:none}
#aircraft-preview-card #aircraft-sky[data-on-ground] #aircraft-profile-motion{bottom:49px}
#aircraft-preview-card .aircraft-sky[data-on-ground]::before{bottom:44px}
#aircraft-preview-card .aircraft-sky[data-on-ground]::after{bottom:49px}
#aircraft-sky[data-on-ground] :is(#aircraft-photo,#aircraft-profile-livery){object-position:center bottom}
#aircraft-sky[data-on-ground] .aircraft-light{animation:none}
.aircraft-profile-right{--aircraft-facing:-1}
.aircraft p.aircraft-photo-caption{margin:6px 0 0;font-size:11px}
#aircraft-photo{
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  filter:drop-shadow(0 5px 6px #08132190);
}
.aircraft-clouds,.aircraft-clouds::before,.aircraft-clouds::after{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.aircraft-clouds::before,.aircraft-clouds::after{
  content:"";
  left:0;
  right:-100%;
  background-size:50% 100%;
  background-image:
    radial-gradient(ellipse 29% 10% at 9% 42%,#cfdef2aa,transparent 100%),
    radial-gradient(ellipse 25% 12% at 83% 78%,#c6def095,transparent 100%),
    radial-gradient(ellipse 25% 15% at 48% 69%,#9fbcd678,transparent 100%);
  filter:blur(6px);
  animation:aircraft-cloud-drift 24s linear infinite reverse;
}
.aircraft-profile-right .aircraft-clouds::before,
.aircraft-profile-right .aircraft-clouds::after{animation-direction:normal}
.aircraft-clouds::after{
  background-position:38% 16px;
  opacity:.63;
  filter:blur(12px);
  animation-duration:42s;
}
@keyframes aircraft-cloud-drift{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){
  .aircraft-clouds::before,.aircraft-clouds::after{animation:none}
}
#aircraft-altitude-scale{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  color:#e7f1ff;
}
.aircraft-altitude-line{
  position:absolute;
  top:calc(50% + (var(--preview-top-padding,10px) - 10px) / 2 + var(--altitude-offset));
  inset-inline:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  padding-right:8px;
  margin-top:-6px;
  font-size:10px;
  line-height:12px;
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px 3px #071321,0 0 5px #071321;
}
.aircraft-altitude-line::before{content:"";flex:1;border-top:1px dotted #d0e4ff70}
.aircraft-altitude-line[data-major]::before{border-top:1px solid #d0e4ff9c}
.aircraft-profile-right #aircraft-photo{transform:scaleX(-1)}
#aircraft-profile-livery,
#aircraft-profile-lights{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
  z-index:1;
}
#aircraft-profile-livery{object-fit:contain}
.aircraft-light{
  --light-color:#f9fbff;
  fill:var(--light-color);
  stroke:var(--light-color);
  stroke-width:2px;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 0 13px var(--light-color));
}
.aircraft-light.navigation-red,.aircraft-light.beacon{--light-color:#ff3449}
.aircraft-light.navigation-green{--light-color:#40ff82}
.aircraft-light.beacon,.aircraft-light.strobe{opacity:.65}
.aircraft-light.beacon{stroke-width:3px}
.aircraft-light.strobe{stroke-width:2.5px}
@media(prefers-reduced-motion:no-preference){
  #aircraft-preview-card #aircraft-profile-motion{transition:rotate .7s ease-out}
  #aircraft-preview-card #aircraft-profile-motion[data-airborne]{animation:aircraft-bob 5s ease-in-out infinite}
  .aircraft-light.beacon{animation:aircraft-beacon 1.35s ease-out infinite}
  .aircraft-light.strobe{animation:aircraft-strobe 1.65s step-end infinite}
  .double-strobe .aircraft-light.strobe{animation-name:aircraft-double-strobe}
}
@keyframes aircraft-bob{
  25%{translate:0 -2.5px}
  75%{translate:0 2.5px}
}
@keyframes aircraft-beacon{
  0%,34%,100%{opacity:.3}
  8%,13%{opacity:1}
}
@keyframes aircraft-strobe{
  0%,11%,100%{opacity:.25}
  2%{opacity:1}
}
@keyframes aircraft-double-strobe{
  0%,9%,22%,100%{opacity:.25}
  2%,15%{opacity:1}
}
#aircraft-profile-side{
  position:absolute;
  top:0;
  left:0;
  z-index:2;
  display:grid;
  place-items:center;
  width:42px;
  height:40px;
  padding:0;
  color:var(--muted);
}
#aircraft-profile-side svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.shimmer{
  display:block;
  border-radius:8px;
  background:linear-gradient(100deg,#ffffff0b 30%,#ffffff20 50%,#ffffff0b 70%);
  background-size:220% 100%;
  animation:aircraft-shimmer 1.35s linear infinite;
}
.route-placeholder{height:32px}
.photo-placeholder{height:clamp(90px,18vh,154px);margin-top:12px;border-radius:13px}
@keyframes aircraft-shimmer{from{background-position:130% 0}to{background-position:-70% 0}}
@media(prefers-reduced-motion:reduce){.shimmer{animation:none}}

.map-panel {
  position:absolute;
  z-index:1;
  inset:74px 12px 12px auto;
  border-radius:20px;
  width:clamp(340px,29vw,460px);
  max-height:none;
  padding:22px 22px 30px;
  overflow:auto;
  overscroll-behavior:contain;
  background:#17191d;
  border:1px solid var(--line);
  box-shadow:-14px 0 34px #0005;
}
.tools.aircraft-tools{left:auto;right:calc(clamp(340px,29vw,460px) + 20px);top:74px;z-index:1;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;overflow:visible;gap:6px}
.aircraft-tools button,.aircraft-tools button+button{width:39px;border:1px solid var(--line);border-radius:11px;background:var(--panel);box-shadow:0 3px 9px #0004}
.aircraft-tools button:hover{background:#33363c}
.aircraft>.close, #aircraft-drawer-summary>.close{top:17px;right:15px}
.aircraft-section{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
.aircraft-section h3{font-size:14px;margin:0 0 12px}
.aircraft-section #airframe{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:0;padding:0;border:0}
#airframe dd{overflow-wrap:anywhere}
.acars-placeholder{height:74px}
.acars-message{padding:12px 0;border-bottom:1px solid var(--line)}
.acars-message small{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.acars-message p{font-size:13px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;color:#e3e7ec}
.acars-message summary{font-size:11px;padding:8px 0 2px;color:var(--accent)}
.acars-message details p,.acars-other .acars-message p{margin-top:5px;font-family:ui-monospace,monospace}
.acars-other>summary{font-size:12px;color:var(--muted)}
@media(max-width:740px){
  .map-panel{inset:auto 8px max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);max-height:58dvh;padding:17px 16px 24px;border-left:0;border-top:1px solid var(--line);border-radius:18px}
  .aircraft-open .zoom{display:none}
  .tools.aircraft-tools{top:auto;right:8px;bottom:calc(var(--aircraft-panel-height, 58dvh) + 16px);display:flex}
}
.path-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;font-size:11px;color:var(--muted)}
.path-legend span{display:inline-flex;align-items:center;gap:6px}
.path-legend span::before{content:"";width:17px;border-top:2px solid #93c3ff}
#estimate-label::before{border-top:2px dotted #ffe0a4}

.aircraft #passed-fixes{font-size:12px;color:#93c3ff;margin-top:7px}
.aircraft .onward-fixes{font-size:12px;color:#ffe0a4;margin-top:7px}
.flight-plan-source{font-size:12px;overflow-wrap:anywhere}
.flight-plan-note{display:block;color:var(--muted);margin-top:10px}
.flight-timeline-list{list-style:none;margin:12px 0 0;padding:0 0 0 13px}
.flight-timeline-list li{position:relative;padding:0 0 12px 4px}
.flight-timeline-list li:last-child{padding-bottom:0}
.flight-timeline-list li:not(:last-child)::after{content:"";position:absolute;left:-13px;top:8px;bottom:-8px;width:1px;background:var(--line)}
.flight-timeline-list li::before{z-index:1}
.flight-timeline-list li::before{content:"";position:absolute;left:-16px;top:5px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.flight-timeline-list small{display:block;color:var(--muted);margin-top:3px}
.flight-timeline-list .timeline-upcoming::before{background:#667387}
.flight-timeline-list .timeline-upcoming .timeline-item{color:#a5afbe}
.flight-timeline-list .timeline-upcoming small{color:#929ba8}
.timeline-item{display:block;text-align:left;width:100%;padding:0 4px 3px;border-radius:5px}
button.timeline-item:hover,button.timeline-item:focus-visible{background:#93c3ff16}
.flight-timeline-track{position:relative;display:flow-root}
.flight-timeline-plane{position:absolute;z-index:2;left:.5px;pointer-events:none;width:18px;height:18px;transform:translate(-50%,-50%);transition:top .9s linear}
.flight-timeline-plane::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--accent);animation:timeline-plane-pulse 1.9s ease-out infinite}
.flight-timeline-plane::after{content:"✈";position:absolute;inset:0;border-radius:50%;background:var(--accent);color:#132234;text-align:center;line-height:18px;font-size:13px;transform:rotate(-90deg)}
@keyframes timeline-plane-pulse{from{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(2)}}
@media(prefers-reduced-motion:reduce){.flight-timeline-plane{transition:none}.flight-timeline-plane::before{animation:none}}

.aircraft .route{
  gap:10px;
  margin:18px 0 0;
  padding:14px 12px;
  border:0;
  border-radius:13px;
  background:#ffffff05;
  box-shadow:0 4px 12px #0005;
}
.route .route-airport{min-width:0;text-align:left;padding:0}
.route.route-single{grid-template-columns:minmax(0,1fr)}
.route .route-arrival{text-align:right}
.route-airport-code{display:flex;align-items:center;gap:7px;margin:2px 0}
.route-arrival .route-airport-code{justify-content:flex-end}
.route-airport-code strong{font-size:clamp(26px,2.5vw,36px);letter-spacing:-.045em;line-height:1.1}
.route-airport-code .route-flag{font-size:18px;line-height:1;flex:none}
.route .route-label{font-size:10px;font-weight:650;letter-spacing:.055em;text-transform:uppercase}
.route .route-city{font-size:12px}
.route-arrow{justify-self:center;color:var(--accent);font-size:19px;text-align:center}
.route .route-placeholder{height:52px}
.aircraft details.aircraft-section{margin-top:12px;padding:0;border:0;border-radius:13px;background:#ffffff05;box-shadow:0 4px 12px #0005}
.aircraft-section>summary{padding:13px 12px;font-size:13px;justify-content:space-between}
.aircraft-section>summary::after{flex:none}
.aircraft-section .section-content{padding:0 12px 12px}
.aircraft-section #aircraft-metrics dl{margin:0;padding:0;border:0}
.aircraft-section #airframe{margin-top:15px}
.aircraft .airframe-base{display:block;margin:12px 0 0;padding:0;border:0}
.profile-row{display:grid;gap:4px;padding:9px 0;border-bottom:1px solid var(--line)}
.profile-row:last-child{border-bottom:0}
.profile-row small{color:var(--muted)}
.history-flight-heading{display:flex;align-items:center;gap:9px}
.history-flight-heading>strong{flex:1;min-width:0}
.history-flight-heading>small{margin-left:auto;font-size:11px;flex-shrink:0}
.history-airline-logo{width:28px;height:28px;object-fit:contain;flex-shrink:0}
.history-flight-route{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;margin-top:6px}
.history-route-endpoint{display:grid;gap:4px}
.history-route-endpoint:last-child{text-align:right}
.history-route-endpoint strong{font-size:13px}
.history-route-endpoint small,.history-route-endpoint time{font-size:11px}
.history-route-arrow{color:var(--muted)}
.history-premium-gate{position:relative;overflow:hidden}
.history-locked-rows{filter:blur(5px);opacity:.45;user-select:none;pointer-events:none}
.history-premium-upsell{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:linear-gradient(transparent,#18191c55 30%,#18191c99 70%,transparent);text-align:center;padding:16px}
.history-premium-upsell strong{font-size:15px}
.history-premium-upsell .pill{background:#24272d}
.airport-board-link{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:12px;padding:13px 12px;border-radius:13px;background:#ffffff05;box-shadow:0 4px 12px #0005;font-size:13px;font-weight:650;text-align:left}
.airport-board-link:hover,.airport-board-link:focus-visible{background:#ffffff0d;color:var(--accent)}
.airport-board-link>span[aria-hidden="true"]{font-size:18px;line-height:1;color:var(--muted)}
#airport-board-title{margin-bottom:12px}
#airport-panel-title{margin:0;font-size:38px;font-weight:750;line-height:1;letter-spacing:-.035em}
#airport-panel-name{margin:7px 0 0;color:inherit;font-size:16px;font-weight:600;line-height:1.3}
#airport-panel-location{margin:4px 0 0;font-size:13px;line-height:1.35}
.airport-country-flag{white-space:nowrap}
.airport-panel .airport-weather small{font-family:ui-monospace,monospace;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.airport-panel .section-content>p{font-size:13px}
.explore{display:flex;flex-direction:column;padding:16px;overflow:hidden}
body:has(.aircraft:not([hidden])) .explore{display:none}
.explore-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.explore-header h2{display:flex;align-items:center;gap:9px;font-size:23px;letter-spacing:-.03em;margin:0 2px}
.explore-icon{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.explore-edge-button{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border-radius:10px;color:var(--muted)}
.explore-edge-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.explore-edge-button:hover{background:#33363c;color:#f4f5f7}
#explore-reopen{position:absolute;top:74px;right:0;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:6px;width:66px;height:72px;border:1px solid var(--line);border-right:0;border-radius:14px 0 0 14px;background:var(--panel);box-shadow:-3px 3px 12px #0005;outline-offset:-3px}
#explore-reopen .explore-icon{width:23px;height:23px}
#explore-reopen span{font-size:10px;font-weight:600;line-height:1}
#explore-reopen:hover{background:#33363c}
.aircraft-open #explore-reopen{display:none}
#explore-toggle{display:none}
#explore-content{display:flex;flex-direction:column;min-height:0;flex:1}
.explore-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;border:1px solid var(--line);border-radius:12px;margin:0 0 12px;background:#111317}
.explore-switch button{font-weight:600;border-radius:8px;padding:8px 10px;color:var(--muted)}
.explore-switch button:hover{color:#f4f5f7}
.explore-switch button[aria-pressed=true]{background:#2d3b50;color:#e6f1ff}
.explore-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:none}
.explore-scroll::-webkit-scrollbar{display:none}
#event-stories,#explore-traffic-content{display:grid;gap:10px}
.event-card{
  --event-color:#141516;
  position:relative;border-radius:20px;overflow:hidden;
  background:var(--event-color);color:#fff;overflow-wrap:anywhere;
}
.event-card:hover,.event-card:focus-within{box-shadow:inset 0 0 0 1px #ffffff75}
.event-card-art{position:relative;display:grid;place-items:center;height:155px;overflow:hidden}
.event-card-art img{position:absolute;width:100%;height:100%;object-fit:cover}
.event-card-art::after{content:"";position:absolute;inset:auto 0 0;height:85px;background:linear-gradient(transparent,var(--event-color));pointer-events:none}
.event-card-placeholder{font-size:52px;color:#ffffff50}
.event-card-credit{
  position:absolute;z-index:2;bottom:4px;right:12px;padding:3px 6px;border-radius:4px;
  background:#0009;color:#fff;font-size:10px;text-decoration:underline;
}
.event-card-body{padding:5px 16px 16px}
.event-card-meta,.event-card-flight{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap}
.event-card-category{color:#ffffffe6;font-size:11px;font-weight:750;letter-spacing:.045em;text-transform:uppercase}
.event-card-time{margin-left:auto;color:#ffffffe6;font-size:11px}
.event-card-live{color:#b7f7d6;font-size:11px;font-weight:700}
.event-card-title{margin:7px 0 0;font-size:18px;font-weight:700;line-height:1.26}
.event-card-open{display:block;padding:0;color:inherit;font:inherit;text-align:left}
.event-card-open::after{content:"";position:absolute;inset:0;z-index:1}
.event-card-open:focus-visible{outline:0}
.event-card:has(.event-card-open:focus-visible){outline:2px solid var(--accent);outline-offset:1px}
.event-card-flight{font-size:12px;color:#ffffffe6;font-weight:600;margin-top:9px}
.event-card-flight::after{content:"";border:solid currentColor;border-width:1px 1px 0 0;width:6px;height:6px;transform:rotate(45deg);margin-left:auto}
.event-back{display:inline-flex;align-items:center;gap:7px;padding:6px 0;margin:0 0 12px;color:var(--accent);font-weight:650}
.event-back:hover{text-decoration:underline}
.explore-status{margin:8px 2px;color:var(--muted);font-size:13px}
.traffic-card{padding:10px;background:#1c2634;border:1px solid #a9ccff38;border-radius:14px}
.traffic-card header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:4px 5px 6px}
.traffic-card h3{font-size:14px;margin:0}
.traffic-card #count{font-size:12px;color:#a9ccff}
.traffic-card .flight-list{padding-bottom:0}
#recent{background:#282536;border-color:#d6c5ff38}
@media(max-width:740px){
  .explore{padding:0 12px;border-left:1px solid var(--line)}
  .explore-header{margin-bottom:0}
  .explore-header h2{display:none}
  #explore-toggle{position:relative;display:block;flex:1;height:60px;text-align:left;padding:17px 8px 0;font-size:18px;font-weight:700;touch-action:none}
  #explore-toggle>span{display:flex;align-items:center;gap:8px}
  #explore-toggle::before{content:"";position:absolute;top:8px;left:50%;transform:translateX(-50%);width:36px;height:4px;border-radius:5px;background:#828a99}
  #explore-toggle::after{content:"";position:absolute;right:13px;bottom:17px;width:8px;height:8px;border:solid var(--muted);border-width:1.5px 0 0 1.5px;transform:rotate(45deg)}
  #explore-toggle[aria-expanded=true]::after{transform:rotate(225deg);bottom:21px}
  .explore:not([data-expanded]) #explore-content{display:none}
  .explore[data-expanded]{height:min(58dvh,calc(100dvh - 90px));padding-bottom:12px}
  body:has(.explore:not([hidden])) .zoom{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 70px)}
  body:has(.explore[data-expanded]:not([hidden])) .zoom{display:none}
  #explore-reopen{top:70px}
}
.event-heading{display:grid;justify-items:start;gap:7px}
.event-heading #event-title{font-size:clamp(22px,3vw,27px);line-height:1.16;letter-spacing:-.025em}
.event-heading #event-meta{color:var(--muted);font-size:13px}
.event-category{padding:4px 9px;border-radius:20px;background:#263548;color:#cfe3fc;font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.event-panel[data-category=safety] .event-category{background:#47212a;color:#ffbfc5}
.event-panel[data-category=medical] .event-category{background:#422d23;color:#ffd2a7}
.event-panel #event-summary{margin:16px 0;line-height:1.55;color:#e1e5ed}
.event-aircraft{margin-top:16px;padding:13px;border:1px solid #354151;border-radius:14px;background:#191f29}
.event-aircraft-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px 9px}
#event-airline-logo{padding:4px;border-radius:8px;background:#f0f4fa;object-fit:contain}
.event-panel #event-flight{border:0;background:none;padding:0;color:#f3f6fa;font-size:15px;font-weight:750;text-align:left;white-space:normal}
.event-panel #event-flight:hover{text-decoration:underline}
.event-panel #event-flight::after{content:" ↗";color:var(--accent)}
#event-flight-status{margin-left:auto;padding:4px 8px;border-radius:20px;background:#243c39;color:#b6edda;font-size:11px;font-weight:700}
#event-route{margin:9px 0 0;font-size:15px;font-weight:700;letter-spacing:.02em}
#event-aircraft-art{position:relative;display:grid;place-items:center;margin:9px 0 6px;min-height:75px;padding:6px 0;background:radial-gradient(ellipse at center,#334760,transparent 73%)}
#event-aircraft-art img{width:92%;max-height:128px;object-fit:contain}
#event-aircraft-livery{position:absolute;inset:6px 4%;height:calc(100% - 12px)}
.event-aircraft-details{display:flex;flex-wrap:wrap;gap:4px 9px;margin-top:7px;color:var(--muted);font-size:12px}
.event-timeline{padding-top:13px}
#event-timeline-list{list-style:none;margin:10px 0 0 4px;padding:0}
.event-timeline-entry{position:relative;padding:2px 0 15px 15px;border-left:1px solid #465367;font-size:13px}
.event-timeline-entry:last-child{border-color:transparent}
.event-timeline-entry::before{position:absolute;top:5px;left:-5px;width:9px;height:9px;border:2px solid var(--panel);border-radius:50%;background:var(--accent);content:""}
.event-timeline-meta{display:flex;gap:5px 10px;flex-wrap:wrap;margin-top:3px;color:var(--muted);font-size:11px}
.event-timeline-entry p{margin-top:5px;overflow-wrap:anywhere;color:#e1e5ed;line-height:1.45}
.event-timeline-message{margin-top:6px}
.event-timeline-message summary{width:fit-content;color:var(--accent);font-size:12px;cursor:pointer}
.event-timeline-message p{padding:8px;border-radius:7px;background:#141922;white-space:pre-wrap;font:12px/1.45 ui-monospace,monospace}
#event-evidence-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:var(--muted)}
#incident-replay-header{color:var(--accent)}
#incident-replay-back{display:inline-flex;align-items:center;gap:6px;padding:6px 0;color:inherit;font:inherit;white-space:nowrap}
#incident-replay-back:hover{color:#d7e9ff}
#incident-replay-exit{font-size:13px;font-weight:650;pointer-events:auto}
body[data-incident-replay] .top .actions{pointer-events:none}
#incident-replay-back svg,#incident-replay-exit svg,#event-replay-dock svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-incident-replay] .actions > :not(#incident-replay-exit),body[data-incident-replay] :is(#map-title,#explore,#explore-reopen,#map-layers,#focus,#event-close,#status){display:none}
#event-panel:has(#incident-replay-close:not([hidden])) .event-heading{padding-right:26px}
#event-panel:has(#incident-replay-close:not([hidden])) #event-title{margin-right:0}
body[data-incident-replay] .tools button:disabled{background:none;color:var(--muted)}
body[data-incident-replay] #map .maplibregl-ctrl-bottom-right{bottom:calc(var(--replay-dock-height,64px) + 29px)}
body[data-incident-replay] .zoom{bottom:calc(var(--replay-dock-height,64px) + 54px)}
#event-replay-dock{position:absolute;z-index:3;left:22px;right:calc(clamp(340px,29vw,460px) + 26px);bottom:16px;padding:9px 12px;border-radius:14px}
#event-replay-status{margin:5px 0;font-size:13px;color:var(--muted)}
#event-replay-controls{display:grid;grid-template-columns:auto auto minmax(92px,1fr) auto;align-items:center;gap:11px}
#event-replay-play{display:grid;place-items:center;width:34px;height:34px;padding:0;background:#293444;color:var(--accent);border-color:#43516a}
#event-replay-play:hover{background:#37465d}
#event-replay-play svg{fill:currentColor;stroke:none;width:19px;height:19px}
#event-replay-play:not([data-playing]) .replay-pause-icon,#event-replay-play[data-playing] .replay-play-icon{display:none}
#event-replay-time{color:#e7edf6;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.event-replay-times{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.event-replay-scrubber{position:relative;height:23px;display:flex;align-items:center}
#event-replay-slider{width:100%;height:23px;margin:0;appearance:none;border-radius:6px;cursor:pointer;background:linear-gradient(to right,var(--accent) var(--elapsed,0%),#3b424d var(--elapsed,0%)) center/100% 3px no-repeat}
#event-replay-slider::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border:2px solid #1b2532;border-radius:50%;background:var(--accent)}
#event-replay-slider::-moz-range-thumb{width:10px;height:10px;border:2px solid #1b2532;border-radius:50%;background:var(--accent)}
.event-replay-options{display:flex;align-items:center;gap:6px}
.event-replay-options .pill,#event-replay-details-toggle{gap:5px;padding:6px 9px;min-height:30px;font:inherit;font-size:11px;font-weight:650}
#event-replay-speed{padding-right:5px;color:inherit}
#event-replay-details-toggle[aria-expanded=true]{background:#293444;color:var(--accent)}
#event-replay-details-toggle{display:none}
#event-no-replay{margin-top:10px}
@media(741px <= width <= 965px){
  #event-replay-controls{gap:8px}
}
@media(max-width:740px){
  body[data-incident-replay] .top{grid-template-columns:auto 1fr auto;column-gap:8px}
  body[data-incident-replay] .top .brand{grid-column:1;padding:5px;border-radius:12px}
  body[data-incident-replay] .top .brand span{display:none}
  .top #incident-replay-header{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:13px;grid-column:2;grid-row:1}
  #incident-replay-exit{padding:7px 8px;font-size:11px}
  #incident-replay-back{gap:4px}
  #incident-replay-back svg{width:14px;height:14px}
  #event-replay-dock{inset:auto 8px max(8px,env(safe-area-inset-bottom));padding:9px 10px}
  #event-replay-controls{grid-template-columns:auto auto minmax(0,1fr);gap:6px 9px}
  .event-replay-options{grid-column:1/-1;margin-top:1px}
  .event-replay-options .pill{padding-inline:8px}
  #event-replay-details-toggle{display:inline-flex;position:absolute;right:10px;bottom:9px}
  #event-replay-controls[hidden]+#event-replay-details-toggle{position:static;margin-top:6px}
  #event-replay-dock #event-replay-details-toggle svg{width:14px;height:14px}
  #event-replay-details-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
  body[data-incident-replay] #event-panel{inset:auto 8px calc(max(8px,env(safe-area-inset-bottom)) + var(--replay-dock-height,93px) + 8px);max-height:min(56dvh,calc(100dvh - var(--replay-dock-height,93px) - 85px))}
  body[data-incident-replay]:not([data-replay-details]) #event-panel{display:none}
  body[data-replay-details] #map .maplibregl-ctrl-bottom-right{bottom:var(--panel-bottom)}
}

.tcas-replay-labels{position:absolute;inset:0;pointer-events:none}
.tcas-replay-label{position:absolute;transform:translate(-50%,var(--label-offset,16px));padding:3px 6px;border:1px solid var(--track-color);border-radius:5px;background:#141a24ed;color:white;font-size:11px;font-weight:650;white-space:nowrap}
.tcas-replay-advisory{position:absolute;transform:translate(-50%,calc(-100% - 13px));padding:3px 6px;border:1px solid #ffcd76;border-radius:5px;background:#382b1df5;color:#ffdb98;font-size:11px;font-weight:750;white-space:nowrap}
.tcas-replay-advisory::after{content:"";position:absolute;width:8px;height:8px;left:50%;top:calc(100% + 9px);transform:translateX(-50%);border:2px solid #ffcd76;border-radius:50%;background:#382b1d}
#event-involved{margin-top:16px;padding-top:13px}
#event-involved-list{display:grid;gap:10px;margin-top:9px}
.event-involved-card{padding:12px;border:1px solid var(--line);border-radius:12px;background:#ffffff08;overflow:hidden}
.event-involved-header{display:flex;align-items:center;gap:9px}
.event-involved-logo{flex:none;width:34px;height:34px;padding:4px;border-radius:8px;background:#f0f4fa;object-fit:contain}
.event-involved-identity{min-width:0;flex:1}
.event-involved-name{margin:0;font-size:17px;font-weight:750;letter-spacing:-.02em;overflow-wrap:anywhere}
.event-involved-role{display:inline-flex;align-items:center;gap:5px;margin-top:3px;color:#c9cbd0;font-size:11px}
.event-involved-role::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--track-color);flex:none}
.event-involved-meta{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.event-involved-art{position:relative;display:grid;place-items:center;margin:8px 0 0;padding:2px 0;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--track-color) 15%,transparent),transparent 74%)}
.event-involved-art img{width:86%;height:72px;object-fit:contain}
.event-involved-art .event-involved-livery{position:absolute;left:7%;top:2px}
#event-aircraft-status{font-size:12px;margin-top:7px}
.airport-panel .airport-chart-cycle{margin:0 0 8px;font-size:11px}
.airport-chart-group{border-top:1px solid var(--line)}
.airport-chart-group>summary{padding:10px 0;font-size:12px}
.airport-chart-group>summary::after{flex:none}
.airport-chart-list{list-style:none;margin:0 0 6px;padding:0}
.airport-chart-item+.airport-chart-item{border-top:1px solid var(--line)}
.airport-chart-link{display:flex;align-items:center;gap:9px;padding:8px 6px;border-radius:7px;font-size:12px}
.airport-chart-link:hover,.airport-chart-link:focus-visible,.airport-chart-link[aria-current]{background:#ffffff0d;color:var(--accent)}
.airport-chart-link-text{display:grid;gap:4px;flex:1;min-width:0}
.airport-chart-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;color:var(--muted);font-size:11px}
.airport-chart-type{border-radius:4px;background:#93c3ff19;color:var(--accent);padding:1px 5px;font-weight:600}
.airport-chart-icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}
.airport-chart-icon-preview{width:14px;height:14px}
.airport-chart-continuations{padding-left:25px;padding-bottom:3px}
.airport-chart-continuations .airport-chart-link{color:var(--accent);padding-block:5px}
.airport-chart-retry{background:none;border:0;padding:0;color:var(--accent);font-size:12px;text-decoration:underline;text-underline-offset:3px}
.flight-arrival-chart{margin-top:12px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#ffffff05}
.flight-arrival-chart>strong,.flight-arrival-chart>small{display:block}
.flight-arrival-chart>small{margin-top:3px;color:var(--muted);font-size:11px}
.flight-arrival-chart-link{display:flex;align-items:center;gap:10px;margin-top:7px;padding:7px;border-radius:6px;color:var(--accent);font-size:12px}
.flight-arrival-chart-link:hover,.flight-arrival-chart-link[aria-current]{background:#ffffff0d}
.flight-arrival-chart-arrow{margin-left:auto;font-size:18px}
.flight-arrival-chart-thumbnail{width:56px;height:auto;flex:none;border-radius:3px;background:#fff;filter:invert(1)}
.chart-preview{z-index:2;inset:74px calc(clamp(340px,29vw,460px) + 24px) auto auto;width:clamp(460px,40vw,670px);max-height:calc(100dvh - 86px);padding:0;display:flex;flex-direction:column;overflow:hidden}
.chart-preview-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px 10px 17px;border-bottom:1px solid var(--line)}
.chart-preview-header h2{margin:0;font-size:16px;line-height:1.4}
.chart-preview-actions{display:flex;align-items:center;gap:6px;flex:none}
.chart-preview-actions .close{position:static}
.chart-original{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#ffffff0d}
.chart-original:hover{background:#ffffff26}
.chart-original svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.chart-preview-body{overflow:auto;overscroll-behavior:contain;background:#000}
.chart-preview-body:focus-visible{outline-offset:-3px}
.chart-preview-status{margin:18px;color:var(--muted);font-size:13px}
.chart-preview-sheet{overflow:hidden;cursor:zoom-in}
.chart-preview-page{display:block;width:100%;height:auto;background:#fff;filter:invert(1)}
.chart-preview-sheet.is-magnified .chart-preview-page{transform:scale(2.3)}
@media(max-width:900px){
  .chart-preview{inset:74px 8px auto;width:auto;max-height:calc(100dvh - 74px - max(8px,env(safe-area-inset-bottom)));border:1px solid var(--line)}
}

.border-flag{margin-inline-end:6px}

.landing-stream{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px;border:1px solid var(--accent);border-radius:10px;color:inherit;text-decoration:none;font-size:14px}
.landing-stream:hover,.landing-stream:focus-visible{background:color-mix(in srgb,var(--accent) 12%,transparent)}
.landing-stream small{display:block;margin-top:3px;color:var(--muted);font-size:12px}
.flight-stream-player{margin:0 0 12px}
.stream-frame iframe{display:block;width:100%;min-height:200px;aspect-ratio:16/9;border:0;border-radius:10px;background:#101113}
.stream-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin-top:6px;font-size:12px}


.ground-stop-beacon{z-index:1;width:calc(var(--beacon-size) * .74);height:calc(var(--beacon-size) * .74);pointer-events:none}
.ground-stop-beacon::before,.ground-stop-beacon::after{content:"";position:absolute;inset:0;border-radius:50%}
.ground-stop-beacon::before{border:1px solid #ff5c69a8;background:radial-gradient(circle,#fff0f1 0 2px,#ff4658 3px 5px,#ff334953 6px,transparent 24%),#c7182b28;box-shadow:0 0 18px #ff334948}
.ground-stop-beacon::after{background:conic-gradient(from 0deg,transparent 0 77%,#ff354a15 82%,#ff4e60a3 98%,#ffacb3 99.4%,transparent 100%);animation:ground-stop-sweep 3.4s linear infinite}
.ground-stop-label{position:absolute;z-index:1;left:50%;top:calc(100% + 4px);transform:translateX(-50%);white-space:nowrap;border:1px solid #8c252e;border-radius:5px;padding:4px 6px;background:#8c252e;color:#fff;font-size:10px;font-weight:750;letter-spacing:.04em}
@keyframes ground-stop-sweep{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ground-stop-beacon::after{animation:none}}

@media(max-width:740px){
  .top:has(#live-map-link:not([hidden])) .actions{display:contents}
  #live-map-link{grid-column:1;grid-row:1;justify-self:start;font-size:11px;padding:6px 8px}
  .top:has(#live-map-link:not([hidden])) #search-open{grid-column:3;grid-row:1;justify-self:end;font-size:11px;padding:6px 8px}
}

#account-open,#premium-open{font-weight:650}
#premium-open{color:#f4d494}
#aircraft-drawer-summary > :is(#aircraft-favorite,#native-aircraft-favorite){right:53px;display:grid;place-items:center;color:var(--muted)}
:is(#aircraft-favorite,#native-aircraft-favorite) svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
:is(#aircraft-favorite,#native-aircraft-favorite)[aria-pressed=true]{color:#ff8195}
:is(#aircraft-favorite,#native-aircraft-favorite)[aria-pressed=true] svg{fill:currentColor}
#aircraft:not([data-loading-flight]):has(:is(#aircraft-favorite,#native-aircraft-favorite):not([hidden])) .aircraft-heading{margin-right:72px}
#aircraft[data-loading-flight] #aircraft-favorite,#aircraft[data-missing-aircraft] #aircraft-favorite{display:none}
#aircraft-favorite-status{margin:8px 0 0;color:#ffc1ca;font-size:12px}
#account-avatar{position:relative;display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border-radius:50%;border:0;background:#303238;color:#f4f5f7;font-weight:750}
#account-avatar:hover,#account-avatar[aria-expanded=true]{background:#404249}
#account-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
#account-menu{inset:64px 22px auto auto;margin:0;width:min(280px,calc(100% - 24px));padding:7px;border:1px solid #3b4352;border-radius:16px;background:#191e27;color:#f4f5f7;box-shadow:0 14px 42px #0009}
.account-identity{display:grid;justify-items:start;gap:5px;padding:10px 11px 12px;margin-bottom:4px;border-bottom:1px solid var(--line)}
.account-identity strong,.account-identity small{max-width:100%;overflow-wrap:anywhere}
.account-identity strong{font-size:15px}
.account-identity small{color:var(--muted)}
#account-plan{border-radius:20px;background:#2b313d;color:#d0d8e7;font-size:11px;font-weight:700;padding:4px 8px}
#account-plan.is-premium{background:#473820;color:#ffda94}
#account-menu>a,#account-menu>button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:10px 11px;border-radius:8px;text-align:left}
#account-menu>a:hover,#account-menu>button:hover{background:#2a3240}
#account-upgrade{color:#ffda94}
#account-menu-status{margin:6px 11px;color:#ffc1ca;font-size:12px}
#account-dialog{width:min(410px,calc(100% - 28px));margin-top:min(8vh,74px);max-height:calc(100dvh - min(8vh,74px) - 16px);overflow:auto;padding:24px;border:1px solid #3b4352;background:#171c25}
.account-brand{display:block;margin:0 auto 12px;border-radius:12px;box-shadow:0 6px 18px #0007}
#account-dialog h2{margin:0 0 8px;text-align:center;font-size:23px;letter-spacing:-.025em}
#account-dialog #account-message{text-align:center}
#account-dialog p{margin:0 0 14px;color:#b1bbca;line-height:1.45}
#account-dialog .account-status-error{color:#ffc1ca}
.account-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:15px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#10141c}
.account-mode button{padding:8px;border-radius:8px;color:#b1bbca;font-weight:650}
.account-mode button[aria-pressed=true]{background:#2c394e;color:#f4f8ff}
#account-providers{display:grid;gap:8px}
.account-provider{display:grid;grid-template-columns:20px 1fr 20px;align-items:center;min-height:42px;padding:7px 12px;border:1px solid transparent;border-radius:10px;font-weight:650}
.account-provider svg{width:19px;height:19px}
#account-google{background:#fff;color:#202124}
#account-google:hover{background:#ebf1fa}
#account-apple{background:#08090b;border-color:#465062;color:#fff}
#account-apple:hover{background:#20242a}
#account-dialog .account-divider{display:flex;align-items:center;gap:9px;margin:8px 0 4px;font-size:12px}
.account-divider::before,.account-divider::after{content:"";flex:1;height:1px;background:var(--line)}
#account-email-form{display:grid;gap:6px}
#account-email-form label{margin:0;font-size:12px}
#account-email-form input{margin-bottom:4px;background:#111620;border-color:#3b4352}
#account-reset{justify-self:end;padding:0 0 5px;color:var(--accent);font-size:12px}
#account-reset:hover{text-decoration:underline}
#account-dialog .account-primary{justify-content:center;min-height:42px;border-color:#a9ceff;border-radius:10px;color:#101c30;background:#9bc7ff;font-weight:750}
#account-dialog .account-primary:hover{background:#b8d7ff}
#account-dialog button:disabled,#account-open:disabled,#premium-open:disabled,#account-menu button:disabled{opacity:.55;cursor:wait}
#account-favorites{list-style:none;padding:0;margin:0 0 14px;max-height:32vh;overflow:auto}
#account-favorites a{display:block;padding:9px 0;border-bottom:1px solid var(--line)}
#account-favorites a:hover{color:var(--accent)}
.premium-card{display:block;width:100%;padding:0;margin-bottom:12px;overflow:hidden;text-align:left;border:0;border-radius:14px;background:#f3f0e8;color:#202522;box-shadow:none;outline-offset:-3px}
.premium-card:hover{background:#fffaf0}
.premium-card:focus-visible{outline:2px solid #586257;outline-offset:-3px}
.premium-card-image{display:block;width:100%;height:120px;object-fit:cover;object-position:center 70%;border:0}
.premium-card-copy{display:block;padding:14px 16px}
.premium-card strong{display:block;font-size:23px;line-height:1.1;letter-spacing:-.035em;font-weight:650}
.premium-card-cta{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:12px;font-weight:700}
.premium-card-cta>span{font-size:18px}
.premium-card:disabled{opacity:.55;cursor:wait}
#account-dialog[data-view=premium]{border-color:#d7b87550;background:radial-gradient(ellipse at top,#3d3323,#191c23 65%)}
#account-dialog #premium-description{text-align:center;color:#e6d3af}
#account-dialog[data-view=premium] .account-primary{border-color:#edcf96;background:#edcf96;color:#302617}
#account-dialog[data-view=premium] .account-primary:hover{background:#f8dfaf}
@media(max-width:1000px){.top .download{display:none}}
@media(max-width:740px){
  .top,.top:has(#live-map-link:not([hidden])){grid-template-columns:auto minmax(0,1fr);gap:6px}
  .top .brand,.top:has(#live-map-link:not([hidden])) .brand{grid-column:1;grid-row:1;justify-self:start}
  .top .brand span,.top:has(#live-map-link:not([hidden])) .brand span{display:inline}
  .top .actions,.top:has(#live-map-link:not([hidden])) .actions{display:flex;grid-column:2;grid-row:1;gap:4px}
  .top .actions .pill,.top:has(#live-map-link:not([hidden])) .actions .pill{font-size:11px;padding:7px 8px;gap:3px}
  .top .actions .download{display:none!important}
  #account-menu{top:54px;right:12px}
  #account-avatar{width:34px;height:34px}
  #account-dialog{padding:20px}
}

.map-layers{position:absolute;top:80px;left:76px;width:min(290px,calc(100% - 86px));z-index:3;padding:14px;max-height:calc(100dvh - 100px);overflow-y:auto}
.map-layers h2{margin:0 0 12px;font-size:14px}
.map-layers p{margin:4px 0 7px;font-size:11px;color:var(--muted)}
#procedure-panel{z-index:2}
.chart-preview{z-index:3}
.procedure-heading p{margin:0 32px 6px 0;font-size:12px}
#procedure-content>p{margin:8px 0;font-size:13px}
.procedure-back{padding:0;margin:0 0 12px;color:var(--muted);font-size:12px}
.procedure-choice{display:flex;align-items:center;gap:10px;width:100%;padding:10px 8px;text-align:left;border-radius:8px;font-size:13px}
.procedure-choice .procedure-choice-chevron{width:16px;height:16px;margin-left:auto;stroke:var(--muted)}
.procedure-choice+.procedure-choice{border-top:1px solid var(--line)}
.procedure-choice:hover{background:#ffffff0d}
.procedure-choice strong,.procedure-choice span{display:block}
.procedure-choice:hover strong{color:var(--accent)}
.procedure-choice span{margin-top:3px;font-size:11px;color:var(--muted)}
.procedure-chart{padding:8px 0 12px;font-size:13px}
.procedure-chart+.procedure-chart{border-top:1px solid var(--line)}
.procedure-pages{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.procedure-pages .pill{font-size:12px}
.procedure-section details{padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}
.procedure-section ol{margin:8px 0;padding-left:24px}
.procedure-section li{padding:3px 0;color:#e6edf6}
.procedure-section li small{margin-left:10px;color:var(--muted)}
@media(max-width:740px){.map-layers{top:72px;left:60px}}
@media(741px <= width <= 1000px){
  body:has(#procedure-panel:not([hidden])) .chart-preview{inset:74px 12px auto auto;width:min(670px,calc(100% - 24px))}
}

.procedure-heading h2{line-height:1.15;margin-bottom:5px}
.procedure-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.procedure-badges span{padding:4px 8px;border:1px solid var(--line);border-radius:12px;background:#252932;font-size:11px;color:#dee7f3}
.approach-scene{overflow:hidden;margin:12px 0 0;background:radial-gradient(ellipse at 50% 48%,#172b42 0,transparent 72%)}
.approach-scene svg{display:block;width:100%;height:auto;max-height:184px}
.approach-scene svg path{fill:none;stroke-linejoin:round;stroke-linecap:round}
.approach-scene-grid{stroke:#56729a;stroke-width:.65;opacity:.26}
.approach-scene-shadow{stroke:#83a9c6;stroke-width:1;stroke-dasharray:2 5;opacity:.46}
.approach-scene svg .approach-scene-runways{fill:#344353;stroke:#6c829a;stroke-width:.8}
.approach-scene svg .approach-scene-runway{fill:#274b72;stroke:#7ccaff;stroke-width:1.25}
.approach-scene-columns{stroke:#619bd0;stroke-width:.65;opacity:.44}
.approach-scene svg .approach-scene-waypoints{fill:#cceaff;stroke:#193856;stroke-width:.75}
.approach-scene-approach{stroke:#63baff;stroke-width:2.4}
.approach-scene-pulse{stroke:#eaf8ff;stroke-width:3.3;stroke-dasharray:.16 1;animation:approach-travel 2.8s linear infinite;filter:drop-shadow(0 0 3px #38a8ff)}
@keyframes approach-travel{from{stroke-dashoffset:.16}to{stroke-dashoffset:-1}}
.procedure-section a.procedure-chart{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:8px;color:inherit;text-decoration:none}
.procedure-section a.procedure-chart:hover{background:#ffffff0d}
.procedure-chart svg,.procedure-choice svg{flex:none;width:23px;height:23px;fill:none;stroke:#fff;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.procedure-chart strong,.procedure-chart small{display:block}
.procedure-chart small{margin-top:3px;color:var(--muted);font-size:11px}
@media(prefers-reduced-motion:reduce){.approach-scene-pulse{display:none}}

.approach-scene-transitions{stroke:#62b6fa;stroke-width:1.4;opacity:.74}
.approach-scene-label{font:7px ui-monospace,monospace;fill:#d0e6ff;stroke:#121d2a;stroke-width:2px;paint-order:stroke;stroke-linejoin:round}

#procedure-content>.approach-description{margin:12px 0 0;color:#c8d1dc;line-height:1.55}

#procedure-tools{z-index:2}
body:has(#procedure-panel:not([hidden])) #aircraft-tools{display:none}
@media(max-width:740px){
  .tools#procedure-tools{bottom:calc(var(--panel-bottom, 58dvh) + 8px)}
}
.procedure-transition{display:flex;align-items:center;width:100%;padding:10px 9px;border:1px solid var(--line);border-radius:8px;text-align:left;margin-top:7px;font-size:13px}
.procedure-transition:hover,.procedure-transition[aria-pressed=true]{background:#1f354b;border-color:#5084af;color:#dcf0ff}
.procedure-transition:disabled{opacity:.5}

.approach-aircraft-list{display:grid;gap:6px}
.approach-aircraft-list>p{font-size:12px}
.approach-aircraft-card{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:8px 9px;border:1px solid var(--line);border-radius:8px}
.approach-aircraft-logo{display:grid;place-items:center;flex:none;width:28px;height:28px;color:var(--muted);font-size:16px}
.approach-aircraft-logo img{display:block;width:100%;height:100%;object-fit:contain}
.approach-aircraft-card strong,.approach-aircraft-card small{display:block}
.approach-aircraft-card strong{font-size:13px}
.approach-aircraft-card small{margin-top:3px;color:#a8cdee;font-size:11px}
.approach-aircraft-card:hover{background:#ffffff0d}

.waypoint-scene{position:relative;margin:9px 0 0;overflow:hidden;background:radial-gradient(ellipse at 50% 58%,#152b42,transparent 69%)}
.airport-scene{margin:0 0 8px}
.airport-imagery-credit{position:absolute;right:8px;bottom:0;left:8px;color:#a0a4ab;font-size:9px;line-height:1.3;text-align:right;text-decoration:none;text-shadow:0 1px 2px #08090a}
.airport-approach-flash{opacity:0}
@media (prefers-reduced-motion:no-preference){
  .airport-approach-flash{animation:airport-approach-flash 2.6s linear infinite}
}
@keyframes airport-approach-flash{
  0%{opacity:1}
  5%,100%{opacity:0}
}
.waypoint-scene svg{display:block;width:100%;height:auto}
.waypoint-scene-imagery{filter:brightness(.54) saturate(.67) contrast(1.12);opacity:.91}
.waypoint-scene-grid{fill:none;stroke:#83c3ff;stroke-width:.55;opacity:.24}
.waypoint-scene-column{stroke:#83c8fc;stroke-width:1;stroke-dasharray:3 5;opacity:.65}
.waypoint-scene-marker{fill:#daf6ff;stroke:#74ccff;stroke-width:1;filter:drop-shadow(0 0 6px #53b6ff)}
.waypoint-scene-name{fill:#def4ff;font:600 10px ui-monospace,monospace;letter-spacing:1px;paint-order:stroke;stroke:#111b2a;stroke-width:2}
.waypoint-scene-pulse{fill:none;stroke:#70c5ff;stroke-width:.7}
.waypoint-scene-pulse circle{stroke-width:1;filter:drop-shadow(0 0 3px #58b9ff)}

.procedure-elevation-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

body:has(#procedure-panel:not([hidden])) #airport-panel{visibility:hidden}
#airport-board-title{position:relative;z-index:1;font-size:30px;line-height:1.1;text-shadow:0 2px 12px #09090b;pointer-events:none}
.airport-board-hero{position:relative;height:224px;overflow:hidden;margin:-45px 0 3px}
.airport-board-hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(0deg,#18191c,transparent 33%),linear-gradient(90deg,#18191c6b,transparent 60%)
}
.airport-board-globe,.airport-board-globe-motion{position:absolute;inset:0;display:block;width:100%;height:100%}
.airport-board-jump{display:block;margin:0 0 8px auto;padding:6px 10px;border:1px solid var(--line);border-radius:16px;color:var(--accent);font-size:12px}
.airport-board-timeline{border-left:1px solid var(--line);margin-left:6px;padding-left:13px}
.airport-board-row,.airport-board-now{position:relative}
.airport-board-row::before,.airport-board-now::before{content:"";position:absolute;left:-17px;top:26px;width:6px;height:6px;border-radius:50%;background:#75889e}
.airport-board-now{padding:9px 0;color:#80e4b4;font-size:12px;font-weight:650}
.airport-board-now::before{top:13px;background:#80e4b4;box-shadow:0 0 8px #80e4b477}
.airport-board-summary{display:grid;grid-template-columns:53px 30px minmax(0,1fr) minmax(0,auto);gap:8px;align-items:center;width:100%;min-height:58px;padding:8px 3px;text-align:left;border-bottom:1px solid var(--line);font-size:12px}
.airport-board-summary:hover,.airport-board-summary[aria-expanded="true"]{background:#ffffff08}
.airport-board-summary small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.airport-board-time{font-variant-numeric:tabular-nums;font-weight:650}
.airport-board-airline{display:grid;place-items:center;aspect-ratio:1;border-radius:7px;background:#ffffff14;color:var(--muted);font-size:9px}
.airport-board-airline img{width:100%;height:100%;padding:3px;object-fit:contain;border-radius:inherit;background:#f2f4f8}
.airport-board-route{overflow-wrap:anywhere}
.airport-board-status{text-align:right;max-width:82px;overflow-wrap:anywhere}
.airport-board-status small{text-transform:capitalize}
.airport-board-detail{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;margin:0;padding:10px 8px 12px;font-size:12px;background:#ffffff06}
.airport-board-detail dt{color:var(--muted)}
.airport-board-detail dd{margin:0}
.airport-weather-link{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px}
.airport-weather-link>span:first-child{font-size:13px;color:inherit}
.airport-weather-link>.section-content{font-size:12px}
.airport-weather-summary-copy{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 8px}
.airport-weather-summary-copy small{font-size:11px}
.airport-weather-category{display:inline-flex;align-items:center;padding:4px 8px;border-radius:100px;font:750 11px/1.2 ui-monospace,monospace;color:white;background:#15803d}
.airport-weather-category[data-category="MVFR"]{background:#facc15;color:#211d12}
.airport-weather-category[data-category="IFR"]{background:#b91c35}
.airport-weather-category[data-category="LIFR"]{background:#9354bc}
#airport-weather-title{font-size:30px;line-height:1.1;margin-bottom:12px}
.airport-weather-detail{display:grid;gap:12px}
.airport-weather-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:end;min-height:130px;border-radius:14px;padding:15px 16px;background:linear-gradient(150deg,#2c5069,#252e3d 68%,#191a20)}
.airport-weather-hero[data-sky="clear"]{background:linear-gradient(155deg,#285d8a,#253d56 64%,#191a20)}
.airport-weather-hero[data-sky="clouds"] .airport-weather-sky{position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 72% 13%,#e0eaf078,transparent 35%),radial-gradient(ellipse at 28% 42%,#c2d5e243,transparent 48%),radial-gradient(ellipse at 88% 51%,#d0e2f046,transparent 55%)}
.airport-weather-readings{display:flex;align-items:end;justify-content:space-between;gap:16px;width:100%}
.airport-weather-readings strong{margin-left:auto;font-size:44px;line-height:1;font-weight:550;letter-spacing:-.06em}
.airport-weather-section{padding:13px;border-radius:13px;background:#ffffff07}
.airport-weather-section h3{margin:0 0 10px;font-size:14px}
.airport-weather-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.airport-weather-grid div{display:flex;flex-direction:column-reverse;justify-content:end;gap:5px;min-height:59px;padding:9px;border-radius:9px;background:#ffffff08}
.airport-weather-grid dt,.airport-weather-section time,.airport-weather-layer span{color:var(--muted);font-size:11px}
.airport-weather-grid dd{margin:0;font-size:13px;font-weight:650}
.airport-weather-section time{display:block;margin-top:10px}
.airport-weather-compass{position:relative;display:grid;place-items:center;width:92px;aspect-ratio:1;margin:0 auto 6px;border:1px solid #7897ad80;border-radius:50%;color:#d6eaff}
.airport-weather-compass span{position:absolute;font:10px ui-monospace,monospace}
.airport-weather-compass span:nth-child(1){top:3px}
.airport-weather-compass span:nth-child(2){right:4px}
.airport-weather-compass span:nth-child(3){bottom:3px}
.airport-weather-compass span:nth-child(4){left:4px}
.airport-weather-compass b{font-size:42px;line-height:1;color:#9cceff}
.airport-weather-compass+p{text-align:center;font-size:12px}
.airport-weather-layer{display:flex;justify-content:space-between;gap:8px;padding-block:7px;font-size:12px;border-top:1px solid var(--line)}
.airport-weather-section pre{margin:0;color:#d5dbe4;font:11px/1.55 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}

.echo-tops-scale{display:block;width:100%;height:auto;margin-top:6px}
.tfr-scene{overflow:hidden;margin:12px 0 0;background:radial-gradient(ellipse at 50% 53%,#39232f,transparent 71%)}
.tfr-scene svg{display:block;width:100%;height:auto}
.tfr-scene-grid{fill:none;stroke:#a6889c;stroke-width:.55;opacity:.23;mask-image:linear-gradient(transparent,#000 48%,transparent)}
.tfr-scene-base{fill:#f05f7020;fill-rule:evenodd;stroke:#ee7288;stroke-width:1;stroke-dasharray:2 3}
.tfr-scene-wall{fill:#752a45;stroke:#d04c65;stroke-opacity:.3;stroke-width:.45}
.tfr-scene-roof{fill:#f2708c;fill-rule:evenodd;stroke:#ffb4bf;stroke-width:1.2;stroke-linejoin:round;filter:drop-shadow(0 0 9px #ff596466)}
.tfr-scene-dimension{fill:none;stroke:#ffe4ec;stroke-width:1;stroke-dasharray:3 3}
.tfr-scene-dimension-label{text-anchor:middle;fill:#fff0f4;font:600 10px ui-monospace,monospace;paint-order:stroke;stroke:#432137;stroke-width:2px;stroke-linejoin:round}
.tfr-scene-altitude-label{font-size:9px}
.tfr-schedule{margin:0 0 8px;color:#c8d1dc;font-size:13px;line-height:1.45}
.tfr-notice{color:inherit;text-decoration:none}
.tfr-notice svg:last-child{width:16px;height:16px;margin-left:auto;stroke:var(--muted)}


.map-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:10px 12px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer}
.map-switch input{appearance:none;display:grid;align-items:center;width:34px;height:20px;flex:none;margin:0;padding:3px;border:0;border-radius:12px;background:#28303c;cursor:pointer}
.map-switch input::before{content:"";width:14px;height:14px;border-radius:50%;background:#d5deeb}
.map-switch input:checked{background:#24794a}
.map-switch input:checked::before{transform:translateX(14px);background:#fff}
.map-switch input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.map-switch input:indeterminate{background:#223d34}
.map-switch input:indeterminate::before{transform:translateX(7px);background:#9de3b5}
.map-switch:has(input:disabled){opacity:.55;cursor:default}
.map-switch input:disabled{cursor:default}
.layer-group + .layer-group{margin-top:8px}
.layer-group-master{margin:0}
.layer-options{margin:3px 0 0 10px;padding-left:7px}
.layer-options .map-switch{margin:0;padding:7px 4px 7px 7px;font-weight:400}
.layer-options .map-switch:hover{background:#ffffff08}
.layer-options p,.layer-options .echo-tops-scale{margin-left:7px}
.layer-options .echo-tops-scale{max-width:calc(100% - 7px)}
.weather-report-raw{margin:0;padding:12px;border-radius:8px;background:#20252e;color:#dee7f3;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.55}
.map-filters #filters{margin-bottom:9px}
.map-filters #filters .map-switch{margin:0;padding:7px 4px 7px 8px;font-weight:400}
.map-filters #filters .map-switch:hover{background:#ffffff08}

/* The iOS map uses the same controls and layers with native account and aircraft sheets. */
.yonder-ios :is(.download, #account-open, #account-avatar, #premium-open) { display: none !important; }
.yonder-ios :is(#explore, #explore-reopen, .tools.zoom) { display: none !important; }
.yonder-ios-aircraft #aircraft { display: none !important; }
.yonder-ios-aircraft .tools.aircraft-tools { top: auto; right: 8px; bottom: calc(var(--panel-bottom, 55vh) + 42px); display: flex; }
.yonder-ios-aircraft #aircraft-tools[hidden] { display: none !important; }
.yonder-ios #native-airport-details { margin-top: 12px; }

.native-map-labels { display: none; }
.yonder-native-controls :is(.top, .tools:not(.aircraft-tools)) { display: none !important; }
.yonder-native-controls :is(#map-layers, #focus) { top: 8px; left: 16px; max-height: calc(100dvh - 24px); }
.yonder-native-controls .native-map-labels { display: flex; }

#map-detail-sheets { display: contents; }
.yonder-full-map #map-detail-sheets { display: block; position: absolute; inset: 0; pointer-events: none; }
body.yonder-full-map #map-detail-sheets > .map-panel {
  inset: auto 0 0;
  width: auto;
  height: min(58dvh, calc(100dvh - var(--native-top-inset, 175px) - 16px));
  max-height: none;
  padding-bottom: max(30px, env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  border-bottom: 0;
  pointer-events: auto;
  animation: native-map-sheet-up 240ms ease-out both;
}
.yonder-full-map :is(#map-layers, #focus) {
  top: var(--native-top-inset, 175px);
  max-height: calc(100dvh - var(--native-top-inset, 175px) - 90px);
}
.yonder-full-map:not(.yonder-detail-open, .yonder-ios-aircraft) #map .maplibregl-ctrl-bottom-right { bottom: 76px; }
.yonder-full-map :is(#aircraft-tools, #procedure-tools) {
  top: auto; right: 8px; bottom: calc(var(--panel-bottom, 58dvh) + 40px);
}
.yonder-full-map #map-detail-sheets > #event-panel .event-back span { margin-right: 4px; }
@keyframes native-map-sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .yonder-full-map #map-detail-sheets > .map-panel { animation: none; }
}

.yonder-full-map #procedure-tools { pointer-events: auto; }

.yonder-aircraft-drawer #aircraft-favorite { display: none; }
.yonder-aircraft-drawer #map-detail-sheets > #aircraft {
  --drawer-max: calc(100dvh - var(--native-top-inset, 175px));
  height: var(--drawer-drag-height, min(var(--drawer-summary-height, 58dvh), var(--drawer-max)));
  padding-top: 0;
  transition: height 220ms ease-out;
}
.yonder-aircraft-drawer #map-detail-sheets > #aircraft:not([data-expanded]),
.yonder-aircraft-drawer #map-detail-sheets > #aircraft[data-dragging] {
  overflow: hidden;
  touch-action: pan-x;
}
.yonder-aircraft-drawer #map-detail-sheets > #aircraft[data-expanded] {
  height: var(--drawer-drag-height, var(--drawer-max));
}
.yonder-aircraft-drawer #map-detail-sheets > #aircraft[data-dragging] { transition: none; }
.yonder-aircraft-drawer #aircraft:not([data-expanded], [data-dragging]) #aircraft-drawer-details {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.yonder-aircraft-drawer #aircraft-drawer-summary { display: flow-root; position: relative; }
.yonder-aircraft-drawer #aircraft-drawer-summary > .close { top: 0; }
#aircraft-drawer-handle {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 26px;
  background: #17191d;
  touch-action: none;
}
#aircraft-drawer-handle::before {
  content: "";
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #aeb3bd;
}
.yonder-aircraft-drawer:has(#aircraft:is([data-expanded], [data-dragging])) #aircraft-tools { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .yonder-aircraft-drawer #map-detail-sheets > #aircraft { transition: none; }
}

.yonder-native-airport-cards #airport-overview > :is([data-endpoint="weather"], [data-endpoint="runway-events"], [data-airport-board]) {
  display: none;
}
.yonder-native-airport-cards #airport-overview > .aircraft-heading {
  position: relative;
  z-index: 1;
}
body.yonder-native-airport-cards #map-detail-sheets > #airport-panel {
  height: min(var(--airport-overview-height, 58dvh), calc(100dvh - var(--native-top-inset, 175px) - 16px));
  padding-bottom: 0;
}
.yonder-native-airport-cards #airport-preview { margin-top: -21px; }
.yonder-native-airport-cards #airport-preview svg { max-height: 149px; }
#native-airport-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: max(23px, calc(env(safe-area-inset-bottom) + 8px));
}
#native-airport-sections button {
  --section-color: 96 165 250;
  --section-icon: url(/map/ios-airport-icons/departures.png);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: start;
  align-items: center;
  aspect-ratio: 1.17;
  max-height: 120px;
  min-height: 67px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(155deg, rgb(var(--section-color) / .42), rgb(var(--section-color) / .19) 45%, #141516 100%);
  box-shadow: 0 4px 12px #0004;
  color: white;
  font-size: clamp(.66rem, 3.15vw, .875rem);
  font-weight: 650;
}
#native-airport-sections [data-native-airport-section="weather"] {
  --section-color: 94 165 225;
  --section-icon: url(/map/ios-airport-icons/weather.png);
  background: radial-gradient(ellipse at top right, #ffd99840, transparent 60%),
    linear-gradient(155deg, #41668b, #294760 45%, #141516 100%);
}
#native-airport-sections [data-native-airport-section="arrivals"] {
  --section-color: 34 197 94;
  --section-icon: url(/map/ios-airport-icons/arrivals.png);
}
#native-airport-sections button:active { filter: brightness(1.22); }
#native-airport-sections :is(.airport-section-icon, .airport-section-arrow) {
  display: block;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--section-mask) center / contain no-repeat;
}
#native-airport-sections .airport-section-icon {
  --section-mask: var(--section-icon);
  width: 25px;
  height: 25px;
  align-self: start;
}
#native-airport-sections .airport-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1px;
  width: 100%;
}
#native-airport-sections .airport-section-arrow {
  --section-mask: url(/map/ios-airport-icons/arrow.png);
  width: clamp(12px, 4vw, 19px);
  height: clamp(12px, 4vw, 19px);
  opacity: .9;
}

/* Keep the viewport-sized drawer laid out while its visible portion slides. */
body.yonder-full-aircraft-drawer #map-detail-sheets > #aircraft {
  --drawer-compact: min(var(--drawer-summary-height, 58dvh), 100dvh);
  --drawer-offset: calc(100dvh - var(--drawer-compact));
  height: 100dvh;
  transform: translate3d(0, var(--drawer-drag-offset, var(--drawer-offset)), 0);
  animation: none;
  transition: transform 240ms cubic-bezier(.22, .7, .2, 1);
}
@starting-style {
  body.yonder-full-aircraft-drawer #map-detail-sheets > #aircraft:not([data-expanded]) {
    transform: translate3d(0, 100%, 0);
  }
}
body.yonder-full-aircraft-drawer #map-detail-sheets > #aircraft[data-expanded] {
  --drawer-offset: 0px;
  height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}
body.yonder-full-aircraft-drawer #map-detail-sheets > #aircraft[data-dragging] {
  transition: none;
}
.yonder-full-aircraft-drawer:has(#aircraft[data-expanded]) #map {
  opacity: 0;
}
.yonder-full-aircraft-drawer #aircraft[data-expanded] #aircraft-drawer-handle {
  top: var(--native-drawer-safe-top, 62px);
  margin-top: var(--native-drawer-safe-top, 62px);
}
.yonder-full-aircraft-drawer #aircraft[data-expanded] #aircraft-drawer-handle::after {
  position: absolute;
  inset: auto -22px 100%;
  height: var(--native-drawer-safe-top, 62px);
  background: inherit;
  pointer-events: none;
  content: "";
}
.yonder-full-aircraft-drawer #aircraft:not([data-expanded], [data-dragging]) #aircraft-drawer-details {
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  body.yonder-full-aircraft-drawer #map-detail-sheets > #aircraft { transition: none; }
}

/* Keep the credit legible on the map and below the detail sheets. */
body.yonder-full-map.yonder-full-aircraft-drawer #map .maplibregl-ctrl-bottom-right {
  bottom: 5px;
  right: 5px;
  z-index: 0;
}
body.yonder-full-aircraft-drawer #map .maplibregl-ctrl-attrib {
  margin: 0;
  padding: 0 4px;
  font-size: 9px;
  line-height: 14px;
}

/* Solid surfaces keep the map from bleeding through navigation. */
:root{--panel:#18191c}
.top .brand{background:#18191c}
@media(max-width:740px){
  .top,.top:has(#live-map-link:not([hidden])){height:106px;grid-template-columns:1fr;padding:8px 12px;align-content:start;gap:8px;background:#101113}
  .top .brand,.top:has(#live-map-link:not([hidden])) .brand{grid-column:1;grid-row:1;justify-self:center;font-size:13px}
  .top .actions,.top:has(#live-map-link:not([hidden])) .actions{grid-column:1;grid-row:2;justify-self:center}
  #map-title{display:none}
  .tools:not(.aircraft-tools){top:116px}
  #explore-reopen{top:116px}
  #account-menu{top:106px}
  .map-panel{max-height:calc(100dvh - 120px)}
}

#airport-ground-stop,#airport-ground-stop h3,#airport-ground-stop p{color:#fff;opacity:1}
#airport-ground-stop h3{display:flex;align-items:center;gap:9px}
.ground-stop-status-beacon{position:relative;display:inline-block;width:8px;height:8px;flex:none;border-radius:50%;background:#fff}
.ground-stop-status-beacon::after{content:"";position:absolute;inset:-3px;border:1px solid #fff;border-radius:50%;animation:ground-stop-status-pulse 1.8s ease-out infinite}
@keyframes ground-stop-status-pulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.7);opacity:0}}
@media(prefers-reduced-motion:reduce){.ground-stop-status-beacon::after{animation:none}}

#airport-ground-stop{padding:12px 14px;border-radius:12px;background:#8c252e}
#airport-ground-stop h3{gap:8px;font-size:13px;line-height:20px;font-weight:650;letter-spacing:0}
#airport-ground-stop p{margin:5px 0 0;font-size:12px;line-height:1.5;font-weight:400}
#airport-ground-stop .ground-stop-status-beacon{width:6px;height:6px;position:relative;align-self:center;background:#fff;box-shadow:none}
#airport-ground-stop .ground-stop-status-beacon::after{inset:-4px;border:0;background:#fff;transform-origin:center;animation:ground-stop-status-soft 2.4s ease-in-out infinite}
@keyframes ground-stop-status-soft{0%,100%{transform:scale(.65);opacity:.08}50%{transform:scale(1);opacity:.2}}
@media(prefers-reduced-motion:reduce){#airport-ground-stop .ground-stop-status-beacon::after{animation:none;opacity:.12}}

.ground-stop-beacon::before,.ground-stop-beacon::after{z-index:0}
.ground-stop-airport-icon{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:32px;height:32px;border-radius:9px;background:#8c252e;border:2px solid #e78d95;box-shadow:0 2px 8px #0006}
.ground-stop-airport-icon::after{content:"";position:absolute;inset:4px;background:#fff;mask:url(/map/airport-tower.svg) center/contain no-repeat;-webkit-mask:url(/map/airport-tower.svg) center/contain no-repeat}
.ground-stop-label{z-index:2}

.airport-incident-card{margin-top:12px;padding:12px 14px;border-radius:12px;background:#8c252e;color:#fff}
.airport-incident-card h3{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;line-height:20px;font-weight:650}
.airport-incident-card p{margin:5px 0 0;color:#fff;font-size:12px;line-height:1.5}
.airport-incident-card h3:not(:first-child){margin-top:12px}
.airport-incident-card .ground-stop-status-beacon{width:6px;height:6px}
.airport-incident-card .ground-stop-status-beacon::after{inset:-4px;border:0;background:#fff;animation:ground-stop-status-soft 2.4s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.airport-incident-card .ground-stop-status-beacon::after{animation:none;opacity:.12}}

/* The clouds fade into a quiet blue surface before the aircraft details begin. */
#aircraft-preview-card[open]{background:#24486a;color:#fff}
#aircraft-preview-card[open]>summary{isolation:isolate}
#aircraft-preview-card[open]>summary::before{
  content:"";position:absolute;inset:auto 0 0;height:82px;z-index:1;
  background:linear-gradient(transparent,#24486a);pointer-events:none;
}
#aircraft-preview-card #airframe-section .section-content{padding:0 16px 30px}
#aircraft-preview-card #airframe-section :is(summary,dd){color:#fff}
#aircraft-preview-card #airframe-section dt{color:#ffffffb3}
#aircraft-preview-card #airframe-section .manufacturer-icon{filter:brightness(0) invert(1)}
.flight-readings>div{position:relative;isolation:isolate;overflow:hidden}
.flight-reading-graph{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.flight-reading-graph .reading-area{fill:#08090a;opacity:.42}
.flight-reading-graph .reading-line{display:none}
