:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #111313;
  --raised: #191b1b;
  --line: #292d2d;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --amber: #f59e0b;
  --green: #34d399;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.beta-notice:not([open]) {
  display: none;
}
.beta-notice {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 80px #0008;
}
.beta-notice::backdrop {
  background: #000b;
}
.beta-notice .eyebrow {
  color: var(--amber);
}
.beta-notice h2 {
  font-size: 26px;
  line-height: 1.2;
  text-wrap: balance;
}
.beta-notice-description {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  line-height: 1.6;
}
.beta-notice-status {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.5;
}
.beta-notice button {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border-color: var(--amber);
  background: var(--amber);
  color: var(--bg);
}
.beta-notice button:hover {
  background: #fbbf24;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
input[type='search'] {
  min-height: 40px;
  border: 1px solid #393d3d;
  border-radius: 6px;
  background: #191b1b;
  color: var(--text);
}
button {
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #292b29;
  border-color: #68706b;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button[aria-pressed='true'] {
  color: var(--amber);
  border-color: #8b6220;
  background: #292318;
}
select {
  padding: 9px 30px 9px 11px;
  width: 100%;
}
input[type='search'] {
  padding: 10px 12px;
  width: 100%;
}
input::placeholder {
  color: #8a9298;
}
a {
  color: #c5c9cc;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--amber);
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: var(--muted);
}
.shell {
  max-width: 1760px;
  margin: auto;
  padding: 32px 40px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
}
.identity {
  display: flex;
  gap: 17px;
  align-items: center;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #6a4b1d;
  background: #211b11;
  color: var(--amber);
  font-size: 31px;
  border-radius: 10px;
}
.brand-dot {
  color: var(--amber);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 7px;
}
.identity .muted {
  font-size: 12px;
  margin-top: 7px;
}
.clock-block {
  text-align: right;
}
.clock-label {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.live-badge {
  color: var(--green);
}
#live-clock {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -2px;
  display: block;
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}
#live-date {
  font-size: 12px;
}
.notice {
  font-size: 13px;
  padding: 12px 15px;
  background: #17201b;
  border: 1px solid #304e3b;
  border-radius: 6px;
  margin-bottom: 18px;
  color: #acd9bd;
}
.notice.warning {
  background: #292113;
  border-color: #6a5024;
  color: #f5cc85;
}
.notice[hidden] {
  display: none;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: end;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
}
.field {
  min-width: 145px;
}
.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.airport-field {
  flex: 1.3;
  min-width: 210px;
}
.search-field {
  flex: 1.5;
}
.timeline {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 21px 24px 17px;
  background: var(--panel);
  margin-bottom: 22px;
}
.timeline-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.timeline h2 {
  font-size: 15px;
}
.timeline p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.preview-readout {
  display: flex;
  align-items: center;
  gap: 13px;
}
#preview-clock {
  font-family: ui-monospace, Consolas, monospace;
  min-width: 52px;
  font-size: 18px;
}
.tag,
.subtle-tag {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.tag {
  color: var(--green);
  border-color: #315b48;
}
.tag.preview {
  color: var(--amber);
  border-color: #705023;
}
.subtle-tag {
  color: var(--muted);
}
#preview {
  width: 100%;
  margin: 24px 0 7px;
  accent-color: var(--amber);
  height: 16px;
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
}
.playback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
}
.playback button {
  font-size: 12px;
  min-height: 32px;
  padding: 6px 10px;
}
.playback label,
.playback-help {
  font-size: 11px;
  color: var(--muted);
}
.playback select {
  font-size: 12px;
  width: 78px;
  min-height: 32px;
  padding: 5px 8px;
}
.operations {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
}
.map-panel,
.detail-panel,
.board,
.data-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.panel-heading h2 {
  font-size: 17px;
}
.map-wrap {
  position: relative;
  height: 510px;
  background: #0b1112;
}
.map-wrap > #map {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.map-wrap > #map:active {
  cursor: grabbing;
}
.map-tools {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  gap: 5px;
}
.map-tools button {
  box-shadow: 0 2px 8px #0005;
  background: #171c1e;
}
.map-tools button:first-child,
.map-tools button:nth-child(2) {
  font-size: 20px;
  padding: 2px;
  width: 37px;
}
.map-tools button:last-child {
  font-size: 11px;
}
.map-caption {
  position: absolute;
  bottom: 17px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #9ca9ae;
  pointer-events: none;
}
.map-message {
  position: absolute;
  left: 16px;
  bottom: 43px;
  max-width: calc(100% - 32px);
  font-size: 12px;
  background: #182025ed;
  border: 1px solid #3a4b52;
  padding: 10px;
  border-radius: 4px;
}
.map-footer {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
}
.legend {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.inbound {
  color: var(--green);
}
.outbound {
  color: var(--amber);
}
.quiet {
  font-size: 11px;
  background: transparent;
  min-height: 32px;
  padding: 6px 8px;
}
.flight-detail {
  padding: 22px;
}
.detail-empty {
  padding: 46px 5px;
  text-align: center;
}
.empty-plane {
  display: block;
  color: #65716f;
  font-size: 44px;
  margin-bottom: 24px;
}
.detail-empty h3 {
  font-size: 16px;
  line-height: 1.5;
}
.detail-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}
.detail-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 7px;
  margin: 10px 0 25px;
}
.detail-route strong {
  font-size: 28px;
  letter-spacing: -1px;
}
.detail-route span {
  color: var(--muted);
}
.detail-route small {
  display: block;
  color: var(--muted);
  max-width: 105px;
  font-size: 10px;
  margin-top: 7px;
  font-weight: 400;
  line-height: 1.4;
}
.detail-route > div:last-child {
  text-align: right;
}
.detail-status {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.5px;
}
.flight-detail dl {
  margin: 0;
}
.detail-pair {
  margin: 0 0 17px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  line-height: 1.5;
}
.detail-pair dt {
  color: var(--muted);
}
.detail-pair dd {
  margin: 0;
  text-align: right;
  max-width: 65%;
  overflow-wrap: anywhere;
}
.progress-track {
  width: 100%;
  height: 5px;
  margin-top: 26px;
  border: 0;
  border-radius: 5px;
  accent-color: var(--amber);
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0 20px;
}
.detail-source {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  scroll-margin-top: 16px;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 22px 7px;
  gap: 12px;
}
.board-heading > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.direction {
  font-size: 25px;
}
.board-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.board-note {
  color: var(--muted);
  font-size: 10px;
  padding: 0 22px 18px;
  line-height: 1.6;
}
.board-columns {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 110px;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #a1a9aa;
  padding: 12px 22px;
  background: #191b1b;
  border-block: 1px solid var(--line);
}
.board-columns span:last-child {
  text-align: right;
}
.board-rows {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  max-height: 560px;
  overflow: auto;
  scrollbar-color: #454c48 transparent;
  scrollbar-width: thin;
}
.flight-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 110px;
  gap: 12px;
  width: 100%;
  border: 1px solid #3b4d57;
  border-radius: 8px;
  text-align: left;
  padding: 16px 22px;
  background: #19272f;
  min-height: 78px;
  font-weight: 400;
}
.flight-row:nth-of-type(even) {
  background: #121c22;
}
.flight-row:hover {
  background: #263b46;
  border-color: #6b8390;
}
.flight-row[aria-pressed='true'] {
  box-shadow: inset 3px 0 var(--amber);
  background: #252118;
  color: var(--text);
  border-color: var(--amber);
}
.flight-row > span {
  min-width: 0;
}
.flight-row strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flight-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flight-row .row-time {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 16px;
}
.flight-row > span:last-child {
  text-align: right;
}
.flight-row .row-status {
  font-size: 11px;
  font-weight: 500;
}
.flight-row[data-phase='airborne'] .row-status {
  color: var(--green);
}
.flight-row[data-phase='arrived'] .row-status {
  color: #b4bdc3;
}
.board-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.data-panel {
  margin-top: 24px;
  padding: 23px;
}
.data-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.data-heading h2 {
  font-size: 17px;
}
.data-heading button {
  font-size: 12px;
}
.data-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 24px 0;
}
.data-stats dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.data-stats dd {
  font-size: 13px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: #bfc5c6;
  line-height: 1.7;
}
.assumptions {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 17px;
}
.assumptions p + p {
  margin-top: 10px;
}
.assumptions ul {
  padding-left: 19px;
}
.assumptions li {
  margin-top: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #969d9f;
  font-size: 10px;
  padding: 26px 0 7px;
  line-height: 1.8;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 20;
  background: var(--amber);
  color: #111;
  padding: 12px;
  border-radius: 5px;
}
.skip:focus {
  top: 12px;
}
.preview-time {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.preview-time > span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
#preview-clock {
  font-size: 16px;
  white-space: nowrap;
}
.data-stats {
  grid-template-columns: repeat(6, 1fr);
}
@media (min-width: 1550px) {
  .operations {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .map-wrap {
    height: 570px;
  }
  .flight-row,
  .board-columns {
    grid-template-columns: 120px minmax(0, 1fr) 125px;
  }
}
@media (max-width: 1100px) {
  .shell {
    padding: 25px 24px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .airport-field,
  .search-field {
    flex: 1;
    min-width: 280px;
  }
  .field:not(.airport-field):not(.search-field) {
    flex: 1;
  }
  .operations {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .map-footer {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .flight-row,
  .board-columns {
    grid-template-columns: 75px minmax(0, 1fr) 90px;
    gap: 8px;
    padding-inline: 15px;
  }
  .data-stats {
    gap: 15px;
  }
  .playback-help {
    display: none;
  }
}
@media (max-width: 800px) {
  .operations {
    grid-template-columns: 1fr;
  }
  .map-wrap {
    height: 480px;
  }
  .detail-empty {
    padding: 18px 10px;
  }
  .empty-plane {
    display: none;
  }
  .flight-detail {
    padding: 20px;
  }
  .detail-route {
    justify-content: flex-start;
    gap: 35px;
  }
  .detail-route > div:last-child {
    text-align: left;
  }
  .detail-pair {
    max-width: 550px;
  }
  .boards {
    grid-template-columns: 1fr;
  }
  .map-footer {
    align-items: center;
    flex-direction: row;
  }
  .data-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .timeline-heading {
    align-items: start;
    flex-direction: column;
  }
  .preview-readout {
    width: 100%;
  }
  .preview-readout button {
    margin-left: auto;
  }
  .timeline {
    padding: 20px;
  }
  .board-columns,
  .flight-row {
    grid-template-columns: 100px minmax(0, 1fr) 115px;
  }
  .masthead {
    gap: 15px;
  }
  .identity {
    gap: 12px;
  }
  .brand-mark {
    display: none;
  }
  .clock-label {
    flex-direction: column;
    gap: 4px;
  }
  #live-clock {
    font-size: 33px;
  }
  .identity h1 {
    font-size: 26px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 500px) {
  .shell {
    padding: 20px 14px;
  }
  .masthead {
    align-items: start;
  }
  .identity .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .identity h1 {
    font-size: 24px;
  }
  .identity .muted {
    max-width: 155px;
    font-size: 10px;
    line-height: 1.5;
  }
  .clock-label {
    font-size: 8px;
  }
  #live-clock {
    font-size: 29px;
  }
  #live-date {
    font-size: 10px;
    max-width: 150px;
  }
  .toolbar {
    gap: 12px;
  }
  .airport-field,
  .search-field {
    min-width: 100%;
    flex-basis: 100%;
  }
  .field:not(.airport-field):not(.search-field) {
    min-width: 120px;
  }
  .search-field {
    order: 2;
  }
  .map-wrap {
    height: 440px;
  }
  .panel-heading {
    padding: 17px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .map-caption {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .map-footer {
    padding: 10px;
    flex-wrap: wrap;
  }
  .legend {
    gap: 10px;
  }
  .board-columns,
  .flight-row {
    grid-template-columns: 76px minmax(0, 1fr) 96px;
    padding-inline: 13px;
    gap: 8px;
  }
  .board-columns {
    font-size: 8px;
    letter-spacing: 0.3px;
  }
  .flight-row strong {
    font-size: 12px;
  }
  .flight-row .row-time {
    font-size: 15px;
  }
  .data-panel {
    padding: 18px;
  }
  .data-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-heading {
    align-items: start;
  }
  .data-heading h2 {
    font-size: 15px;
  }
  .data-heading button {
    min-width: 90px;
    padding: 8px;
    font-size: 10px;
  }
  .preview-readout {
    gap: 10px;
  }
  .preview-readout button {
    font-size: 11px;
  }
  .timeline {
    padding: 17px;
  }
  .board-heading {
    padding-inline: 16px;
  }
  .board-note {
    padding-inline: 16px;
  }
}
@media (max-width: 500px) {
  .preview-readout {
    flex-wrap: wrap;
  }
  .clock-block,
  .identity {
    min-width: 0;
  }
  .preview-time > span {
    font-size: 8px;
  }
  .preview-time #preview-clock {
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .masthead {
    flex-direction: column;
  }
  .clock-block {
    align-self: stretch;
  }
  .clock-label {
    flex-direction: row;
  }
  #live-date {
    max-width: none;
  }
  .board-columns,
  .flight-row {
    grid-template-columns: 62px minmax(0, 1fr) 86px;
  }
  .data-stats {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.filterbar,
.inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.filterbar label {
  color: var(--muted);
  font-size: 12px;
}
.filterbar select {
  width: auto;
  margin-left: 6px;
}
.inspector-actions {
  padding: 12px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.inspector-actions button {
  font-size: 11px;
}
.airport-summary {
  margin: 22px 0;
  line-height: 1.8;
}
.airport-summary p {
  margin-top: 8px;
  font-size: 12px;
}
.traffic {
  display: grid;
  grid-template-columns: repeat(48, minmax(0, 1fr));
  gap: 3px;
  margin-top: 20px;
}
.traffic button {
  display: flex;
  align-items: end;
  gap: 1px;
  justify-content: center;
  height: 62px;
  padding: 4px 1px;
  border-radius: 2px;
  min-width: 0;
}
.traffic span {
  width: 45%;
  display: block;
}
.bin-arrivals {
  background: var(--green);
}
.bin-departures {
  background: var(--amber);
}
.row-day {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.5px;
}
.row-day[hidden] {
  display: none;
}
.compact .flight-row {
  padding-block: 9px;
  min-height: 48px;
}
.compact .flight-row small {
  margin-top: 3px;
}
.ground-fleet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-height: 350px;
  overflow: auto;
}
.ground-fleet p {
  padding: 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
}
.coverage {
  color: var(--muted);
  line-height: 1.8;
  font-size: 12px;
  margin-top: 18px;
}
body[data-expanded='map'] .map-panel,
body[data-expanded='board'] .boards {
  position: fixed;
  inset: 12px;
  z-index: 50;
  background: var(--panel);
  overflow: auto;
  margin: 0;
}
body[data-expanded='map'] .map-wrap {
  height: calc(100dvh - 170px);
}
body[data-expanded] #exit-expanded:not([hidden]) {
  position: fixed;
  right: 30px;
  bottom: 24px;
  z-index: 60;
  background: var(--raised);
}
body[data-expanded='board'] .board-rows {
  max-height: calc(100dvh - 160px);
}
.expanded-board-heading,
.row-extra,
.row-leg-times {
  display: none;
}
.widget-actions #fullscreen-board {
  width: auto;
  padding-inline: 7px;
  font-size: 10px;
  color: var(--amber);
}
body[data-expanded='board'] .boards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 16px;
  padding: 20px;
}
body[data-expanded='board'] .expanded-board-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: -20px;
  z-index: 2;
  padding-block: 14px;
  background: var(--panel);
}
.expanded-board-heading > div {
  min-width: 0;
}
.expanded-board-heading h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.expanded-board-heading p {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--muted);
}
body[data-expanded='board'] #exit-expanded:not([hidden]) {
  position: static;
  flex-shrink: 0;
  min-height: 40px;
}
body[data-expanded='board'] .board {
  min-width: 0;
}
body[data-expanded='board'] .board-columns,
body[data-expanded='board'] .flight-row {
  grid-template-columns: minmax(115px, 0.9fr) minmax(130px, 1.5fr) minmax(95px, 0.8fr);
}
body[data-expanded='board'] .board-rows {
  max-height: calc(100dvh - 235px);
}
body[data-expanded='board'] .flight-row strong,
body[data-expanded='board'] .flight-row small {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
body[data-expanded='board'] .flight-row .row-flight {
  font-size: 13px;
  font-weight: 600;
  color: #f0d794;
}
body[data-expanded='board'] .row-status-column {
  text-align: right;
}
body[data-expanded='board'] .flight-row > .row-extra {
  display: block;
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: left;
  overflow-wrap: anywhere;
}
body[data-expanded='board'] .flight-row > .row-leg-times {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  padding: 8px;
  border-radius: 5px;
  background: #0e171c;
  color: #d4e0e5;
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}
.detail-airport-times {
  display: block;
  margin-top: 7px;
  border-top: 1px solid #3b4d57;
  padding-top: 6px;
}
.detail-airport .detail-airport-times small {
  color: #d4e0e5;
  line-height: 1.5;
}
@media (max-width: 1400px) {
  body[data-expanded='board'] .boards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-expanded='board'] .boards > .board:last-of-type {
    grid-column: 1 / -1;
  }
  body[data-expanded='board'] .board-rows {
    max-height: 55dvh;
  }
}
@media (max-width: 1000px) {
  body[data-expanded='board'] .boards {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
  body[data-expanded='board'] .expanded-board-heading {
    top: -12px;
  }
}
@media (max-width: 600px) {
  body[data-expanded='board'] .expanded-board-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .expanded-board-heading h2 {
    font-size: 16px;
  }
  body[data-expanded='board'] .board-columns,
  body[data-expanded='board'] .flight-row {
    grid-template-columns: minmax(80px, 1fr) minmax(0, 1.4fr) minmax(65px, 0.8fr);
    gap: 8px;
    padding-inline: 12px;
  }
}
@media (max-width: 600px) {
  .traffic {
    gap: 1px;
  }
  .traffic button {
    padding: 2px 0;
  }
  .filterbar {
    gap: 10px;
  }
  .filterbar label {
    flex: 1 0 40%;
  }
}

.competitor-legend {
  color: #a5b4fc;
}

/* Shared public traffic navigation and statistics. */
[hidden] {
  display: none !important;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.masthead .site-nav {
  margin: 0;
}
.site-nav a {
  display: inline-block;
  padding: 11px 16px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.site-nav a[aria-current='page'] {
  color: var(--amber);
  border-color: #8b6220;
  background: #292318;
}
.statistics-filters {
  display: grid;
  grid-template-columns: 100px repeat(3, minmax(140px, 1fr));
  gap: 16px;
  align-items: end;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
}
.statistics-filters input[type='number'] {
  min-height: 40px;
  width: 100%;
  padding: 9px 10px;
  color: var(--text);
  background: var(--raised);
  border: 1px solid #393d3d;
  border-radius: 6px;
}
.report-period {
  margin: 18px 0;
  line-height: 1.7;
}
.statistics-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.stat-card {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--panel);
  border-radius: 8px;
}
.stat-card strong {
  display: block;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  margin-top: 10px;
  color: var(--text);
}
.stat-card:first-child strong {
  color: var(--amber);
}
.statistics-views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
}
.statistics-results {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 22px;
}
.table-search {
  width: min(100%, 320px);
}
.table-note {
  margin: 14px 0;
  line-height: 1.7;
  max-width: 100ch;
}
.statistics-table-scroll {
  overflow: auto;
  width: 100%;
  scrollbar-color: #454c48 transparent;
}
.statistics-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.statistics-table th,
.statistics-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
.statistics-table thead th {
  color: var(--muted);
  font-size: 12px;
  background: var(--raised);
  white-space: nowrap;
}
.statistics-table th[scope='row'] {
  font-weight: 600;
  min-width: 145px;
}
.statistics-table th button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  text-align: left;
  min-height: 36px;
  color: inherit;
}
.statistics-table th[aria-sort] button {
  color: var(--amber);
}
.statistics-table tbody tr:hover {
  background: #1b1e1c;
}
.statistics-empty {
  text-align: center;
  padding: 36px !important;
  color: var(--muted);
}
.alliance-group {
  background: #292318;
  color: var(--amber);
}
.public-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.public-news article {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.public-news article p {
  line-height: 1.7;
  margin-top: 9px;
  white-space: pre-line;
}
.alliance-controls {
  margin-bottom: 16px;
}
.map-wrap .mapbox-surface {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.map-tools,
.map-message,
.map-caption {
  z-index: 2;
}
.map-caption {
  bottom: 28px;
  pointer-events: none;
}
.map-tools {
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
}
.map-tools #map-style,
.map-tools #map-airport {
  width: auto;
}
.mapboxgl-ctrl-attrib a {
  color: #222;
}
@media (max-width: 800px) {
  .statistics-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }
  .statistics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .statistics-results {
    padding: 16px;
  }
  .statistics-results .data-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .public-news {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .statistics-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat-card {
    padding: 14px;
  }
  .stat-card strong {
    font-size: 25px;
  }
  .statistics-views button {
    flex: 1 1 auto;
  }
}

/* The public map is the workspace; panels float above it instead of pushing it down. */
.map-workspace {
  --dock-width: 326px;
  overflow: hidden;
  height: 100dvh;
}
.map-workspace .shell {
  max-width: none;
  padding: 0;
  height: 100dvh;
}
.map-workspace #main {
  height: 100dvh;
}
.map-workspace .operations {
  display: contents;
}
.map-workspace .map-panel {
  position: fixed;
  inset: 0;
  border: 0;
  z-index: 0;
}
.map-workspace .map-wrap {
  position: absolute;
  inset: 0;
  height: 100dvh;
}
.map-workspace .map-panel > .panel-heading {
  display: none;
}
.map-workspace .map-panel > .panel-heading .eyebrow {
  display: none;
}
.map-workspace #map-heading {
  font-size: 12px;
  line-height: 1.4;
}
.map-workspace #airborne-count {
  white-space: nowrap;
  font-size: 10px;
  padding: 5px 7px;
}
.map-workspace .masthead {
  position: fixed;
  inset: 12px 14px auto;
  height: 66px;
  padding: 10px 16px;
  z-index: 20;
  border: 1px solid #354047;
  border-radius: 11px;
  background: #10171cec;
  box-shadow: 0 8px 30px #0004;
}
.map-workspace .identity {
  gap: 10px;
}
.map-workspace .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 23px;
  border-radius: 7px;
}
.map-workspace .identity .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.map-workspace h1 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.map-workspace .identity .muted {
  margin-top: 2px;
  font-size: 9px;
}
.map-workspace .clock-block {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 290px;
}
.map-workspace .clock-label {
  justify-content: center;
  font-size: 8px;
  letter-spacing: 0.6px;
  gap: 8px;
}
.map-workspace #live-clock {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.map-workspace #live-date {
  font-size: 9px;
}
.map-workspace .site-nav {
  position: fixed;
  z-index: 22;
  top: 34px;
  left: 245px;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0;
  font-size: 11px;
}
.map-workspace .site-nav a {
  padding: 7px 10px;
}
.map-workspace .site-nav a[aria-current] {
  display: none;
}
.workspace-toolbar {
  display: grid;
  gap: 10px;
  border-top: 1px solid #44555e;
  padding-top: 13px;
}
.workspace-toolbar h2 {
  font-size: 12px;
  margin: 0;
}
.workspace-layout-actions {
  display: flex;
  gap: 6px;
}
.workspace-layout-actions > button,
.widget-picker > summary {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 11px;
}
.workspace-save-status {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.workspace-transfer-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
#workspace-share-url {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.workspace-save-status[data-state='dirty'] {
  color: #e8bc64;
}
.workspace-save-status[data-state='error'] {
  color: #fca5a5;
}
.widget-picker {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}
.widget-picker > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #58646a;
  border-radius: 6px;
  color: #eceff1;
  background: #26343c;
  font-weight: 600;
}
.widget-picker > summary::-webkit-details-marker {
  display: none;
}
.widget-picker[open] > summary {
  border-color: var(--amber);
  color: #fcd989;
}
.widget-picker-body {
  padding: 12px 2px 0;
}
.widget-picker-body h2 {
  font-size: 15px;
  margin-bottom: 7px;
}
.widget-picker-body > p {
  font-size: 11px;
  line-height: 1.6;
}
.widget-choices {
  display: grid;
  gap: 5px;
  margin-top: 13px;
}
.widget-choices label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 4px;
  cursor: pointer;
  font-size: 12px;
}
.widget-choices input {
  accent-color: var(--amber);
  width: 16px;
  height: 16px;
}
.workspace-dock {
  position: fixed;
  top: 91px;
  bottom: 158px;
  width: var(--dock-width);
  overflow: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
  scrollbar-width: thin;
  scrollbar-color: #4e626c transparent;
  padding-bottom: 3px;
}
.workspace-left {
  left: 14px;
}
.workspace-right {
  right: 14px;
}
.workspace-widget {
  min-width: 0;
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid #3a4850;
  border-radius: 10px;
  background: #10191fea;
  box-shadow: 0 8px 25px #0004;
}
.workspace-widget[hidden] {
  display: none !important;
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: 6px 7px 6px 13px;
  gap: 6px;
  border-bottom: 1px solid #2f3b43;
  background: #172229;
}
.widget-header h2 {
  font-size: 12px;
  letter-spacing: 0.05px;
  min-width: 0;
}
.widget-actions {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
}
.widget-actions button {
  border-color: transparent;
  background: transparent;
  border-radius: 4px;
  padding: 0;
  width: 23px;
  min-height: 25px;
  font-size: 14px;
  color: #9eafb9;
}
.widget-actions button:hover {
  color: white;
  background: #354752;
  border-color: #526670;
}
.widget-body {
  padding: 12px;
  min-width: 0;
  max-height: min(58dvh, 630px);
  overflow: auto;
  scrollbar-width: thin;
  overflow-wrap: anywhere;
}
.widget-body[hidden] {
  display: none;
}
.workspace-widget[data-collapsed='true'] .widget-header {
  border-bottom: 0;
}
.workspace-widget .toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0;
  margin: 0 0 9px;
  gap: 9px;
  border: 0;
  background: none;
}
.workspace-widget .field {
  min-width: 0;
}
.workspace-widget .search-field {
  grid-column: 1 / -1;
}
.workspace-widget .field label,
.workspace-widget .filterbar label {
  font-size: 10px;
}
.workspace-widget input[type='search'],
.workspace-widget select {
  font-size: 11px;
  min-height: 33px;
  padding: 6px 22px 6px 8px;
}
.workspace-widget .filterbar {
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  font-size: 11px;
}
.workspace-widget .alliance-controls {
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid #2f3b43;
}
.workspace-widget .alliance-controls .muted {
  display: none;
}
.workspace-widget .alliance-controls label {
  width: 100%;
}
.workspace-widget .filterbar button {
  font-size: 10px;
  padding: 6px 8px;
  min-height: 30px;
}
.map-workspace #fullscreen-map {
  display: none;
}
.workspace-widget .airport-summary {
  padding: 0 0 12px;
  margin: 0;
}
.workspace-widget #airport-title {
  font-size: 13px;
  margin-bottom: 5px;
}
.workspace-widget #airport-summary {
  font-size: 10px;
  line-height: 1.6;
}
.workspace-widget .boards {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}
.workspace-widget .board {
  border: 0;
  background: none;
  min-width: 0;
}
.workspace-widget .board-heading {
  padding: 0 0 7px;
  border-bottom: 1px solid #2b3941;
}
.workspace-widget .board-heading h2 {
  font-size: 13px;
}
.workspace-widget .board-heading > span {
  font-size: 10px;
}
.workspace-widget .direction {
  width: 23px;
  height: 23px;
  font-size: 17px;
}
.workspace-widget .board-note {
  margin: 7px 0;
  padding: 0;
  font-size: 9px;
}
.workspace-widget .board-columns {
  grid-template-columns: 90px minmax(0, 1fr) 85px;
  padding: 7px 18px;
  gap: 5px;
  font-size: 8px;
}
.workspace-widget .board-rows {
  max-height: 255px;
}
.workspace-widget .flight-row {
  grid-template-columns: 90px minmax(0, 1fr) 85px;
  padding: 10px;
  gap: 5px;
  font-size: 10px;
}
.workspace-widget .flight-row .row-time {
  font-size: 13px;
}
.workspace-widget .flight-row .row-secondary {
  font-size: 9px;
}
.workspace-widget .detail-panel {
  border: 0;
  background: none;
}
.workspace-widget .detail-panel .panel-heading {
  padding: 0 0 10px;
  border: 0;
}
.workspace-widget .detail-panel .panel-heading .eyebrow {
  display: none;
}
.workspace-widget #detail-heading {
  font-size: 15px;
}
.workspace-widget .inspector-actions {
  margin: 0 0 10px;
  gap: 5px;
  padding: 0;
}
.workspace-widget .inspector-actions button {
  padding: 6px;
  min-height: 30px;
  font-size: 9px;
}
.workspace-widget .flight-detail {
  padding: 0;
}
.workspace-widget .detail-empty {
  padding: 8px 5px 15px;
}
.workspace-widget .empty-plane {
  font-size: 34px;
}
.workspace-widget .detail-empty h3 {
  font-size: 13px;
}
.workspace-widget .detail-empty p {
  font-size: 11px;
  line-height: 1.7;
}
.workspace-widget .detail-route {
  gap: 7px;
  padding: 12px 0;
  font-size: 20px;
}
.workspace-widget .data-panel {
  border: 0;
  background: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.workspace-widget .data-panel > .eyebrow {
  display: none;
}
.workspace-widget .data-panel h2 {
  font-size: 13px;
}
.workspace-widget .data-heading {
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
}
.workspace-widget .data-heading button {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 10px;
}
.workspace-widget .table-note,
.workspace-widget .coverage {
  font-size: 10px;
  line-height: 1.7;
}
.workspace-widget .public-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  margin-top: 10px;
}
.workspace-widget .public-news article {
  padding: 10px;
}
.workspace-widget .public-news article h3 {
  font-size: 12px;
}
.workspace-widget .public-news article p {
  font-size: 10px;
  line-height: 1.6;
}
.workspace-widget .statistics-table-scroll {
  margin: 10px 0;
}
.workspace-widget .statistics-table {
  font-size: 10px;
}
.workspace-widget .statistics-table td,
.workspace-widget .statistics-table th {
  padding: 7px;
}
.workspace-widget .data-stats {
  grid-template-columns: minmax(0, 1fr);
  margin: 12px 0;
}
.workspace-widget .data-stats dt,
.workspace-widget .data-stats dd {
  font-size: 11px;
}
.workspace-widget footer {
  display: block;
  padding: 15px 0 0;
  margin: 15px 0 0;
  font-size: 9px;
  line-height: 1.8;
}
.header-traffic {
  width: 390px;
  min-width: 0;
  margin-left: auto;
}
.header-traffic-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.header-traffic-counts > div {
  min-width: 0;
}
.header-traffic-counts dt {
  color: #a2b0b9;
  font-size: 8px;
  margin-bottom: 3px;
  white-space: nowrap;
}
.header-traffic-counts dd {
  margin: 0;
  color: #eaf1f4;
  font:
    600 19px ui-monospace,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
}
.header-traffic-counts > div:first-child dd {
  color: #73dfba;
}
.header-traffic > p {
  color: #a2b0b9;
  font-size: 8px;
  margin: 3px 0 0;
  line-height: 1.3;
}
.widget-note {
  font-size: 10px;
  color: #9eafb9;
  line-height: 1.6;
  margin: 0 0 10px;
}
.workspace-widget .muted {
  font-size: 11px;
  line-height: 1.7;
}
.workspace-route-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.workspace-route-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #2c3941;
  font:
    11px ui-monospace,
    Consolas,
    monospace;
}
.workspace-route-list strong {
  font-size: 10px;
  color: #f7c66d;
  white-space: nowrap;
}
.workspace-disruption {
  border-top: 1px solid #37454c;
  padding: 12px 0;
}
.workspace-disruption h3 {
  font-size: 12px;
  line-height: 1.6;
  color: #f4d39a;
  margin-bottom: 5px;
}
.workspace-disruption > p:last-child {
  font-size: 11px;
  line-height: 1.7;
}
.disruption-timing {
  color: #e9bc70;
  font-size: 10px;
  line-height: 1.5;
  margin-bottom: 7px;
}
.map-workspace .workspace-timeline {
  position: static;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid #44555e;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.workspace-timeline .timeline-heading {
  margin-bottom: 10px;
  gap: 10px;
  flex-direction: column;
  align-items: stretch;
}
.workspace-timeline .timeline-heading h2 {
  display: block;
  font-size: 12px;
}
.workspace-timeline #preview-description {
  font-size: 10px;
  line-height: 1.6;
}
.workspace-timeline .preview-readout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  width: 100%;
}
.workspace-timeline .preview-time {
  min-width: 0;
  text-align: center;
}
.workspace-timeline #preview-tag {
  padding: 4px 6px;
  font-size: 8px;
}
.workspace-timeline #preview-zone {
  font-size: 8px;
}
.workspace-timeline #preview-clock {
  font-size: 13px;
}
.workspace-timeline #return-live {
  min-height: 36px;
  font-size: 9px;
  padding: 5px 7px;
}
.workspace-timeline #preview {
  margin: 3px 0;
  width: 100%;
}
.workspace-timeline .range-labels {
  font-size: 8px;
}
.timeline-extra {
  margin-top: 6px;
  padding-top: 8px;
  font-size: 10px;
}
.timeline-extra > summary {
  width: fit-content;
  cursor: pointer;
  color: #9eafb9;
  padding: 3px 0;
}
.timeline-extra .traffic {
  height: 40px;
  margin: 10px 0 5px;
}
.timeline-extra > p {
  font-size: 9px;
}
.timeline-extra .playback {
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline-extra .playback-help {
  flex-basis: 100%;
}
.map-workspace .map-tools .traffic {
  gap: 1px;
}
.map-workspace .map-tools .traffic button {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  height: 40px;
}
.timeline-extra .playback button,
.timeline-extra .playback select {
  min-height: 30px;
  font-size: 10px;
  padding: 5px 7px;
}
.map-workspace .notice {
  position: fixed;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%);
  max-width: min(580px, calc(100vw - 2 * var(--dock-width) - 60px));
  max-height: 85px;
  overflow: auto;
  z-index: 8;
  margin: 0;
  padding: 8px 11px;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 7px;
  background: #17251ff2;
}
.map-workspace .notice[hidden] {
  display: none;
}
.map-workspace .map-tools {
  --map-control-width: 72px;
  --map-control-height: 44px;
  --map-tools-bottom: calc(30px + env(safe-area-inset-bottom));
  position: fixed;
  right: 15px;
  top: auto;
  bottom: var(--map-tools-bottom);
  max-width: var(--dock-width);
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  z-index: 16;
  justify-content: flex-end;
  align-items: center;
}
.map-workspace .map-tools button {
  width: auto;
  min-width: 32px;
  min-height: 30px;
  font-size: 10px;
  padding: 6px 8px;
  background: #17252dea;
}
.map-workspace .map-footer {
  position: fixed;
  left: 15px;
  bottom: 43px;
  padding: 0;
  width: 305px;
  z-index: 5;
  border: 0;
  background: none;
  gap: 7px;
  align-items: flex-start;
  flex-direction: column;
}
.map-workspace .map-footer .legend {
  font-size: 9px;
  gap: 6px;
  padding: 4px 7px;
  background: #10191fdb;
  border-radius: 5px;
}
.map-workspace .map-footer button {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 9px;
  background: #10191fe0;
}
.map-workspace .map-caption {
  left: 50%;
  transform: translateX(-50%);
  bottom: 4px;
  white-space: nowrap;
  font-size: 8px;
  opacity: 0.7;
}
.map-workspace .map-message {
  top: 140px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(450px, calc(100vw - 2 * var(--dock-width) - 70px));
  font-size: 10px;
  z-index: 7;
}
.workspace-mobile-bar {
  display: none;
}
.workspace-map-tools-more {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}
.workspace-map-tools-more > summary {
  list-style: none;
  padding: 6px;
  border: 1px solid #44555e;
  border-radius: 6px;
  background: #17252dea;
  color: #dce5e9;
  font-size: 11px;
  cursor: pointer;
}
.map-workspace .map-tools > button,
.workspace-map-tools-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--map-control-width);
  height: var(--map-control-height);
  min-width: var(--map-control-width);
  min-height: var(--map-control-height);
  margin: 0;
}
.map-workspace .map-tools > button {
  font-size: 21px;
}
.workspace-map-tools-more > summary::-webkit-details-marker {
  display: none;
}
.workspace-map-tools-more > div {
  position: absolute;
  right: 0;
  bottom: calc(var(--map-control-height) + 8px);
  width: min(300px, calc(100vw - 28px));
  max-height: calc(100dvh - var(--map-tools-bottom) - var(--map-control-height) - 144px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border: 1px solid #526671;
  border-radius: 8px;
  background: #16232cf5;
  box-shadow: 0 8px 25px #0008;
}
.workspace-map-actions > button,
.workspace-layout-actions > button {
  width: 100%;
  min-height: 36px;
  font-size: 11px;
}
.workspace-map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.workspace-map-tools-more :is(button, summary, input):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
@media (max-width: 1250px) {
  .map-workspace {
    --dock-width: 290px;
  }
  .map-workspace .clock-block {
    width: 240px;
  }
  .map-workspace .clock-label #clock-basis-label {
    display: none;
  }
  .map-workspace .map-footer {
    width: 260px;
    bottom: 43px;
  }
  .map-workspace .map-footer .legend {
    display: none;
  }
  .workspace-widget .board-columns,
  .workspace-widget .flight-row {
    grid-template-columns: 76px minmax(0, 1fr) 75px;
  }
  .widget-actions button {
    width: 21px;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .map-workspace {
    --dock-width: 264px;
  }
  .map-workspace .identity .eyebrow,
  .map-workspace .identity .muted {
    display: none;
  }
  .map-workspace .site-nav {
    left: 190px;
  }
  .map-workspace .clock-block {
    width: 210px;
  }
  .map-workspace #live-date {
    font-size: 8px;
  }
  .widget-header {
    padding-left: 9px;
  }
  .widget-header h2 {
    font-size: 11px;
  }
  .widget-actions button {
    width: 19px;
  }
  .workspace-widget .board-columns,
  .workspace-widget .flight-row {
    grid-template-columns: 65px minmax(0, 1fr) 65px;
  }
}
@media (max-width: 760px) {
  .map-workspace .masthead {
    inset: 8px 8px auto;
    height: 68px;
    padding: 9px 12px;
  }
  .map-workspace .brand-mark {
    display: none;
  }
  .map-workspace .identity .eyebrow {
    font-size: 7px;
  }
  .map-workspace h1 {
    font-size: 18px;
  }
  .map-workspace .identity .muted {
    display: none;
  }
  .map-workspace .clock-block {
    left: auto;
    right: 12px;
    width: 165px;
    transform: none;
  }
  .map-workspace #live-clock {
    font-size: 23px;
  }
  .map-workspace #live-date {
    font-size: 8px;
  }
  .map-workspace .clock-label {
    font-size: 7px;
  }
  .map-workspace .site-nav {
    left: 12px;
    top: 78px;
    z-index: 23;
  }
  .map-workspace .site-nav a {
    font-size: 10px;
    background: #152029f0;
    padding: 8px;
    border-radius: 6px;
  }
  .workspace-mobile-bar {
    display: flex;
    position: fixed;
    top: 130px;
    left: 12px;
    right: 12px;
    z-index: 14;
    align-items: center;
    gap: 9px;
  }
  .workspace-mobile-bar label {
    font-size: 10px;
    color: #b4c3ca;
    padding-left: 4px;
  }
  .workspace-mobile-bar select {
    width: auto;
    flex: 1;
    min-width: 0;
    min-height: 32px;
    padding: 5px 25px 5px 8px;
    font-size: 11px;
    background: #13212bf2;
  }
  .workspace-dock {
    top: 172px;
    bottom: 210px;
    left: 12px;
    right: 12px;
    width: auto;
    overflow: auto;
    pointer-events: none;
  }
  .workspace-right {
    z-index: 11;
  }
  .workspace-widget:not([data-mobile-active='true']) {
    display: none;
  }
  .workspace-widget {
    max-height: 100%;
  }
  .widget-body {
    max-height: calc(100dvh - 428px);
    min-height: 50px;
  }
  .workspace-widget .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-widget .board-columns,
  .workspace-widget .flight-row {
    grid-template-columns: 90px minmax(0, 1fr) 90px;
  }
  .widget-actions button {
    width: 28px;
    min-height: 28px;
  }
  .map-workspace .map-panel > .panel-heading {
    display: none;
  }
  .map-workspace #map-heading {
    font-size: 10px;
  }
  .map-workspace .notice {
    bottom: 207px;
    width: calc(100vw - 44px);
    max-width: none;
    max-height: 64px;
    z-index: 4;
    font-size: 9px;
  }
  .map-workspace .map-tools {
    top: auto;
    right: 13px;
    bottom: var(--map-tools-bottom);
    max-width: none;
    z-index: 16;
  }
  .map-workspace .map-tools button {
    padding: 6px 8px;
  }
  .map-workspace .map-footer {
    left: 13px;
    bottom: 168px;
    width: auto;
  }
  .map-workspace .map-footer button {
    font-size: 8px;
    padding: 5px;
  }
  .map-workspace .map-caption {
    display: none;
  }
  .map-workspace .map-message {
    top: 170px;
    width: calc(100vw - 40px);
    z-index: 5;
  }
}

/* Search is a persistent map tool; advanced network controls remain optional. */
.traffic-search {
  position: fixed;
  top: 92px;
  left: 14px;
  width: var(--dock-width, 316px);
  z-index: 25;
  color: #e6edf1;
  min-width: 0;
}
.workspace-route-path {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.workspace-route-list button {
  border: 0;
  background: transparent;
  padding: 4px 3px;
  min-height: 28px;
  font-size: 11px;
  color: #f1bd5c;
}
.workspace-route-list button:hover {
  text-decoration: underline;
}
.workspace-route-list button:focus-visible {
  outline: 2px solid #f5bd50;
  outline-offset: 1px;
}
.workspace-route-count {
  font-weight: 700;
  flex-shrink: 0;
}
.detail-journey-stage {
  container-type: inline-size;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #425a68;
  border-radius: 6px;
  background: #1e3441;
}
.detail-airport {
  min-width: 0;
  max-width: none;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px;
  text-align: left;
  background: transparent;
  border: 0;
  overflow-wrap: anywhere;
}
.detail-route .detail-airport-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  max-height: 2.8em;
}
.detail-airport-purpose {
  min-height: 2.8em;
}
.detail-stop-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-top: 1px solid #425a68;
}
.detail-stop-nav button {
  flex: 0 0 24px;
  width: 24px;
  min-height: 28px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
.detail-stop-count {
  min-width: 0;
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.detail-stop-nav button:focus-visible {
  outline: 2px solid #f5bd50;
  outline-offset: 1px;
}
.detail-route .detail-airport small,
.detail-no-stops small {
  max-width: none;
  white-space: normal;
}
.detail-no-stops {
  padding: 8px;
  overflow-wrap: anywhere;
}
.detail-airport strong,
.detail-no-stops strong {
  font-size: 20px;
  font-size: clamp(12px, 21cqi, 20px);
  white-space: nowrap;
}
.detail-airport small {
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.detail-airport:focus-visible {
  outline: 2px solid #f5bd50;
  outline-offset: 2px;
}
#technical .row-time {
  font-size: 11px;
  white-space: normal;
}
.map-workspace .map-panel > .panel-heading {
  display: none;
}
.traffic-search-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px 0 12px;
  background: #16262ff5;
  border: 1px solid #50636e;
  border-radius: 8px;
  box-shadow: 0 4px 18px #0003;
}
.traffic-search-icon {
  font-size: 25px;
  color: #f0b64d;
}
.traffic-search input[type='search'] {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f5f8fa;
  font-size: 12px;
  padding: 10px 0;
}
.traffic-search input::placeholder {
  color: #b2c1c9;
}
.traffic-search button {
  min-height: 32px;
  font-size: 12px;
}
.traffic-search-bar > button {
  font-size: 22px;
  min-width: 30px;
  border: 0;
  padding: 0;
  background: transparent;
}
.traffic-search :is(input, button):focus-visible {
  outline: 2px solid #f5bd50;
  outline-offset: 2px;
}
.traffic-search-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(650px, calc(100dvh - 200px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #50636e;
  border-radius: 9px;
  background: #14242dfc;
  box-shadow: 0 12px 32px #0005;
  padding: 12px;
}
.traffic-search-panel[hidden],
.traffic-search-chip[hidden] {
  display: none;
}
.traffic-search-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.traffic-search-heading h2 {
  font-size: 14px;
  margin: 0;
}
.traffic-search-heading button {
  min-width: 30px;
}
.traffic-search-results h3 {
  color: #b7c7cf;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 14px 0 6px;
}
.traffic-search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.traffic-search-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 5px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #344650;
  border-radius: 0;
  background: transparent;
  padding: 12px 7px;
  min-width: 0;
}
.traffic-search-result:hover,
.traffic-search-result:focus-visible {
  background: #2b414e;
}
.traffic-search-result strong {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.traffic-search-result span {
  color: #b9c8d0;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.traffic-search-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.traffic-search-shortcuts button {
  min-height: 62px;
  text-align: left;
  line-height: 1.5;
  padding: 9px;
  background: #223945;
  border-color: #425a68;
}
.traffic-search-note,
.traffic-search-status,
.traffic-search-empty {
  color: #b4c4cd;
  font-size: 10px;
  line-height: 1.6;
  margin: 10px 0 0;
}
.traffic-search-note:last-child {
  border-top: 1px solid #354b58;
  padding-top: 10px;
}
.traffic-search-status:empty {
  display: none;
}
.traffic-search-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding: 3px 8px;
  border: 1px solid #816c3e;
  background: #302c22f5;
  border-radius: 6px;
  font-size: 11px;
}
.traffic-search-chip span {
  overflow-wrap: anywhere;
}
.traffic-search-chip button {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  min-width: 27px;
}
.traffic-route-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.traffic-route-field {
  min-width: 0;
}
.traffic-route-field label {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}
.traffic-route-field input {
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  font-size: 12px;
}
.traffic-route-choices button {
  width: 100%;
  text-align: left;
  padding: 9px;
  overflow-wrap: anywhere;
  border: 0;
  border-bottom: 1px solid #40515e;
  border-radius: 0;
}
.traffic-route-both {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}
.traffic-search-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
  color: #c3d1d8;
}
.map-workspace .workspace-left {
  top: 146px;
}
.map-workspace.traffic-filtered .workspace-left {
  top: 182px;
}
/* Keep the game clock and all traffic metrics in the same header on smaller screens. */
@media (max-width: 1100px) {
  .map-workspace .masthead {
    height: 110px;
    align-items: flex-start;
  }
  .map-workspace .clock-block {
    left: auto;
    right: 14px;
    top: 9px;
    width: 210px;
    transform: none;
  }
  .header-traffic {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    width: auto;
  }
  .header-traffic-counts dd {
    font-size: 18px;
    line-height: 1.15;
  }
  .traffic-search {
    top: 134px;
  }
  .workspace-dock {
    top: 134px;
  }
  .map-workspace .workspace-left {
    top: 188px;
  }
  .map-workspace.traffic-filtered .workspace-left {
    top: 224px;
  }
}
@media (max-width: 760px) {
  .map-workspace .masthead {
    padding-top: 10px;
  }
  .map-workspace .identity .eyebrow {
    display: none;
  }
  .map-workspace .clock-block {
    right: 10px;
    width: 165px;
  }
  .map-workspace .site-nav {
    top: 20px;
    left: 132px;
  }
  .map-workspace .site-nav a {
    padding: 4px 8px;
    background: transparent;
    font-size: 10px;
  }
  .header-traffic {
    left: 12px;
    right: 12px;
  }
  .header-traffic-counts {
    gap: 5px;
  }
  .header-traffic-counts dt {
    font-size: 8px;
  }
  .traffic-search {
    top: 130px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .traffic-search-panel {
    max-height: calc(100dvh - 235px);
  }
  .map-workspace .workspace-mobile-bar {
    top: 184px;
  }
  .map-workspace.traffic-filtered .workspace-mobile-bar {
    top: 212px;
  }
  .map-workspace .workspace-dock {
    top: 226px;
  }
  .map-workspace.traffic-filtered .workspace-dock {
    top: 254px;
  }
  .traffic-search-result {
    min-height: 48px;
  }
}
@media (max-width: 400px) {
  .map-workspace h1 {
    font-size: 16px;
  }
  .map-workspace .site-nav {
    left: 119px;
  }
  .map-workspace .site-nav a {
    font-size: 9px;
    padding-inline: 5px;
  }
}
