: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 h1 {
  font-size: 21px;
  letter-spacing: -0.85px;
  margin: 0;
  font-weight: 700;
}
.brand h1 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,
.popover button: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 {
  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;
}
.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 span {
  color: #71806d;
}
.station-id b {
  width: 5px;
  height: 5px;
  background: var(--lime);
}
.station h2 {
  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 span {
  padding: 0 3px;
}
.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 {
  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,
#minimap {
  touch-action: none;
}
#labels {
  --tag-width: 134px;
  --tag-height: 34px;
  --tag-stem: 9px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.tag {
  position: absolute;
  left: 0;
  top: 0;
  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::after {
  content: "";
  width: 1px;
  height: var(--tag-stem);
  background: #ffffffa6;
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .tag:hover {
    border-color: #ccd8d9;
    background: #253234;
  }
}
.tag.selected {
  background: #263319f5;
  border-color: var(--lime);
  z-index: 2;
}
.tag.selected::after {
  background: var(--lime);
}
.stage-head {
  position: absolute;
  top: 15px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  gap: 6px;
  z-index: 3;
}
.stage-head > * {
  pointer-events: auto;
}
.box,
.rail,
.compass,
#detail,
#notice,
#tvcard {
  border: 1px solid #ffffff30;
  background: #11181bef;
  color: #e9eee8;
  border-radius: 7px;
  box-shadow: 0 2px 9px #0003;
}
.view-button,
.wx {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 33px;
  padding: 0 10px;
  font-size: 11px;
}
.view-button > i:first-child {
  color: var(--lime);
}
.view-button > i:last-child {
  color: #8e9b9a;
  margin-left: 3px;
}
.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);
}
#mini {
  position: absolute;
  bottom: 19px;
  left: 16px;
  width: 161px;
  height: 126px;
  overflow: hidden;
  z-index: 2;
}
.minihead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  background: #171e20;
  border-bottom: 1px solid #394043;
  height: 25px;
  padding-left: 9px;
}
.minihead > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.minihead span i {
  width: 4px;
  height: 4px;
  color: var(--lime);
}
.minihead button {
  color: #bdc7c2;
  width: 27px;
  height: 24px;
  display: grid;
  place-items: center;
}
#minimap {
  width: 100%;
  height: calc(100% - 25px);
  cursor: crosshair;
}
.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 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 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 .current {
  color: var(--lime);
  background: #2b342c;
}
.popover button: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);
}
#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 {
  position: absolute;
  top: 60px;
  left: 16px;
  width: 270px;
  z-index: 3;
  padding: 15px;
  cursor: default;
  border-top: 2px solid var(--lime);
}
#detail.compact {
  width: max-content;
  padding: 6px;
}
.detailheader {
  display: flex;
  gap: 9px;
  align-items: center;
}
.detailheader h3 {
  font: 500 15px var(--mono);
  margin: 0;
}
.detailheader small {
  font-size: 10px;
  color: #aebbb8;
}
.detailheader .icon {
  margin-left: auto;
}
.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 .stage-head,
body.clean .nav-stack,
body.clean #mini,
body.clean .scene-meta,
body.clean #detail,
body.tv .mast,
body.tv .sidebar,
body.tv footer,
body.tv .stage-head,
body.tv .nav-stack,
body.tv #mini,
body.tv .scene-meta,
body.tv #detail {
  display: none !important;
}
#tvcard {
  position: absolute;
  bottom: 6%;
  left: 4%;
  max-width: 92%;
  padding: 12px 19px;
  display: grid;
  gap: 5px;
  pointer-events: none;
}
#tvcard .eyebrow {
  color: var(--lime);
  font-size: 9px;
}
#tvcard strong {
  font-size: 22px;
}
#tvRoute {
  color: #d1d9d6;
  font: 12px var(--mono);
}
.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;
}
#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);
}
#flypad button {
  padding: 7px 12px;
  touch-action: none;
}
body:has(#flypad:not([hidden])) #mini {
  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 h1 {
    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 h2 {
    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 h1 {
    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 h2 {
    font-size: 23px;
    margin: 4px 0;
  }
  .boardhead {
    padding: 9px 14px 4px;
  }
  .tabs button {
    padding: 6px 0;
  }
  .filters {
    padding: 8px 12px;
  }
  .flightrow {
    height: 47px;
  }
  .stage-head {
    top: 10px;
    left: 9px;
    right: 9px;
  }
  .view-button {
    gap: 6px;
    padding: 0 8px;
  }
  .wx {
    height: 31px;
    padding: 0 7px;
  }
  .wx b {
    font-size: 9px;
  }
  .nav-stack {
    bottom: 37px;
    right: 9px;
    gap: 6px;
  }
  #mini {
    bottom: 12px;
    left: 9px;
    width: 130px;
    height: 105px;
  }
  .scene-meta {
    right: 9px;
    bottom: 10px;
    font-size: 8px;
  }
  #detail {
    top: 50px;
    left: 9px;
  }
  .time small {
    display: none;
  }
  footer {
    font-size: 8px;
    padding: 0 8px;
  }
}
@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: min(240px, calc(100% - 32px));
    max-height: 45%;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #radarStyle:not([hidden]) ~ #detail {
    max-width: calc(100% - 145px);
  }
  #detail.compact {
    max-width: calc(100% - 32px);
    padding: 4px;
  }
  .detailheader {
    gap: 6px;
  }
  .detailheader > div {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .detailheader .icon {
    flex: none;
    margin-left: 0;
  }
  .detailheader [data-detail="collapse"] svg {
    rotate: 180deg;
  }
  .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;
  }
  .compact .detail-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
  }
  .compact .detail-actions button {
    min-height: 36px;
  }
  .compact [data-detail="expand"] {
    min-width: 0;
    text-align: left;
    padding: 4px 8px;
  }
  .compact .detail-actions .icon {
    flex: none;
    width: 36px;
    padding: 0;
    background: transparent;
    border-color: transparent;
  }
  .compact .detail-actions .icon:hover {
    background: #2c3336;
  }
  .detail-summary {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .detail-summary > * {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .detail-summary strong {
    font: 500 12px var(--mono);
  }
  .detail-summary small {
    color: #aebbb8;
    font-size: 10px;
  }
  .stage:has(#detail:not([hidden])) #dragHint {
    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 h1 {
    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;
  }
  #mini {
    height: 86px;
    width: 120px;
  }
  .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;
}
#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;
  }
}
@media (max-width: 700px) {
  #dragHint {
    top: 47px;
    left: 9px;
  }
}
#radarStyle {
  position: absolute;
  z-index: 3;
  left: 16px;
  top: 57px;
  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;
}
body:has(#detail:not([hidden])) #radarStyle {
  left: auto;
  right: 16px;
}
#surveyCredit {
  position: absolute;
  bottom: 4px;
  left: 16px;
  color: #e1e7e5;
  text-decoration: none;
  font: 8px var(--ui);
  text-shadow:
    0 1px 2px #111,
    0 0 4px #111;
  z-index: 2;
}
.footer-mid #photoCredit {
  font-size: inherit;
}
@media (min-width: 851px) {
  #surveyCredit {
    display: none;
  }
  body.clean #surveyCredit,
  body.tv #surveyCredit {
    display: block;
  }
}
body.clean #surveyCredit,
body.tv #surveyCredit {
  left: auto;
  right: 8px;
}

.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;
}
@media (max-width: 850px) {
  #sceneryStatus {
    top: 90px;
  }
}

#scene.tower-display-hover:not(.dragging) {
  cursor: zoom-in;
}
#towerDisplays {
  position: absolute;
  z-index: 2;
  top: 55px;
  left: 16px;
  max-width: calc(100% - 32px);
  display: flex;
  overflow: hidden;
}
#towerDisplays:not([hidden]) ~ #detail {
  top: 97px;
}
#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) {
  #towerDisplays {
    left: 9px;
    top: 47px;
    max-width: calc(100% - 18px);
  }
  #towerDisplays:not([hidden]) ~ #detail {
    top: 89px;
  }
  #dialog[data-style="scope"], #dialog[data-style="strips"] {
    padding: 11px;
  }
}
@media (max-width: 550px) {
  .strip-rack {
    grid-template-columns: 1fr;
  }
}
