/* Shared obsidian canvas. The same glow on every page. */
html,
body {
  background-color: #04070d;
  background-image:
    radial-gradient(70% 50% at 100% 0%, rgba(126, 224, 255, 0.05), transparent 58%),
    linear-gradient(180deg, #060a10 0%, #04070d 38%, #04070d 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#boot-void {
  background:
    linear-gradient(180deg, rgba(4, 7, 13, 0.5), rgba(4, 7, 13, 0.84)),
    url("/assets/exo-horizon.jpg") center / cover no-repeat !important;
}

button,
button.b,
.btn {
  border-radius: 10px;
}


/* Shared chrome. Prefixed tokens so this file cannot override the Mission bundle :root names. */
:root {
  --exo-void: #04070d;
  --exo-cyan: #7ee0ff;
  --exo-amber: #ffb84d;
  --exo-text: #f0f6fc;
  --exo-muted: #9fb0b4;
  --exo-line: rgba(126, 224, 255, 0.16);
  --exo-line-btn: rgba(126, 224, 255, 0.24);
  --exo-line-field: rgba(126, 224, 255, 0.22);
  --exo-surface: rgba(10, 18, 30, 0.78);
  --exo-btn: rgba(10, 18, 30, 0.72);
  --exo-inset: #060b14;
  --exo-glass: rgba(10, 18, 30, 0.78);
  --exo-sans: "IBM Plex Sans", system-ui, sans-serif;
  --exo-mono: "IBM Plex Mono", ui-monospace, monospace;
  --exo-text-sm: clamp(0.8125rem, 0.78rem + 0.16vw, 0.9375rem);
  --exo-bar-h: calc(57px + env(safe-area-inset-top));
  --exo-steel: #c5d4de;
  --exo-metal-edge: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.exo-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.exo-skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 80;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--exo-amber);
  color: #1a1404;
  font-family: var(--exo-mono);
  font-size: var(--exo-text-sm);
  text-decoration: none;
  outline: 2px solid #1a1404;
  outline-offset: 2px;
}

.exo-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--exo-bar-h);
  margin: 0;
  padding: calc(6px + env(safe-area-inset-top)) 12px 6px;
  background: rgba(4, 7, 13, 0.9);
  border-bottom: 1px solid rgba(198, 216, 226, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  color: var(--exo-text);
  font-family: var(--exo-sans);
  font-size: var(--exo-text-sm);
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.exo-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 8px;
  padding: 0 12px 0 0;
  border: 0;
  border-right: 1px solid rgba(198, 216, 226, 0.16);
  border-radius: 0;
  color: var(--exo-amber);
  font-family: var(--exo-mono);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  background: none;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--exo-amber);
  filter: none;
}

.exo-sites {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  z-index: auto;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0 0 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  scrollbar-width: none;
}

.exo-sites::-webkit-scrollbar { display: none; }

.exo-sites a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--exo-muted);
  font-family: var(--exo-sans);
  font-size: var(--exo-text-sm);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
}

.exo-sites a:hover {
  color: var(--exo-text);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.exo-sites a[aria-current="page"] {
  color: var(--exo-text);
  border-color: transparent;
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--exo-cyan);
  border-radius: 0;
}

.exo-sites a:focus-visible,
.exo-brand:focus-visible {
  outline: 2px solid var(--exo-amber);
  outline-offset: 2px;
}

.exo-comms {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  margin: 0;
  padding: 4px 12px;
  background: rgba(4, 7, 13, 0.92);
  border-bottom: 1px solid rgba(126, 224, 255, 0.25);
}

.exo-comms a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--exo-muted);
  font-family: var(--exo-mono);
  font-size: var(--exo-text-sm);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.exo-comms a[aria-current="page"] { color: var(--exo-cyan); }

body:has(#decode) > header:not(.exo-bar) {
  top: var(--exo-bar-h);
  z-index: 30;
}

body:has(#decode) {
  --bg: #03060b;
  --bg2: #03060b;
  --card: #07111a;
  --card2: #0a1622;
  --line: #163246;
  --text: #e7f6ff;
  --muted: #a9c0ce;
  --accent: #7ee0ff;
  --accent2: #7ee0ff;
  --warn: #ffe08a;
  color: var(--text);
  font-family: var(--exo-sans);
}

body:has(#decode) h1::before {
  background: var(--exo-cyan);
  box-shadow: 0 0 12px rgba(126, 224, 255, 0.4);
}

body:has(#decode) nav button.on,
body:has(#decode) .presets button.on,
body:has(#decode) button.b.on {
  background: transparent;
  border-color: var(--exo-cyan);
  color: var(--exo-cyan);
  box-shadow: none;
}

body:has(#decode) button.b,
body:has(#decode) a.b {
  background: transparent;
  color: var(--exo-cyan);
  border: 1px solid var(--exo-cyan);
  box-shadow: none;
}

body:has(#decode) button.b.alt,
body:has(#decode) a.b.alt {
  color: var(--exo-amber);
  border-color: var(--exo-amber);
  background: transparent;
}

body:has(#decode) button.b.stop {
  color: #ffd0c8;
  border-color: #f87171;
  background: transparent;
}

body:has(#decode) input:focus,
body:has(#decode) select:focus {
  border-color: var(--exo-cyan);
}

body:has(#composer) {
  font-family: var(--exo-sans);
}

body:has(#composer) > header:not(.exo-bar) {
  padding-top: 10px;
}

body:has(#composer) #sosBanner {
  top: var(--exo-bar-h);
  z-index: 45;
}

body:has(.fm-body) > header.fm-top {
  padding-top: 6px;
}

@media (max-width: 800px) {
  body:has(.fm-body) .fm-stage {
    min-height: calc(42vh - var(--exo-bar-h));
  }
}

/* Horizontal tab strips. The page keeps its own click handler. */
.exo-tabs {
  flex-wrap: nowrap;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 28px;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  --exo-fade-l: 0px;
  --exo-fade-r: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--exo-fade-l), #000 calc(100% - var(--exo-fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--exo-fade-l), #000 calc(100% - var(--exo-fade-r)), transparent 100%);
}
.exo-tabs::-webkit-scrollbar { display: none; }
.exo-tabs > button {
  scroll-snap-align: center;
  white-space: nowrap;
}
.exo-tabs > button:focus-visible {
  outline: 2px solid var(--exo-amber);
  outline-offset: -2px;
}
body:has(#decode) :is(a, button, input, select, textarea, summary):focus-visible:not(.exo-skip),
body:has(#composer) :is(a, button, input, select, textarea, summary):focus-visible:not(.exo-skip),
body:has(.fm-body) :is(a, button, input, select, textarea, summary):focus-visible:not(.exo-skip),
body:has(.cam-stage) :is(a, button, input, select, textarea, summary):focus-visible:not(.exo-skip) {
  outline: 2px solid var(--exo-amber);
  outline-offset: 2px;
}
body:has(#decode) nav.exo-tabs > button {
  flex: 0 0 auto;
  max-width: none;
}
body:has(#composer) nav.exo-tabs > button {
  flex: 1 1 0;
  min-width: max-content;
}
@media (prefers-reduced-motion: reduce) {
  .exo-tabs { scroll-behavior: auto; }
}

.exo-cmd {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(12vh + env(safe-area-inset-top)) 16px 24px;
  background: rgba(3, 6, 11, 0.72);
}
.exo-cmd[hidden] { display: none; }
.exo-cmd__panel {
  width: min(560px, 100%);
  background: rgba(4, 7, 13, 0.72);
  border: 1px solid rgba(126, 224, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 18px 50px -36px #000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.exo-cmd__q {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid rgba(126, 224, 255, 0.28);
  background: transparent;
  color: #e7f4ef;
  font: 16px/1.4 "IBM Plex Sans", system-ui, sans-serif;
  padding: 0 14px;
}
.exo-cmd__list { max-height: min(50vh, 420px); overflow: auto; padding: 8px; }
.exo-cmd__item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e7f4ef;
  font: 15px/1.2 "IBM Plex Sans", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.exo-cmd__item small {
  color: #c5d5cf;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.exo-cmd__item.is-on { background: rgba(126, 224, 255, 0.14); color: #ffe08a; }
.exo-cmd__empty { margin: 8px 12px 12px; color: #c5d5cf; font-size: 12px; letter-spacing: 0.12em; }
.exo-cmd__toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffe08a;
  color: #1a1404;
  font: 13px/1 "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.exo-cmd__q:focus-visible,
.exo-cmd__item:focus-visible { outline: 2px solid #ffe08a; outline-offset: 2px; }
body:has(#decode) .exo-clock {
  margin: 0 0 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #ffe08a;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* One set of controls. Mission's Cesium HUD stays on its own rules
   (body:has(#boot-void) is excluded). .exo-tabs never receives position. */
@media screen {
  html body {
    background-color: #04070d !important;
    background-image:
      radial-gradient(90% 70% at 78% 28%, rgba(126, 224, 255, 0.14), transparent 58%),
      radial-gradient(70% 55% at 8% 92%, rgba(255, 184, 77, 0.1), transparent 52%),
      radial-gradient(50% 40% at 50% 0%, rgba(198, 216, 226, 0.07), transparent 60%),
      linear-gradient(180deg, #071019 0%, #04070d 42%, #05080f 100%) !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    font-family: "IBM Plex Sans", system-ui, sans-serif !important;
    color: var(--exo-text);
  }

  html body .exo-bar {
    box-sizing: border-box;
    height: calc(57px + env(safe-area-inset-top));
    min-height: 57px;
    max-height: calc(57px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-bottom: 0;
    align-items: center;
    background-color: rgba(6, 10, 16, 0.72);
    background-image: linear-gradient(180deg, rgba(232, 244, 250, 0.1), rgba(8, 14, 22, 0.55) 38%, rgba(4, 7, 13, 0.82));
    border-bottom: 1px solid rgba(198, 216, 226, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
  }

  html body nav.exo-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background-color: rgba(4, 7, 13, 0.92);
    border-top: 1px solid rgba(126, 224, 255, 0.16);
  }

  html body nav.exo-tabs > button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    box-sizing: border-box !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(126, 224, 255, 0.24) !important;
    background-color: rgba(8, 14, 22, 0.92) !important;
    background-image: none !important;
    color: #f0f6fc !important;
    font-family: "IBM Plex Sans", system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    transition: color 150ms, border-color 150ms, background-color 150ms !important;
  }

  html body nav.exo-tabs > button.on,
  html body nav.exo-tabs > button.active,
  html body nav.exo-tabs > button[aria-selected="true"] {
    color: #7ee0ff !important;
    border-color: rgba(126, 224, 255, 0.7) !important;
  }

  html body nav.exo-tabs > button:active {
    color: #ffb84d !important;
  }

  html body:not(.rg-page):not(.sn-page):not(.mx-page):not(.ul-page):not(:has(#boot-void, .fm-body, .cam-stage, .rg-page, .sn-page, .mx-page, .ul-page)) :where(button, a.btn, a.b, a.exo-btn, a.fm-btn, .miss-jumps a, .leaflet-bar a):not(nav.exo-tabs > button):not(.exo-cmd__item):not(.cesium-button):not(.rf-filters button):not(.sn-tabs button):not(#sn-sheet-toggle) {
    box-sizing: border-box !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(126, 224, 255, 0.24) !important;
    background-color: rgba(8, 14, 22, 0.92) !important;
    background-image: none !important;
    color: #f0f6fc !important;
    font-family: "IBM Plex Sans", system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    transition: color 150ms, border-color 150ms, background-color 150ms !important;
  }

  html body:not(.rg-page):not(.sn-page):not(.mx-page):not(.ul-page):not(:has(#boot-void, .fm-body, .cam-stage, .rg-page, .sn-page, .mx-page, .ul-page)) :where(button, a.btn, a.b, a.exo-btn, a.fm-btn, .miss-jumps a):not(nav.exo-tabs > button):not(.exo-cmd__item):not(.rf-filters button):not(.sn-tabs button):not(#sn-sheet-toggle):hover {
    color: #7ee0ff !important;
    border-color: rgba(126, 224, 255, 0.24) !important;
  }

  html body:not(.rg-page):not(.sn-page):not(.mx-page):not(.ul-page):not(:has(#boot-void, .fm-body, .cam-stage, .rg-page, .sn-page, .mx-page, .ul-page)) :where(button, a.btn, a.b, a.exo-btn, a.fm-btn):not(nav.exo-tabs > button):not(.exo-cmd__item):not(.rf-filters button):not(.sn-tabs button):not(#sn-sheet-toggle):active {
    color: #ffb84d !important;
  }

  html body .sn-tabs button[aria-selected="true"] {
    color: #f0f6fc !important;
    background-color: transparent !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: inset 0 -1px 0 #7ee0ff !important;
  }

  html body:not(:has(#boot-void)) .rf-filters button,
  html body:not(:has(#boot-void)) .sn-tabs button,
  html body:not(:has(#boot-void)) #sn-sheet-toggle {
    min-height: 36px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #9fb0b4 !important;
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 0 10px !important;
  }
  html body:not(:has(#boot-void)) .rf-filters button[aria-pressed="true"],
  html body:not(:has(#boot-void)) .sn-tabs button[aria-selected="true"] {
    color: #f0f6fc !important;
    box-shadow: inset 0 -1px 0 #7ee0ff !important;
  }
  html body:not(:has(#boot-void)) .rf-filters button:hover,
  html body:not(:has(#boot-void)) .sn-tabs button:hover,
  html body:not(:has(#boot-void)) #sn-sheet-toggle:hover {
    color: #f0f6fc !important;
    border: 0 !important;
    background: transparent !important;
  }

  @media (max-width: 800px) {
    html body:not(:has(#boot-void)) .rf-filters button {
      min-height: 32px !important;
      padding: 0 8px !important;
    }
  }

  html body:not(.rg-page):not(.sn-page):not(.mx-page):not(.ul-page):not(:has(#boot-void, .fm-body, .cam-stage, .rg-page, .sn-page, .mx-page, .ul-page)) :where(.card, .exo-card, .exo-panel, .sn-card, .fm-dock, .sheet, .w, .exo-cmd__panel, .exo-slab) {
    border-radius: 16px !important;
    background-color: rgba(7, 12, 18, 0.86) !important;
    background-image: none !important;
    border: 1px solid rgba(198, 216, 226, 0.14) !important;
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.28) !important;
  }

  html body:not(.rg-page):not(.sn-page):not(.mx-page):not(.ul-page):not(:has(#boot-void, .fm-body, .cam-stage, .rg-page, .sn-page, .mx-page, .ul-page)) :where(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="color"]) {
    box-sizing: border-box !important;
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    background-color: #060b14 !important;
    background-image: none !important;
    border: 1px solid rgba(126, 224, 255, 0.22) !important;
    color: #f0f6fc !important;
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  }

  html body:not(.rg-page):not(.sn-page):not(.mx-page):not(.ul-page):not(:has(#boot-void, .fm-body, .cam-stage, .rg-page, .sn-page, .mx-page, .ul-page)) textarea {
    height: auto !important;
  }

  html body:not(.rg-page):not(.sn-page):not(.mx-page):not(.ul-page):not(:has(#boot-void, .fm-body, .cam-stage, .rg-page, .sn-page, .mx-page, .ul-page)) :where(input, select, textarea, button, a.btn):focus-visible {
    outline: 2px solid #ffb84d !important;
    outline-offset: 2px;
  }
}

.exo-pill {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(126, 224, 255, 0.16);
  color: #9fb0b4;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.exo-pill button,
.exo-pill a {
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: #7ee0ff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

#exo-pill-target { color: #ffb84d; }

nav.exo-tabs > [hidden] { display: none !important; }

html body .exo-link button {
  min-width: 44px !important;
  min-height: 44px !important;
}

#exo-pill-copy {
  background: #071018 !important;
  color: #7ee0ff !important;
}

html body .exo-pill button,
html body .exo-pill a {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  min-width: 44px !important;
  padding: 0 10px !important;
  line-height: 1 !important;
}

nav.exo-tabs > a[data-ws] {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #9fb0b4;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.exo-wave {
  margin: 12px;
  padding: 12px 14px;
  min-height: 48px;
  color: #7ee0ff;
  background: #04070d;
  border: 1px solid rgba(126, 224, 255, 0.35);
  border-radius: 12px;
  font: 500 13px/1.4 "IBM Plex Mono", ui-monospace, monospace;
}

.fm-dock p.exo-wave {
  color: #7ee0ff;
  background: #04070d;
}

.exo-wave-btn {
  min-width: 48px;
  min-height: 48px;
  margin: 0 12px 12px;
  color: #ffb84d;
  background: #04070d;
  border: 1px solid #ffb84d;
  border-radius: 10px;
}



/* Make the top nav fit when it can, and fade/scroll obviously when it cannot. */
.exo-sites {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
}
.exo-sites::after {
  content: "";
  flex: 0 0 28px;
  height: 1px;
}
@media (min-width: 720px) {
  .exo-sites {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .exo-sites::after { flex-basis: 0; content: none; }
}
/* exo-layout.js marks the edges that hide more surfaces; fade those edges wider. */
@media (max-width: 719px) {
  .exo-sites.exo-sites-more {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%);
  }
  .exo-sites.exo-sites-start.exo-sites-more {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 48px), transparent 100%);
  }
  .exo-sites.exo-sites-start:not(.exo-sites-more) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px);
  }
}
/* System status must fit on a phone first paint: compact rows, short plinth, no lead. */
@media (max-width: 719px) {
  body:has(#sys-ble) .exo-hero {
    padding: 10px 16px 12px;
  }
  body:has(#sys-ble) .exo-hero-grid {
    gap: 8px;
    margin: 0 0 8px;
  }
  body:has(#sys-ble) .exo-kicker { margin: 0 0 2px; }
  body:has(#sys-ble) .exo-display {
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1;
    margin: 0;
  }
  body:has(#sys-ble) .exo-lead { display: none; }
  body:has(#sys-ble) .exo-plinth {
    max-height: 80px;
    aspect-ratio: 16 / 5;
  }
  body:has(#sys-ble) .exo-slab-list { gap: 6px; }
  body:has(#sys-ble) .exo-slab.sys-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 6px 12px;
    gap: 12px;
  }
  body:has(#sys-ble) .exo-slab.sys-row .exo-btn {
    flex: none;
    margin: 0;
  }
}

/* Short landscape (915x412 and similar): the two-column hero and footer
   ate the status rows. Compact them into the first paint, hide the plinth
   and the repeating footer (the top nav already lists every surface). */
@media (max-height: 500px) {
  body:has(#sys-ble) .exo-hero {
    padding: 8px 16px 8px;
  }
  body:has(#sys-ble) .exo-hero-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 0 6px;
  }
  body:has(#sys-ble) .exo-kicker { margin: 0 0 2px; }
  body:has(#sys-ble) .exo-display {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    line-height: 1;
    margin: 0;
  }
  body:has(#sys-ble) .exo-lead { display: none; }
  body:has(#sys-ble) .exo-plinth { display: none; }
  body:has(#sys-ble) .exo-slab-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  body:has(#sys-ble) .exo-slab.sys-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 6px 12px;
    gap: 10px;
  }
  body:has(#sys-ble) .exo-slab:last-child { grid-column: 1 / -1; }
  body:has(#sys-ble) .exo-foot { display: none; }
}

@media (max-width: 430px) {
  .exo-bar { padding-left: 10px; padding-right: 8px; gap: 8px; }
  .exo-brand {
    letter-spacing: 0.1em;
    margin-right: 0;
    padding-right: 6px;
    font-size: 0.72rem;
  }
  .exo-sites {
    gap: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .exo-sites::after { flex-basis: 0; content: none; }
  .exo-sites a {
    padding: 0 5px;
    font-size: 12px;
  }
}
/* —— Hard-coded 2026 shell: framed studio artifact, typographic deck. No starfields. —— */
.exo-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

body.exo-stage {
  position: relative;
  isolation: isolate;
}

body.exo-stage > header.exo-bar,
body.exo-stage > .exo-pill,
body.exo-stage > main,
body.exo-stage > footer.exo-foot {
  position: relative;
  z-index: 1;
}

body.exo-stage > header.exo-bar,
body.exo-stage > .exo-pill,
body.exo-stage > .exo-cmd,
body.exo-stage > .sn-sheet {
  z-index: 40;
}

/* Sentinel / app pages must not wear the artifact as wallpaper. */
body:has(.sn-main) > canvas.exo-scene,
body:has(.sn-main) > .exo-scene-fallback,
body:has(#decode) > canvas.exo-scene,
body:has(.fm-body) > canvas.exo-scene,
body:has(.cam-stage) > canvas.exo-scene,
body:has(#composer) > canvas.exo-scene,
body:has(#boot-void) > canvas.exo-scene {
  display: none !important;
}

.exo-scene-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #070b12;
}

.exo-plinth {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 35% 20%, rgba(186, 214, 226, 0.1), transparent 42%),
    radial-gradient(80% 60% at 80% 90%, rgba(255, 184, 77, 0.08), transparent 50%),
    #070b12;
  border: 1px solid rgba(198, 216, 226, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 40px 80px rgba(0, 0, 0, 0.45);
}

.exo-plinth .exo-scene,
.exo-plinth .exo-scene-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* CSS stand-in when WebGL or motion is off: a still chrome body in the same frame. */
.exo-plinth .exo-scene-fallback {
  background:
    radial-gradient(ellipse 70% 30% at 50% 82%, rgba(0, 0, 0, 0.55), transparent 70%),
    #070b12;
  perspective: 720px;
}
.exo-fallback-body {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 44%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffffff 0 3%, #d7e4ee 16%, #7c909c 40%, #1c262e 64%, #0a0e12 80%);
  box-shadow:
    0 28px 36px rgba(0, 0, 0, 0.5),
    inset -14px -18px 28px rgba(0, 0, 0, 0.35),
    inset 8px 10px 18px rgba(255, 255, 255, 0.12);
}
.exo-fallback-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 70%;
  aspect-ratio: 2.6 / 1;
  transform: translate(-50%, -50%) rotateX(66deg);
  border: 3px solid rgba(210, 226, 234, 0.7);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 16px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.exo-foot {
  margin-top: auto;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(198, 216, 226, 0.1);
  background: transparent;
  box-shadow: none;
}

.exo-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  max-width: 1180px;
  margin: 0 auto;
}

.exo-foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  color: var(--exo-muted);
  font-family: var(--exo-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
}

.exo-foot a:hover,
.exo-foot a[aria-current="page"] {
  color: var(--exo-text);
  border-color: transparent;
}

.exo-foot p {
  max-width: 1180px;
  margin: 8px auto 0;
  color: var(--exo-muted);
  font-family: var(--exo-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.exo-hero {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 72px;
  min-height: calc(100svh - var(--exo-bar-h) - 52px);
}

.exo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px 64px;
  align-items: center;
  margin: 0 0 48px;
}

.exo-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.exo-kicker {
  margin: 0 0 18px;
  color: var(--exo-cyan);
  font-family: var(--exo-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.exo-display {
  margin: 0 0 20px;
  color: #f4f8fb;
  font-family: var(--exo-sans);
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 7.4rem);
  letter-spacing: -0.055em;
  line-height: 0.86;
  background: none;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #f4f8fb;
}

.exo-lead {
  max-width: 28rem;
  margin: 0;
  color: #c3d0d6;
  font-family: var(--exo-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
}

.exo-hero > .exo-slab-list,
.exo-hero > .miss-jumps {
  position: relative;
  z-index: 1;
}

.exo-slab-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.exo-slab {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  min-height: 104px;
  padding: 20px 22px;
  font-family: var(--exo-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 1.4;
  color: var(--exo-text);
}

.exo-slab .sys-k,
.exo-k {
  color: var(--exo-muted);
  font-family: var(--exo-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.exo-slab a {
  color: var(--exo-cyan);
  text-decoration: none;
}

.exo-slab a:hover {
  color: var(--exo-text);
}

.exo-slab:last-child {
  grid-column: 1 / -1;
}

main.miss.exo-hero,
.miss.exo-hero {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  letter-spacing: normal;
  font-size: inherit;
  text-align: left;
  padding: 48px 28px 72px;
}

.miss-jumps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.exo-pill {
  background: rgba(4, 7, 13, 0.82);
  border-bottom: 1px solid rgba(198, 216, 226, 0.1);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 800px) {
  .exo-hero,
  main.miss.exo-hero,
  .miss.exo-hero {
    padding: 20px 16px 24px;
    min-height: 0;
  }

  .exo-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 0 16px;
  }

  .exo-plinth {
    max-width: none;
    justify-self: stretch;
    aspect-ratio: 16 / 10;
    max-height: 180px;
  }

  .exo-display {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .exo-slab-list,
  .miss-jumps {
    grid-template-columns: 1fr;
  }

  .miss-jumps {
    grid-template-columns: 1fr 1fr;
  }
  .miss-jumps a:last-child {
    grid-column: 1 / -1;
  }

  .exo-slab {
    min-height: 88px;
    padding: 16px 18px;
  }

  .exo-sites a {
    padding: 0 8px;
  }
  .exo-brand {
    letter-spacing: 0.1em;
    margin-right: 4px;
    padding-right: 8px;
  }
}

@media (max-width: 430px) {
  .exo-bar { padding-left: 10px; padding-right: 8px; gap: 8px; }
  .exo-brand {
    letter-spacing: 0.1em;
    margin-right: 0;
    padding-right: 6px;
    font-size: 0.72rem;
  }
  .exo-sites {
    gap: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .exo-sites::after { flex-basis: 0; content: none; }
  .exo-sites a {
    padding: 0 5px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html, body {
    background-attachment: scroll;
  }
  .exo-brand {
    filter: none;
  }
}

/* —— App decks: HUD chrome around existing canvases. Positions stay intact. —— */
body:has(#decode) #decode {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

body:has(#decode) #decode > header h1,
body:has(#decode) header:not(.exo-bar) h1 {
  font-family: var(--exo-sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
}

body:has(#decode) #decode h2,
body:has(#decode) .card h2 {
  font-family: var(--exo-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--exo-muted);
}

body:has(#decode) audio#au,
body:has(#decode) audio {
  width: 100%;
  margin-top: 10px;
  accent-color: #7ee0ff;
  color-scheme: dark;
  background: #060b14;
  border-radius: 10px;
}

body:has(#decode) #listen input,
body:has(#decode) .card input[inputmode="decimal"] {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

body:has(#decode) nav.exo-tabs {
  padding: 6px 0 10px;
}

body:has(.fm-body) .fm-top {
  background: rgba(4, 7, 13, 0.92);
  border-bottom: 1px solid rgba(198, 216, 226, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body:has(.fm-body) .fm-dock h2 {
  font-family: var(--exo-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--exo-muted);
}

body:has(.fm-body) .fm-dock p,
body:has(.fm-body) .fm-note {
  color: var(--exo-muted);
  font-family: var(--exo-sans);
  font-size: 12px;
  line-height: 1.45;
}

body:has(.fm-body) .fm-stage {
  background: #070b10;
  box-shadow: inset 1px 0 0 rgba(198, 216, 226, 0.1);
}

body:has(.cam-stage) .cam-status {
  background: rgba(4, 7, 13, 0.92);
  border-bottom: 1px solid rgba(198, 216, 226, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body:has(.cam-stage) .cam-stage {
  background: #070b10;
}

body:has(#composer) #composer {
  background: transparent;
}

body:has(#composer) .exo-comms + * {
  /* keep mesh typography on the void, not a smear */
}

body:has(#boot-void) .hud .dossier,
body:has(#boot-void) .hud .station,
body:has(#boot-void) .hud .timebar {
  background: rgba(6, 10, 16, 0.8);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(198, 216, 226, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.28);
}

body:has(#boot-void) .hud .dossier,
body:has(#boot-void) .hud .station {
  border-radius: 16px;
}
