:root {
  color-scheme: dark;
  --bg: #090e15;
  --panel: #101720;
  --border: #28343f;
  --muted: #9aaab8;
  --cyan: #79efea;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family:
    "Geist",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 70% 10%, #111b24 0, transparent 47%), var(--bg);
  color: #ebf0f3;
  min-height: 100svh;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    background 0.16s,
    border-color 0.16s,
    color 0.16s;
  touch-action: manipulation;
}
button:hover {
  background: #1b2933;
  border-color: #536874;
}
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.62;
  cursor: wait;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: none;
}
i canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.mast {
  border-bottom: 1px solid #25313b;
  background: #0c121a;
}
.mast-inner,
main {
  max-width: 1540px;
  margin: auto;
  padding-inline: clamp(18px, 5vw, 86px);
}
.mast-inner {
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand,
.system-state,
.actions,
.feed-title,
.monitor-foot > div,
.dialog-heading {
  display: flex;
  align-items: center;
}
.brand {
  gap: 13px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 0.16em;
  font-weight: 750;
}
.brand-divider {
  height: 21px;
  width: 1px;
  background: #34414b;
  margin-inline: 3px;
}
.emblem {
  width: 31px;
  height: 28px;
  display: block;
  background: var(--cyan);
  clip-path: polygon(
    0 5%,
    100% 5%,
    89% 23%,
    32% 23%,
    53% 59%,
    64% 39%,
    82% 39%,
    52% 96%
  );
}
.system-name,
.system-state,
.eyebrow,
.feed-title,
.feed-state,
.key {
  font-family: var(--mono);
}
.system-name {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #a6b8c4;
}
.system-state {
  gap: 9px;
  color: #adc2c9;
  font-size: 11px;
}
.lamp,
.indicator {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #74dda8;
  box-shadow: 0 0 9px #71e4aa45;
}
#clock {
  border-left: 1px solid #34414b;
  padding-left: 17px;
  margin-left: 7px;
  color: #9baab6;
  font-variant-numeric: tabular-nums;
}
main {
  padding-bottom: 40px;
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 32px 0 23px;
}
.eyebrow,
.feed-title,
.feed-state {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.eyebrow {
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow > span {
  width: 16px;
  height: 2px;
  background: var(--cyan);
}
h1 {
  margin: 7px 0 0;
  font-size: clamp(32px, 3.2vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.053em;
  font-weight: 610;
}
.actions {
  gap: 10px;
}
.actions button,
.scan-button {
  height: 40px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px;
}
.primary {
  background: var(--cyan);
  color: #081b21;
  border-color: var(--cyan);
}
.primary:hover {
  background: #a4fffb;
  border-color: #a4fffb;
}
.monitor {
  background: #0b1219;
  border: 1px solid #34434e;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 12px 35px #0002;
}
.feed-bar,
.monitor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 18px;
}
.feed-bar {
  height: 37px;
  border-bottom: 1px solid #2a3843;
  background: #111a23;
}
.feed-title {
  gap: 10px;
  color: #c1ced9;
}
.indicator {
  border-radius: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px #67e9e54d;
  width: 7px;
  height: 7px;
}
.feed-state {
  color: #94a6b5;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(0deg, #06142066, transparent 44%),
    url("./alpine.webp") center 52% / cover,
    #162e40;
  aspect-ratio: 2.48;
}
.view:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #03131a66,
      transparent 25%,
      transparent 75%,
      #04121966
    ),
    linear-gradient(
      180deg,
      #05132255,
      transparent 22%,
      transparent 78%,
      #06142066
    );
  pointer-events: none;
}
#hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.monitor-foot {
  min-height: 42px;
  border-top: 1px solid #2a3843;
  background: #101820;
}
.monitor-foot > div {
  gap: 9px;
}
.monitor-foot i {
  width: 15px;
  height: 15px;
  color: #a3b6c5;
}
.monitor-foot strong {
  font-size: 12px;
  font-weight: 600;
}
.scene-type {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
  border-left: 1px solid #3b4954;
  padding-left: 12px;
}
.minimal {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #b8c6d1;
  padding: 7px 0 7px 9px;
}
.minimal:hover {
  color: white;
  background: transparent;
}
.instruments {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 17px;
}
.instruments section {
  padding: 17px 20px;
  background: #10171f;
  border: 1px solid #27333e;
  border-radius: 8px;
}
.instruments h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.mode-list {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}
.mode-list button {
  flex: 1;
  height: 36px;
  font-size: 12px;
  font-weight: 550;
  color: #b8c5cf;
  padding: 0 10px;
  justify-content: flex-start;
  background: #131d27;
}
.mode-list button:hover {
  border-color: #627780;
}
.mode-list i {
  width: 15px;
  height: 15px;
}
.mode-list .key {
  font-size: 10px;
  opacity: 0.6;
  margin-left: auto;
}
.mode-list button[aria-pressed="true"] {
  background: #183236;
  border-color: #4b8587;
  color: #97f1ed;
}
.scan-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
#scan-state {
  font: 11px var(--mono);
  color: var(--muted);
  margin-top: 9px;
}
.scan-button {
  color: #e8bd96;
  border-color: #665141;
  background: #2a241f;
  white-space: nowrap;
}
.scan-button:hover {
  background: #382c22;
  border-color: #a17b5a;
}
dialog {
  padding: 25px;
  border: 1px solid #40515d;
  border-radius: 10px;
  color: #edf2f5;
  background: #101923;
  width: min(420px, calc(100% - 32px));
  box-shadow: 0 25px 100px #0009;
}
dialog::backdrop {
  background: #02070dc9;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  justify-content: space-between;
}
dialog h2 {
  font-size: 27px;
  margin: 18px 0 12px;
  letter-spacing: -0.04em;
}
dialog p {
  font-size: 14px;
  color: #bac8d4;
  line-height: 1.6;
}
dialog p:last-child {
  margin-bottom: 0;
}
.close {
  width: 32px;
  height: 32px;
  font-size: 22px;
}
.shortcut {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #273540;
  padding: 12px 0;
  font-size: 13px;
}
.shortcut kbd {
  font: 11px var(--mono);
  color: var(--cyan);
}
.launch-choice {
  height: 42px;
  width: 100%;
  margin-top: 8px;
}
.monitor:fullscreen,
.monitor.expanded {
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.monitor:fullscreen .view,
.monitor.expanded .view {
  flex: 1;
  aspect-ratio: auto;
}
.monitor.expanded {
  position: fixed;
  inset: 0;
  z-index: 5;
}
.monitor:fullscreen .feed-bar,
.monitor.expanded .feed-bar {
  flex: none;
}
body:has(.monitor.expanded) {
  overflow: hidden;
}
@media (min-width: 1750px) {
  .view {
    aspect-ratio: 2.25;
  }
}
@media (max-width: 820px) {
  .instruments {
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
  }
  .instruments section {
    padding: 14px;
  }
  .mode-list .key {
    display: none;
  }
  .mode-list button {
    justify-content: center;
    padding: 0 7px;
    gap: 5px;
  }
  .scan-button {
    padding: 0 10px;
  }
  .view {
    aspect-ratio: 2.05;
  }
}
@media (max-width: 640px) {
  .mast-inner {
    height: 55px;
  }
  .brand {
    gap: 7px;
  }
  .brand strong {
    font-size: 17px;
  }
  .emblem {
    width: 25px;
    height: 23px;
  }
  .system-name {
    font-size: 8px;
  }
  .system-state {
    font-size: 9px;
  }
  #clock {
    display: none;
  }
  .titlebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin: 24px 0 17px;
  }
  .actions {
    width: 100%;
  }
  .actions button {
    height: 37px;
  }
  .actions .primary {
    flex: 1;
  }
  .instruments {
    grid-template-columns: 1fr;
  }
  .view {
    aspect-ratio: 1.65;
  }
  .feed-bar,
  .monitor-foot {
    padding-inline: 11px;
  }
  .scene-type {
    display: none;
  }
  .monitor-foot {
    min-height: 38px;
  }
  .mode-list .key {
    display: inline;
  }
  .mode-list button {
    justify-content: flex-start;
  }
  .feed-state {
    font-size: 8px;
  }
  .scan-module {
    min-height: 66px;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .mast-inner {
    height: 44px;
  }
  .titlebar {
    margin: 15px 0;
  }
  .view {
    aspect-ratio: 2.6;
  }
}
