@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #1a1a1a;
  --line: #000000;
  --panel: #ffffff;
  --field: #ffffff;
  --accent: #003d7a;
  --btn: #003d7a;
  --btn-light: #b7dffc;
  --btn-press: #001a33;
  --btn-text: #ffffff;
  --pin-bg: #ffffff;
  --pin-fg: #000000;
  --strike-fg: #5c5c5c;
  --stale: #8b0000;
  --stale-bg: #ffb8b8;
  --kind: #000000;
  --placeholder: #8a8a8a;
  --board-stripe: rgba(0, 61, 122, 0.07);
  --border-w: 2px;
  --radius: 10px;
  --touch: 48px;
  --card-stack-gap: 0.45rem;
  --scroll-end-buffer: calc(
    var(--card-stack-gap) + 5rem + env(safe-area-inset-bottom, 0px)
  );
  --tab-line: #000000;
  --cdm-amber: #d97706;
  --cdm-logo-red: #e40000;
  --sans: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --bezel-w: 18px;
  --app-col: 44rem;
  --chrome-dim: rgba(8, 10, 14, 0.55);
  --tab-bar-h: calc(0.85rem + 44px + var(--border-w));
  --chrome-photo: url("/bright-bg.jpg");
  --tab-strip-w: min(calc(var(--app-col) - 2 * var(--bezel-w)), calc(100% - 2 * var(--bezel-w)));
  --adsb-chrome-floor: max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a2332;
    --fg: #e8eef6;
    --muted: #9aadc2;
    --line: #3d4f66;
    --panel: #243044;
    --field: #15202e;
    --accent: #00a1e4;
    --btn: #0080b5;
    --btn-light: #b4eeff;
    --btn-press: #003d5c;
    --btn-text: #ffffff;
    --pin-bg: #243044;
    --pin-fg: #e8eef6;
    --strike-fg: #7a8fa6;
    --stale: #ffb4b4;
    --stale-bg: rgba(180, 70, 70, 0.28);
    --kind: #9aadc2;
    --placeholder: #6b7f96;
    --board-stripe: rgba(255, 255, 255, 0.07);
    --border-w: 1px;
    --tab-line: #8aa0b8;
    --cdm-amber: #ffbf40;
    --cdm-logo-red: #ff3843;
    --chrome-photo: url("/ack-bg.jpg");
  }
}

html.theme-bright {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #1a1a1a;
  --line: #000000;
  --panel: #ffffff;
  --field: #ffffff;
  --accent: #003d7a;
  --btn: #003d7a;
  --btn-light: #b7dffc;
  --btn-press: #001a33;
  --btn-text: #ffffff;
  --pin-bg: #ffffff;
  --pin-fg: #000000;
  --strike-fg: #5c5c5c;
  --stale: #8b0000;
  --stale-bg: #ffb8b8;
  --kind: #000000;
  --placeholder: #8a8a8a;
  --board-stripe: rgba(0, 61, 122, 0.07);
  --border-w: 2px;
  --tab-line: #000000;
  --cdm-amber: #d97706;
  --cdm-logo-red: #e40000;
  --chrome-photo: url("/bright-bg.jpg");
}

@media (hover: hover) and (pointer: fine) {
  html.theme-bright {
    --bg: #efece6;
    --panel: #efece6;
    --field: #f4f1ea;
    --pin-bg: #efece6;
    --placeholder: #7a7468;
    --board-stripe: rgba(0, 61, 122, 0.06);
  }
}

html.theme-dim {
  color-scheme: dark;
  --bg: #1a2332;
  --fg: #e8eef6;
  --muted: #9aadc2;
  --line: #3d4f66;
  --panel: #243044;
  --field: #15202e;
  --accent: #00a1e4;
  --btn: #0080b5;
  --btn-light: #b4eeff;
  --btn-press: #003d5c;
  --btn-text: #ffffff;
  --pin-bg: #243044;
  --pin-fg: #e8eef6;
  --strike-fg: #7a8fa6;
  --stale: #ffb4b4;
  --stale-bg: rgba(180, 70, 70, 0.28);
  --kind: #9aadc2;
  --placeholder: #6b7f96;
  --board-stripe: rgba(255, 255, 255, 0.07);
  --border-w: 1px;
  --tab-line: #8aa0b8;
  --cdm-amber: #ffbf40;
  --cdm-logo-red: #ff3843;
  --chrome-photo: url("/ack-bg.jpg");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  color: var(--fg);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

html {
  background-color: #12161c;
  background-image: var(--chrome-photo);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--chrome-dim);
}

body {
  position: relative;
  z-index: 1;
  background: transparent;
}

@supports (height: 100svh) {
  html,
  body {
    height: 100svh;
    max-height: 100svh;
  }
}

button,
input {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

button,
.tab,
.pin,
.icon-btn,
.select-airport,
.cdm-reset,
.adsb-help,
[role="button"],
.lookup > button,
.theme-toggle button,
.cdm-chrome button,
.view-board .board-controls > button {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-modify: read-only;
  -webkit-tap-highlight-color: transparent;
}

button:not(.pin) *,
.tab *,
.icon-btn *,
.select-airport *,
.cdm-reset *,
.adsb-help *,
[role="button"]:not(.pin) * {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button:not(.pin),
.tab,
.icon-btn,
.select-airport,
.cdm-reset,
[role="button"]:not(.pin),
.lookup > button,
.theme-toggle button,
.cdm-chrome button,
.view-board .board-controls > button {
  touch-action: manipulation;
}

html.adsb-wide,
html.adsb-wide body {
  width: 100%;
  max-width: none;
}

html.adsb-wide body {
  padding-left: 0;
  padding-right: 0;
}

html.adsb-wide #app {
  max-width: none;
  width: 100%;
  height: 100%;
  padding-left: 0;
  padding-right: 0;
}

html.adsb-wide .tabs {
  width: var(--tab-strip-w);
  max-width: calc(var(--app-col) - 2 * var(--bezel-w));
  margin-left: auto;
  margin-right: auto;
}

html.adsb-wide #app::before,
html.adsb-wide #app::after {
  bottom: auto;
  height: var(--tab-bar-h);
}

html.adsb-wide #app::before {
  left: max(0px, calc((100% - var(--app-col)) / 2));
}

html.adsb-wide #app::after {
  right: max(0px, calc((100% - var(--app-col)) / 2));
}

html.adsb-wide #slots,
html.adsb-wide #slots.view-slots {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
}

html.adsb-wide .slots-wrap,
html.adsb-wide #adsb-frame {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: var(--bezel-w);
  padding-right: var(--bezel-w);
  overflow: hidden;
  overscroll-behavior-y: none;
}

#app::before,
#app::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--bezel-w);
  z-index: 101;
  pointer-events: none;
  background:
    linear-gradient(145deg, #5b686d 0%, #4a5559 100%),
    linear-gradient(
      45deg,
      rgba(107, 122, 127, 0.45) 0%,
      rgba(91, 104, 109, 0.15) 20%,
      transparent 40%,
      rgba(74, 85, 89, 0.3) 60%,
      rgba(58, 68, 72, 0.6) 100%
    );
  background-blend-mode: normal, overlay;
}

#app::before {
  left: 0;
  border-right: 2px solid #3a4448;
  box-shadow:
    inset -2px 0 6px rgba(255, 255, 255, 0.18),
    inset 2px 0 8px rgba(0, 0, 0, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

#app::after {
  right: 0;
  border-left: 2px solid #3a4448;
  box-shadow:
    inset 2px 0 6px rgba(255, 255, 255, 0.18),
    inset -2px 0 8px rgba(0, 0, 0, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem 0.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  border-bottom: var(--border-w) solid var(--line);
  background-color: #12161c;
  background-image:
    linear-gradient(var(--chrome-dim), var(--chrome-dim)), var(--chrome-photo);
  background-size: cover, cover;
  background-position: center center, center center;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
}

.tabs .tab {
  flex: 1 1 0;
  min-width: 0;
}

.tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  border: 2px solid var(--tab-line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.01em;
  line-height: 1.15;
  padding: 0.2rem 0.2rem;
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--btn-text);
}

.tab.tab-board {
  display: inline-flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 0;
  gap: 0.02rem;
  padding: 0.12rem 0.2rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  white-space: normal;
}

.tab[hidden],
.tab.tab-board[hidden] {
  display: none !important;
}

.tab.tab-board span {
  display: block;
  width: 100%;
  text-align: center;
}

.view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scroll-padding-bottom: var(--scroll-end-buffer);
}

.view:not(.view-slots) {
  background: var(--bg);
}

html.pin-scroll-lock,
html.pin-scroll-lock body {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.view.pin-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.view[hidden] {
  display: none !important;
}

.view-home {
  padding: 1.25rem 1.1rem max(5.5rem, calc(3.25rem + env(safe-area-inset-bottom, 0px)));
}

.home-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.85rem;
}

.home-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 0;
  padding: 0;
}

.home-header h1 {
  position: relative;
  z-index: 1;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--fg);
}

.home-script {
  position: relative;
  left: 0;
  top: -0.12rem;
  transform: translate(-15%, -10%);
  z-index: 0;
  height: 2.07rem;
  width: auto;
  aspect-ratio: 595 / 485;
  pointer-events: none;
  background-color: var(--fg);
  -webkit-mask-image: url("/icons/four-u.png?v=263");
  mask-image: url("/icons/four-u.png?v=263");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mask-mode: alpha;
  -webkit-mask-source-type: alpha;
}

html.theme-bright .home-script {
  filter:
    drop-shadow(0.1rem 0 0 var(--fg))
    drop-shadow(-0.1rem 0 0 var(--fg))
    drop-shadow(0 0.1rem 0 var(--fg))
    drop-shadow(0 -0.1rem 0 var(--fg));
}

.theme-toggle {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
}

.theme-toggle button {
  flex: 1 0 auto;
  box-sizing: border-box;
  min-width: max-content;
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle button.active {
  background: var(--btn);
  color: var(--btn-text);
}

.lookup {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  align-items: flex-start;
}

.lookup-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.lookup input {
  width: 100%;
  min-height: var(--touch);
  border: var(--border-w) solid var(--line);
  background: var(--field);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.lookup input.long {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 1.08rem;
}

.lookup input::placeholder {
  color: var(--placeholder);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 1;
}

.airport-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 8;
  list-style: none;
  margin: 0;
  padding: 0.2rem;
  background: var(--panel);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.airport-suggest[hidden] {
  display: none !important;
}

.airport-suggest button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.airport-suggest button:hover,
.airport-suggest button:focus-visible {
  background: var(--field);
}

.airport-suggest .codes {
  letter-spacing: 0.04em;
}

.airport-suggest .place {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--muted);
}

.lookup > button,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  min-width: var(--touch);
  border: var(--border-w) solid var(--btn);
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--btn-text);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--sans);
  padding: 0 0.9rem;
  text-decoration: none;
}

.icon-btn {
  text-transform: uppercase;
}

.lookup > button {
  text-transform: uppercase;
}

.icon-btn[hidden] {
  display: none !important;
}

.lookup > button:active,
.icon-btn:active {
  background: var(--btn-press);
  border-color: var(--btn-press);
}

.pin:active:not(.dragging):not(.swiping) {
  opacity: 0.75;
}

.icon-btn:disabled {
  opacity: 0.45;
}

.icon-btn:disabled.sweeping,
.icon-btn:disabled.sweep-done {
  opacity: 1;
}

.lookup > button,
.icon-btn {
  position: relative;
  overflow: hidden;
}

.icon-btn.sweep-btn:active,
.icon-btn.sweeping,
.icon-btn.sweeping:active,
.icon-btn.sweeping[aria-pressed="true"] {
  background-color: var(--btn-light);
  background-image: linear-gradient(
    to right,
    var(--btn) 50%,
    var(--btn-light) 50%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  border-color: var(--btn);
  text-shadow: 0 1px 2px rgba(0, 26, 51, 0.45);
}

.icon-btn.sweeping {
  animation: btn-sweep-wipe 1.65s cubic-bezier(0.4, 0, 0.15, 1) forwards;
}

.icon-btn.sweep-done {
  background-color: var(--btn);
  background-image: none;
  background-position: 0 0;
  border-color: var(--btn);
  text-shadow: none;
  animation: none;
}

@keyframes btn-sweep-wipe {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

.icon-btn[aria-pressed="true"] {
  background: var(--btn-press);
  border-color: var(--btn-press);
}

.pins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding-bottom: 0.35rem;
}

.pins.pin-busy,
.pins.pin-busy .pin {
  touch-action: none;
}

.pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.22rem;
  min-width: 0;
  min-height: 4.1rem;
  padding: 0.5rem 0.65rem 0.55rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--pin-fg);
  text-align: left;
  font-family: var(--sans);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}

.pin.dragging {
  z-index: 30;
  margin: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  opacity: 1;
  pointer-events: none;
  position: fixed;
  cursor: grabbing;
  touch-action: none;
}

.pin.swiping {
  z-index: 8;
  touch-action: none;
}

.pin-placeholder {
  min-height: 4.1rem;
  border-radius: var(--radius);
  border: var(--border-w) dashed var(--line);
  background: color-mix(in srgb, var(--line) 28%, transparent);
}

.pin-icao {
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.pin-place {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pin-name,
.pin-city {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin.no-datis {
  padding-right: 3.55rem;
}

.pin-nodatis {
  position: absolute;
  top: 0.28rem;
  right: 0.38rem;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}

.disclaimer {
  margin-top: 1.6rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.disclaimer p + p {
  margin-top: 0.6rem;
}

.disclaimer .home-ios {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.home-version {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.view-detail {
  background: var(--bg);
  color: var(--fg);
  padding: 0.55rem 1.05rem;
}

.view-end-spacer {
  display: block;
  flex-shrink: 0;
  height: var(--scroll-end-buffer);
  pointer-events: none;
}

.detail-chrome {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0 -0.2rem 0.35rem;
}

.detail-chrome > .icon-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0.2rem 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.kind-label {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--kind);
  margin: 0;
  white-space: nowrap;
}

.ident-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.ident-codes {
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
  min-width: 0;
}

.ident-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.55rem;
  row-gap: 0;
  min-width: 0;
  flex: 1;
}

.local-clock {
  margin: 0;
  font-family: var(--sans);
  font-size: calc(1.22rem - 3pt);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.local-clock-tz {
  margin-left: 0.28rem;
}

.local-clock[hidden] {
  display: none !important;
}

.brief-runways {
  flex-basis: 100%;
  margin: 0.08rem 0 0;
  font-family: var(--sans);
  font-size: calc(1.22rem - 3pt);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.2;
}

.brief-runways[hidden] {
  display: none !important;
}

.ident-meta {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-shrink: 0;
}

#ident {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
  font-family: var(--sans);
}

.iata {
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  font-family: var(--sans);
  color: var(--fg);
}

.iata[hidden] {
  display: none !important;
}

.utc-clock {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 1.22rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--fg);
  flex-shrink: 0;
}

.utc-day {
  margin-right: 0.32rem;
  font-family: inherit;
  font-size: calc(1em - 3pt);
  font-weight: inherit;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.view-detail .utc-clock {
  margin-left: 0;
}

.atis-sun {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.atis-sun[hidden] {
  display: none !important;
}

.utc-suffix {
  margin-left: 0.28rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.kind-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.5rem;
  row-gap: 0;
  margin: 0.15rem 0 0;
}

.atis-age {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.kind-row .atis-age {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--kind);
  white-space: normal;
}

.kind-row .atis-age.zulu-old {
  color: var(--stale);
}

.atis-dept-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--stale);
  text-transform: uppercase;
}

.atis-dept-note[hidden] {
  display: none !important;
}

.atis-age[hidden] {
  display: none !important;
}

.stale-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.stale-row[hidden] {
  display: none !important;
}

.stale-flag[hidden] {
  display: none !important;
}

.stale-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--touch);
  margin: 0;
  padding: 0.2rem 0.45rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  color: var(--stale);
  background: var(--stale-bg);
  border: var(--border-w) solid var(--stale);
  border-radius: var(--radius);
  cursor: pointer;
}

.stale-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10vh 5vw;
  background: rgba(0, 0, 0, 0.45);
}

.stale-dialog:not([hidden]) {
  display: flex;
}

.stale-dialog-card {
  width: min(28rem, 90vw);
  height: 80dvh;
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1.1rem;
  background: var(--panel);
  color: var(--fg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
}

.stale-dialog-card h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.stale-dialog-body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.stale-dialog-body p,
.stale-dialog-body ol {
  font-size: 1.28rem;
  line-height: 1.42;
  margin: 0.7rem 0;
}

.stale-dialog-body ol {
  padding-left: 1.35rem;
}

.stale-dialog-card .icon-btn {
  width: 100%;
  margin-top: 0.85rem;
  flex-shrink: 0;
}

.atis-body {
  margin-top: 0.45rem;
  padding: 0.7rem 0.8rem;
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 400;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fg);
  background: var(--field);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
}

.zulu-old {
  color: var(--stale);
  font-weight: 700;
  font-size: calc(1em + 2pt);
}

.hl-ops {
  font-weight: 700;
  font-size: calc(1em + 2pt);
}

.metar-mag {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82em;
}

.atis-body.empty,
.atis-body.error {
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--muted);
}

.atis-body.loading {
  font-family: var(--sans);
  color: var(--muted);
}

.view-brief {
  padding: 0.65rem 1.05rem;
}

.brief-chrome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.brief-chrome .ident-row {
  min-width: 0;
  flex: 1;
}

.brief-clockwrap {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  width: max-content;
  line-height: 1.12;
}

.brief-utc.utc-clock {
  margin-left: 0;
}

.brief-sun {
  margin: 0.18rem 0 0;
  width: 0;
  min-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.12rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.brief-sun[hidden] {
  display: none !important;
}

#brief-ident {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.05;
  font-family: var(--sans);
}

.taf-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4rem;
  min-width: 0;
}

.taf-remain {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--fg);
  white-space: nowrap;
}

.taf-remain.expired {
  color: var(--stale);
}

.brief-empty {
  margin-top: 1rem;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--muted);
}

.metar-box {
  margin-top: 0.3rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--line);
  background: var(--panel);
}

.metar-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}

.metar-head .kind-label {
  margin: 0;
}

.metar-age {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.metar-text {
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 400;
  white-space: pre-wrap;
  word-break: break-word;
}

.wx-block {
  margin-top: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--line);
  background: var(--panel);
}

.wx-block[hidden] {
  display: none !important;
}

.atis-panel {
  margin-top: 0.45rem;
  padding: 0.7rem 0.8rem;
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--fg);
  background: var(--field);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
}

.atis-panel[hidden] {
  display: none !important;
}

.wx-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kind);
  font-family: var(--sans);
}

.wx-empty {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.wx-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.wx-pair.solo {
  grid-template-columns: 1fr;
}

.wx-pair[hidden] {
  display: none !important;
}

.wx-pair .wx-block {
  margin-top: 0;
  padding: 0.5rem 0.6rem;
}

.wx-pair .wx-title {
  margin: 0 0 0.18rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.wx-pair-line {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.wx-da-label {
  font-size: calc(1em - 3pt);
}

.inferdep-line {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.worstwind-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.worstwind-main {
  min-width: 0;
  flex: 1 1 auto;
}

.worstwind-aside {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.worstwind-lead {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.worstwind-label {
  font-size: calc(1.12rem - 2pt);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.worstwind-note {
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  color: inherit;
}

.worstwind-line .hl-ops {
  font-size: calc(1.12rem + 2pt);
}

.worstwind-line + .worstwind-line {
  margin-top: 0.22rem;
}

.worstwind {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.worstwind-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12vh 5vw;
  background: rgba(0, 0, 0, 0.45);
}

.worstwind-dialog:not([hidden]) {
  display: flex;
}

.worstwind-dialog-card {
  width: min(24rem, 92vw);
  padding: 1.05rem 1.05rem 0.95rem;
  background: var(--panel);
  color: var(--fg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
}

.worstwind-dialog-card h2 {
  font-size: 1.22rem;
  font-weight: 400;
  margin-bottom: 0.55rem;
}

.worstwind-dialog-body p {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  line-height: 1.38;
}

.worstwind-dialog-body p:last-child {
  margin-bottom: 0;
}

.worstwind-dialog-card .icon-btn {
  width: 100%;
  margin-top: 0.85rem;
}

.inferdep-preview-lead {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.38;
  color: var(--muted);
}

.inferdep-preview-card .atis-panel {
  margin-top: 0.45rem;
}

.inferdep-preview-card .atis-panel:first-of-type {
  margin-top: 0;
}

.rwycond .wx-title,
#wx-snowtam .wx-title {
  font-family: var(--sans);
}

.rwycond-meta,
.rwycond-rwy,
.rwycond-codes,
.rwycond-mean,
.rwycond-sfc,
.rwycond-twy {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.rwycond-meta {
  color: var(--muted);
}

.rwycond-rwy {
  margin-top: 0.45rem;
}

.rwycond-rwy:first-child {
  margin-top: 0;
}

.rwycond-codes,
.rwycond-mean,
.rwycond-sfc {
  margin-top: 0.06rem;
}

.rwycond-twy {
  margin-top: 0.5rem;
}

.rwycond-codes .hl-ops {
  font-weight: 700;
}

.wx-item-head {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
}

.wx-item-body {
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.wx-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wx-list li + li {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.view-slots {
  overflow: hidden;
  padding: 0;
}

html.cdm-under-board #board.view-board {
  flex: 0 0 auto;
  overflow: hidden;
  padding-bottom: 0.35rem;
}

html.cdm-under-board #board .board-list,
html.cdm-under-board #board #board-empty,
html.cdm-under-board #board .board-more-row,
html.cdm-under-board #board #board-update-spin {
  display: none !important;
}

html.cdm-under-board #board .board-pin-hint {
  visibility: hidden;
}

html.cdm-under-board #board .board-controls {
  margin-bottom: 0.3rem;
}

html.cdm-under-board #slots.view-slots {
  flex: 1 1 auto;
  min-height: 0;
}

.slots-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.slots-wrap:fullscreen,
.slots-wrap:-webkit-full-screen,
.slots-wrap.is-adsb-fs {
  width: 100%;
  height: 100%;
  background: var(--bg);
}

.slots-wrap.is-adsb-fs {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100vh;
}

.view-slots iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

.view-slots iframe[hidden] {
  display: none !important;
}

.cdm-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  height: auto;
  min-height: 64px;
  padding: 12px 12px 0;
  pointer-events: none;
}

.cdm-chrome-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 40px;
  padding-left: var(--cdm-logo-end, 218px);
}

.cdm-chrome[hidden] {
  display: none !important;
}

.cdm-chrome button {
  pointer-events: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.cdm-chrome button[hidden],
.cdm-reset[hidden],
.cdm-notify[hidden] {
  display: none !important;
}

.cdm-chrome-end {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  pointer-events: auto;
}

.cdm-chrome-tight {
  align-items: stretch;
}

.cdm-chrome-tight .cdm-chrome-bar {
  align-items: flex-start;
}

.cdm-chrome-tight .cdm-chrome-end {
  flex-direction: column-reverse;
  align-items: flex-end;
}

.cdm-help {
  width: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.cdm-help.home-support {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  font-size: 0.72rem;
  text-decoration: none;
}

#board-focus-help-dialog,
#hextory-help-dialog {
  z-index: 45;
}

.cdm-help-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8vh 4vw;
  background: rgba(0, 0, 0, 0.45);
}

.cdm-help-dialog:not([hidden]) {
  display: flex;
}

.cdm-help-card {
  width: min(32rem, 94vw);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1.05rem;
  background: var(--panel);
  color: var(--fg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
}

.cdm-help-card h2 {
  font-size: 1.28rem;
  font-weight: 400;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.cdm-help-body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cdm-help-body p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
}

.cdm-help-body a {
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
}

.adsb-layers-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin: 0 0.18em;
}

.adsb-help {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  pointer-events: auto;
  transition: transform 0.32s ease;
  transform: translateX(var(--adsb-plane-shift, 0px));
}

#adsb-help.cdm-reset,
#adsb-external.cdm-reset,
#adsb-hextory.cdm-reset,
#adsb-return.cdm-reset {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  overflow: hidden;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

#adsb-help.cdm-reset,
#adsb-external.cdm-reset,
#adsb-return.cdm-reset,
#adsb-hextory-add.cdm-reset:not(.is-added) {
  opacity: 0.7 !important;
}

#adsb-hextory.cdm-reset {
  font-size: 43px;
  animation: hextory-pulse 2.8s ease-in-out infinite;
}

.adsb-glyph {
  display: block;
  line-height: 1;
}

#adsb-help .adsb-glyph {
  transform: translateY(2px);
}

#adsb-external .adsb-open-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transform: none;
}

#adsb-external .adsb-open-icon,
#adsb-return .adsb-uturn-icon {
  display: block;
  width: 20px;
  height: 20px;
}

#adsb-return .adsb-uturn-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transform: none;
}

.adsb-help-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 0.38em;
  vertical-align: -5px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: var(--btn-text);
}

.adsb-help-open .adsb-open-icon,
.adsb-help-open .adsb-uturn-icon {
  display: block;
  width: 12px;
  height: 12px;
}

#adsb-hextory .adsb-glyph {
  transform: translateY(-3px);
}

.adsb-external {
  left: 86px;
}

.adsb-hextory {
  top: 86px;
}

.adsb-return {
  top: 86px;
  left: 86px;
}

html.adsb-plane-open {
  --adsb-plane-shift: 300px;
}

html.adsb-plane-open #adsb-help,
html.adsb-plane-open #adsb-external,
html.adsb-plane-open #adsb-hextory,
html.adsb-plane-open #adsb-return {
  top: 10px;
  transform: none;
}

html.adsb-plane-open #adsb-help {
  left: calc(var(--adsb-plane-shift, 300px) + 10px);
}

html.adsb-plane-open #adsb-external {
  left: calc(var(--adsb-plane-shift, 300px) + 58px);
}

html.adsb-plane-open #adsb-hextory {
  left: calc(var(--adsb-plane-shift, 300px) + 106px);
}

html.adsb-plane-open #adsb-return {
  left: calc(var(--adsb-plane-shift, 300px) + 154px);
}

html.adsb-plane-open #adsb-utc.adsb-utc.utc-clock {
  top: 56px;
  left: calc(var(--adsb-plane-shift, 300px) + 10px);
  transform: none;
}

html.adsb-plane-open #adsb-hextory-add.cdm-reset {
  top: 96px;
  left: calc(var(--adsb-plane-shift, 300px) + 10px);
  transform: none;
}

#adsb-utc.adsb-utc.utc-clock {
  position: absolute;
  top: 50px;
  left: 10px;
  z-index: 3;
  box-sizing: border-box;
  width: auto;
  min-width: 116px;
  max-width: none;
  height: 36px;
  margin: 0;
  margin-left: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 1.09rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.74;
  pointer-events: none;
  transition: top 0.32s ease;
  transform: none;
  white-space: nowrap;
}

#adsb-utc-time,
#adsb-local-time {
  letter-spacing: 0.04em;
  margin: 0;
}

#adsb-utc.adsb-utc .utc-suffix,
#adsb-utc.adsb-utc .adsb-local-suffix {
  margin: 0;
  margin-left: 0;
  font-size: 0.68em;
  line-height: 1;
  letter-spacing: 0;
  color: inherit;
  opacity: 1;
}

#adsb-utc.adsb-utc .adsb-clock-sep {
  margin: 0 0.38em;
  font-size: 0.92em;
  font-weight: 400;
  line-height: 1;
  opacity: 0.55;
}

#adsb-utc[hidden] {
  display: none !important;
}

#adsb-hextory-add.cdm-reset {
  top: 162px;
  left: 10px;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 116px;
  min-width: 116px;
  max-width: 116px;
  height: auto;
  min-height: 54px;
  max-height: none;
  padding: 0.28rem 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  white-space: normal;
  opacity: 0.7 !important;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

#adsb-hextory-add.is-added {
  opacity: 0.32 !important;
  pointer-events: none;
}

.adsb-add-line {
  display: block;
}

.adsb-add-hex {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.04em;
}

.adsb-add-to {
  font-variant: small-caps;
  font-weight: 400;
  letter-spacing: 0.08em;
}

html.adsb-plane-open #adsb-help,
html.adsb-plane-open #adsb-external,
html.adsb-plane-open #adsb-hextory,
html.adsb-plane-open #adsb-return,
html.adsb-plane-open #adsb-hextory-add,
html.adsb-plane-open #adsb-utc {
  z-index: 4;
}

html.theme-bright .adsb-help.cdm-reset {
  background: var(--panel);
  color: var(--fg);
  border-color: var(--accent);
}

html.theme-bright .adsb-help.cdm-reset:active {
  background: var(--btn-press);
  color: var(--btn-text);
  border-color: var(--btn-press);
}

@media (prefers-color-scheme: light) {
  html:not(.theme-dim) .adsb-help.cdm-reset {
    background: var(--panel);
    color: var(--fg);
    border-color: var(--accent);
  }

  html:not(.theme-dim) .adsb-help.cdm-reset:active {
    background: var(--btn-press);
    color: var(--btn-text);
    border-color: var(--btn-press);
  }
}

html.theme-dim .adsb-help.cdm-reset {
  background: var(--btn);
  color: var(--btn-text);
  border-color: var(--accent);
}

.adsb-hextory.is-ingest {
  animation: hextory-ingest 0.35s ease-in-out 3;
}

@keyframes hextory-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes hextory-ingest {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.adsb-help[hidden] {
  display: none !important;
}

.adsb-fr24 {
  position: absolute;
  left: auto;
  right: 10px;
  bottom: var(--adsb-chrome-floor);
  z-index: 12;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
  width: max-content;
  max-width: min(360px, calc(100vw - 20px));
  margin-left: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--fg);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: right;
  text-decoration: none;
  pointer-events: auto;
}

.adsb-fr24.is-dock {
  left: auto;
  right: 10px;
  max-width: min(280px, calc(100vw - 20px));
  margin-left: 0;
  padding: 0.55rem 0.75rem;
  font-size: 1.15rem;
  z-index: 8;
}

.adsb-fr24[hidden] {
  display: none !important;
}

.adsb-fr24-flight,
.adsb-fr24-reg,
.adsb-fr24-route,
.adsb-fr24-places,
.adsb-fr24-motion {
  display: block;
}

.adsb-fr24-flight {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.35em;
}

.adsb-fr24-airline {
  font-size: 0.72em;
  font-weight: 400;
  color: var(--muted);
  opacity: 0.72;
}

.adsb-fr24-airline:empty {
  display: none;
}

.adsb-fr24-num {
  font-weight: 700;
  color: var(--fg);
}

.adsb-fr24-reg,
.adsb-fr24-route,
.adsb-fr24-places,
.adsb-fr24-motion {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--fg);
  opacity: 0.86;
}

.adsb-fr24-reg {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.45em;
}

.adsb-fr24-ete {
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

.adsb-fr24-ete:empty {
  display: none;
}

.adsb-fr24-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.adsb-fr24-link:not([href]) {
  pointer-events: none;
}

.adsb-fr24-route {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  column-gap: 0.4em;
  row-gap: 0.12em;
}

.adsb-fr24-leg {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4em;
  white-space: nowrap;
}

.adsb-fr24-dep,
.adsb-fr24-arr {
  opacity: 0.78;
}

.adsb-fr24-from,
.adsb-fr24-to,
.adsb-fr24-arrow {
  font-weight: 600;
}

.adsb-fr24-places {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.55em;
  opacity: 0.72;
}

.adsb-fr24-city {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.15;
  cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, currentColor 55%, transparent);
}

.adsb-fr24-motion.is-waiting {
  font-size: 0.68em;
  letter-spacing: 0.02em;
  opacity: 0.55;
}

.adsb-fr24-motion:empty,
.adsb-fr24-ident:empty,
.adsb-fr24-dep:empty,
.adsb-fr24-from:empty,
.adsb-fr24-to:empty,
.adsb-fr24-arrow:empty,
.adsb-fr24-arr:empty,
.adsb-fr24-city:empty,
.adsb-fr24-city[hidden] {
  display: none;
}

.adsb-fr24-leg:not(:has(:not(:empty))) {
  display: none;
}

.adsb-fr24-route:not(:has(:not(:empty))),
.adsb-fr24-reg:not(:has(:not(:empty))) {
  display: none;
}

.adsb-fr24-places:not(:has(.adsb-fr24-city:not([hidden]))) {
  display: none;
}

.adsb-fr24.is-inferred .adsb-fr24-from,
.adsb-fr24.is-inferred .adsb-fr24-to,
.adsb-fr24.is-inferred .adsb-fr24-arrow {
  font-weight: 500;
  opacity: 0.82;
}

html.theme-bright .adsb-fr24 {
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  color: var(--fg);
}

html.theme-dim .adsb-fr24 {
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  color: var(--fg);
}

@media (max-width: 430px) {
  .adsb-fr24.is-dock {
    font-size: 1.15rem;
  }

  .adsb-fr24.is-dock .adsb-fr24-reg,
  .adsb-fr24.is-dock .adsb-fr24-route,
  .adsb-fr24.is-dock .adsb-fr24-places,
  .adsb-fr24.is-dock .adsb-fr24-motion {
    font-size: 0.88rem;
  }
}

.hextory-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.28);
}

.hextory-overlay[hidden] {
  display: none !important;
}

.hextory-overlay.is-parked {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.hextory-sheet {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  width: min(44rem, 100%);
  max-width: 44rem;
  height: auto;
  max-height: 58vh;
  min-height: 0;
  padding: 0.7rem 0.85rem 0.65rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
}

.hextory-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.hextory-brand-col {
  position: relative;
  min-width: 0;
}

.hextory-head .hextory-brand .home-script {
  height: 1.77rem;
  left: -0.44rem;
  top: -0.08rem;
  transform: translateY(-20%);
}

.hextory-head .theme-toggle {
  margin-left: 0;
  flex: 0 0 auto;
}

.hextory-word {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--fg);
}

.hextory-kicker {
  position: relative;
  z-index: 2;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 1.53rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.hextory-pins {
  flex: 0 1 auto;
  align-items: start;
  gap: 0.38rem;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.hextory-card {
  justify-content: flex-start;
  min-height: 0;
  height: auto;
  cursor: pointer;
  overflow: hidden;
  padding: 0.45rem 3.4rem 0 0.5rem;
}

.hextory-card:not(.hextory-home) {
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  height: var(--hextory-ac-h, auto);
  min-height: 0;
}

.hextory-card.hextory-home {
  align-self: stretch;
  box-sizing: border-box;
  width: 100%;
  height: var(--hextory-home-h, 5.15rem);
  min-height: var(--hextory-home-h, 5.15rem);
  padding: 0.42rem 3.4rem 0.4rem 0.65rem;
}

.hextory-side {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: auto;
  pointer-events: none;
}

.hextory-fr24,
.hextory-flytify {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hextory-card:not(.hextory-home) .hextory-fr24 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 40%;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0.12rem 0.18rem 0 0;
}

.hextory-card:not(.hextory-home) .hextory-flytify {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 0.18rem 1.72rem 0;
}

.hextory-fr24 svg,
.hextory-flytify svg {
  display: block;
  box-sizing: content-box;
  width: 25px;
  height: 25px;
  flex: none;
}

.hextory-fr24:active,
.hextory-flytify:active {
  color: var(--fg);
}

.hextory-flytify.is-on {
  color: var(--fg);
}

.hextory-flytify.is-on svg {
  border: 1.5px solid currentColor;
  border-radius: 5px;
  padding: 2px;
}

.hextory-card.hextory-home .hextory-fr24 {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
}

.hextory-help-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  margin-right: 0.28em;
}

.hextory-homes {
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.32rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hextory-home {
  width: 100%;
  height: var(--hextory-home-h, 5.15rem);
  min-height: var(--hextory-home-h, 5.15rem);
  padding-right: 3.6rem;
  cursor: pointer;
}

.hextory-home-label {
  position: absolute;
  top: 2.85rem;
  right: 0.16rem;
  width: 4.4rem;
  color: var(--muted);
  font-size: 0.676rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.12;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}

.hextory-card .pin-icao,
.hextory-card .pin-place {
  max-width: 100%;
  min-width: 0;
}

.hextory-card .pin-icao {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  width: 100%;
  font-size: 1.86rem;
}

.hextory-card .pin-place {
  font-size: 0.94rem;
}

.hextory-type {
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hextory-live {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.hextory-last {
  white-space: nowrap;
}

.hextory-hex {
  position: absolute;
  right: 0.38rem;
  bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

.hextory-callsign {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  width: 100%;
  margin-top: auto;
  line-height: 1.15;
}

.hextory-callsign .adsb-fr24-num {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hextory-callsign .adsb-fr24-airline {
  font-size: 0.92em;
}

.hextory-callsign .adsb-fr24-num:empty,
.hextory-callsign .adsb-fr24-airline:empty {
  display: none;
}

.hextory-id {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  box-sizing: border-box;
  align-self: stretch;
  width: auto;
  margin: 0.08rem -3.4rem 0 -0.5rem;
  padding: 0.3rem 0.5rem 0.32rem;
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.15;
  pointer-events: none;
}

.hextory-id-reg {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hextory-id-type {
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hextory-id-hex {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.hextory-id-hex-label {
  font-size: 0.7em;
  letter-spacing: 0.05em;
}

.hextory-id-hex-code {
  font-size: 1em;
  letter-spacing: 0.06em;
}

.hextory-id-reg:empty,
.hextory-id-type:empty,
.hextory-id-hex:empty {
  display: none;
}

.hextory-card.is-fr24 {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.08rem;
  min-height: 0;
  height: var(--hextory-ac-h, auto);
  padding: 0.4rem 3.4rem 0 0.5rem;
  text-align: left;
  font-size: 1.14rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hextory-card.is-fr24 .adsb-fr24-flight,
.hextory-card.is-fr24 .adsb-fr24-reg,
.hextory-card.is-fr24 .adsb-fr24-route,
.hextory-card.is-fr24 .adsb-fr24-places,
.hextory-card.is-fr24 .adsb-fr24-motion {
  box-sizing: border-box;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: inherit;
  font-weight: 400;
  text-align: left;
  opacity: 0.94;
  overflow-wrap: anywhere;
}

.hextory-card.is-fr24 .adsb-fr24-leg {
  max-width: 100%;
  min-width: 0;
}

.hextory-card.is-fr24 .hextory-id {
  margin-top: 0.08rem;
  font-size: 0.92rem;
}

.hextory-card.is-fr24 .adsb-fr24-route {
  column-gap: 0.28em;
  row-gap: 0.04em;
}

.hextory-card.is-fr24 .adsb-fr24-from,
.hextory-card.is-fr24 .adsb-fr24-to,
.hextory-card.is-fr24 .adsb-fr24-arrow {
  font-weight: 600;
}

.hextory-card.is-fr24.is-inferred .adsb-fr24-from,
.hextory-card.is-fr24.is-inferred .adsb-fr24-to,
.hextory-card.is-fr24.is-inferred .adsb-fr24-arrow {
  font-weight: 500;
  opacity: 0.82;
}

.hextory-guess {
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.05em;
}

.hextory-homebound {
  color: var(--muted);
  font-size: 0.676rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-left: 0.4em;
  text-transform: uppercase;
  pointer-events: none;
}

.hextory-card.is-fr24 .adsb-fr24-airline {
  font-size: 0.92em;
}

.hextory-card.is-fr24 .adsb-fr24-ete {
  font-size: 0.88em;
}

.hextory-card.is-fr24 .adsb-fr24-motion {
  font-size: 0.78rem;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hextory-card.is-fr24.is-parked .adsb-fr24-arr {
  font-size: 0.88em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hextory-card.is-fr24 .hextory-fr24-city,
.hextory-card.is-fr24 .adsb-fr24-city {
  pointer-events: none;
  cursor: inherit;
  border-bottom: 0;
}

.hextory-card.is-fr24 .adsb-fr24-route,
.hextory-card.is-fr24 .adsb-fr24-places,
.hextory-card.is-fr24 .adsb-fr24-reg,
.hextory-card.is-fr24 .adsb-fr24-motion,
.hextory-card.is-fr24 .adsb-fr24-route:not(:has(:not(:empty))),
.hextory-card.is-fr24 .adsb-fr24-reg:not(:has(:not(:empty))),
.hextory-card.is-fr24 .adsb-fr24-places:not(:has(.adsb-fr24-city:not([hidden]))),
.hextory-card.is-fr24 .adsb-fr24-motion:empty {
  display: flex;
  align-items: baseline;
  min-height: 1.37rem;
}

.hextory-foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding-top: 0.2rem;
}

.hextory-foot-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  width: calc((100% - 0.38rem) / 2);
  max-width: calc((100% - 0.38rem) / 2);
  min-width: 0;
}

.hextory-foot-actions .hextory-backup {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 0.42rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.hextory-close {
  flex: none;
  min-height: 44px;
  padding: 0 0.7rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hextory-backup {
  min-height: 44px;
  padding: 0 0.85rem;
  border: var(--border-w) solid var(--accent);
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--btn-text);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hextory-backup:active {
  background: var(--btn-press);
  color: var(--btn-text);
  border-color: var(--btn-press);
}

.hextory-reg-dialog {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12vh 5vw;
  background: rgba(0, 0, 0, 0.45);
}

.hextory-reg-dialog:not([hidden]) {
  display: flex;
}

.hextory-reg-card {
  width: min(22rem, 92vw);
  padding: 1.05rem 1.05rem 0.95rem;
  background: var(--panel);
  color: var(--fg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
}

.hextory-reg-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hextory-find-modes .board-focus-tick {
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.2rem;
}

.hextory-reg-card #hextory-reg-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0 0 0.75rem;
  padding: 0 0.7rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hextory-reg-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
}

.hextory-reg-actions .hextory-backup {
  width: 100%;
}

.hextory-reg-card .board-focus-ticks {
  margin: 0 0 0.75rem;
}

.adsb-find-btn {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
}

.cdm-help-terms {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cdm-help-term {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--fg);
  font-weight: 400;
}

.cdm-help-terms li {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.42;
}

.cdm-help-card .icon-btn {
  width: 100%;
  margin-top: 0.85rem;
  flex-shrink: 0;
}

.cdm-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  min-width: max-content;
  padding: 0 0.62rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--btn-text);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.cdm-notify {
  background: var(--field);
  color: var(--fg);
  border-color: var(--line);
}

.cdm-notify.active {
  background: var(--btn);
  color: var(--btn-text);
  border-color: var(--accent);
}

.cdm-tobt-go {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  align-content: center;
  column-gap: 0.35em;
  row-gap: 0;
  margin: 10px 0 0 20px;
  min-width: 0;
  flex: none;
  height: auto;
  min-height: 0;
  max-height: none;
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 400;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 0 4px var(--field), 0 0 8px var(--field);
}

@media (max-width: 700px) {
  .cdm-tobt-go {
    position: absolute;
    top: 54px;
    left: 24px;
    margin: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

.cdm-tobt-clock,
.cdm-tobt-words {
  white-space: nowrap;
}

.cdm-tobt-go.soon {
  color: var(--cdm-amber);
}

.cdm-tobt-go.passed {
  color: var(--cdm-logo-red);
}

.cdm-tobt-go[hidden] {
  display: none !important;
}

.select-airport.icon-btn {
  position: fixed;
  left: max(
    env(safe-area-inset-left, 0px),
    calc((100vw - min(44rem, 100vw)) / 2 + var(--bezel-w) + 0.85rem)
  );
  bottom: var(--adsb-chrome-floor);
  z-index: 90;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.02rem;
  width: 116px;
  min-width: 116px;
  max-width: 116px;
  min-height: 54px;
  padding: 0.28rem 0.3rem;
  border: var(--border-w) solid var(--btn);
  background: var(--btn);
  color: var(--btn-text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  opacity: 0.7;
  pointer-events: auto;
}

.select-airport.icon-btn span {
  display: block;
  width: 100%;
  text-align: center;
}

.select-airport.icon-btn:active {
  background: var(--btn-press);
  border-color: var(--btn-press);
}

html.adsb-fr24-dock .select-airport.icon-btn {
  bottom: var(--adsb-chrome-floor);
}

.ios-nudge {
  position: fixed;
  left: 50%;
  bottom: max(1.1rem, calc(env(safe-area-inset-bottom, 0px) + 0.85rem));
  z-index: 150;
  display: flex;
  flex-direction: column;
  width: min(22rem, calc(100vw - 1.6rem));
  overflow: hidden;
  padding: 0.85rem 1rem 1.05rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--fg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  transform: translateX(-50%);
}

.ios-nudge[hidden] {
  display: none !important;
}

.ios-nudge a {
  color: var(--accent);
  text-decoration: underline;
}

.ios-nudge-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: left center;
}

.ios-nudge.is-timing .ios-nudge-bar {
  animation: ios-nudge-drain 8s linear forwards;
}

@keyframes ios-nudge-drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ios-nudge.is-timing .ios-nudge-bar {
    animation: none;
    transform: scaleX(1);
  }
}

.cdm-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.7rem);
  left: 50%;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.21rem;
  min-width: 15.4rem;
  max-width: min(30.8rem, 92vw);
  padding: 0.77rem 1.19rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--fg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-family: var(--sans);
  transform: translateX(-50%);
  pointer-events: none;
}

.cdm-toast:has(.cdm-toast-btn) {
  pointer-events: auto;
}

.cdm-toast-btn {
  margin-top: 0.35rem;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--btn-text);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cdm-toast[hidden] {
  display: none !important;
}

.cdm-toast strong {
  font-size: 1.33rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.cdm-toast span {
  font-size: 1.15rem;
  font-weight: 400;
}

.cdm-toast .cdm-toast-note {
  margin-top: 0.08rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.cdm-reset:active {
  background: var(--btn-press);
  border-color: var(--btn-press);
}

.view-board {
  padding: 0.65rem 1.05rem;
  font-family: var(--sans);
}

.view-board .brief-chrome {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.4rem;
  align-items: start;
  margin-bottom: 0.45rem;
}

.view-board .board-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(var(--touch), 1fr));
  gap: 0.4rem;
  margin: 0 0 0.55rem;
}

.view-board .board-controls > button {
  min-width: 0;
  width: 100%;
  min-height: var(--touch);
  height: 100%;
  box-sizing: border-box;
}

.view-board .board-pin-hint {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  align-self: center;
  justify-self: stretch;
}

.board-more-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.55rem 0 0;
}

.board-more-btn {
  grid-column: 2;
}

.board-more-btn[hidden] {
  display: none;
}

.view-board .brief-clockwrap {
  margin-left: 0;
}

.board-chrome-end {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.4rem;
  min-width: 0;
  grid-column: 3;
}

.board-ident-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

#board-ident {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.05;
  font-family: var(--sans);
}

.board-local {
  margin: 0.08rem 0 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.board-local-tz {
  margin-left: 0.28rem;
}

.board-utc-note {
  margin: 0.12rem 0 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.board-refresh .board-refresh-icon {
  display: none;
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.board-update-spin {
  width: 22px;
  height: 22px;
  margin: 0.75rem auto;
  border: 2.5px solid color-mix(in srgb, var(--muted) 28%, transparent);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: board-update-spin 0.7s linear infinite;
}

#board-refresh.is-updating .board-refresh-label {
  display: none;
}

#board-refresh.is-updating .board-refresh-icon {
  display: block;
  animation: board-update-spin 0.7s linear infinite;
}

@keyframes board-update-spin {
  to {
    transform: rotate(360deg);
  }
}

#board-utc.utc-clock {
  white-space: nowrap;
}

@media (max-width: 36rem) {
  .view-board {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  #board-ident {
    font-size: 1.28rem;
  }

  .view-board .board-pin-hint {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .board-local {
    font-size: 0.95rem;
  }

  #board-utc.utc-clock {
    font-size: 1.08rem;
    letter-spacing: 0.06em;
  }

  .board-utc-note {
    display: none;
  }

  .board-chrome-end {
    align-items: center;
    gap: 0.18rem;
    min-width: max-content;
  }

  .board-refresh .board-refresh-label {
    display: none;
  }

  .board-refresh .board-refresh-icon {
    display: block;
  }

  #board-refresh.board-refresh {
    padding: 0;
    min-width: var(--touch);
    width: var(--touch);
  }
}

.board-focus-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.board-focus-btn span {
  display: block;
  text-align: center;
  white-space: nowrap;
}

.board-focus-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.board-dir {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 40px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--tab-line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}

.board-dir.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--btn-text);
}

.board-dir.sweeping,
.board-dir.sweeping.active,
.board-dir.sweeping:disabled {
  background-color: var(--btn-light);
  background-image: linear-gradient(
    to right,
    var(--accent) 50%,
    var(--btn-light) 50%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  border-color: var(--accent);
  color: var(--btn-text);
  opacity: 1;
  animation: btn-sweep-wipe 1.65s cubic-bezier(0.4, 0, 0.15, 1) infinite;
}

.board-dir.sweep-done,
.board-dir.sweep-done.active {
  background: var(--accent);
  background-image: none;
  background-position: 0 0;
  border-color: var(--accent);
  color: var(--btn-text);
  animation: none;
}

.board-dir:disabled,
.board-adsb:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  overflow: hidden;
}

.board-row {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1.15fr) minmax(0, 1fr) auto auto;
  grid-template-areas:
    "time ident route route route"
    "time meta meta gate status";
  column-gap: 0.45rem;
  row-gap: 0.08rem;
  align-items: start;
  padding: 0.32rem 0.65rem;
  border-top: var(--border-w) solid var(--line);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.board-row:nth-child(even of .board-row) {
  background: var(--board-stripe);
}

.board-row:first-child {
  border-top: 0;
}

.board-day {
  display: block;
  margin: 0;
  padding: 0.38rem 0.7rem 0.22rem;
  border-top: var(--border-w) solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.board-day:first-child {
  border-top: 0;
}

.board-time {
  grid-area: time;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  min-height: 3.36em;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.12;
}

.board-time > span,
.board-time-orig,
.board-time-new {
  font-family: inherit;
  white-space: nowrap;
}

.board-time-orig {
  color: var(--muted);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-thickness: 0.09em;
}

.board-time-new {
  font-weight: 400;
}

.board-time-z {
  font-family: var(--sans);
  font-size: calc(1em - 3pt);
  font-weight: inherit;
  letter-spacing: 0.02em;
}

.board-time-gap {
  flex: 1 1 auto;
  min-height: 1.12em;
}

.board-time-local {
  margin-top: auto;
  color: var(--muted);
  font-weight: 400;
}

.board-time-l {
  font-family: var(--sans);
  font-size: calc(1em - 3pt);
  font-weight: inherit;
  letter-spacing: 0.02em;
}

.board-ident {
  grid-area: ident;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4rem;
  row-gap: 0.02rem;
  min-width: 0;
}

.board-flight {
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.board-airline {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  min-width: 0;
  max-width: none;
  overflow-wrap: break-word;
  hyphens: none;
  line-height: 1.2;
}

.board-route {
  grid-area: route;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: none;
  text-align: right;
  line-height: 1.2;
}

.board-meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  column-gap: 0;
  row-gap: 0.04rem;
  text-align: left;
}

.board-meta-item,
.board-reg,
.board-cargo {
  white-space: nowrap;
  word-break: keep-all;
}

.board-meta-extra {
  min-width: 0;
  overflow-wrap: break-word;
}

.board-cargo {
  color: var(--fg);
  font-size: 1.22em;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.board-gate {
  grid-area: gate;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  justify-self: end;
}

.board-meta[hidden],
.board-gate[hidden],
.board-status[hidden],
.board-airline[hidden] {
  display: none !important;
}

.board-status {
  grid-area: status;
  justify-self: end;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.board-status-delay,
.board-status-cnx,
.board-status-alert {
  color: var(--stale);
}

.board-status-note,
.board-status-done {
  color: var(--fg);
}

.board-row-cnx .board-flight,
.board-row-cnx .board-ident,
.board-row-cnx .board-time {
  color: var(--muted);
}

.board-row-focus .board-airline,
.board-row-cnx .board-airline {
  color: var(--muted);
}

.board-row-focus {
  font-size: 1.08em;
}

.board-row-focus .board-flight,
.board-row-focus .board-time,
.board-row-focus .board-time-new,
.board-row-focus .board-gate {
  color: var(--accent);
}

.board-row-focus .board-route,
.board-row-focus .board-meta {
  color: var(--fg);
}

.board-row-focus .board-cargo {
  color: var(--accent);
}

.board-focus-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12vh 5vw;
  background: rgba(0, 0, 0, 0.45);
}

.board-focus-dialog:not([hidden]) {
  display: flex;
}

.board-focus-card {
  width: min(22rem, 92vw);
  padding: 1.05rem 1.05rem 0.95rem;
  background: var(--panel);
  color: var(--fg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
}

.board-focus-card h2 {
  font-size: 1.22rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.board-focus-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.board-focus-form input {
  flex: 1;
  min-width: 0;
  min-height: var(--touch);
  border: var(--border-w) solid var(--line);
  background: var(--field);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.board-focus-form input::placeholder {
  color: var(--placeholder);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.board-focus-err {
  margin: 0.55rem 0 0;
  color: var(--stale);
  font-weight: 400;
  font-size: 0.92rem;
}

.board-focus-ticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.board-focus-ticks.hextory-find-modes {
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0 0 0.7rem;
}

.board-focus-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: var(--touch);
  margin: 0;
  padding: 0.15rem 0.4rem;
  border: 2px solid var(--tab-line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.board-focus-tick:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--btn-text);
}

.board-focus-tick:has(input:disabled) {
  opacity: 0.45;
}

.board-focus-tick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.board-focus-tick span {
  display: block;
  width: 100%;
  text-align: center;
}

.board-focus-form .cdm-help {
  pointer-events: auto;
  flex-shrink: 0;
  align-self: center;
}

.board-focus-rule {
  border: 0;
  border-top: 1px solid var(--tab-line);
  margin: 0.7rem 0 0.65rem;
}

.board-focus-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
  justify-content: start;
  margin-top: 0;
}

.board-focus-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 0.4rem;
  border: 2px solid var(--tab-line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.board-focus-apply {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 0;
  width: 100%;
}

.board-pin-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 0.35rem 3vw max(0.3rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.5);
  overscroll-behavior: contain;
}

.board-pin-overlay:not([hidden]) {
  display: flex;
}

.board-pin-card {
  width: min(92vw, max(80vw, 40rem));
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.45rem;
  background: var(--panel);
  color: var(--fg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.board-pin-overlay.is-arrival {
  bottom: auto;
  height: auto;
  background: transparent;
  pointer-events: none;
}

.board-pin-overlay.is-arrival .board-pin-card {
  height: auto;
  max-height: 100%;
  overflow: auto;
  pointer-events: auto;
}

.board-pin-overlay.is-departure .board-pin-card {
  height: 100%;
  overflow: hidden;
}

.board-pin-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.45rem;
}

.board-pin-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 12px;
}

.board-pin-head-text {
  flex: 1;
  min-width: 0;
}

.board-pin-card h2 {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

#board-pin-sub {
  margin: 0.22rem 0 0;
  color: var(--fg);
  font-size: 1.02rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.board-pin-adsb,
.board-pin-close {
  flex: none;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0 0.7rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1;
}

.board-pin-adsb {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.board-pin-adsb:disabled,
.board-pin-adsb[aria-disabled="true"] {
  opacity: 0.38;
  pointer-events: none;
}

.board-pin-close {
  width: 44px;
  padding: 0;
  font-size: 1.55rem;
}

.board-pin-adsb:active,
.board-pin-close:active {
  background: var(--btn);
  color: var(--btn-text);
}

.board-pin-cdm-wrap {
  position: relative;
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.board-pin-cdm-wrap[hidden] {
  display: none !important;
}

.board-pin-cdm {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.board-pin-note {
  flex: none;
  margin: 0.55rem 0 0;
  color: var(--stale);
  font-weight: 400;
  font-size: 0.9rem;
}
