:root {
  --black: #030305;
  --black-glass: rgb(3 3 5 / 88%);
  --paper: #f3f1ea;
  --dim: #8e8d89;
  --line: rgb(243 241 234 / 30%);
  --line-bright: rgb(243 241 234 / 62%);
  --signal: #39ff67;
  --warning: #ff3b22;
  --rail-height: 48px;
  color: var(--paper);
  background: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}
body {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
label {
  -webkit-tap-highlight-color: transparent;
}
::selection {
  color: var(--black);
  background: var(--signal);
}

.module-control {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.monitor-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #555;
  background: var(--black);
}

.command-bar {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-bright);
  background: rgb(3 3 5 / 84%);
}

.wordmark {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.065em;
}
.wordmark span {
  color: var(--signal);
}

.module-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 36px);
}
.module-nav label,
.view-mode,
.issue-code,
.live-state,
.centerfold figcaption,
.module header,
.module small,
.signal-row,
.module-note,
.stage {
  font-family: "Courier New", Courier, monospace;
}

.module-nav label {
  color: #a3a29e;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.module-nav label:hover {
  color: var(--signal);
}

.home-link {
  position: absolute;
  z-index: 25;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: #c0bfbb;
  background: rgb(3 3 5 / 88%);
  font:
    700 6.5px/1 "Courier New",
    Courier,
    monospace;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.home-link:hover,
.home-link:focus-visible {
  border-color: var(--signal);
  color: var(--signal);
  outline: 1px dotted var(--paper);
  outline-offset: -4px;
}

.module-nav.crt-module-menu {
  position: absolute;
  z-index: 24;
  display: flex;
  top: 8px;
  right: 108px;
  height: 27px;
  max-width: 48vw;
  gap: 0;
  align-items: stretch;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgb(3 3 5 / 88%);
  scrollbar-width: none;
}
.module-nav.crt-module-menu::-webkit-scrollbar {
  display: none;
}
.module-nav.crt-module-menu label {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-right: 1px solid var(--line);
  font-size: 6.5px;
  white-space: nowrap;
}
.module-nav.crt-module-menu label:last-child {
  border-right: 0;
}

.view-mode {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--signal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.system-clock {
  display: grid;
  place-items: center;
  width: 31px;
  height: 22px;
  border: 1px solid var(--line);
  color: var(--paper);
}

.centerfold {
  position: absolute;
  z-index: -4;
  inset: 0 0 var(--rail-height) 34vw;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #061048;
}
.centerfold img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 56% 30%;
  filter: saturate(1.04) contrast(1.03);
}
.centerfold figcaption {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 18px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: rgb(3 3 5 / 56%);
  color: var(--paper);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  writing-mode: vertical-rl;
}

.image-scrim {
  position: absolute;
  z-index: -2;
  inset: 0 0 var(--rail-height);
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #030305 0 28%,
      rgb(3 3 5 / 97%) 35%,
      rgb(3 3 5 / 81%) 43%,
      rgb(3 3 5 / 21%) 67%,
      transparent 79%
    ),
    linear-gradient(0deg, rgb(3 3 5 / 66%), transparent 31%);
}

.scanline {
  position: absolute;
  z-index: 8;
  inset: 0 0 var(--rail-height);
  opacity: 0.13;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgb(255 255 255 / 9%) 3px 4px);
  mix-blend-mode: soft-light;
}

.identity {
  position: absolute;
  z-index: 5;
  top: 29px;
  left: 2.6vw;
  width: min(720px, 55vw);
}
.issue-code {
  margin: 0 0 18px;
  color: var(--signal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.live-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgb(3 3 5 / 54%);
  color: #c0bfbb;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.live-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 13px var(--signal);
}
.identity h2 {
  max-width: 720px;
  margin: 20px 0 0;
  font:
    400 clamp(2.2rem, 3.4vw, 4.6rem)/0.9 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.052em;
}
.identity-title-line {
  display: block;
}
.proposal-highlight {
  display: table;
  margin-top: 0.08em;
  padding: 0.02em 0.08em 0.05em;
  color: var(--black);
  background: var(--signal);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.editorial-correction {
  position: relative;
  display: inline-grid;
  grid-template-rows: auto auto;
  justify-items: center;
  margin: 0 0.02em -0.23em;
  vertical-align: -0.12em;
  background: var(--signal);
  line-height: 0.74;
}
.editorial-original {
  position: relative;
  line-height: 0.82;
}
.editorial-original::before,
.editorial-original::after {
  position: absolute;
  z-index: 1;
  top: 48%;
  left: -0.06em;
  width: 106%;
  height: 0.065em;
  background: var(--black);
  transform-origin: center;
  content: "";
}
.editorial-original::before {
  transform: rotate(8deg);
}
.editorial-original::after {
  transform: rotate(-7deg);
  opacity: 0.78;
}
.editorial-replacement {
  margin-top: 0.08em;
  color: var(--black);
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 0.58em;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: rotate(-4deg);
}

.display-word {
  position: absolute;
  z-index: 3;
  left: 2.15vw;
  right: 1.35vw;
  top: 35.8%;
  display: grid;
  grid-template-columns: 42% 44% 14%;
  align-items: center;
  margin: 0;
  color: white;
  font:
    900 clamp(6.8rem, 14.6vw, 13.4rem)/0.7 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -0.085em;
  pointer-events: none;
  mix-blend-mode: difference;
  text-shadow:
    3px 0 rgb(29 85 255 / 48%),
    -3px 0 rgb(255 59 34 / 34%);
}
.display-word span:nth-child(2) {
  justify-self: center;
}
.display-word span:nth-child(3) {
  justify-self: end;
}

.modules {
  --panel-x: 0px;
  --panel-y: 0px;
  position: absolute;
  z-index: 10;
  left: 2.6vw;
  bottom: calc(var(--rail-height) + 16px);
  width: min(458px, 31vw);
  height: 286px;
  transform: translate3d(var(--panel-x), var(--panel-y), 0);
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  container-type: size;
}
.modules:not(.is-minimized) {
  min-width: 260px;
  min-height: 190px;
}
.modules:hover .module {
  border-color: rgb(57 255 103 / 66%);
}
.modules.is-dragging {
  cursor: grabbing;
}
.modules.is-dragging .module {
  border-color: var(--signal);
  box-shadow:
    0 0 0 1px rgb(57 255 103 / 22%),
    0 16px 44px rgb(0 0 0 / 42%);
}
.modules.is-minimized {
  height: 30px !important;
  min-height: 0 !important;
}
.modules.is-minimized .module {
  display: none;
}
.modules.is-minimized .panel-resize-handle {
  display: none;
}
.modules.is-resizing .module {
  border-color: var(--signal);
  box-shadow:
    0 0 0 1px rgb(57 255 103 / 22%),
    0 16px 44px rgb(0 0 0 / 42%);
}
.drag-bar {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-bright);
  border-bottom-color: var(--line);
  background: linear-gradient(#ededeb, #9e9ea4);
  color: #16161a;
  font:
    700 7px/1 "Courier New",
    Courier,
    monospace;
  letter-spacing: 0.12em;
}
.drag-grip {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.drag-grip:active,
.is-dragging .drag-grip {
  cursor: grabbing;
}
.drag-grip:focus-visible,
.panel-reset:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -3px;
}
.drag-grip i {
  width: 17px;
  height: 10px;
  background: radial-gradient(circle, currentColor 1px, transparent 1.5px) 0 0 / 5px 5px;
  opacity: 0.72;
}
.drag-mobile {
  display: none;
}
.panel-reset {
  align-self: stretch;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #68686e;
  background: transparent;
  color: #151519;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}
.panel-minimize {
  align-self: stretch;
  min-width: 29px;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid #68686e;
  background: transparent;
  color: #151519;
  cursor: pointer;
  font:
    700 12px/1 Arial,
    sans-serif;
}
.panel-minimize:hover,
.panel-minimize:focus-visible {
  color: var(--paper);
  background: #171dff;
  outline: 0;
}
.panel-resize-handle {
  position: absolute;
  z-index: 6;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  cursor: nwse-resize;
  touch-action: none;
}
.panel-resize-handle::before,
.panel-resize-handle::after {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 11px;
  height: 1px;
  background: var(--paper);
  transform: rotate(-45deg);
  transform-origin: right center;
  content: "";
}
.panel-resize-handle::after {
  right: 5px;
  bottom: 2px;
  width: 7px;
}
.panel-resize-handle:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.panel-reset:hover {
  color: var(--paper);
  background: #171dff;
}
.modules button,
.modules input,
.modules label {
  touch-action: manipulation;
}
.modules button {
  cursor: pointer;
}
.modules input[type="range"] {
  cursor: ew-resize;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.module {
  position: absolute;
  inset: 29px 0 0;
  display: flex;
  flex-direction: column;
  padding: 17px 18px 16px;
  border: 1px solid var(--line-bright);
  background: var(--black-glass);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}
.module header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: #aaa9a5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.module header b {
  color: var(--signal);
  font-weight: 700;
}
.module h3 {
  max-width: 390px;
  margin: 15px 0 13px;
  font:
    400 clamp(1.55rem, 2.25vw, 2.35rem)/0.92 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.05em;
}
.module > p {
  max-width: 410px;
  margin: 0;
  color: #c4c3bf;
  font-size: 12px;
  line-height: 1.42;
}
.module-launch {
  overflow-y: auto;
}

@media (min-width: 720px) {
  .module-launch {
    padding: 12px 14px;
  }
  .module-launch header {
    padding-bottom: 8px;
  }
  .module-launch h3 {
    margin: 10px 0 8px;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
  }
  .module-launch > p {
    font-size: 10.5px;
    line-height: 1.32;
  }
  .module-launch .mint-actions {
    margin-block: 7px;
  }
  .module-launch .mint-action,
  .module-launch .mint-secondary {
    min-height: 27px;
    padding-block: 5px;
  }
  .module-launch .launch-metrics div {
    min-height: 36px;
    gap: 3px;
    padding: 5px 8px;
  }
}

.module-model {
  padding: 11px 13px 9px;
  overflow: hidden;
}
.module-model header {
  min-height: 20px;
  padding-bottom: 7px;
}
.model-result {
  min-height: 41px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 12px;
  margin-top: 7px;
  padding: 5px 8px 5px 9px;
  border-left: 2px solid var(--signal);
  background: rgb(255 255 255 / 4%);
  font-family: "Courier New", Courier, monospace;
}
.model-result > span {
  color: #b8b7b3;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.model-result > output {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--paper);
  font:
    400 27px/0.9 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.045em;
}
.model-result > small {
  color: var(--signal);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.09em;
}
[data-model-state="error"] .model-result {
  border-left-color: var(--warning);
}
[data-model-state="error"] .model-result > small {
  color: var(--warning);
}

.model-controls {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}
.model-control {
  min-height: 29px;
  display: grid;
  grid-template-columns: minmax(112px, 1.2fr) minmax(92px, 1fr) 63px;
  align-items: center;
  gap: 8px;
  padding: 3px 6px 3px 8px;
  border: 1px solid var(--line);
  color: #a5a49f;
  cursor: default;
  font:
    700 6px/1.15 "Courier New",
    Courier,
    monospace;
  letter-spacing: 0.07em;
}
.model-control > output {
  justify-self: end;
  color: var(--paper);
  font-size: 8px;
  letter-spacing: 0.02em;
}
.model-control input[type="range"] {
  --range-progress: 0%;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
}
.model-control input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--signal) 0 var(--range-progress),
    #5c5b58 var(--range-progress) 100%
  );
}
.model-control input[type="range"]::-webkit-slider-thumb {
  width: 9px;
  height: 15px;
  margin-top: -6px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--signal);
}
.model-control input[type="range"]::-moz-range-track {
  height: 2px;
  background: #5c5b58;
}
.model-control input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--signal);
}
.model-control input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 15px;
  border: 1px solid var(--signal);
  border-radius: 0;
  background: var(--paper);
}
.model-control input[type="range"]:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.model-formula {
  margin-top: 5px !important;
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: #b3b2ae !important;
  font:
    700 6px/1.2 "Courier New",
    Courier,
    monospace !important;
  letter-spacing: 0.035em;
}
.model-foot {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: #85847f;
  font:
    700 5.8px/1.2 "Courier New",
    Courier,
    monospace;
  letter-spacing: 0.035em;
}
.model-foot > span {
  min-width: 0;
}
.model-foot button {
  flex: 0 0 auto;
  padding: 4px 5px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font: inherit;
  letter-spacing: 0.04em;
}
.model-foot button:hover,
.model-foot button:focus-visible {
  border-color: var(--signal);
  outline: 0;
  color: var(--signal);
}
.module .model-disclaimer {
  margin-top: 1px;
  color: #777672;
  font:
    700 5.5px/1.15 "Courier New",
    Courier,
    monospace;
  letter-spacing: 0.04em;
}

@container (max-width: 360px) {
  .module {
    padding-inline: 11px;
  }
  .module h3 {
    font-size: clamp(1.25rem, 8cqw, 1.8rem);
  }
  .module > p {
    font-size: 10px;
  }
  .model-control {
    grid-template-columns: minmax(88px, 1.1fr) minmax(68px, 1fr) 52px;
    gap: 5px;
    padding-inline: 5px;
    font-size: 5.4px;
  }
  .model-result > output {
    font-size: 22px;
  }
  .launch-metrics strong {
    font-size: 9px;
  }
}

@container (max-height: 245px) {
  .module {
    padding-top: 10px;
    overflow-y: auto;
  }
  .module h3 {
    margin: 9px 0 8px;
    font-size: clamp(1.2rem, 7cqw, 1.65rem);
  }
  .launch-metrics div {
    min-height: 40px;
    padding: 6px 8px;
  }
  .module-model {
    overflow-y: auto;
  }
  .model-result {
    min-height: 35px;
    margin-top: 4px;
  }
  .model-controls {
    margin-top: 3px;
  }
  .model-control {
    min-height: 25px;
  }
}

.launch-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.mint-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin: 10px 0;
  font:
    700 7px/1 "Courier New",
    Courier,
    monospace;
  letter-spacing: 0.08em;
}
.mint-action,
.mint-secondary {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid var(--signal);
  text-align: center;
}
.mint-action {
  color: var(--black);
  background: var(--signal);
}
.mint-secondary {
  color: var(--signal);
}
.mint-action:hover,
.mint-action:focus-visible {
  color: var(--paper);
  background: #171dff;
  outline: 0;
}
.mint-secondary:hover,
.mint-secondary:focus-visible {
  color: var(--paper);
  border-color: var(--paper);
  outline: 0;
}
.launch-metrics div {
  min-height: 53px;
  display: grid;
  align-content: space-between;
  gap: 7px;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.launch-metrics small {
  color: #7f7e7a;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.launch-metrics strong {
  font-size: 11px;
  letter-spacing: 0.01em;
}

.signal-row,
.separation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.signal-row span,
.separation-list span {
  padding: 6px 7px;
  border: 1px solid var(--line);
  color: var(--signal);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.module .module-note {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: #94938f;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.formula {
  padding: 9px 10px;
  border-left: 2px solid var(--signal);
  color: white !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px !important;
  font-style: italic;
}
.formula sub {
  font-size: 0.55em;
}
.loop-line {
  padding: 9px 10px;
  border: 1px solid var(--signal);
  color: var(--signal) !important;
  font-family: "Courier New", Courier, monospace;
  font-size: 8px !important;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.separation-list {
  margin-top: 4px;
}

.stage-rail {
  position: absolute;
  z-index: 16;
  inset: auto 0 0;
  height: var(--rail-height);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-bright);
  background: var(--black);
}
.stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-right: 1px solid var(--line);
  color: #777672;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}
.stage:last-child {
  border-right: 0;
}
.stage:hover {
  color: var(--paper);
  background: #101012;
}
.stage small {
  font-size: 7px;
  letter-spacing: 0.12em;
}
.stage strong {
  font-size: clamp(8px, 0.78vw, 11px);
  letter-spacing: 0.08em;
}

#module-launch:checked ~ .monitor-shell .module-launch,
#module-commerce:checked ~ .monitor-shell .module-commerce,
#module-commons:checked ~ .monitor-shell .module-commons,
#module-governance:checked ~ .monitor-shell .module-governance,
#module-choice:checked ~ .monitor-shell .module-choice,
#module-thesis:checked ~ .monitor-shell .module-thesis {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#module-launch:checked ~ .monitor-shell .stage-launch,
#module-commerce:checked ~ .monitor-shell .stage-commerce,
#module-commons:checked ~ .monitor-shell .stage-commons,
#module-governance:checked ~ .monitor-shell .stage-governance,
#module-choice:checked ~ .monitor-shell .stage-choice,
#module-thesis:checked ~ .monitor-shell .stage-thesis {
  color: var(--black);
  background: var(--signal);
}

#module-launch:focus-visible ~ .monitor-shell label[for="module-launch"],
#module-commerce:focus-visible ~ .monitor-shell label[for="module-commerce"],
#module-commons:focus-visible ~ .monitor-shell label[for="module-commons"],
#module-governance:focus-visible ~ .monitor-shell label[for="module-governance"],
#module-choice:focus-visible ~ .monitor-shell label[for="module-choice"],
#module-thesis:focus-visible ~ .monitor-shell label[for="module-thesis"] {
  outline: 2px solid var(--paper);
  outline-offset: -3px;
}

@media (max-width: 980px) {
  .command-bar {
    grid-template-columns: 1fr auto;
  }
  .module-nav {
    display: none;
  }
  .identity {
    width: 47vw;
  }
  .display-word {
    font-size: 15vw;
  }
  .modules {
    width: 42vw;
  }
  .centerfold {
    left: 42vw;
  }
}

@media (max-width: 719px) {
  :root {
    --rail-height: 44px;
  }
  body {
    overflow: hidden;
  }
  .monitor-shell {
    min-height: 0;
    border: 0;
  }
  .module-nav.crt-module-menu {
    top: 6px;
    left: 82px;
    right: 98px;
    max-width: none;
    height: 27px;
  }
  .home-link {
    top: 6px;
    left: 6px;
    width: 70px;
    padding: 0 5px;
  }
  .command-bar {
    height: 54px;
    padding: 0 14px;
    background: rgb(3 3 5 / 90%);
  }
  .wordmark {
    font-size: 15px;
  }
  .view-mode {
    gap: 10px;
    font-size: 7px;
  }
  .system-clock {
    width: 27px;
    height: 20px;
  }

  .centerfold {
    inset: 0 0 var(--rail-height);
    border-left: 0;
  }
  .centerfold img {
    object-position: 58% 24%;
  }
  .centerfold figcaption {
    top: 14px;
    right: 10px;
    font-size: 6px;
  }
  .image-scrim {
    inset: 0 0 var(--rail-height);
    background:
      linear-gradient(0deg, #030305 0 33%, rgb(3 3 5 / 78%) 45%, transparent 69%),
      linear-gradient(90deg, rgb(3 3 5 / 55%), transparent 72%);
  }
  .scanline {
    inset: 0 0 var(--rail-height);
  }

  .identity {
    top: 42px;
    left: 14px;
    width: calc(100% - 58px);
  }
  .issue-code {
    margin-bottom: 10px;
    font-size: 8px;
  }
  .live-state {
    padding: 6px 7px;
    font-size: 6px;
  }
  .identity h2 {
    max-width: 360px;
    margin-top: 10px;
    font-size: clamp(1.45rem, 6.7vw, 2.1rem);
    line-height: 0.92;
  }

  .display-word {
    left: 12px;
    right: 12px;
    top: 29%;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    font-size: clamp(5.6rem, 28vw, 8.6rem);
    line-height: 0.62;
  }
  .display-word span:first-child {
    grid-column: 1 / -1;
  }
  .display-word span:nth-child(2) {
    justify-self: start;
  }
  .display-word span:nth-child(3) {
    justify-self: end;
  }

  .modules {
    left: 12px;
    right: 12px;
    bottom: calc(var(--rail-height) + 8px);
    width: auto;
    height: 256px;
    cursor: ns-resize;
  }
  .drag-grip {
    cursor: ns-resize;
  }
  .drag-desktop {
    display: none;
  }
  .drag-mobile {
    display: inline;
  }
  .module {
    padding: 13px 14px;
    background: rgb(3 3 5 / 91%);
    overflow-y: auto;
  }
  .module header {
    font-size: 7px;
  }
  .module h3 {
    margin: 12px 0 10px;
    font-size: 23px;
  }
  .module > p {
    font-size: 10px;
  }
  .launch-metrics div {
    min-height: 43px;
    padding: 7px 8px;
  }
  .launch-metrics strong {
    font-size: 9px;
  }
  .module .module-note {
    margin-top: 8px;
  }
  .module-model {
    padding: 9px 10px 7px;
    overflow: hidden;
  }
  .model-result {
    min-height: 36px;
    margin-top: 5px;
    padding-block: 4px;
  }
  .model-result > output {
    font-size: 22px;
  }
  .model-controls {
    gap: 1px;
    margin-top: 4px;
  }
  .model-control {
    min-height: 27px;
    grid-template-columns: minmax(104px, 1.35fr) minmax(76px, 1fr) 57px;
    gap: 6px;
    padding-block: 2px;
    font-size: 5.7px;
  }
  .model-formula {
    margin-top: 3px !important;
    font-size: 5.4px !important;
  }
  .model-foot {
    min-height: 19px;
    margin-top: 3px;
    font-size: 5.2px;
  }
  .model-foot button {
    padding: 3px 4px;
  }
  .module .model-disclaimer {
    font-size: 5.1px;
  }

  .stage-rail {
    height: var(--rail-height);
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .stage-rail::-webkit-scrollbar {
    display: none;
  }
  .stage {
    flex: 0 0 128px;
    padding: 6px 10px;
  }
  .stage small {
    font-size: 6px;
  }
  .stage strong {
    font-size: 8px;
  }
}

@media (max-width: 420px) and (max-height: 740px) {
  .identity h2 {
    display: none;
  }
  .display-word {
    top: 22%;
  }
  .modules {
    height: 248px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .module {
    transition: none;
  }
}
