@font-face {
  font-family: "Sky Matrix";
  src: url("sky-matrix.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --accent: #abc9dc;
  --text: #eef0f2;
  --line: #252b30;
  --muted: #7e898f;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  height: 100%;
  background: #050708;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body[data-theme="amber"] {
  --accent: #ebc38b;
}
body[data-theme="paper"] {
  --accent: #e0e4e7;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus,
a:focus,
input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
.wallboard {
  height: 100vh;
  min-height: 360px;
  width: 100%;
  padding: 0 5vw;
  padding-left: calc(5vw + var(--safe-left, 0px));
  padding-right: calc(5vw + var(--safe-right, 0px));
  padding-top: var(--safe-top, 0px);
  padding-bottom: var(--safe-bottom, 0px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  flex: 0 0 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1d2327;
}
.place {
  min-width: 0;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c2cbd0;
}
#locationName {
  display: inline-block;
  max-width: 35vw;
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#areaLabel {
  color: #707d84;
  font-size: 10px;
  margin-left: 15px;
  letter-spacing: 0.6px;
}
.top-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#stripClock {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: #c5cfd5;
}
.clock-zone {
  font-size: 9px;
  color: #718088;
  margin-left: 7px;
}
.feed-indicator {
  display: flex;
  align-items: center;
  margin-left: 25px;
  min-width: 55px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 7px;
  background: #89949b;
  flex-shrink: 0;
}
.status-dot.live {
  background: #9cb5a3;
}
.status-dot.error {
  background: #d3a47d;
}
.status-dot.sample {
  background: #cfba87;
}
#statusText {
  font-size: 9px;
  letter-spacing: 1px;
  color: #9aa7af;
  white-space: nowrap;
}
.settings-icon {
  margin-left: 22px;
  width: 40px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  color: #97a3aa;
}
.settings-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.display-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.board {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.feature {
  position: relative;
}
.identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.identity-copy {
  min-width: 0;
  flex: 1;
}
.eyebrow {
  color: #82939f;
  font-size: 10px;
  letter-spacing: 1.7px;
  margin: 0 0 9px;
}
.flight-id {
  font-size: 104px;
  letter-spacing: -3px;
  line-height: 1.05;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.operator {
  font-size: 24px;
  font-weight: 400;
  color: #aab8c0;
  line-height: 1.25;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.airline-tile {
  width: 60px;
  flex: 0 0 60px;
  text-align: center;
  margin: 12px 10px 0 25px;
  color: #6f8b9d;
}
.airline-tile svg {
  fill: currentColor;
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 10px;
}
#tileCode {
  font-size: 11px;
  letter-spacing: 2px;
}
.aircraft {
  font-size: 19px;
  letter-spacing: 0.4px;
  color: #8c9ba5;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route {
  font-size: 37px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--accent);
  margin-top: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route.unavailable {
  color: #6f7c85;
  font-size: 24px;
}
.metrics {
  display: flex;
  border-top: 1px solid var(--line);
  margin: 36px 0 21px;
  padding: 23px 0 0;
}
.metrics > div {
  flex: 1;
  min-width: 0;
}
.metrics > div + div {
  padding-left: 20px;
}
.metrics dt {
  color: #7f909b;
  font-size: 9px;
  letter-spacing: 1.3px;
  line-height: 1.4;
  white-space: nowrap;
}
.metrics dd {
  margin: 11px 0 0;
  font-size: 38px;
  line-height: 1.15;
  color: #e1e7eb;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.unit {
  font-size: 11px;
  color: #8b9ba6;
  margin-left: 7px;
  letter-spacing: 0.2px;
}
.context-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6f818e;
  line-height: 1.5;
}
#positionAge {
  margin-left: 15px;
  white-space: nowrap;
}
.detail-trigger {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
}
.detail-trigger:focus {
  outline-offset: 14px;
}
.nearby {
  border-top: 1px solid var(--line);
  margin-top: 29px;
  padding-top: 15px;
}
.nearby h2 {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #72848f;
  margin: 0 0 10px;
}
#nearbyCount {
  font-size: 9px;
  color: #5f707b;
  letter-spacing: 0;
  margin-left: 8px;
}
.nearby-row {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 42px;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid #151d22;
  padding: 8px 0;
  color: #abb9c3;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.row-id {
  flex: 1.4;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-type {
  flex: 1;
  color: #6c818f;
  font-size: 12px;
}
.row-alt {
  flex: 1.2;
  text-align: right;
}
.row-dist {
  flex: 1;
  text-align: right;
  color: #6c818f;
  font-size: 12px;
}
.has-nearby .flight-id {
  font-size: 79px;
}
.has-nearby .identity {
  margin-bottom: 13px;
}
.has-nearby .operator {
  font-size: 20px;
  margin-top: 5px;
}
.has-nearby .route {
  font-size: 30px;
  margin-top: 8px;
}
.has-nearby .metrics {
  margin-top: 24px;
  padding-top: 17px;
}
.has-nearby .metrics dd {
  font-size: 32px;
}
.has-nearby .aircraft {
  font-size: 17px;
}
.idle {
  text-align: center;
  width: 100%;
  margin: auto;
}
.idle .clock {
  font-size: 130px;
  font-weight: 300;
  letter-spacing: -5px;
  color: #a0b6c4;
  font-variant-numeric: tabular-nums;
}
.idle-message {
  font-size: 19px;
  color: #97a7b3;
  line-height: 1.5;
  margin-top: 23px;
}
.idle-date {
  font-size: 11px;
  letter-spacing: 1px;
  color: #576d7b;
  margin-top: 17px;
}
.connection-note {
  font-size: 11px;
  line-height: 1.6;
  color: #b3957c;
  margin: 16px auto 0;
  max-width: 700px;
  text-align: center;
}
.statusbar {
  flex: 0 0 61px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #546975;
}
.footer-left {
  display: flex;
  align-items: center;
}
.quiet-button {
  background: transparent;
  border: 0;
  padding: 10px 0;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #7a8e9c;
}
.quiet-button span {
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 5px;
}
#feedAge {
  font-size: 9px;
  margin-left: 18px;
  color: #677d8c;
}
.attribution {
  font-size: 9px;
  text-align: right;
  line-height: 1.6;
}
.attribution span {
  margin-left: 7px;
}
.sample-return {
  background: transparent;
  border: 1px solid #405563;
  border-radius: 3px;
  color: var(--accent);
  font-size: 10px;
  padding: 6px 9px;
  margin-left: 13px;
}
.stale .feature,
.stale .nearby {
  opacity: 0.5;
}
body[data-lettering="matrix"] .flight-id,
body[data-lettering="matrix"] .route,
body[data-lettering="matrix"] .metrics dd {
  font-family: "Sky Matrix", "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0;
}
.toolbar {
  position: fixed;
  z-index: 15;
  bottom: 61px;
  bottom: calc(61px + var(--safe-bottom, 0px));
  left: 16px;
  right: 16px;
  left: calc(16px + var(--safe-left, 0px));
  right: calc(16px + var(--safe-right, 0px));
  margin: 0 auto;
  width: auto;
  max-width: 590px;
  max-height: calc(100% - 100px);
  overflow-y: auto;
  background: #111a20;
  border: 1px solid #344651;
  border-radius: 7px;
  box-shadow: 0 8px 40px #0009;
  padding: 14px 16px;
}
.toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9baeba;
  font-size: 11px;
  margin-bottom: 13px;
}
.toolbar-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.toolbar-buttons > button {
  border: 1px solid #344a58;
  border-radius: 4px;
  padding: 10px 13px;
  background: #18252e;
  font-size: 12px;
  min-height: 44px;
  margin-bottom: 6px;
}
.toolbar-buttons > button + button {
  margin-left: 8px;
}
.toolbar-buttons #pinFlight.active {
  color: var(--accent);
  border-color: var(--accent);
}
.toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  color: #738a99;
  font-size: 10px;
}
.close-controls {
  background: transparent;
  border: 0;
  font-size: 13px;
  line-height: 1;
  padding: 8px 10px;
  min-width: 66px;
  min-height: 44px;
  color: #91a9b9;
}
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 65px;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  width: max-content;
  background: #cad6dd;
  color: #111a20;
  padding: 13px 20px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.6;
}
.modal-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: flex-end;
  overflow-y: auto;
  padding-left: var(--safe-left, 0px);
  padding-right: var(--safe-right, 0px);
  padding-top: var(--safe-top, 0px);
  padding-bottom: var(--safe-bottom, 0px);
}
.settings-dialog {
  width: 510px;
  max-width: 100%;
  min-height: 100%;
  background: #121718;
  border-left: 1px solid var(--line);
  padding: 33px 32px 40px;
}
.settings-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.eyebrow {
  font:
    9px Menlo,
    Monaco,
    "Courier New",
    monospace;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin: 0 0 10px;
}
.settings-top h2 {
  font-size: 25px;
  font-weight: 450;
  margin: 0;
}
.close-button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  font-size: 23px;
  color: var(--muted);
  padding: 0;
}
.settings-dialog fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  margin: 0;
}
.settings-dialog legend {
  font-size: 13px;
  font-weight: 600;
  padding-right: 14px;
}
.settings-dialog label {
  display: block;
  font-size: 11px;
  color: #b2bab5;
  margin: 13px 0 8px;
}
.settings-dialog input[type="text"],
.settings-dialog input[type="number"],
.settings-dialog select {
  width: 100%;
  border: 1px solid #343c3b;
  border-radius: 3px;
  background: #0c1012;
  color: var(--text);
  height: 42px;
  padding: 9px 11px;
  font-size: 13px;
}
.settings-dialog select {
  padding-right: 25px;
}
.form-columns {
  display: flex;
  gap: 15px;
}
.form-columns > div {
  flex: 1;
  min-width: 0;
}
.preset-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.preset-row select {
  flex: 1;
  min-width: 0;
}
.secondary-button {
  background: transparent;
  border: 1px solid #414a45;
  padding: 10px 13px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}
.field-hint {
  font-size: 10px;
  line-height: 1.6;
  color: #84908a;
  margin: 10px 0 0;
}
.settings-dialog .check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 18px 0 0;
  line-height: 1.4;
}
.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.settings-dialog input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 7px 0 5px;
}
.settings-dialog output {
  float: right;
  color: var(--accent);
}
.setup-note {
  border: 1px solid #343d39;
  border-radius: 3px;
  padding: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: #98a39c;
}
.setup-note strong {
  font-weight: 500;
  color: var(--text);
}
.setup-note p {
  margin: 7px 0 0;
}
.settings-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}
.primary-button {
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  padding: 12px 18px;
  color: #171b17;
  font-size: 12px;
  font-weight: 600;
}
.form-error {
  margin-top: 16px;
  color: #e9b498;
  font-size: 12px;
  line-height: 1.6;
}
.display-active .wallboard {
  padding-top: 8px;
}
.display-active .masthead {
  height: 100px;
}
.display-active .masthead,
.display-active .section-top {
  transition: transform 0.2s;
}
.display-active .display-button {
  color: var(--accent);
}
/* The basic sizes above work without clamp(), CSS gap or modern viewport units. */
@supports not (font-size: clamp(1px, 2px, 3px)) {
  .flight-title {
    font-size: 80px;
  }
  .flight-title.long {
    font-size: 64px;
  }
}

.settings-dialog label {
  margin-top: 16px;
}
.settings-dialog legend {
  font-size: 14px;
}
.advanced summary {
  font-size: 12px;
  cursor: pointer;
  color: #b8c7d1;
}
.favourite-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.favourite-actions > button + button {
  margin-left: 8px;
}
#locationFeedback {
  font-size: 10px;
  color: var(--accent);
  padding-top: 8px;
  width: 100%;
}
.details-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 24px 0;
}
.details-grid > div {
  flex: 0 0 50%;
  padding: 0 12px 22px 0;
  min-width: 0;
}
.details-grid dt {
  font-size: 10px;
  color: #7c95a5;
  line-height: 1.5;
}
.details-grid dd {
  font-size: 14px;
  color: #cfdae1;
  margin: 5px 0 0;
  word-wrap: break-word;
  line-height: 1.5;
}
.detail-status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--accent);
}
.map-link {
  display: block;
  text-align: center;
  white-space: normal;
  margin: 10px 0 20px;
  line-height: 1.6;
}
.detail-actions {
  display: flex;
  align-items: center;
  margin-top: 26px;
}
.detail-actions .primary-button {
  margin-left: 0;
}
.detail-actions .secondary-button {
  margin-left: 10px;
}
@media (min-width: 1100px) and (min-height: 850px) {
  .board {
    max-width: 1020px;
  }
  .identity {
    margin-bottom: 26px;
  }
  .flight-id {
    font-size: 122px;
  }
  .route {
    font-size: 42px;
  }
  .metrics {
    margin-top: 46px;
    padding-top: 27px;
  }
  .metrics dd {
    font-size: 42px;
  }
  .has-nearby .flight-id {
    font-size: 94px;
  }
  .has-nearby .route {
    font-size: 34px;
  }
}
@media (max-width: 850px) {
  .place {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .metrics dd {
    font-size: 30px;
  }
  .metrics dt {
    font-size: 8px;
    letter-spacing: 0.9px;
  }
  .metrics > div + div {
    padding-left: 12px;
  }
  .unit {
    font-size: 9px;
    margin-left: 4px;
  }
  .flight-id {
    font-size: 92px;
  }
  .route {
    font-size: 31px;
  }
  .feed-indicator {
    margin-left: 17px;
  }
  .settings-icon {
    margin-left: 13px;
  }
  .has-nearby .metrics dd {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .wallboard {
    padding: 0 6vw;
  }
  .topbar {
    flex-basis: 77px;
  }
  .place {
    max-width: 44%;
    font-size: 10px;
    line-height: 1.6;
  }
  #locationName {
    max-width: 100%;
    display: block;
  }
  #areaLabel {
    margin-left: 0;
    font-size: 9px;
  }
  #stripClock {
    font-size: 16px;
  }
  .clock-zone {
    font-size: 8px;
    margin-left: 5px;
  }
  .feed-indicator {
    margin-left: 11px;
  }
  .status-dot {
    margin-right: 5px;
  }
  #statusText {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .settings-icon {
    margin-left: 8px;
    width: 29px;
    padding: 7px 0 7px 7px;
  }
  .flight-id {
    font-size: 72px;
    letter-spacing: -2px;
  }
  .operator {
    font-size: 20px;
  }
  .aircraft {
    font-size: 15px;
  }
  .route {
    font-size: 26px;
    white-space: normal;
  }
  .route.unavailable {
    font-size: 20px;
  }
  .airline-tile {
    margin-left: 10px;
    width: 40px;
    flex-basis: 40px;
  }
  .airline-tile svg {
    width: 35px;
    height: 35px;
  }
  .metrics {
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 0;
  }
  .metrics > div {
    flex: 0 0 50%;
    padding-top: 21px;
  }
  .metrics > div + div {
    padding-left: 0;
  }
  .metrics > div:nth-child(even) {
    padding-left: 20px;
  }
  .metrics dd {
    font-size: 30px;
    margin-top: 7px;
  }
  .metrics dt {
    font-size: 8px;
  }
  .unit {
    font-size: 10px;
    margin-left: 5px;
  }
  .context-row {
    font-size: 10px;
  }
  .statusbar {
    flex-basis: 65px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
  .footer-left {
    width: 100%;
    flex-wrap: wrap;
  }
  .attribution {
    font-size: 8px;
    margin-top: 4px;
  }
  .quiet-button,
  #feedAge {
    font-size: 8px;
  }
  #feedAge {
    margin-left: 12px;
  }
  .sample-return {
    font-size: 9px;
    padding: 4px 6px;
    margin-left: 9px;
  }
  .has-nearby .flight-id {
    font-size: 58px;
  }
  .has-nearby .operator {
    font-size: 17px;
  }
  .has-nearby .route {
    font-size: 23px;
  }
  .has-nearby .aircraft {
    font-size: 14px;
  }
  .has-nearby .metrics {
    margin-top: 18px;
    padding-top: 0;
  }
  .has-nearby .metrics > div {
    padding-top: 14px;
  }
  .has-nearby .metrics dd {
    font-size: 25px;
  }
  .has-nearby .nearby {
    margin-top: 20px;
    padding-top: 12px;
  }
  .nearby-row {
    min-height: 36px;
    font-size: 12px;
  }
  .row-type,
  .row-dist {
    font-size: 10px;
  }
  .toolbar-buttons > button {
    padding: 9px 8px;
    font-size: 10px;
  }
  .toolbar-buttons > button + button {
    margin-left: 5px;
  }
  .settings-dialog {
    padding: 25px 20px 35px;
  }
  .idle .clock {
    font-size: 86px;
  }
  .idle-message {
    font-size: 16px;
  }
  .idle-date {
    font-size: 10px;
  }
  .connection-note {
    font-size: 10px;
  }
  .toolbar-meta {
    font-size: 9px;
  }
}
@media (max-height: 700px) and (min-width: 601px) {
  .topbar {
    flex-basis: 64px;
  }
  .statusbar {
    flex-basis: 47px;
  }
  .flight-id {
    font-size: 76px;
  }
  .operator {
    font-size: 20px;
    margin-top: 5px;
  }
  .identity {
    margin-bottom: 13px;
  }
  .route {
    font-size: 29px;
    margin-top: 8px;
  }
  .aircraft {
    font-size: 17px;
  }
  .metrics {
    margin-top: 25px;
    padding-top: 16px;
    margin-bottom: 15px;
  }
  .metrics dd {
    font-size: 30px;
  }
  .has-nearby .flight-id {
    font-size: 58px;
  }
  .has-nearby .route {
    font-size: 25px;
  }
  .has-nearby .metrics {
    margin-top: 18px;
    padding-top: 12px;
  }
  .has-nearby .nearby {
    margin-top: 15px;
    padding-top: 11px;
  }
  .has-nearby .metrics dd {
    font-size: 27px;
  }
  .nearby-row {
    min-height: 34px;
    padding: 7px 0;
  }
}
@media (max-height: 650px) and (max-width: 600px) {
  .topbar {
    flex-basis: 64px;
  }
  .statusbar {
    flex-basis: 52px;
  }
  .flight-id {
    font-size: 58px;
  }
  .operator {
    font-size: 17px;
    margin-top: 5px;
  }
  .identity {
    margin-bottom: 13px;
  }
  .route {
    font-size: 23px;
    margin-top: 8px;
  }
  .metrics {
    margin-top: 18px;
    margin-bottom: 14px;
  }
  .metrics > div {
    padding-top: 13px;
  }
  .metrics dd {
    font-size: 26px;
  }
  .metrics dt {
    font-size: 7px;
  }
  .context-row {
    font-size: 9px;
  }
  .has-nearby .flight-id {
    font-size: 50px;
  }
  .has-nearby .route {
    font-size: 21px;
  }
  .has-nearby .metrics dd {
    font-size: 23px;
  }
}
@media (max-height: 450px) and (min-width: 601px) {
  .topbar {
    flex-basis: 52px;
  }
  .statusbar {
    flex-basis: 39px;
  }
  .identity,
  .has-nearby .identity {
    margin-bottom: 5px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 4px;
  }
  .operator,
  .has-nearby .operator {
    margin-top: 3px;
  }
  .aircraft,
  .has-nearby .aircraft {
    font-size: 14px;
    line-height: 1.3;
  }
  .route,
  .has-nearby .route {
    font-size: 21px;
    margin-top: 5px;
  }
  .airline-tile svg {
    height: 34px;
    width: 34px;
    margin-bottom: 5px;
  }
  .metrics,
  .has-nearby .metrics {
    margin: 17px 0 12px;
    padding-top: 12px;
  }
  .metrics dd,
  .has-nearby .metrics dd {
    font-size: 24px;
    margin-top: 7px;
  }
  .metrics dt {
    font-size: 7px;
  }
  .context-row {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Black and white instrument faces. Controls remain readable in either mode. */
:root {
  --face: #000;
  --text: #f1f4f6;
  --accent: #b6d9ed;
  --line: #27333b;
  --secondary: #a4b9c8;
  --subtle: #708998;
}
html,
body {
  background: #000;
}
.wallboard {
  background: var(--face);
}
body[data-appearance="light"] {
  --face: #fff;
  --text: #172e3c;
  --accent: #16527b;
  --line: #d6dfe5;
  --secondary: #455f70;
  --subtle: #607786;
  color-scheme: light;
  color: var(--text);
}
body[data-appearance="light"][data-theme="amber"] {
  --accent: #845017;
}
body[data-appearance="light"][data-theme="paper"] {
  --accent: #263e4c;
}
body[data-appearance="dark"] {
  color-scheme: dark;
}
.place,
#stripClock,
.flight-id,
.metrics dd {
  color: var(--text);
}
.operator,
.aircraft {
  color: var(--secondary);
}
.eyebrow,
#areaLabel,
.clock-zone,
#statusText,
.metrics dt,
.context-row,
.unit,
#nearbyCount,
.nearby h2,
.row-type,
.row-dist,
#feedAge,
.attribution,
.quiet-button,
.settings-icon {
  color: var(--subtle);
}
.airline-tile {
  color: var(--accent);
}
.route {
  color: var(--accent);
}
.route.unavailable {
  color: var(--subtle);
}
.idle .clock {
  color: var(--accent);
}
.idle-message,
.idle-date {
  color: var(--secondary);
}
body[data-lettering="matrix"] .operator,
body[data-lettering="matrix"] .aircraft,
body[data-lettering="matrix"] .idle .clock {
  font-family: "Sky Matrix", "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0;
}
body[data-lettering="matrix"] .operator {
  line-height: 1.35;
}
body[data-lettering="matrix"] .aircraft {
  line-height: 1.6;
}
body[data-lettering="matrix"] .metrics dd {
  line-height: 1.3;
}
body[data-lettering="matrix"] .route {
  line-height: 1.5;
}
body[data-lettering="matrix"] .flight-id {
  line-height: 1.2;
}
.connection-help {
  align-self: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 11px;
  border-radius: 4px;
  margin: 12px auto 0;
  padding: 9px 13px;
  min-height: 38px;
}
.connection-panel p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
}
.connection-panel .field-hint {
  font-size: 10px;
  color: var(--subtle);
}
.version-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--subtle);
  margin: 10px 0 0;
}
.radar-modal {
  position: fixed;
  z-index: 45;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  background: #090f13;
  color: var(--text);
  padding-top: var(--safe-top, 0px);
  padding-right: var(--safe-right, 0px);
  padding-bottom: var(--safe-bottom, 0px);
  padding-left: var(--safe-left, 0px);
}
.radar-header {
  flex: 0 0 auto;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.radar-header .eyebrow { margin-bottom: 5px; }
.radar-header h2 { margin: 0; font-size: 32px; font-weight: 500; }
.radar-location { margin: 6px 0 0; color: var(--secondary); font-size: 12px; }
.radar-back, .radar-map-controls button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #516775;
  border-radius: 5px;
  background: #14232e;
  color: #e8f3fa;
  font-size: 13px;
}
.radar-back { margin-left: 16px; white-space: nowrap; }
.radar-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 120px;
  overflow: hidden;
  background-color: #0d1920;
  background-image: linear-gradient(#abc9dc0d 1px, transparent 1px), linear-gradient(90deg, #abc9dc0d 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-user-select: none;
  user-select: none;
}
.radar-tiles, .radar-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.radar-tiles { opacity: 0.85; filter: grayscale(1) invert(0.94) hue-rotate(180deg) brightness(0.75); }
.radar-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.radar-overlay { overflow: hidden; pointer-events: none; }
.radar-ring, .radar-area, .radar-axis { fill: none; stroke: #aac4d2; stroke-width: 1; opacity: 0.3; }
.radar-area { stroke: #e4ba75; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.65; }
.radar-axis { opacity: 0.18; stroke-dasharray: 2 5; }
.radar-ring-label, .radar-home-label, .radar-north { fill: #d3e4ee; font: 11px Arial, sans-serif; paint-order: stroke; stroke: #15222b; stroke-width: 3px; }
.radar-north { font-size: 14px; font-weight: bold; }
.radar-home-label { font-size: 9px; letter-spacing: 1px; }
.radar-home-halo { fill: #233641; stroke: #f3ca89; stroke-width: 1.5; }
.radar-home { fill: #f3ca89; }
.radar-distance-line { stroke: #adcce0; stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.55; }
.radar-track-line { stroke: #d4ecfc; stroke-width: 2; stroke-dasharray: 5 4; }
.radar-plane { fill: #c4e5fa; stroke: #13344b; stroke-width: 1.5; }
.radar-plane-label { position: absolute; padding: 6px 9px; max-width: 132px; background: #102634; color: #e5f4ff; border: 1px solid #617f91; border-radius: 4px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.radar-map-controls { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; }
.radar-map-controls button { margin-right: 6px; margin-bottom: 6px; min-width: 44px; box-shadow: 0 1px 7px #0005; }
.radar-map-controls #radarZoomIn, .radar-map-controls #radarZoomOut { font-size: 22px; padding: 5px 12px; }
.radar-attribution { position: absolute; right: 0; bottom: 0; background: #ffffffec; color: #243849; padding: 5px 8px; font-size: 10px; line-height: 1.4; }
.radar-outside, .radar-tile-notice { position: absolute; left: 12px; right: 12px; margin: 0; padding: 9px 11px; background: #122430ec; color: #dae9f2; border: 1px solid #536b7a; border-radius: 4px; font-size: 12px; line-height: 1.5; }
.radar-outside { bottom: 40px; }
.radar-tile-notice { bottom: 88px; }
.radar-footer { flex: 0 0 auto; padding: 14px 28px 12px; border-top: 1px solid var(--line); }
.radar-state { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 12px; color: var(--secondary); line-height: 1.6; }
.radar-state > span { margin-right: 12px; }
.radar-figures { display: flex; margin: 12px 0 9px; }
.radar-figures > div { width: 33.333%; padding-right: 12px; }
.radar-figures dt { color: var(--subtle); font-size: 10px; letter-spacing: 0.8px; }
.radar-figures dd { margin: 7px 0 0; color: var(--text); font-size: 22px; }
.radar-explanation { margin: 0; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.radar-detail-link { margin-bottom: 20px; min-height: 44px; }
body[data-appearance="light"] .radar-modal { background: #f5f7f9; }
body[data-appearance="light"] .radar-map { background-color: #e5edf0; }
body[data-appearance="light"] .radar-tiles { filter: grayscale(0.75); opacity: 0.9; }
body[data-appearance="light"] .radar-ring, body[data-appearance="light"] .radar-axis { stroke: #33546a; opacity: 0.4; }
body[data-appearance="light"] .radar-area { stroke: #9f601a; }
body[data-appearance="light"] .radar-ring-label, body[data-appearance="light"] .radar-home-label, body[data-appearance="light"] .radar-north { fill: #183d55; stroke: #eff4f6; }
body[data-appearance="light"] .radar-distance-line { stroke: #294f69; }
body[data-appearance="light"] .radar-track-line { stroke: #1f4c69; }
body[data-appearance="light"] .radar-plane { fill: #1a577b; stroke: #fff; }
body[data-appearance="light"] .radar-plane-label { background: #fff; color: #163e58; border-color: #99b1c1; }
@media (max-width: 600px) {
  .radar-header { padding: 12px 14px; }
  .radar-header h2 { font-size: 25px; }
  .radar-location { font-size: 10px; max-width: 185px; line-height: 1.5; }
  .radar-back { font-size: 11px; padding: 8px 10px; margin-left: 10px; }
  .radar-footer { padding: 10px 14px; }
  .radar-state { font-size: 10px; }
  .radar-figures dt { font-size: 8px; letter-spacing: 0; }
  .radar-figures dd { font-size: 17px; }
  .radar-explanation { font-size: 9px; }
  .radar-map-controls button { font-size: 11px; padding: 8px 10px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .radar-header { padding: 7px 18px; }
  .radar-header .eyebrow { display: none; }
  .radar-header h2 { font-size: 23px; }
  .radar-location { margin-top: 3px; font-size: 10px; }
  .radar-footer { padding: 6px 18px; }
  .radar-figures { margin: 6px 0 0; }
  .radar-figures dd { margin-top: 3px; font-size: 18px; }
  .radar-explanation { display: none; }
}
body[data-appearance="light"] .topbar,
body[data-appearance="light"] .metrics,
body[data-appearance="light"] .nearby,
body[data-appearance="light"] .nearby-row {
  border-color: var(--line);
}
body[data-appearance="light"] .nearby-row {
  color: var(--text);
}
body[data-appearance="light"] .toolbar,
body[data-appearance="light"] .settings-dialog {
  background: #f6f8fa;
  color: var(--text);
  border-color: #c7d4dd;
}
body[data-appearance="light"] .toolbar-buttons > button {
  background: #edf2f6;
  color: var(--text);
  border-color: #c0cfd9;
}
body[data-appearance="light"] .toolbar-top,
body[data-appearance="light"] .toolbar-meta,
body[data-appearance="light"] .close-controls,
body[data-appearance="light"] .close-button,
body[data-appearance="light"] .settings-dialog label,
body[data-appearance="light"] .settings-dialog legend,
body[data-appearance="light"] .settings-dialog h2,
body[data-appearance="light"] .advanced summary {
  color: var(--text);
}
body[data-appearance="light"] .settings-dialog input,
body[data-appearance="light"] .settings-dialog select {
  background: #fff;
  color: var(--text);
  border-color: #b5c7d4;
}
body[data-appearance="light"] .settings-dialog input[type="checkbox"] {
  background: transparent;
}
body[data-appearance="light"] .settings-dialog input[type="range"] {
  background: transparent;
}
body[data-appearance="light"] .secondary-button,
body[data-appearance="light"] .sample-return {
  color: var(--accent);
  border-color: #94adbd;
}
body[data-appearance="light"] .primary-button {
  background: #225f87;
  color: #fff;
}
body[data-appearance="light"] .setup-note {
  background: #edf3f7;
  border-color: #c7d4dd;
  color: var(--secondary);
}
body[data-appearance="light"] .setup-note strong,
body[data-appearance="light"] .details-grid dd {
  color: var(--text);
}
body[data-appearance="light"] .field-hint,
body[data-appearance="light"] .details-grid dt {
  color: var(--subtle);
}
body[data-appearance="light"] .connection-note,
body[data-appearance="light"] .form-error {
  color: #85522b;
}
body[data-appearance="light"] .status-dot.live {
  background: #54765f;
}
body[data-appearance="light"] .status-dot.sample {
  background: #947029;
}
body[data-appearance="light"] .modal-backdrop {
  background: rgba(25, 41, 52, 0.45);
}
@media (max-width: 600px) {
  body[data-lettering="matrix"] .aircraft {
    font-size: 14px;
  }
  .connection-help {
    font-size: 10px;
    margin-top: 9px;
  }
}
