:root {
  color-scheme: dark;
  --base: #101519;
  --side: #151a1e;
  --line: #2d3438;
  --muted: #9ba6a9;
  --lime: #d5ed79;
  --text: #f3f5f2;
  --mono: "IBM Plex Mono", monospace;
  --ui: "DM Sans", sans-serif;
  --sidebar: 306px;
  --mast: 62px;
  --foot: 25px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 14px var(--ui);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
}
button:disabled {
  opacity: 0.38;
  cursor: default;
}
a {
  color: inherit;
}
i[data-icon],
button svg,
button i,
span i {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
}
.mast {
  height: var(--mast);
  flex: none;
  background: #101518;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  z-index: 6;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  white-space: nowrap;
}
.brand .wordmark {
  font-size: 21px;
  letter-spacing: -0.85px;
  margin: 0;
  font-weight: 700;
}
.brand .wordmark span {
  font-weight: 400;
  color: #e5e9e7;
}
.brand img {
  width: 33px;
  height: 33px;
}
.brand .icon {
  flex: none;
}
.mast-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cameras {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #30373b;
  border-radius: 8px;
  background: #0d1114;
}
.cameras button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 12px;
  color: #aeb7b7;
  line-height: 16px;
}
.cameras svg {
  width: 15px;
  height: 15px;
}
#explore [data-icon="down"] svg {
  width: 11px;
  height: 11px;
}
#explore[aria-expanded="true"] [data-icon="down"] {
  transform: rotate(180deg);
}
.cameras button:hover:not(:disabled),
.icon:hover,
.sq:hover,
.rail button:hover,
.atc:hover,
.tower-simulation:hover,
.popover button:hover,
.popover a:hover,
.popover label:hover {
  background: #2c3336;
  color: #fff;
}
.cameras button.active {
  background: #35402b;
  color: var(--lime);
  box-shadow: inset 0 0 0 1px #515c3c;
}
.atc,
.tower-simulation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #b6c0c0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.atc span {
  line-height: 14px;
  text-wrap: balance;
}
.atc-short {
  display: none;
}
.tower-simulation [data-icon] {
  color: var(--lime);
}
.tower-simulation strong {
  font: 600 12px/15px var(--ui);
  white-space: nowrap;
}
.tower-simulation small {
  display: block;
  color: var(--muted);
  font: 500 10px/12px var(--ui);
}
.mast-right {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.feed-badge,
.mode-label,
.eyebrow,
.listhead,
.minihead,
.scene-meta,
.feed-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.feed-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 32px;
  color: #d3c4a2;
  background: #27261f;
  padding: 5px 8px;
  border: 1px solid #4d4737;
  border-radius: 4px;
  font-size: 9px;
}
.feed-badge.live {
  color: #cff294;
  background: #20291c;
  border-color: #3d4d34;
}
.feed-badge b {
  flex: none;
}
.feed-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-badge b,
.mode-label b,
.station-id b,
.minihead span i,
.tv .eyebrow b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.time {
  flex: none;
  font: 12px var(--mono);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.time strong {
  font-weight: 500;
}
.time small {
  font-size: 9px;
  color: var(--muted);
}
.icon,
.sq {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  color: #b6c0c0;
  padding: 0;
}
.mast-right .icon {
  flex: none;
}
.mast-right .icon + .icon {
  margin-left: -7px;
}
main {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}
.sidebar {
  width: var(--sidebar);
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--side);
  border-right: 1px solid #343b3c;
  z-index: 4;
}
.station {
  padding: 22px 19px 20px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #252c25, #1c2323 80%);
}
.station-graphic {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.72;
  background-image: url("../assets/runways.svg");
  background-repeat: no-repeat;
  background-position: right -16px center;
  background-size: 119px;
}
.station-id {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d4e99a;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.station-id .station-divider {
  color: #71806d;
}
.station-id b {
  width: 5px;
  height: 5px;
  background: var(--lime);
}
.station h1 {
  font-size: 27px;
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 9px 0 7px;
}
.station-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #b8c1bb;
}
.station-meta .station-divider {
  padding: 0 3px;
}
.station-forecast {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid #687844;
  border-radius: 5px;
  background: #20291e;
  color: var(--lime);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.station-forecast:hover, .station-forecast:focus-visible {
  border-color: var(--lime);
  background: #2c3722;
}
.board {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.boardhead {
  padding: 18px 17px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.boardhead h2,
.dialog-head h2 {
  font-size: 18px;
  letter-spacing: -0.7px;
  margin: 0;
}
.boardhead > span {
  background: #2c3336;
  border: 1px solid #3a4246;
  font: 10px var(--mono);
  color: #ccd3d1;
  padding: 1px 6px;
  border-radius: 4px;
}
.boardhead .mobile-close {
  margin-left: auto;
}
.tabs {
  display: flex;
  padding: 0 17px;
  gap: 17px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  font-size: 12px;
  padding: 7px 0 10px;
  color: #aab2b4;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.active {
  color: var(--lime);
  border-color: var(--lime);
}
.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 15px 12px;
}
.search,
.sq {
  background: #101518;
  border: 1px solid #333b3f;
  border-radius: 5px;
}
.search {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  color: #8d989d;
  height: 32px;
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  flex: 1;
  width: 100%;
  font-size: 11px;
}
.search input:focus-visible {
  outline: none;
}
.search:focus-within {
  border-color: var(--lime);
}
.search input::placeholder {
  color: #939da0;
}
.search kbd,
kbd {
  font: 10px var(--mono);
  padding: 1px 4px;
  border-radius: 3px;
  color: #b7bebb;
  border: 1px solid #41494b;
}
.sq {
  width: 32px;
  height: 32px;
}
.sq.is-filtered {
  color: var(--lime);
  border-color: #637342;
}
.listhead {
  display: flex;
  justify-content: space-between;
  padding: 1px 17px 9px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #9ba8aa;
}
.rows {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #40494b transparent;
  overscroll-behavior: contain;
}
.flightrow {
  display: grid;
  width: 100%;
  height: 57px;
  grid-template-columns: 33px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 0 17px;
  border-top: 1px solid #293034;
}
.flightrow:hover,
.flightrow.selected {
  background: #242d2d;
}
.flightrow.selected {
  box-shadow: inset 3px 0 0 var(--lime);
}
.airline {
  background: var(--aircolor, #46585d);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font:
    600 13px "Barlow Condensed",
    sans-serif;
  letter-spacing: 1px;
  color: #fff;
  border: 1px solid #ffffff24;
}
.airline svg {
  width: 23px;
  height: 21px;
}
.flightrow .data {
  overflow: hidden;
  display: grid;
  gap: 4px;
}
.flightrow strong {
  font: 500 12px var(--mono);
  letter-spacing: 0.015em;
}
.flightrow small,
.flightrow .data small {
  font-size: 11px;
  color: #a1adaf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.phase {
  color: var(--phase);
  font: 9px var(--mono);
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.phase:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.timecell {
  font: 11px var(--mono);
  color: #d2d9d6;
}
.empty {
  color: var(--muted);
  font-size: 12px;
  padding: 15px;
  line-height: 1.55;
}
.stage {
  --sfo-cam-limit: min(calc(100% - 66px), max(358px, calc((100dvh - 170px) * 16 / 9)), 720px);
  --sfo-cam-width: min(var(--sfo-cam-requested-width, 358px), var(--sfo-cam-limit));
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #334d51;
  outline: none;
  isolation: isolate;
}
.stage canvas#scene,
#bigmap,
#labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#scene,
#bigmap {
  touch-action: none;
}
#labels {
  --tag-width: 134px;
  --tag-height: 34px;
  --tag-compact-width: 82px;
  --tag-compact-height: 22px;
  --tag-stem: 5px;
  --tag-standalone-stem: 9px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.airport-marker {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 8px;
  border: 1px solid #7a8e61;
  border-radius: 5px;
  background: #142022ee;
  color: var(--lime);
  font: 600 12px var(--mono);
  pointer-events: auto;
  z-index: 3;
}
.airport-marker:hover,
.airport-marker:focus-visible {
  background: #29362a;
  border-color: var(--lime);
}
.tag {
  position: absolute;
  left: 0;
  top: 0;
  contain: layout style;
  display: grid;
  align-content: center;
  gap: 2px;
  width: var(--tag-width);
  height: var(--tag-height);
  pointer-events: auto;
  white-space: nowrap;
  border: 1px solid #b9c7b266;
  border-radius: 5px;
  padding: 3px 7px;
  background: #121a1bed;
  color: var(--text);
  text-align: left;
  box-shadow: 0 2px 6px #0005;
}
.tag strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font: 700 11px/12px var(--ui);
  letter-spacing: 0.03em;
}
.tag strong::before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: var(--phase);
  vertical-align: 1px;
  margin-right: 6px;
}
.tag small {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c2cccd;
  font: 500 9px/10px var(--mono);
}
.tag.compact {
  width: var(--tag-compact-width);
  height: var(--tag-compact-height);
  padding-inline: 5px;
}
.tag:is(.compact, .stem-only) small,
.tag.stem-only strong {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
.tag::after {
  content: "";
  width: 1px;
  height: var(--tag-stem);
  background: #ffffffa6;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  transform: translateX(calc(var(--tag-stem-x, 0px) - 1px));
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .tag:hover {
    border-color: #ccd8d9;
    background: #253234;
    z-index: 1;
  }
}
.tag:focus-visible {
  z-index: 1;
}
.tag.selected {
  background: #263319f5;
  border-color: var(--lime);
  z-index: 2;
}
.tag.selected::after {
  background: var(--lime);
}
.tag.stem-only {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  z-index: -1;
}
.tag.stem-only::after {
  top: auto;
  bottom: 0;
  left: calc(50% - 1px);
  transform: none;
  width: 2px;
  height: var(--tag-standalone-stem);
  background: var(--phase);
}
.tag.stem-only:hover::after {
  background: var(--text);
}
.box,
.rail,
.compass,
#detail,
#notice,
#tvcard {
  border: 1px solid #ffffff30;
  background: #11181bef;
  color: #e9eee8;
  border-radius: 7px;
  box-shadow: 0 2px 9px #0003;
}
.stage-top {
  position: absolute;
  inset: 15px 16px 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.stage-left,
.stage-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stage-left {
  align-items: flex-start;
  min-width: 0;
  height: 100%;
}
.stage-right {
  align-items: flex-end;
  margin-left: auto;
  flex: none;
}
.stage-top :is(.box, #detail) {
  pointer-events: auto;
}
.wx {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 33px;
  padding: 0 10px;
  font-size: 11px;
}
.wx > i {
  color: #cfd4b7;
}
.wx > span {
  height: 14px;
  background: #515b58;
  width: 1px;
  margin: 0 1px;
}
.wx strong,
.wx b {
  font: 10px var(--mono);
}
.nav-stack {
  position: absolute;
  right: 15px;
  bottom: 45px;
  display: grid;
  justify-items: center;
  gap: 9px;
  z-index: 2;
}
.compass {
  width: 38px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 2px;
  gap: 0;
}
.compass span {
  font: 8px var(--mono);
  color: #d6e4cb;
}
.rail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rail button {
  width: 34px;
  height: 32px;
  color: #d1d9d6;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #ffffff1c;
}
.rail button:last-child {
  border: 0;
}
.rail button.active {
  color: var(--lime);
}
#sfoCam {
  position: absolute;
  bottom: 19px;
  left: 16px;
  z-index: 2;
  width: var(--sfo-cam-width);
}
#sfoCam:has(#sfoCamPlayer[hidden]) {
  width: max-content;
}
.cam-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#sfoCam:has(#sfoCamPlayer:not([hidden])) .cam-head {
  container: sfo-feed / inline-size;
}
#sfoCamMove {
  flex: 0 0 32px;
  align-self: stretch;
  display: grid;
  place-items: center;
  color: #bac6c2;
  border-radius: 5px;
  outline-offset: -3px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#sfoCamMove::before {
  content: "";
  width: 10px;
  height: 15px;
  background: radial-gradient(circle, currentColor 1px, transparent 1.5px) 0 0 / 5px 5px;
}
#sfoCamMove:is(:hover, :active, :focus-visible) {
  color: var(--lime);
  background-color: #ffffff12;
}
#sfoCamMove:active {
  cursor: grabbing;
}
.cam-head :is(button, a, .cam-tv-title) {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 9px;
  outline-offset: -3px;
  border-radius: 5px;
}
.cam-head :is(button, .cam-tv-title) {
  font-weight: 600;
  font-size: 12px;
  text-align: left;
}
#sfoCamRefresh {
  color: var(--lime);
}
.cam-head :is(#sfoCamToggle, .cam-tv-title) {
  padding-inline: 4px;
}
.cam-head [data-icon] {
  flex: none;
}
#sfoCamToggle[aria-expanded="true"] [data-icon="down"] {
  transform: rotate(180deg);
}
.cam-head a {
  margin-left: auto;
  color: #bac6c2;
}
.cam-head :is(button, a):hover {
  background: #ffffff12;
}
#sfoCamRefresh,
#sfoCamClose,
.cam-head a {
  flex: none;
  justify-content: center;
  aspect-ratio: 1;
}
.cam-source-name {
  display: none;
}
@container sfo-feed (min-width: 450px) {
  #sfoCamSource {
    aspect-ratio: auto;
    font-size: 11px;
    white-space: nowrap;
  }
  .cam-source-name {
    display: inline;
  }
}
@media (max-width: 400px) {
  #sfoCamRefresh,
  #sfoCamClose,
  .cam-head a {
    width: 36px;
    aspect-ratio: auto;
  }
}
#sfoCam:has(#sfoCamPlayer[hidden]) #sfoCamRefresh,
#sfoCam:has(#sfoCamPlayer[hidden]) #sfoCamResize,
#sfoCamSize,
body:not(.tv) .cam-head .cam-tv-title,
body.tv #sfoCamToggle {
  display: none;
}
#sfoCamResize {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  cursor: nesw-resize;
  touch-action: none;
  z-index: 1;
}
#sfoCamResize::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ffffff40;
  border-radius: 4px;
  background: #11181b linear-gradient(135deg, transparent 46%, #bac6c2 46% 54%, transparent 54%) center / 7px 7px no-repeat;
}
#sfoCamResize:is(:hover, :active, :focus-visible)::after {
  border-color: var(--lime);
}
#sfoCamPlayer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border-radius: 0 0 6px 6px;
  background: #080b0d;
}
#sfoCamPlayer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}
.cam-hint {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 9px 11px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid #869b50;
  border-radius: 8px;
  background: #1c261b;
  color: #f2f6ee;
  box-shadow: 0 3px 14px #0006;
  pointer-events: none;
  transform-origin: 21px bottom;
}
.cam-hint:not([hidden]) {
  display: grid;
}
.cam-hint i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 6px;
  background: #d4ee7a22;
  color: var(--lime);
}
.cam-hint small {
  display: block;
  color: var(--lime);
  font-size: 11px;
  font-weight: 600;
}
.cam-hint strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.2;
}
.cam-hint::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 15px;
  width: 8px;
  height: 8px;
  border-right: inherit;
  border-bottom: inherit;
  background: inherit;
  transform: rotate(45deg);
}
.cam-hint-inside .cam-hint {
  z-index: 1;
  top: calc(100% + 6px);
  bottom: auto;
}
.cam-hint-inside .cam-hint::after {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cam-hint:not([hidden]) {
    animation: cam-hint-nudge 260ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  @keyframes cam-hint-nudge {
    0% { opacity: 0.55; transform: translateY(4px) scale(0.98); }
    55% { opacity: 1; transform: translateY(-3px); }
    100% { opacity: 1; transform: none; }
  }
}
.scene-meta {
  display: flex;
  color: #fff;
  position: absolute;
  bottom: 16px;
  right: 16px;
  align-items: center;
  gap: 8px;
  text-shadow:
    0 1px 3px #000,
    0 0 7px #000;
  font-size: 9px;
  pointer-events: none;
}
.mode-label {
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #131c1de6;
  border: 1px solid #ffffff3b;
  border-radius: 3px;
  padding: 3px 5px;
}
.mode-label b {
  color: var(--lime);
  width: 4px;
  height: 4px;
}
footer {
  position: relative;
  height: var(--foot);
  flex: none;
  border-top: 1px solid #323a3a;
  background: #111619;
  color: #a1aba9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  gap: 12px;
  font: 9px var(--mono);
}
footer > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
footer > span:first-child {
  min-width: 0;
}
#feednote {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#trafficViewers {
  flex: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.footer-links {
  display: flex;
  align-items: center;
  flex: none;
  gap: 12px;
}
footer button {
  color: #aeb8b3;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.popover,
dialog {
  background: #192024;
  border: 1px solid #414b4e;
  border-radius: 9px;
  box-shadow: 0 12px 32px #0007;
  color: var(--text);
}
.popover {
  position: fixed;
  z-index: 10;
  min-width: 195px;
  padding: 5px;
  max-height: 70dvh;
  overflow: auto;
}
.popover button,
.popover a,
.popover label {
  width: 100%;
  padding: 9px 10px;
  border-radius: 5px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.popover a {
  color: inherit;
  text-decoration: none;
}
.popover .current {
  color: var(--lime);
  background: #2b342c;
}
.popover :is(button, a):focus-visible {
  outline-offset: -2px;
}
.popover input {
  accent-color: var(--lime);
}
.popover small,
.smallhead {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 10px 4px;
}
.popover hr {
  border: 0;
  border-top: 1px solid #323b3e;
  margin: 4px;
}
.popover button span.short {
  color: var(--muted);
  font: 10px var(--mono);
}
dialog {
  width: min(420px, calc(100vw - 28px));
  max-height: 82dvh;
  padding: 19px 21px;
  font-size: 13px;
  line-height: 1.6;
}
dialog::backdrop {
  background: #070b0db0;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dialog-head .icon {
  margin-right: -6px;
}
dialog p {
  color: #bdc6c5;
}
dialog a,
.textlink {
  color: var(--lime);
}
dialog dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 18px;
}
dialog dt {
  color: #a9b6b4;
}
dialog dd {
  margin: 0;
}
dialog select {
  font: 12px var(--ui);
  padding: 4px 7px;
  background: #0e1416;
  border: 1px solid #3c4848;
  border-radius: 4px;
}
.settings-row {
  border-top: 1px solid #333d3e;
  padding: 9px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.settings-row input {
  accent-color: var(--lime);
}
dialog[data-style="controls"] {
  width: min(540px, calc(100vw - 28px));
}
.control-settings h3 {
  margin: 14px 0 6px;
  font-size: 13px;
}
.control-common {
  border-block: 1px solid #333d3e;
  padding: 8px 0;
}
.control-common summary {
  cursor: pointer;
  font-weight: 600;
}
.control-view {
  border-top: 0;
}
.control-drag {
  min-width: 0;
  margin: 0 0 10px;
  padding: 6px 10px 10px;
  border: 1px solid #333d3e;
  border-radius: 5px;
}
.control-drag legend {
  padding: 0 5px;
  font-weight: 600;
}
.control-drag p,
.control-drag-note {
  margin: 3px 0 7px;
  font-size: 12px;
}
.control-drag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 148px) minmax(0, 94px);
  align-items: center;
  gap: 8px;
  padding-top: 5px;
}
.control-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 4px 0;
  border-top: 1px solid #333d3e;
}
.control-key-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(60px, 1fr));
  gap: 5px;
}
.control-key {
  min-height: 32px;
  padding: 3px 6px;
  background: #0e1416;
  border: 1px solid #46504d;
  border-radius: 4px;
  font: 11px var(--mono);
}
.control-key[data-capturing] {
  border-color: var(--lime);
  color: var(--lime);
}
.control-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #f0ce97;
}
.control-settings .dialog-action {
  margin: 8px 0;
}
@media (max-width: 410px) {
  .control-drag-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 94px);
  }
  .control-drag-row > span {
    grid-column: 1 / -1;
  }
}
#notice {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  font-size: 12px;
  z-index: 8;
  text-align: center;
  width: max-content;
  max-width: 80%;
}
#detail {
  width: 270px;
  max-width: 100%;
  padding: 15px;
  cursor: default;
}
#detail.compact {
  width: 300px;
  padding: 4px;
}
.detail-compact-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.detail-compact-row button {
  min-height: 36px;
  border-radius: 5px;
}
.detail-compact-row [data-detail="expand"] {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 8px;
  text-align: left;
}
.detail-compact-row [data-detail="expand"]:hover {
  background: #2c3336;
}
.detail-compact-row .icon {
  flex: none;
  width: 36px;
}
.detail-summary {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}
.detail-summary strong {
  font: 500 12px var(--mono);
}
.detail-summary small {
  color: #c1ccca;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.detailheader {
  display: flex;
  gap: 9px;
  align-items: center;
}
.detailheader > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.detailheader h3 {
  font: 500 15px var(--mono);
  margin: 0;
}
.detailheader small {
  font-size: 10px;
  color: #aebbb8;
}
.detailheader .icon {
  flex: none;
}
.detailheader [data-detail="collapse"] svg {
  rotate: 180deg;
}
.detailroute {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 8px;
}
.detailroute strong {
  font:
    600 27px "Barlow Condensed",
    sans-serif;
}
.detailroute i {
  color: #94a098;
}
.detail-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 10px 0 13px;
}
.detail-data p {
  margin: 0;
  display: grid;
  gap: 3px;
  font: 11px var(--mono);
}
.detail-data p[hidden] {
  display: none;
}
.detail-data small {
  color: #9ba6a5;
  font: 9px var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-actions {
  display: flex;
  gap: 6px;
}
.detail-actions button,
.dialog-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2c3535;
  border: 1px solid #46504d;
  border-radius: 5px;
  font-size: 11px;
  padding: 7px 9px;
}
.detail-actions .primary {
  background: var(--lime);
  color: #1e2618;
  border-color: var(--lime);
}
.detailnote {
  font-size: 10px;
  color: #aab6b1;
  margin: 5px 0 10px;
}
#upnext {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: #202720;
  padding: 10px 16px;
  border-top: 1px solid #353e34;
}
#upnext > i {
  color: var(--lime);
}
#upnext span {
  flex: 1;
  display: grid;
  gap: 3px;
}
#upnext small {
  font: 8px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a7b49b;
}
#upnext b {
  font-size: 11px;
  font-weight: 500;
}
#upnext em {
  font: 10px var(--mono);
  color: var(--lime);
}
.mobile-close {
  display: none;
}
body.no-board .sidebar {
  display: none;
}
#restore {
  position: absolute;
  top: 14px;
  right: 15px;
  font-size: 11px;
  z-index: 5;
  padding: 7px 10px;
}
body.clean .mast,
body.clean .sidebar,
body.clean footer,
body.clean .wx,
body.clean .nav-stack,
body.clean #sfoCam,
body.clean .scene-meta,
body.clean #detail,
body.tv .mast,
body.tv .sidebar,
body.tv footer,
body.tv .wx,
body.tv .nav-stack,
body.tv .scene-meta,
body.tv #detail {
  display: none !important;
}
body.tv {
  --tv-bottom: clamp(12px, 6dvh, 56px);
}
body.tv .stage {
  --sfo-cam-limit: min(max(280px, calc(92% - 260px)), max(280px, calc((100dvh - 110px) * 16 / 9)), 92%, 720px);
  --sfo-cam-width: min(var(--sfo-cam-requested-width, clamp(280px, 32vw, 480px)), var(--sfo-cam-limit));
}
body.tv #sfoCam {
  bottom: var(--tv-bottom);
  left: 4%;
}
#tvcard {
  position: absolute;
  bottom: var(--tv-bottom);
  right: 4%;
  max-width: 92%;
  padding: 12px 19px;
  display: grid;
  gap: 5px;
  pointer-events: none;
}
#tvcard .eyebrow {
  color: var(--lime);
  font-size: 9px;
}
#tvShot {
  border-left: 1px solid #ffffff38;
  padding-left: 8px;
  color: #d1d9d6;
}
#tvcard strong {
  font-size: 22px;
}
.tv-flight {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  color: #d1d9d6;
  font-size: 12px;
}
#tvRoute,
.tv-readouts dd {
  font: 12px var(--mono);
}
.tv-readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 8px 0 0;
}
.tv-readouts > div {
  display: grid;
  gap: 2px;
}
.tv-readouts dt {
  color: #a5b3ad;
  font-size: 11px;
}
.tv-readouts dd {
  margin: 0;
}
.tv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
  pointer-events: auto;
}
.tv-actions button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #ffffff30;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}
.tv-actions button:hover {
  background: #ffffff12;
}
#tvNext {
  color: var(--lime);
}
#tvcard small {
  color: #a5b3ad;
  font-size: 11px;
}
body.tv:where(:has(#sfoCam:not([hidden]))) #tvcard {
  max-width: calc(92% - var(--sfo-cam-width) - 12px);
}
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  body.tv .stage {
    --tv-cam-edge: max(12px, env(safe-area-inset-left));
    --tv-card-edge: max(12px, env(safe-area-inset-right));
    --tv-usable-width: calc(100% - var(--tv-cam-edge) - var(--tv-card-edge));
    --sfo-cam-expand-limit: 92%;
    --sfo-cam-width: 212px;
  }
  body.tv .stage:has(#sfoCamSize[aria-pressed="true"]) {
    --sfo-cam-width: min(var(--sfo-cam-expand-limit), 440px, max(300px, calc((100dvh - 205px) * 16 / 9)));
  }
  body.tv #sfoCam {
    /* Keep the mobile feed in its corner even after dragging it on desktop. */
    left: var(--tv-cam-edge) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }
  body.tv #sfoCam :is(#sfoCamMove, #sfoCamResize, .cam-tv-title) {
    display: none;
  }
  body.tv #sfoCamSize {
    display: flex;
    min-height: 44px;
    flex: 1;
    justify-content: space-between;
    white-space: nowrap;
  }
  body.tv #sfoCamSize[aria-pressed="false"] [data-icon] {
    transform: rotate(180deg);
  }
  body.tv .cam-head > :is(#sfoCamRefresh, #sfoCamClose, #sfoCamSource) {
    width: 44px;
    min-height: 44px;
  }
  body.tv .cam-hint {
    top: auto;
    bottom: calc(100% + 8px);
  }
  body.tv #tvcard {
    top: max(12px, env(safe-area-inset-top));
    right: var(--tv-card-edge);
    bottom: auto;
    max-width: min(var(--tv-usable-width), 352px);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 8px;
    padding: 7px 9px;
  }
  #tvcard .eyebrow {
    white-space: nowrap;
  }
  #tvShot,
  #tvGestureHint {
    display: none;
  }
  #tvcard strong {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #tvDetails,
  .tv-actions {
    grid-column: 1 / -1;
  }
  .tv-flight,
  .tv-readouts {
    gap: 2px 10px;
  }
  .tv-flight,
  #tvRoute,
  .tv-readouts dd {
    font-size: 11px;
  }
  .tv-readouts {
    margin-top: 4px;
  }
  .tv-readouts > div {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  .tv-actions {
    margin-top: 1px;
  }
  @media (min-width: 540px) and (max-height: 430px) and (orientation: landscape) {
    body.tv .stage {
      --sfo-cam-expand-limit: max(212px, calc((var(--tv-usable-width) - 12px) / 2));
    }
    body.tv:has(#sfoCam:not([hidden])) #tvcard {
      max-width: min(352px, calc(var(--tv-usable-width) - var(--sfo-cam-width) - 12px));
    }
  }
}
#flypad {
  position: absolute;
  bottom: 32px;
  left: 15px;
  z-index: 3;
  max-width: 132px;
  background: #13191de6;
  border-radius: 6px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stage:has(#sfoCam:not([hidden])) #flypad.walking {
  top: 68px;
  bottom: auto;
}
#flypad.walking [data-fly-action="forward"] { grid-column: 2; }
#flypad.walking [data-fly-action="left"] { grid-column: 1; }
#flypad.walking :is([data-fly-action="rise"], [data-fly-action="fall"]) { display: none; }
#flypad button {
  padding: 7px 12px;
  touch-action: none;
}
body:has(#flypad:not([hidden], .walking), #welcome[open]) #sfoCam {
  display: none;
}
.stage:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: -2px;
}
@media (min-width: 1500px) {
  :root {
    --sidebar: 330px;
  }
  .flightrow {
    height: 62px;
  }
}
@media (max-width: 1100px) {
  .mast {
    gap: 10px;
    padding: 0 12px;
  }
  .cameras button {
    padding: 7px 9px;
  }
  .mast-right {
    gap: 8px;
  }
  .brand .wordmark {
    font-size: 19px;
  }
  :root {
    --sidebar: 275px;
  }
  .time {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  :root {
    --sidebar: 246px;
  }
  .mast-right .time {
    display: none;
  }
  .cameras button {
    padding: 6px 8px;
    gap: 4px;
  }
  .brand {
    gap: 6px;
  }
  .brand img {
    width: 28px;
  }
  .mast-right {
    flex: 0 1 auto;
  }
  .flightrow {
    padding: 0 12px;
    gap: 7px;
  }
  .station {
    padding: 17px 15px;
  }
  .station h1 {
    font-size: 24px;
  }
  .wx {
    gap: 5px;
  }
  .footer-mid {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --mast: 91px;
    --foot: 23px;
  }
  .mast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 44px 40px;
    gap: 0 7px;
    padding: 2px 10px 4px;
  }
  .brand .wordmark {
    font-size: 19px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .mast-right {
    grid-column: 2;
    grid-row: 1;
    gap: 7px;
  }
  .mast-right .time {
    display: flex;
    font-size: 10px;
  }
  .mast-controls {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .cameras {
    flex: 1;
    padding: 2px;
  }
  .cameras button {
    justify-content: center;
    flex: 1;
    padding: 5px 6px;
    font-size: 11px;
    gap: 6px;
  }
  .sidebar {
    display: none;
    position: absolute;
    inset: 0 auto 0 0;
    width: min(318px, 88vw);
    box-shadow: 6px 0 20px #0005;
    z-index: 5;
  }
  .mobile-board .sidebar {
    display: flex;
  }
  .mobile-close {
    display: grid;
  }
  .station {
    padding: 11px 16px;
  }
  .station h1 {
    font-size: 23px;
    margin: 4px 0;
  }
  .boardhead {
    padding: 9px 14px 4px;
  }
  .tabs button {
    padding: 6px 0;
  }
  .filters {
    padding: 8px 12px;
  }
  .flightrow {
    height: 47px;
  }
  .stage-top {
    inset: 10px 9px 0;
  }
  .wx {
    height: 31px;
    padding: 0 7px;
  }
  .wx b {
    font-size: 9px;
  }
  .nav-stack {
    bottom: 37px;
    right: 9px;
    gap: 6px;
  }
  #sfoCam {
    bottom: 12px;
    left: 9px;
  }
  body:not(.tv) .stage {
    --sfo-cam-limit: min(calc(100% - 72px), max(358px, calc((100dvh - 170px) * 16 / 9)), 720px);
  }
  body.mobile-board:not(.tv) #sfoCam {
    display: none;
  }
  .cam-head :is(button, a, .cam-tv-title) {
    min-height: 44px;
  }
  .scene-meta {
    right: 9px;
    bottom: 10px;
    font-size: 8px;
  }
  .time small {
    display: none;
  }
  footer {
    font-size: 8px;
    padding: 0 8px;
  }
  .footer-links {
    gap: 8px;
  }
  .footer-links button {
    font-size: inherit;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .mast {
    gap: 7px;
  }
  .cameras button {
    padding-inline: 3px;
  }
}
@media (min-width: 701px) and (max-width: 740px) {
  .mast {
    gap: 5px;
    padding-inline: 8px;
  }
  .cameras button {
    gap: 2px;
    padding-inline: 2px;
  }
}
@media (max-width: 1000px), (max-height: 500px) and (pointer: coarse) {
  .atc {
    padding-inline: 6px;
  }
  .atc-full,
  .atc [data-icon] {
    display: none;
  }
  .atc-short {
    display: inline;
  }
}
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  #detail {
    width: 240px;
    max-height: 45%;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .detailheader {
    gap: 6px;
  }
  .detailroute {
    margin: 6px 0;
  }
  .detailroute strong {
    font-size: 22px;
  }
  .detail-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 6px 0 8px;
    overflow-wrap: anywhere;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 440px) {
  .stage-top:has(#detail:not([hidden])) .wx > :is(span, [data-icon="wind"], b) {
    display: none;
  }
}
@media (max-width: 415px) {
  .mast-right .time {
    display: none;
  }
}
@media (max-width: 390px) {
  .cameras button {
    padding-inline: 4px;
    gap: 4px;
  }
  .scene-meta #coords {
    display: none;
  }
  .wx > span,
  .wx b,
  .wx i:last-of-type {
    display: none;
  }
}
@media (max-width: 360px) {
  .brand {
    gap: 4px;
  }
  .brand img {
    width: 24px;
    height: 24px;
  }
  .brand .wordmark {
    font-size: 16px;
  }
  .mast-right {
    gap: 4px;
  }
  .cameras button {
    padding-inline: 2px;
    gap: 2px;
  }
}
@media (max-height: 610px) {
  .station {
    padding: 10px 15px;
  }
  .boardhead {
    padding-top: 8px;
    padding-bottom: 5px;
  }
  .nav-stack {
    gap: 3px;
    bottom: 30px;
  }
  .rail button {
    height: 27px;
  }
}
#scene {
  cursor: grab;
}
#scene.dragging {
  cursor: grabbing;
}
#dragHint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px var(--ui);
  color: #e1e9e4;
  background: #162022dd;
  border: 1px solid #ffffff23;
  border-radius: 4px;
  padding: 4px 8px;
  pointer-events: none;
  white-space: nowrap;
}
#dragHint b {
  padding: 0 3px;
  color: #b0bb9c;
}
@media (min-width: 951px) {
  .stage:has(#sfoCam:not([hidden]) #sfoCamToggle[aria-expanded="true"]) #dragHint {
    left: max(50%, 480px);
  }
}
#dragHint .touch-hint {
  display: none;
}
.clean #dragHint,
.tv #dragHint {
  display: none;
}
@media (pointer: coarse) {
  #dragHint .desktop-hint {
    display: none;
  }
  #dragHint .touch-hint {
    display: inline;
  }
}
@media (max-width: 950px) {
  #dragHint {
    bottom: auto;
    top: 56px;
    left: 16px;
    transform: none;
    font-size: 9px;
  }
  .stage:has(#detail:not([hidden])) #dragHint {
    display: none;
  }
}
@media (max-width: 700px) {
  #dragHint {
    top: 47px;
    left: 9px;
  }
}
#radarStyle {
  display: flex;
  gap: 2px;
  padding: 3px;
}
#radarStyle button {
  font-size: 11px;
  border-radius: 3px;
  color: #bfcac6;
  padding: 4px 9px;
}
#radarStyle button.active {
  background: #3a472e;
  color: var(--lime);
}
.clean #radarStyle {
  display: none;
}
.tag {
  touch-action: none;
}

#sceneryStatus {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(215px,calc(100% - 26px));
  padding: 10px 13px;
  pointer-events: none;
}
.scenery-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
  font-size: 11px;
}
#sceneryPercent {
  color: var(--lime);
  font: 10px var(--mono);
  font-variant-numeric: tabular-nums;
}
#sceneryProgress {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 7px;
  accent-color: var(--lime);
}
#sceneryRetry {
  pointer-events: auto;
  color: var(--lime);
  font-size: 11px;
  margin-top: 4px;
  padding: 4px 0;
}
#welcome {
  width: min(510px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(18px, 5vw, 28px);
  border-color: #546057;
  border-radius: 16px;
  background: linear-gradient(150deg, #20292b, #151c20 65%);
  box-shadow: 0 20px 76px #05090abd;
  animation: welcome-in 230ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
#welcome::backdrop {
  background: #070b0d52;
  backdrop-filter: none;
}
@keyframes welcome-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
#welcomeClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
}
.welcome-airport {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--lime);
}
#welcomeTitle {
  margin: 0;
  outline: none;
  font: 600 clamp(38px, 8vw, 54px)/0.95 "Barlow Condensed", var(--ui);
}
#welcomeIntro {
  margin: 10px 0 20px;
  font-size: 14px;
  line-height: 1.45;
}
.welcome-views {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.welcome-views button {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 2px;
  padding: 12px;
  border: 1px solid #394447;
  border-radius: 8px;
  background: #181f22;
  line-height: 1.3;
  text-align: left;
}
.welcome-views button i {
  margin-bottom: 6px;
  color: var(--lime);
}
.welcome-views button small {
  color: #b9c4c4;
  font-size: 11px;
}
.welcome-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid #455153;
  border-radius: 8px;
  background: #222b2d;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.welcome-link small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.welcome-game {
  width: 100%;
  gap: 10px;
}
.welcome-game i {
  color: var(--lime);
}
.welcome-game small {
  display: block;
}
.welcome-link,
.welcome-views button {
  transition: background-color 150ms ease, transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .welcome-link:hover,
  .welcome-views button:hover:not(:disabled) { background: #2a3434; }
}
.welcome-link:active,
.welcome-views button:active:not(:disabled) {
  transform: scale(0.98);
}
#welcome #sceneryStatus,
#welcomeUnavailable {
  position: static;
  transform: none;
  width: auto;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #394447;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #b9c4c4;
}
@media (max-width: 430px) {
  .welcome-views button {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 10px;
    padding: 8px 12px;
  }
  .welcome-views {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .welcome-views button i {
    grid-row: span 2;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #welcome { animation: none; }
  .welcome-link, .welcome-views button { transition: none; }
  .welcome-link:active,
  .welcome-views button:active:not(:disabled) { transform: none; }
}
@media (max-width: 850px) {
  #sceneryStatus {
    top: 90px;
  }
}

#scene.tower-display-hover:not(.dragging) {
  cursor: zoom-in;
}
#towerDisplays {
  max-width: 100%;
  flex: none;
  display: flex;
  overflow: hidden;
}
#towerDisplays button {
  min-height: 34px;
  padding: 0 10px;
  font: 11px var(--mono);
}
#towerDisplays button + button {
  border-left: 1px solid #ffffff24;
}
#towerDisplays button:hover,
#towerDisplays button:focus-visible {
  background: #ffffff14;
}
body.clean #towerDisplays {
  display: none;
}
#dialog[data-style="scope"] {
  width: min(980px, calc(100vw - 24px), calc(140dvh - 128px));
}
#dialog[data-style="strips"] {
  width: min(800px, calc(100vw - 24px));
}
#dialog[data-style="scope"] canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #385050;
  border-radius: 4px;
}
.scope-note {
  margin: 8px 0 0;
  font: 11px/1.5 var(--mono);
}
.strip-rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.strip-bay {
  min-width: 0;
  padding: 9px;
  border-radius: 4px;
  background: #101715;
  border: 1px solid #35403a;
}
.strip-bay h3 {
  margin: 0 0 12px;
  font: 600 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e7cc8f;
}
.strip-bay[data-direction="departure"] h3 {
  color: #a9cad8;
}
.strip-bay h4 {
  margin: 12px 0 5px;
  font: 11px var(--mono);
  color: #b3c2b8;
}
.strip-bay ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(25dvh, 15rem);
  overflow-y: auto;
  scrollbar-width: thin;
}
.strip-bay p {
  margin: 5px 0 4px;
  font-size: 12px;
}
.paper-strip {
  padding: 4px 8px;
  border-left: 5px solid #b59a5b;
  border-radius: 2px;
  background: #e7cc8f;
  color: #3b3126;
  font: 12px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}
.strip-bay[data-direction="departure"] .paper-strip {
  border-left-color: #6c95a8;
  background: #a9cad8;
  color: #24323a;
}
.paper-strip div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.paper-strip div + div {
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid #7b664e4d;
  font-size: 10px;
}
@media (max-width: 700px) {
  #dialog[data-style="scope"], #dialog[data-style="strips"] {
    padding: 11px;
  }
}
@media (max-width: 550px) {
  .strip-rack {
    grid-template-columns: 1fr;
  }
}

#airportSwitch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 63px;
  min-height: 32px;
  padding: 0 5px;
  color: var(--lime);
  background: #1d2325;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 600 11px var(--mono);
}
#airportSwitch:hover,
#airportSwitch[aria-expanded="true"] {
  background: #2b342c;
  border-color: #515c3c;
}
#airportSwitch[aria-expanded="true"] [data-icon="down"] {
  transform: rotate(180deg);
}
.airport-menu {
  width: 236px;
}
.airport-menu .smallhead {
  margin: 0;
  font-size: 10px;
}
.airport-menu section + section {
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.airport-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.airport-menu a {
  min-height: 36px;
  font-size: 13px;
}
.airport-menu a span {
  color: var(--muted);
  font: 600 11px var(--mono);
}
.airport-menu a[aria-current="true"] {
  background: #2b342c;
}
.airport-menu a[aria-current="true"] span {
  color: var(--lime);
}
#officialBoard {
  align-self: center;
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}
#officialBoard:hover {
  color: var(--lime);
}
@media (max-width: 700px) {
  #airportSwitch {
    width: 55px;
    min-height: 28px;
    padding-inline: 3px;
  }
  .airport-menu a {
    min-height: 44px;
  }
}
