/* ==========================================================================
   NGELOCO OS
   A desktop for GPU compute. Flat colours, hard borders, real windows.
   ========================================================================== */

:root {
  --desk: #a9bfcd;
  --desk-deep: #8da6b7;
  --shell: #eee7d9;
  --paper: #f8f4e8;
  --paper-2: #e3dccd;
  --ink: #1b1a15;
  --ink-soft: #4f4d44;
  --muted: #767166;
  --line: #1b1a15;
  --line-soft: rgba(27, 26, 21, 0.18);
  --blue: #2d46c8;
  --blue-deep: #1d2f85;
  --blue-fade: #7284b7;
  --orange: #e45d34;
  --yellow: #f0c24a;
  --green: #3e8f61;
  --green-bright: #b7ecb0;
  --pixel: "Departure Mono", "SFMono-Regular", Consolas, monospace;
  --body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: var(--pixel);
  --shadow: 5px 5px 0 rgba(27, 26, 21, 0.22);
  --menubar: 30px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.os-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.os-icon {
  width: 15px;
  height: 15px;
  overflow: visible;
  color: currentColor;
  shape-rendering: crispEdges;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--menubar);
  background: var(--desk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--blue);
  color: var(--paper);
}

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

.skip-link {
  position: fixed;
  z-index: 30000;
  top: 4px;
  left: 4px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ── Menu bar ───────────────────────────────────────────────── */
.os-menubar {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--menubar);
  padding: 0 10px;
  border-bottom: 1px solid var(--ink);
  background: #f2ecdf;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

.os-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.os-brand img {
  width: 17px;
  height: 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  object-fit: contain;
  image-rendering: pixelated;
}

.os-menus {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

.os-menus button,
.os-menus a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 10.5px;
  cursor: pointer;
}

.os-menus button:hover,
.os-menus a:hover {
  background: var(--blue);
  color: var(--paper);
}

.os-menubar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

.os-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 9px;
}

.os-chip b {
  color: var(--ink);
  font-weight: 400;
}

.os-clock {
  min-width: 48px;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 10px;
  text-align: right;
}

/* ── Desktop ────────────────────────────────────────────────── */
.desktop {
  position: relative;
  min-height: calc(100svh - var(--menubar));
  overflow: hidden;
  background: var(--desk);
}

.desktop-scene {
  background: linear-gradient(180deg, #b9ccd7 0%, #acc1cf 58%, #a2b9c8 70%, #92abbb 70.2%, #8ba5b6 100%);
}

.desktop-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.desktop-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 244, 232, 0.12), transparent 40%),
    radial-gradient(rgba(27, 26, 21, 0.12) 0.6px, transparent 0.9px);
  background-size: auto, 4px 4px;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.wall-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 244, 232, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 232, 0.09) 1px, transparent 1px);
  background-size: 8px 8px;
}

.wall-sun {
  position: absolute;
  top: auto;
  bottom: 30%;
  left: 54%;
  width: clamp(104px, 11vw, 158px);
  color: #f1e2bb;
  image-rendering: pixelated;
  filter: drop-shadow(4px 4px 0 rgba(27, 26, 21, 0.09));
}

.wall-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  height: 1px;
  background: rgba(248, 244, 232, 0.56);
}

.wall-horizon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200px;
  height: 90px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, rgba(241, 226, 187, 0.28) 0 2px, transparent 2px 5px);
  -webkit-mask: linear-gradient(180deg, #000, transparent);
  mask: linear-gradient(180deg, #000, transparent);
  opacity: 0.28;
}

.wall-ring {
  opacity: 0.9;
}

.wall-ring {
  position: absolute;
  right: -150px;
  bottom: -250px;
  width: clamp(420px, 44vw, 680px);
  aspect-ratio: 1;
  border: clamp(54px, 6vw, 92px) solid rgba(248, 244, 232, 0.18);
  border-radius: 50%;
}

.wall-ring::after {
  content: "";
  position: absolute;
  top: 4%;
  right: 4%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--desk);
}

/* ── Desktop icons ──────────────────────────────────────────── */
.desktop-icons {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 82px;
}

.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 82px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f9f4e8;
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(27, 26, 21, 0.7);
  cursor: pointer;
}

.desk-icon .glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  text-shadow: none;
  box-shadow: inset 1px 1px 0 rgba(248, 244, 232, 0.7), 2px 2px 0 rgba(27, 26, 21, 0.24);
}

.desk-icon:hover .glyph {
  background: var(--yellow);
}

/* ── Windows ────────────────────────────────────────────────── */
.window {
  position: absolute;
  z-index: 10;
  left: var(--left, auto);
  right: var(--right, auto);
  top: var(--top, auto);
  bottom: var(--bottom, auto);
  width: var(--width, auto);
  max-width: calc(100% - 20px);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.window.is-closed {
  display: none;
}

.window {
  animation: window-in 160ms steps(2, end);
}

@keyframes window-in {
  from {
    translate: 0 -3px;
  }
  to {
    translate: 0 0;
  }
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 27px;
  padding: 0 4px 0 7px;
  border-bottom: 2px solid var(--ink);
  background-color: var(--blue-fade);
  background-image: repeating-linear-gradient(90deg, rgba(248, 244, 232, 0.055) 0 1px, transparent 1px 3px);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(248, 244, 232, 0.3), inset 0 -1px 0 rgba(27, 26, 21, 0.22);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.window.is-focused .window-bar {
  background-color: var(--blue);
}

.window-bar:active {
  cursor: grabbing;
}

.window-name {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-led {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--paper);
}

.window-led.is-green {
  background: var(--green-bright);
}

.window-led.is-amber {
  background: var(--yellow);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
}

.window-controls button {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.window-controls button:hover {
  background: var(--yellow);
}

.window-controls button:last-child:hover {
  background: var(--orange);
  color: var(--paper);
}

/* ── Terminal ───────────────────────────────────────────────── */
.terminal-window {
  z-index: 20;
}

.terminal {
  display: flex;
  flex-direction: column;
  min-height: 458px;
  max-height: 560px;
  overflow: auto;
  background: #121611;
  color: #c7e8bd;
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.55;
}

.terminal-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid #31402f;
  color: #7da37b;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.terminal-boot {
  margin: 0;
  padding: 13px 16px 11px;
  color: #87b184;
  font-family: var(--pixel);
  font-size: 10.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.terminal-brand {
  padding: 4px 16px 11px;
}

.terminal-kicker {
  display: block;
  margin-bottom: 7px;
  color: #7e9d78;
  font-size: 9px;
  text-transform: uppercase;
}

.terminal-brand h1 {
  margin: 0;
  color: #eef3df;
  font-family: var(--pixel);
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.terminal-brand h1 span {
  display: block;
  color: var(--yellow);
}

.terminal-brand p {
  max-width: 525px;
  margin: 12px 0 0;
  color: #b9d0b1;
  font-family: var(--body);
  font-size: 12.5px;
  line-height: 1.55;
}

.terminal-output {
  padding: 0 16px;
  color: #d4e8c8;
  font-size: 10.5px;
  line-height: 1.6;
}

.terminal-output:empty {
  display: none;
}

.term-line {
  margin: 2px 0;
  white-space: pre-wrap;
}

.term-line .term-ok {
  color: var(--green-bright);
}

.term-line .term-warn {
  color: var(--yellow);
}

.term-line .term-err {
  color: #ff8d6a;
}

.terminal-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 16px 0;
  padding: 7px 0;
  border-top: 1px dashed #33402f;
}

.terminal-prompt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 10.5px;
}

.terminal-cursor {
  width: 6px;
  height: 11px;
  background: var(--green-bright);
  animation: cursor-blink 1.1s steps(1, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .terminal-cursor {
    opacity: 1;
    animation: none;
  }
}

@keyframes cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.terminal-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e3f0d9;
  font-family: var(--pixel);
  font-size: 11px;
  caret-color: var(--yellow);
}

.terminal-form input::placeholder {
  color: #5f775a;
}

.terminal-form button {
  flex: none;
  width: 22px;
  height: 20px;
  border: 1px solid #3b4d37;
  background: transparent;
  color: #9ebd93;
  font-family: var(--pixel);
  font-size: 11px;
  cursor: pointer;
}

.terminal-form button:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.terminal-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 16px 14px;
}

.terminal-hints button {
  padding: 3px 7px;
  border: 1px solid #34422f;
  background: transparent;
  color: #8ead84;
  font-family: var(--pixel);
  font-size: 9px;
  cursor: pointer;
}

.terminal-hints button:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.terminal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: auto;
  padding: 6px 16px 9px;
  border-top: 1px solid #2b3629;
  color: #6f8b6b;
  font-size: 8px;
  text-transform: uppercase;
}

/* ── Monitor ────────────────────────────────────────────────── */
.monitor-window {
  z-index: 14;
}

.monitor {
  padding: 13px 14px 11px;
  background: var(--paper);
  font-family: var(--pixel);
  font-size: 9px;
}

.monitor-id {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-soft);
}

.monitor-id b {
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 400;
}

.monitor-id span {
  color: var(--muted);
  font-size: 8px;
}

.monitor-temp {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 10px 0 6px;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 40px;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.monitor-temp small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.monitor-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.monitor-row b {
  color: var(--ink);
  font-size: 8px;
  font-weight: 400;
  text-align: right;
}

.meter {
  height: 7px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.7s linear;
}

.meter.is-warm i {
  background: var(--orange);
}

.meter.is-cool i {
  background: var(--blue);
}

.monitor-graph {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 44px;
  margin-top: 9px;
  padding: 5px;
  border: 1px solid var(--ink);
  background: #e7e0d2;
}

.monitor-graph i {
  flex: 1;
  background: var(--blue);
  opacity: 0.75;
}

.monitor-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

/* ── Sticky note ────────────────────────────────────────────── */
.note-window {
  z-index: 12;
  transform: rotate(-1.2deg);
}

.note-window .window-bar {
  background: var(--yellow);
  color: var(--ink);
}

.note-window .window-controls button {
  border-color: var(--ink);
  background: #f8f4e8;
}

.note-paper {
  min-height: 132px;
  padding: 18px 16px 12px;
  background:
    linear-gradient(rgba(27, 26, 21, 0.08) 1px, transparent 1px),
    #f3dd8c;
  background-size: 100% 24px;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.65;
}

.note-paper p {
  margin: 0;
}

.note-paper b {
  font-weight: 400;
  background: rgba(248, 244, 232, 0.6);
}

.note-paper > span {
  display: block;
  margin-top: 10px;
  color: rgba(27, 26, 21, 0.65);
  font-size: 10px;
}

.note-paper > i {
  display: block;
  margin-top: 10px;
  color: rgba(27, 26, 21, 0.55);
  font-style: normal;
  font-size: 9px;
  text-align: right;
}

/* ── Market app ─────────────────────────────────────────────── */
.market-window {
  z-index: 15;
}

.market-app {
  font-family: var(--pixel);
  font-size: 9px;
}

.market-app-head,
.market-app-row {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 0.65fr 0.85fr 0.55fr;
  gap: 8px;
  align-items: center;
  padding: 6px 11px;
}

.market-app-head {
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 7.5px;
  text-transform: uppercase;
}

.market-app-row {
  border-bottom: 1px solid var(--line-soft);
  min-height: 28px;
}

.market-app-row:hover {
  background: rgba(45, 70, 200, 0.06);
}

.market-app-row b {
  font-weight: 400;
}

.market-app-row span {
  color: var(--ink-soft);
}

.thermal-cell {
  display: inline-flex;
  justify-content: center;
  width: max-content;
  min-width: 32px;
  padding: 2px 4px;
  border: 1px solid var(--ink);
  background: var(--green);
  color: var(--paper) !important;
  font-style: normal;
  font-size: 7.5px;
}

.thermal-cell.is-hot {
  background: var(--orange);
}

.thermal-cell.is-cool {
  background: var(--blue);
}

.market-app-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 7.5px;
}

.market-app-foot a {
  color: var(--blue);
  text-decoration: underline;
}

/* ── Quote app ──────────────────────────────────────────────── */
.quote-window {
  z-index: 16;
}

.quote-app {
  padding: 13px;
  font-family: var(--pixel);
  font-size: 9px;
}

.app-label {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 7.5px;
  text-transform: uppercase;
}

.quote-gpus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
}

.quote-gpus button,
.quote-hours button {
  min-height: 31px;
  padding: 5px 6px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 8px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.quote-gpus button small {
  display: block;
  color: var(--muted);
  font-size: 7px;
}

.quote-gpus button:hover,
.quote-hours button:hover {
  background: var(--yellow);
}

.quote-gpus button.is-selected,
.quote-hours button.is-selected {
  background: var(--blue);
  color: var(--paper);
}

.quote-gpus button.is-selected small {
  color: rgba(248, 244, 232, 0.7);
}

.quote-hours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
}

.quote-hours button {
  text-align: center;
}

.quote-lines {
  margin: 0 0 11px;
  border-top: 1px solid var(--ink);
}

.quote-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.quote-lines b {
  color: var(--ink);
  font-weight: 400;
}

.quote-lines .is-gas b {
  color: var(--orange);
}

.quote-lines .is-total {
  border-top: 1px solid var(--ink);
  color: var(--ink);
}

.os-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.os-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.os-button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.quote-app > .os-button {
  width: 100%;
}

.app-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 7.5px;
  text-transform: uppercase;
}

/* ── Readme app ─────────────────────────────────────────────── */
.readme-window {
  z-index: 17;
}

.readme-app {
  padding: 18px 20px 20px;
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.55;
}

.readme-comment {
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 9px;
}

.readme-app h2 {
  margin: 6px 0 8px;
  font-family: var(--pixel);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.readme-app p {
  max-width: 510px;
  margin: 0;
  color: var(--ink-soft);
}

.readme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.readme-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--pixel);
  font-size: 8px;
}

.readme-grid div:last-child {
  border-right: 0;
}

.readme-grid span {
  color: var(--muted);
  text-transform: uppercase;
}

.readme-grid b {
  color: var(--ink);
  font-weight: 400;
  font-size: 11px;
}

.readme-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--pixel);
  font-size: 9px;
}

.readme-links a,
.readme-links button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 9px;
  cursor: pointer;
}

.readme-links a:hover,
.readme-links button:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ── Dock ───────────────────────────────────────────────────── */
.desk-readout {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(27, 26, 21, 0.35);
  background: rgba(248, 244, 232, 0.82);
  box-shadow: 2px 2px 0 rgba(27, 26, 21, 0.12);
  color: var(--ink-soft);
  font-family: var(--pixel);
  font-size: 8px;
  line-height: 1.2;
  text-transform: uppercase;
  pointer-events: none;
}

.readout-led {
  width: 5px;
  height: 5px;
  background: var(--green);
}

.dock {
  position: absolute;
  z-index: 100;
  left: 50%;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 58px;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  background: rgba(248, 244, 232, 0.94);
  box-shadow: 3px 3px 0 rgba(27, 26, 21, 0.22);
  transform: translateX(-50%);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 52px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--pixel);
  cursor: pointer;
}

.dock-glyph {
  display: grid;
  place-items: center;
  width: 29px;
  height: 28px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1;
  box-shadow: inset 1px 1px 0 rgba(248, 244, 232, 0.7), inset -2px -2px 0 rgba(27, 26, 21, 0.12);
}

.dock-glyph .os-icon {
  width: 14px;
  height: 14px;
}

.dock-label {
  color: var(--ink-soft);
  font-size: 7px;
  line-height: 1.2;
}

.dock-item:hover .dock-glyph,
.dock-item.is-open .dock-glyph {
  background: var(--blue);
  color: var(--paper);
}

.dock-item.is-open::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 3px;
  height: 3px;
  background: var(--ink);
  transform: translateX(-50%);
}

.dock-studio .dock-glyph {
  background: var(--yellow);
}

.dock-studio:hover .dock-glyph {
  background: var(--orange);
  color: var(--paper);
}

.dock-sep {
  width: 1px;
  height: 34px;
  margin: 0 3px;
  background: var(--line-soft);
}

/* ── Manual ─────────────────────────────────────────────────── */
.manual-section {
  position: relative;
  min-height: 100svh;
  padding: 58px 20px 0;
  border-top: 1px solid var(--ink);
  background:
    linear-gradient(rgba(248, 244, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 232, 0.07) 1px, transparent 1px),
    var(--desk);
  background-size: 8px 8px, 8px 8px, auto;
}

.manual-window {
  max-width: 1160px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(27, 26, 21, 0.22);
}

.manual-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 4px 8px;
  border-bottom: 2px solid var(--ink);
  background: var(--blue);
  color: var(--paper);
  font-family: var(--pixel);
  font-size: 10px;
}

.manual-bar > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.manual-bar div {
  display: flex;
  gap: 12px;
}

.manual-bar a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.manual {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 680px;
}

.manual-tree {
  padding: 22px 14px;
  border-right: 1px solid var(--ink);
  background: #ebe4d6;
  font-family: var(--pixel);
  font-size: 9px;
}

.tree-path {
  display: block;
  margin-bottom: 13px;
  color: var(--muted);
}

.manual-tree a,
.manual-tree button {
  display: block;
  width: 100%;
  margin: 0 0 2px;
  padding: 4px 5px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--pixel);
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}

.manual-tree a::before,
.manual-tree button::before {
  content: "· ";
  color: var(--muted);
}

.manual-tree a:hover,
.manual-tree button:hover {
  background: var(--blue);
  color: var(--paper);
}

.manual-tree .tree-studio {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 11px;
  color: var(--blue);
}

.manual-doc {
  min-width: 0;
  padding: 38px clamp(22px, 5vw, 64px) 28px;
}

.doc-path {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 9px;
}

.manual-doc header h2 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.manual-doc header p {
  max-width: 670px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 8px;
  text-transform: uppercase;
}

.doc-section {
  margin-top: 36px;
  padding-top: 15px;
  border-top: 1px solid var(--ink);
}

.doc-index {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-family: var(--pixel);
  font-size: 9px;
}

.doc-section h3 {
  max-width: 600px;
  margin: 0 0 10px;
  font-family: var(--pixel);
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.doc-section p {
  max-width: 650px;
  margin: 0 0 15px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.doc-table {
  max-width: 670px;
  margin: 14px 0 17px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--pixel);
  font-size: 8.5px;
}

.doc-tr {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr 0.7fr 1.2fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.doc-tr:last-child {
  border-bottom: 0;
}

.doc-th {
  color: var(--muted);
  text-transform: uppercase;
}

.doc-tr span:last-child {
  text-align: right;
}

.doc-link {
  display: inline-block;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 9px;
  cursor: pointer;
}

.doc-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.doc-receipt {
  max-width: 560px;
  margin: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--pixel);
  font-size: 9px;
}

.doc-receipt > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.doc-receipt > div:last-child {
  border-bottom: 0;
  color: var(--ink);
}

.doc-receipt b {
  color: var(--ink);
  font-weight: 400;
}

.doc-code {
  display: block;
  margin: 12px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  background: #eee7da;
  color: var(--ink-soft);
  font-family: var(--pixel);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.doc-rule {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 9px;
  align-items: center;
  max-width: 560px;
  margin-top: 13px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  font-family: var(--pixel);
  font-size: 8px;
}

.doc-rule span {
  color: var(--muted);
  text-transform: uppercase;
}

.doc-rule b {
  font-weight: 400;
}

.doc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 670px;
  margin: 14px 0 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.doc-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--pixel);
  font-size: 8px;
}

.doc-stats div:last-child {
  border-right: 0;
}

.doc-stats span {
  color: var(--muted);
  text-transform: uppercase;
}

.doc-stats b {
  font-weight: 400;
  font-size: 14px;
}

.doc-cta {
  margin-top: 8px;
}

.manual-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 38px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 8px;
  text-transform: uppercase;
}

.manual-foot a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.os-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 10px 20px;
  background: var(--ink);
  color: #c9c3b5;
  font-family: var(--pixel);
  font-size: 8px;
  text-transform: uppercase;
}

.os-footer span:nth-child(2) {
  color: var(--green-bright);
}

.noscript {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20000;
  padding: 10px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 10px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .terminal-window {
    --left: 102px !important;
    --width: 650px !important;
  }

  .monitor-window {
    --right: 28px !important;
    --width: 300px !important;
  }

  .note-window {
    --right: 52px !important;
    --width: 196px !important;
  }

  .market-window {
    --left: 280px !important;
    --width: 560px !important;
  }

  .quote-window {
    --left: 380px !important;
  }

  .readme-window {
    --left: 190px !important;
    --width: 590px !important;
  }
}

@media (max-width: 980px) {
  .os-menus button {
    display: none;
  }

  .os-menus a {
    display: inline-flex;
  }

  .os-chip {
    display: none;
  }

  .desktop {
    min-height: auto;
    padding: 12px 12px 82px;
    overflow: visible;
  }

  .desktop-icons,
  .desk-readout,
  .dock {
    display: none;
  }

  .desktop-scene {
    position: fixed;
    inset: var(--menubar) 0 0;
    opacity: 0.7;
  }

  .window {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none;
    margin: 0 0 12px;
    box-shadow: 4px 4px 0 rgba(27, 26, 21, 0.2);
  }

  .terminal-window,
  .monitor-window,
  .note-window,
  .market-window,
  .quote-window,
  .readme-window {
    z-index: auto;
  }

  .window-bar {
    cursor: default;
  }

  .window-controls {
    display: none;
  }

  .terminal {
    min-height: 0;
    max-height: none;
  }

  .note-window {
    transform: none;
  }

  .manual-section {
    padding: 28px 12px 0;
  }

  .manual {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .manual-tree {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 10px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .tree-path {
    width: 100%;
    margin-bottom: 5px;
  }

  .manual-tree a,
  .manual-tree button {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 2px 0;
  }

  .manual-tree a::before,
  .manual-tree button::before {
    content: "";
  }

  .manual-tree .tree-studio {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
  }

  .manual-doc {
    padding: 28px 20px 22px;
  }

  .os-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  :root {
    --menubar: 30px;
  }

  body {
    font-size: 13.5px;
  }

  .os-menubar {
    gap: 8px;
    padding-inline: 8px;
  }

  .os-brand {
    font-size: 11px;
  }

  .os-brand img {
    width: 16px;
    height: 16px;
  }

  .os-menus {
    margin-left: auto;
  }

  .os-menus a {
    padding: 0 5px;
    font-size: 9px;
  }

  .os-clock {
    min-width: 40px;
    font-size: 9px;
  }

  .terminal-meta {
    padding: 8px 12px;
    font-size: 7.5px;
  }

  .terminal-boot {
    padding: 10px 12px;
    font-size: 9px;
  }

  .terminal-brand {
    padding-inline: 12px;
  }

  .terminal-brand h1 {
    font-size: clamp(25px, 8.5vw, 32px);
  }

  .terminal-brand p {
    font-size: 12px;
  }

  .terminal-form {
    margin-inline: 12px;
  }

  .terminal-hints {
    padding-inline: 12px;
  }

  .terminal-status {
    padding-inline: 12px;
    gap: 4px 10px;
    font-size: 7px;
  }

  .monitor {
    padding: 11px 12px;
  }

  .monitor-temp {
    font-size: 34px;
  }

  .market-app-head,
  .market-app-row {
    grid-template-columns: 0.7fr 1fr 0.6fr 0.8fr;
    gap: 6px;
    padding-inline: 8px;
  }

  .market-app-head span:nth-child(5),
  .market-app-row .thermal-cell {
    display: none;
  }

  .market-app-foot {
    display: block;
    padding-inline: 8px;
    line-height: 1.7;
  }

  .market-app-foot a {
    display: inline-block;
    margin-top: 3px;
  }

  .quote-gpus {
    grid-template-columns: 1fr;
  }

  .quote-gpus button {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .quote-gpus button small {
    display: inline;
  }

  .readme-grid {
    grid-template-columns: 1fr 1fr;
  }

  .readme-grid div:nth-child(2n) {
    border-right: 0;
  }

  .readme-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .manual-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
  }

  .manual-bar div {
    gap: 12px;
  }

  .manual-doc header h2 {
    font-size: 30px;
  }

  .doc-section h3 {
    font-size: 21px;
  }

  .doc-tr {
    grid-template-columns: 0.8fr 1fr 0.7fr;
  }

  .doc-tr span:last-child {
    display: none;
  }

  .doc-stats {
    grid-template-columns: 1fr 1fr;
  }

  .doc-stats div:nth-child(2n) {
    border-right: 0;
  }

  .doc-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .doc-rule {
    grid-template-columns: auto 1fr;
    row-gap: 5px;
  }

  .manual-foot {
    font-size: 7.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   READABILITY PASS
   Keep the pixel identity, lose the squint.
   ========================================================================== */
:root {
  --ink-soft: #3f3d35;
  --muted: #5e594f;
}

.os-brand {
  font-size: 13px;
}

.os-menus button,
.os-menus a {
  padding-inline: 11px;
  font-size: 11.5px;
}

.os-chip {
  gap: 5px;
  font-size: 9.5px;
}

.os-clock {
  font-size: 11px;
}

.window-name {
  font-size: 11px;
}

.window-controls button {
  font-size: 11px;
}

.desk-icon {
  font-size: 10px;
}

.desk-readout {
  gap: 11px;
  font-size: 9px;
}

.dock-label {
  font-size: 8.5px;
}

.terminal {
  font-size: 13px;
}

.terminal-meta {
  font-size: 9.5px;
}

.terminal-boot {
  font-size: 11px;
  line-height: 1.7;
}

.terminal-kicker {
  font-size: 9.5px;
}

.terminal-brand h1 {
  font-size: clamp(30px, 3.1vw, 40px);
}

.terminal-brand p {
  font-size: 13.5px;
  line-height: 1.6;
}

.terminal-prompt,
.terminal-form input {
  font-size: 11.5px;
}

.terminal-hints button {
  padding: 4px 7px;
  font-size: 9.5px;
}

.terminal-status {
  font-size: 8.5px;
}

.terminal-output {
  font-size: 11px;
  line-height: 1.65;
}

.monitor-id b {
  font-size: 14px;
}

.monitor-id span {
  font-size: 9px;
}

.monitor-row,
.monitor-row b {
  font-size: 9px;
}

.monitor-foot {
  font-size: 8.5px;
}

.market-app {
  font-size: 10px;
}

.market-app-head {
  font-size: 8px;
}

.market-app-row {
  min-height: 30px;
}

.market-app-foot {
  font-size: 8px;
}

.quote-app {
  font-size: 10px;
}

.app-label {
  font-size: 8.5px;
}

.quote-gpus button,
.quote-hours button {
  font-size: 9px;
}

.quote-gpus button small {
  font-size: 8px;
}

.quote-lines {
  font-size: 9.5px;
}

.app-note {
  font-size: 8px;
}

.readme-comment {
  font-size: 10px;
}

.readme-app p {
  font-size: 14px;
  line-height: 1.6;
}

.readme-grid span {
  font-size: 8.5px;
}

.readme-grid b {
  font-size: 12px;
}

.readme-links a,
.readme-links button {
  font-size: 10px;
}

.manual-tree {
  font-size: 10px;
}

.manual-tree a,
.manual-tree button {
  padding: 5px;
  font-size: 10px;
}

.doc-path {
  font-size: 10px;
}

.manual-doc header p {
  font-size: 15px;
  line-height: 1.65;
}

.doc-meta {
  font-size: 9px;
}

.doc-index {
  font-size: 10px;
}

.doc-section p {
  font-size: 14px;
  line-height: 1.65;
}

.doc-table {
  font-size: 9.5px;
}

.doc-tr {
  padding: 8px 0;
}

.doc-link {
  font-size: 10px;
}

.doc-receipt {
  font-size: 10px;
}

.doc-receipt > div {
  padding: 7px 0;
}

.doc-code {
  font-size: 9px;
  line-height: 1.6;
}

.doc-rule {
  font-size: 9px;
}

.doc-stats div {
  font-size: 9px;
}

.doc-stats b {
  font-size: 15px;
}

.manual-foot {
  font-size: 9px;
}

.os-footer {
  font-size: 9px;
}

@media (max-width: 620px) {
  .os-menus a {
    font-size: 10px;
  }

  .os-brand {
    font-size: 12px;
  }

  .os-clock {
    font-size: 10px;
  }

  .terminal {
    font-size: 12.5px;
  }

  .terminal-boot {
    font-size: 10px;
  }

  .terminal-brand p {
    font-size: 13px;
  }

  .terminal-prompt,
  .terminal-form input {
    font-size: 11px;
  }

  .dock-label {
    font-size: 8px;
  }

  .desk-readout {
    font-size: 8px;
  }

  .os-footer {
    font-size: 8.5px;
  }
}

@media (max-width: 620px) {
  .os-menus a {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   TOKEN LAUNCH / ROUTE A
   Montra owns the token contract. The site owns the context.
   ========================================================================== */
.launch-section {
  position: relative;
  padding: 62px 24px 58px;
  border-top: 1px solid var(--line);
  background-color: var(--desktop);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(248, 244, 232, 0.28) 1px, transparent 1px);
  background-size: 9px 9px;
  scroll-margin-top: 42px;
}

.launch-window {
  width: min(1120px, 100%);
  margin: 0 auto;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(27, 26, 21, 0.22);
}

.launch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 4px 8px;
  border-bottom: 2px solid var(--ink);
  background: var(--blue);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  text-transform: lowercase;
}

.launch-bar span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.launch-bar-status {
  padding: 3px 6px;
  border: 1px solid rgba(248, 244, 232, 0.55);
  background: rgba(27, 26, 21, 0.18);
  color: #fff;
  font-size: 8px;
}

.launch-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.6fr);
}

.launch-main {
  min-width: 0;
  padding: 34px 34px 26px;
}

.launch-main .doc-path {
  margin-bottom: 15px;
}

.launch-main h2 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.launch-lede {
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
}

.launch-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  text-transform: lowercase;
}

.launch-cta:hover {
  background: var(--orange);
  color: var(--paper);
}

.launch-contract {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 9px 11px;
  border: 1px solid var(--ink);
  background: #121611;
  color: #c7e8bd;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: lowercase;
}

.launch-contract > span {
  color: #7e9d78;
}

.launch-contract code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #c7e8bd;
  font-family: var(--mono);
  font-size: 9px;
}

.launch-contract button {
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid #51664d;
  background: #1c241a;
  color: #c7e8bd;
  font-family: var(--mono);
  font-size: 8px;
  cursor: pointer;
}

.launch-contract button:hover {
  background: var(--paper);
  color: var(--ink);
}

.launch-risk {
  max-width: 680px;
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.75;
  text-transform: lowercase;
}

.launch-facts {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 31px 28px 26px;
  border-left: 1px solid var(--ink);
  background: var(--shell);
}

.launch-badge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--ink);
}

.launch-badge .status-dot {
  display: block;
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

[data-launch="live"] .launch-badge .status-dot {
  background: var(--green);
}

.launch-badge b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  text-transform: lowercase;
}

.launch-badge small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  text-transform: lowercase;
}

.launch-facts dl {
  margin: 13px 0 0;
}

.launch-facts dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.launch-facts dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: lowercase;
}

.launch-facts dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
  text-transform: lowercase;
}

.launch-montra {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.launch-montra:hover {
  color: var(--orange);
}

.launch-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  padding: 9px 12px;
  border-top: 2px solid var(--ink);
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.launch-ticker span::before {
  content: "•";
  margin-right: 6px;
  color: var(--blue);
}

@media (max-width: 900px) {
  .launch-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .launch-facts {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .launch-montra {
    margin-top: 17px;
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .launch-section {
    padding: 38px 13px 36px;
  }

  .launch-main {
    padding: 24px 20px 22px;
  }

  .launch-main h2 {
    font-size: 30px;
  }

  .launch-lede {
    font-size: 14px;
  }

  .launch-facts {
    padding: 23px 20px;
  }

  .launch-contract {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .launch-contract button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .launch-bar {
    font-size: 8px;
  }

  .launch-bar-status {
    font-size: 7px;
  }

  .launch-ticker {
    font-size: 7px;
  }
}
