/* CART desktop: ink, pixels, and playable cartridges. */
@font-face {
  font-family: VT323;
  src: url("/fonts/vt323.woff2");
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono.woff2");
  font-display: swap;
  font-weight: 400;
}
:root {
  --paper: #fafaf7;
  --white: #fff;
  --paper-2: #f0f0eb;
  --paper-3: #deded6;
  --ink: #191a17;
  --ink-2: #50514b;
  --ink-3: #62635c;
  --rule: #bcbdb5;
  --rule-strong: #191a17;
  --spot: #191a17;
  --bezel: #191a17;
  --phosphor: #fafaf7;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --display: VT323, "Courier New", monospace;
  --radius: 3px;
}
* {
  box-sizing: border-box;
  scrollbar-color: var(--ink-3) var(--paper-2);
  scrollbar-width: thin;
}
html {
  background: var(--paper);
  color: var(--ink);
  font: 13px/1.65 var(--mono);
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  border-radius: 2px;
}
svg.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex-shrink: 0;
}
p {
  margin: 0 0 16px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 400;
}
h1 {
  font: clamp(48px, 5.7vw, 88px) / 1 var(--display);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
}
h3 {
  font-size: 14px;
  line-height: 1.5;
}
small {
  font-size: 11px;
}
canvas {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
:focus-visible {
  outline: 2px dashed var(--ink);
  outline-offset: 4px;
}
input {
  caret-color: var(--ink);
}
.muted,
.hint,
.sub {
  color: var(--ink-2);
}
.hint {
  font-size: 11px;
  line-height: 1.7;
  margin: 10px 0 0;
}
.mono {
  font-family: var(--mono);
}
.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;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  padding: 10px;
  background: var(--ink);
  color: white;
  z-index: 100;
}
.skip-link:focus {
  top: 8px;
}
.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  background: var(--ink);
  color: var(--white);
}
/* Shared desktop shell. */
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 48px;
  border-bottom: 2px solid var(--ink);
  padding: 0 26px;
  background: var(--paper);
  position: relative;
  z-index: 10;
}
.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.wordmark .icon {
  width: 31px;
  height: 31px;
  stroke-width: 1.7;
}
.brand-note {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  border-left: 1px solid var(--rule);
  padding-left: 15px;
  margin-left: 6px;
  color: var(--ink-2);
}
.nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 26px;
}
.nav a {
  padding: 4px 0;
}
.nav a:hover,
.nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.top-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
}
.network {
  display: flex;
  gap: 7px;
  align-items: center;
  text-transform: capitalize;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  display: inline-block;
  border-radius: 50%;
}
.menu-button {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  padding: 7px;
}
.workspace {
  max-width: 1760px;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 22px;
  margin: 24px auto;
  padding: 0 24px;
  align-items: start;
}
.workspace > *,
.dashboard > *,
.welcome-content > *,
.launch-layout > *,
.play > * {
  min-width: 0;
}
.sidebar {
  position: sticky;
  top: 24px;
}
.window {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  min-width: 0;
}
.window-bar {
  min-height: 37px;
  border-bottom: 1.5px solid var(--ink);
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  line-height: 1.5;
}
.window-bar h2,
.window-bar h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.title-bars {
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    var(--ink) 3px 4px,
    transparent 4px 6px
  );
  background-size: 100% 17px;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: center;
  position: relative;
}
.title-bars h2,
.title-bars h3 {
  background: var(--white);
  padding: 0 13px;
}
.window-close {
  position: absolute;
  left: 12px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
  background: var(--white);
}
.window-bar.dark {
  background: var(--ink);
  color: var(--white);
}
.window-body {
  padding: 20px;
}
.sidebar .window-bar {
  padding: 12px 13px;
}
.side-nav {
  padding: 12px 8px 20px;
  display: grid;
  gap: 4px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  min-height: 46px;
  font-size: 12px;
  border: 1px solid transparent;
}
.side-nav .icon {
  width: 24px;
  height: 24px;
}
.side-nav a span:last-child {
  margin-left: auto;
  font-size: 11px;
}
.side-nav a:hover {
  border-color: var(--ink);
}
.side-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}
.side-divider {
  border-top: 1px dotted var(--rule);
  margin: 10px 10px 8px;
}
.side-label {
  padding: 8px 10px 0;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.side-footer {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  font-size: 11px;
  align-items: center;
}
.side-note {
  font-size: 11px;
  line-height: 1.8;
  padding: 20px 12px 0;
  color: var(--ink-2);
}
.side-note strong {
  display: block;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.side-note .pixel-line {
  height: 25px;
  margin: 20px 0 4px;
  width: 100%;
  background-image: radial-gradient(var(--rule) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
}
.foot {
  max-width: 1712px;
  margin: 24px auto 0;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  color: var(--ink-2);
}
.foot span:last-child {
  display: flex;
  gap: 18px;
}
.foot a:hover {
  text-decoration: underline;
}
/* Controls and states. */
.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--ink);
  min-height: 42px;
  padding: 9px 17px;
  line-height: 1.4;
  font-size: 12px;
  transition:
    background 0.12s,
    color 0.12s;
}
.cta .icon {
  width: 17px;
  height: 17px;
}
.cta:hover {
  background: var(--white);
  color: var(--ink);
}
.cta:active {
  transform: translateY(1px);
}
.cta.ghost {
  background: var(--white);
  color: var(--ink);
}
.cta.ghost:hover {
  background: var(--paper-2);
}
.cta:disabled {
  background: var(--paper-2);
  color: var(--ink-3);
  border-style: dashed;
}
.cta.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.input {
  width: 100%;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  font-size: 12px;
}
.input::placeholder {
  color: var(--ink-3);
}
.input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.input[aria-invalid="true"] {
  border-style: dashed;
  border-width: 2px;
}
.field {
  display: grid;
  gap: 8px;
}
.label {
  font-size: 11px;
  display: block;
}
.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
}
.form-message {
  font-size: 12px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.notice {
  padding: 14px 16px;
  border: 1px dashed var(--ink);
  background: var(--paper-2);
  margin: 16px 0;
  font-size: 12px;
}
.notice a {
  text-decoration: underline;
}
.loading {
  padding: 32px 20px;
  color: var(--ink-2);
}
.empty {
  padding: 34px 24px;
  text-align: center;
  border: 1px dashed var(--rule);
  grid-column: 1/-1;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  color: var(--ink-2);
  font-size: 12px;
}
.empty .cta {
  margin-top: 6px;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
}
.seg button {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 36px;
  border: 0;
  background: var(--white);
  border-radius: 0;
}
.seg button + button {
  border-left: 1px solid var(--ink);
}
.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
.seg button:hover:not([aria-pressed="true"]) {
  background: var(--paper-2);
}
.pill {
  border: 1px solid var(--ink);
  background: var(--white);
  padding: 8px 13px;
  font-size: 11px;
  min-height: 36px;
}
.pill:hover {
  background: var(--paper-2);
}
.pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
/* Launchpad composition. */
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 234px;
  gap: 20px;
  align-items: start;
}
.dashboard-main {
  display: grid;
  gap: 22px;
}
.welcome {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
  margin: 4px;
}
.welcome-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 26px 24px 20px;
}
.welcome h1 {
  font-size: clamp(52px, 5.2vw, 82px);
  line-height: 0.98;
}
.welcome .lede {
  font-size: 12px;
  line-height: 1.9;
  margin: 20px 0 23px;
  max-width: 45ch;
}
.welcome-art {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}
.welcome-caption {
  font-size: 11px;
  text-align: center;
  color: var(--ink-2);
  margin: 4px 0 0;
}
.welcome-status {
  border-top: 1px dotted var(--ink);
  margin: 0 22px;
  padding: 13px 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 11px;
}
.welcome-status span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.utility {
  display: grid;
  gap: 20px;
}
.clock-panel .window-body {
  text-align: center;
  padding: 16px;
}
.clock-face {
  font: 62px/0.95 var(--display);
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  padding: 12px 6px 9px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}
.clock-face small {
  font: 11px var(--mono);
}
.clock-date {
  font-size: 11px;
  margin: 11px 0 0;
}
.utility .window-body {
  padding: 15px;
}
.utility-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
}
.utility-title strong {
  font-size: 14px;
}
.utility p {
  font-size: 11px;
  line-height: 1.8;
}
.utility .cta {
  min-height: 36px;
  font-size: 11px;
  padding: 7px 12px;
}
.archive-note {
  font: 39px/1 var(--display);
  margin-bottom: 10px;
}
.mini-row {
  padding: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dotted var(--rule);
  font-size: 11px;
}
.mini-row:last-child {
  border-bottom: 0;
}
.mini-row span {
  color: var(--ink-2);
}
.mini-row a:hover {
  text-decoration: underline;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 0 1px;
  margin: 4px 0 14px;
}
.section-head h2 {
  font-size: 16px;
}
.count {
  font-size: 11px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.library-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 15px;
  margin-bottom: 16px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 9px;
  min-height: 32px;
  font-size: 11px;
  white-space: nowrap;
}
.tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
.tabs button:hover {
  border-color: var(--ink);
}
.search-field {
  display: flex;
  align-items: center;
  position: relative;
  width: 210px;
  min-width: 130px;
}
.search-field .icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.search-field input {
  padding-left: 34px;
  font-size: 11px;
  min-height: 35px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  min-width: 0;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.card:hover {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}
.card .screen {
  margin: 10px 10px 0;
  padding: 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 0;
}
.card .screen canvas {
  background: var(--paper-2);
}
.card .body {
  padding: 11px 12px 10px;
  display: grid;
  gap: 7px;
  flex: 1;
}
.card .name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.card .sym {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-2);
}
.card .meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.card .meta span:last-child {
  text-align: right;
}
.card-bottom {
  border-top: 1px solid var(--rule);
  padding: 7px 11px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}
.card-bottom .icon {
  width: 13px;
  height: 13px;
}
.card.selected {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.card.selected .card-bottom {
  background: var(--ink);
  color: var(--white);
}
.card.disabled {
  color: var(--ink-3);
  border-style: dashed;
}
.card.disabled .screen {
  opacity: 0.45;
}
.card.disabled:hover {
  outline: none;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--ink);
  margin-top: 18px;
  padding-top: 13px;
  font-size: 11px;
}
.page-buttons {
  display: flex;
  gap: 6px;
}
.page-buttons button {
  width: 32px;
  height: 30px;
  background: var(--white);
  border: 1px solid var(--ink);
  font-size: 11px;
}
.page-buttons button[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}
.how {
  margin-top: 6px;
}
.how-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 0;
}
.how-content > div {
  padding: 0 19px;
}
.how-content > div + div {
  border-left: 1px solid var(--rule);
}
.how h3 {
  font-size: 12px;
  margin-bottom: 9px;
}
.how p {
  font-size: 11px;
  line-height: 1.9;
  margin: 0;
  color: var(--ink-2);
}
.boot-form {
  display: flex;
  gap: 10px;
}
.boot-window .window-body > p {
  font-size: 11px;
  color: var(--ink-2);
}
/* Emulator and proof. */
.screen {
  position: relative;
  background: var(--ink);
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.screen canvas {
  display: block;
  width: 100%;
  aspect-ratio: 2/1;
  image-rendering: pixelated;
}
.screen.small {
  padding: 8px;
}
.screen .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(25, 26, 23, 0.88);
  color: var(--phosphor);
  border: 0;
  width: 100%;
  text-align: center;
  padding: 20px;
  line-height: 1.8;
}
.screen .overlay b {
  display: block;
  font: 38px/1.3 var(--display);
}
.screen .overlay small {
  font: 11px/1.8 var(--mono);
  display: block;
  margin-top: 8px;
}
.screen-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: var(--paper-2);
}
.hero-cap {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
  font-size: 11px;
}
.hero-cap b {
  font-size: 14px;
  font-weight: 400;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 3px 0 24px;
}
.page-heading h1 {
  font-size: 58px;
}
.page-heading p {
  color: var(--ink-2);
  font-size: 12px;
  margin: 9px 0 0;
  max-width: 65ch;
}
.breadcrumb {
  font-size: 11px;
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb .icon {
  width: 14px;
  height: 14px;
}
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.play-head {
  display: flex;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
  padding: 23px 25px 10px;
}
.play-head h1 {
  font-size: 64px;
}
.play-head .sym {
  font-size: 13px;
}
.play-head .bytes {
  font-size: 11px;
  margin-left: auto;
}
.player-blurb {
  padding: 0 25px;
  font-size: 12px;
  color: var(--ink-2);
}
.play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 26px;
  padding: 12px 25px 25px;
}
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.controls .seg button {
  padding: 7px 10px;
}
.side h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 13px;
}
.pad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.key {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--ink);
  font: 25px var(--display);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.key small {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font: 11px var(--mono);
  color: var(--ink-2);
}
.key.down,
.key:active {
  background: var(--ink);
  color: var(--white);
}
.key.down small {
  color: var(--white);
}
.proof {
  margin-top: 22px;
}
.proof .window-body {
  padding: 23px;
}
.proof .big {
  font: 28px/1.2 var(--display);
  max-width: 50ch;
  margin-bottom: 20px;
}
.sheet {
  display: grid;
}
.sheet .row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding: 12px 0;
  font-size: 11px;
}
.sheet .row:last-child {
  border-bottom: 1px solid var(--rule);
}
.sheet .k {
  font-size: 11px;
  color: var(--ink-2);
}
.sheet .v {
  overflow-wrap: anywhere;
}
.sheet a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bar {
  height: 7px;
  border: 1px solid var(--ink);
  margin-top: 9px;
  background: var(--paper-2);
}
.bar i {
  height: 100%;
  display: block;
  width: 0;
  background: var(--ink);
  transition: none;
}
details {
  border-top: 1px dotted var(--ink);
  margin-top: 16px;
}
summary {
  cursor: pointer;
  padding: 13px 0;
  font-size: 11px;
}
.hex {
  font: 11px/1.8 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
}
.hex b {
  color: var(--ink-2);
}
/* Three-stage launch flow. */
.launch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 22px;
  align-items: start;
}
.wizard-nav {
  display: flex;
  border-bottom: 1px solid var(--ink);
  padding: 0 16px;
}
.wizard-nav button {
  border: 0;
  background: transparent;
  flex: 1;
  padding: 17px 8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  border-radius: 0;
}
.wizard-nav button[aria-current="step"]::after {
  content: "";
  position: absolute;
  height: 3px;
  bottom: 0;
  left: 8px;
  right: 8px;
  background: var(--ink);
}
.wizard-nav button:disabled {
  color: var(--ink-3);
}
.step-number {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 11px;
  line-height: 1;
}
.wizard-nav button[aria-current="step"] .step-number {
  background: var(--ink);
  color: var(--white);
}
.wizard-body {
  padding: 24px;
}
.step h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step .sub {
  font-size: 11px;
  margin: 0 0 20px;
}
.picker-controls {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}
.picker-controls .search-field {
  width: 100%;
}
.pick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 436px;
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
  gap: 12px;
}
.pick-grid .card .name {
  font-size: 11px;
}
.pick-grid .card .sym {
  display: none;
}
.pick-grid .card .meta {
  font-size: 11px;
}
.pick-grid .card .meta span:last-child {
  display: none;
}
.pick-grid .card .body {
  padding: 9px;
}
.pick-grid .card .screen {
  margin: 7px 7px 0;
  padding: 5px;
}
.pick-grid .card-bottom {
  font-size: 11px;
  padding: 6px 8px;
}
.drop {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px dashed var(--ink);
  background: var(--paper);
  padding: 17px;
  margin-top: 21px;
  position: relative;
  cursor: pointer;
}
.drop:hover,
.drop.over {
  background: var(--paper-2);
}
.drop .icon {
  width: 28px;
  height: 28px;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.drop:focus-within {
  outline: 2px dashed var(--ink);
  outline-offset: 4px;
}
.drop strong {
  display: block;
  font-weight: 400;
  font-size: 11px;
}
.drop small {
  font-size: 11px;
  color: var(--ink-2);
}
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule);
  margin-top: 23px;
  padding-top: 19px;
}
.wizard-actions > span {
  font-size: 11px;
  color: var(--ink-2);
}
.launch-preview {
  position: sticky;
  top: 24px;
}
.launch-preview .preview-placeholder {
  aspect-ratio: 2/1;
  background: var(--paper-2);
  border: 1px dashed var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 9px;
}
.preview-placeholder .icon {
  width: 36px;
  height: 36px;
  justify-self: center;
}
.preview-placeholder span {
  font-size: 11px;
}
.preview-name {
  font: 36px/1.1 var(--display);
  margin-top: 19px;
}
.preview-description {
  font-size: 11px;
  line-height: 1.8;
  margin: 8px 0 17px;
  color: var(--ink-2);
}
.preview-specs {
  margin: 18px 0;
}
.preview-specs .mini-row {
  font-size: 11px;
}
.preview-foot {
  border-top: 1px dotted var(--ink);
  padding-top: 14px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.9;
}
.name-fields {
  margin: 25px 0;
}
.settings-block {
  border-top: 1px dotted var(--ink);
  padding-top: 19px;
  margin-top: 25px;
}
.settings-block .label {
  margin-bottom: 10px;
}
.review-summary {
  margin: 22px 0;
}
.review-summary .row {
  grid-template-columns: 115px minmax(0, 1fr);
}
.launch-key-field {
  margin: 24px 0;
}
.log {
  background: var(--ink);
  color: var(--white);
  padding: 16px;
  font: 11px/1.8 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0 0;
}
.result {
  padding: 22px;
  border: 1px solid var(--ink);
  margin-top: 20px;
}
.result h3 {
  font: 40px var(--display);
  margin-bottom: 15px;
}
.result .actions {
  margin-top: 18px;
}
.launch-facts {
  margin-top: 20px;
  padding: 17px 3px;
  font-size: 11px;
  color: var(--ink-2);
  border-top: 1px dotted var(--ink);
  display: flex;
  gap: 24px;
}
.window-enter {
  animation: window-open 0.28s steps(6, end);
}
@keyframes window-open {
  from {
    clip-path: inset(0 0 5% 0);
  }
  to {
    clip-path: inset(0);
  }
}
/* Responsive workspace. */
@media (min-width: 1650px) {
  .welcome h1 {
    font-size: 92px;
  }
  .welcome-content {
    padding: 32px;
  }
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .workspace {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 0 18px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 16px;
  }
  .welcome-content {
    padding: 23px 18px;
  }
  .welcome h1 {
    font-size: 60px;
  }
  .welcome .lede {
    font-size: 11px;
  }
  .welcome .actions {
    gap: 8px;
  }
  .welcome .cta {
    font-size: 11px;
    padding: 8px 12px;
  }
  .welcome-status {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .side-nav a {
    font-size: 11px;
    gap: 10px;
    padding: 10px 8px;
  }
  .brand-note {
    display: none;
  }
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .library-toolbar .search-field {
    width: 100%;
  }
  .launch-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .play {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 20px;
  }
  .card .name {
    font-size: 12px;
  }
  .card .sym {
    font-size: 11px;
  }
  .card .meta {
    font-size: 11px;
  }
  .grid {
    gap: 11px;
  }
}
@media (max-width: 1040px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .utility {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .utility .clock-panel,
  .utility .archive-panel {
    display: none;
  }
  .welcome h1 {
    font-size: 78px;
  }
  .welcome .lede {
    font-size: 12px;
  }
  .welcome .cta {
    font-size: 11px;
  }
  .library-toolbar {
    flex-direction: row;
  }
  .library-toolbar .search-field {
    width: 210px;
  }
  .launch-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .wizard-body {
    padding: 20px;
  }
  .wizard-nav {
    padding: 0 8px;
  }
  .wizard-nav button {
    font-size: 11px;
    gap: 6px;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .play {
    grid-template-columns: minmax(0, 1fr);
  }
  .play .side {
    max-width: 340px;
  }
  .topbar {
    gap: 32px;
  }
  .top-status .edition {
    display: none;
  }
}
@media (max-width: 800px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 18px;
    margin-top: 20px;
  }
  .sidebar {
    display: none;
    position: static;
  }
  .sidebar.is-open {
    display: block;
  }
  .side-note,
  .side-footer {
    display: none;
  }
  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 12px;
  }
  .side-label,
  .side-divider {
    display: none;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
    gap: 24px;
  }
  .topbar .menu-button {
    display: inline-flex;
  }
  .wordmark {
    font-size: 20px;
  }
  .wordmark .icon {
    width: 27px;
    height: 27px;
  }
  .nav {
    gap: 22px;
    font-size: 12px;
  }
  .top-status {
    gap: 12px;
  }
  .welcome h1 {
    font-size: 80px;
  }
  .welcome-content {
    padding: 24px;
  }
  .welcome .cta {
    font-size: 12px;
  }
  .grid {
    gap: 14px;
  }
  .card .name {
    font-size: 13px;
  }
  .card .meta {
    font-size: 11px;
  }
  .launch-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .page-heading h1 {
    font-size: 54px;
  }
  .foot {
    padding: 15px 18px;
    font-size: 11px;
  }
  .how p {
    font-size: 11px;
  }
  .pick-grid .card .name {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .topbar {
    gap: 16px;
    padding: 0 14px;
  }
  .topbar .nav {
    gap: 15px;
    font-size: 11px;
  }
  .topbar .nav a:nth-child(3) {
    display: none;
  }
  .top-status .network {
    display: none;
  }
  .wordmark {
    font-size: 18px;
    gap: 7px;
  }
  .wordmark .icon {
    width: 24px;
    height: 24px;
  }
  .workspace {
    padding: 0 14px;
    margin: 17px auto;
    gap: 16px;
  }
  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .window-bar {
    min-height: 35px;
  }
  .dashboard-main {
    gap: 24px;
  }
  .welcome-content {
    grid-template-columns: minmax(0, 1fr) 115px;
    gap: 4px;
    padding: 24px 17px 19px;
    align-items: start;
  }
  .welcome h1 {
    font-size: 58px;
    line-height: 0.98;
    position: relative;
    margin-right: -40px;
    z-index: 1;
  }
  .welcome .lede {
    font-size: 11px;
    line-height: 1.8;
    grid-column: 1/-1;
    margin-top: 20px;
    max-width: 40ch;
  }
  .welcome-copy {
    display: contents;
  }
  .welcome-copy h1 {
    grid-column: 1;
    grid-row: 1;
  }
  .welcome-art-wrap {
    grid-column: 2;
    grid-row: 1;
    margin-top: 3px;
  }
  .welcome-art {
    width: 115px;
    height: 115px;
    object-fit: contain;
  }
  .welcome-caption {
    display: none;
  }
  .welcome-copy .actions {
    grid-column: 1/-1;
    gap: 9px;
  }
  .welcome .cta {
    font-size: 11px;
    padding: 10px 12px;
    flex: 1;
    gap: 7px;
  }
  .welcome-status {
    font-size: 11px;
    margin: 0 17px;
    padding: 11px 0;
    gap: 8px;
  }
  .welcome-status > span:last-child {
    display: none;
  }
  .section-head h2 {
    font-size: 15px;
  }
  .library-toolbar {
    flex-direction: column;
    gap: 11px;
    padding-bottom: 13px;
  }
  .library-toolbar .search-field {
    width: 100%;
  }
  .tabs {
    gap: 2px;
  }
  .tabs button {
    padding: 7px 10px;
    font-size: 11px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card .name {
    font-size: 12px;
  }
  .card .sym {
    display: none;
  }
  .card .body {
    padding: 10px;
  }
  .card .screen {
    margin: 8px 8px 0;
    padding: 5px;
  }
  .card .meta {
    font-size: 11px;
  }
  .card .meta span:last-child {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card-bottom {
    font-size: 11px;
    padding: 7px 9px;
  }
  .pagination {
    font-size: 11px;
    align-items: flex-start;
  }
  .page-buttons {
    gap: 4px;
  }
  .page-buttons button {
    width: 28px;
    height: 30px;
  }
  .utility {
    gap: 13px;
  }
  .utility .window-body {
    padding: 12px;
  }
  .utility .window-bar {
    padding: 8px 10px;
  }
  .utility .window-bar h2 {
    font-size: 11px;
  }
  .utility-title strong {
    font-size: 12px;
  }
  .utility p {
    font-size: 11px;
  }
  .utility .cta {
    font-size: 11px;
    padding: 8px;
  }
  .how-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .how-content > div {
    padding: 0 18px;
  }
  .how-content > div + div {
    border-left: 0;
    padding-top: 16px;
    border-top: 1px dotted var(--rule);
  }
  .how h3 {
    font-size: 12px;
  }
  .how p {
    font-size: 11px;
  }
  .boot-form {
    flex-direction: column;
  }
  .foot {
    flex-direction: column;
    gap: 7px;
    padding: 15px 14px;
  }
  .page-heading {
    margin-bottom: 20px;
    align-items: start;
    display: block;
  }
  .page-heading h1 {
    font-size: 52px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .cta {
    margin-top: 14px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .launch-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .launch-preview {
    position: static;
  }
  .wizard-body {
    padding: 19px 16px;
  }
  .wizard-nav {
    padding: 0 5px;
  }
  .wizard-nav button {
    font-size: 11px;
    padding: 14px 4px;
    gap: 7px;
  }
  .pick-grid {
    max-height: 425px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pick-grid .card .name {
    font-size: 12px;
  }
  .launch-preview .window-body {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0 16px;
  }
  .launch-preview .preview-placeholder,
  .launch-preview .screen {
    grid-row: 1/4;
    margin-top: 5px;
    align-self: start;
  }
  .launch-preview .screen {
    padding: 5px;
  }
  .preview-name {
    font-size: 30px;
    margin-top: 0;
  }
  .preview-description {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .preview-specs,
  .preview-foot {
    grid-column: 1/-1;
    margin-top: 12px;
  }
  .preview-specs {
    margin-bottom: 12px;
  }
  .preview-placeholder .icon {
    width: 26px;
    height: 26px;
  }
  .preview-placeholder span {
    font-size: 11px;
  }
  .preview-foot {
    font-size: 11px;
    padding-top: 12px;
  }
  .launch-facts {
    flex-wrap: wrap;
    gap: 9px 20px;
  }
  .form {
    gap: 18px;
  }
  .step h2 {
    font-size: 16px;
  }
  .wizard-actions {
    gap: 10px;
  }
  .wizard-actions .cta {
    padding: 10px 12px;
    font-size: 11px;
  }
  .wizard-actions > span {
    font-size: 11px;
  }
  .play-head {
    padding: 19px 16px 8px;
    gap: 10px;
  }
  .play-head h1 {
    font-size: 54px;
  }
  .play-head .sym {
    font-size: 11px;
  }
  .play-head .bytes {
    font-size: 11px;
  }
  .player-blurb {
    padding: 0 16px;
    font-size: 11px;
  }
  .play {
    padding: 7px 16px 20px;
    gap: 24px;
  }
  .play .screen {
    padding: 8px;
  }
  .controls {
    gap: 7px;
  }
  .controls .seg {
    flex: 1;
  }
  .controls .seg button {
    flex: 1;
    padding: 8px;
    font-size: 11px;
  }
  .controls .pill {
    flex: 1;
    font-size: 11px;
  }
  .play .side {
    max-width: none;
  }
  .pad {
    gap: 9px;
  }
  .key {
    aspect-ratio: 1.3;
  }
  .proof .window-body {
    padding: 17px;
  }
  .sheet .row {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    font-size: 11px;
  }
  .proof .big {
    font-size: 26px;
  }
  .review-summary .row {
    grid-template-columns: 95px minmax(0, 1fr);
  }
  .screen .overlay b {
    font-size: 30px;
  }
  .screen .overlay small {
    font-size: 11px;
  }
  .notice {
    font-size: 11px;
  }
  .result {
    padding: 15px;
  }
  .result .sheet .row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
/* Readable labels and controls at every viewport. */
[data-icon] {
  display: inline-flex;
  align-items: center;
}
.search-field > [data-icon] {
  display: contents;
}
.search-field .icon {
  top: 50%;
  transform: translateY(-50%);
}
.skip-link {
  top: 8px;
  transform: translateY(-160%);
  visibility: hidden;
}
.skip-link:focus {
  transform: none;
  visibility: visible;
}
.hint,
.side-note,
.step .sub,
.preview-description,
.utility p,
.how p,
.boot-window .window-body > p {
  font-size: 12px;
}
.boot-form .cta {
  flex-shrink: 0;
}
.side-nav a {
  gap: 9px;
  font-size: 11px;
  white-space: nowrap;
}
.card .body {
  gap: 8px;
}
.card .name {
  flex-wrap: wrap;
}
.card .meta {
  font-size: 11px;
}
.card-bottom {
  font-size: 11px;
}
.welcome-status {
  flex-wrap: wrap;
}
.welcome-status > span {
  font-size: 11px;
}
.welcome-status > span:last-child {
  display: none;
}
.card.selectable .card-bottom > .icon {
  visibility: hidden;
}
.card.selected .card-bottom > .icon {
  visibility: visible;
}
@media (max-width: 1040px) {
  .controls .seg {
    flex: 0 0 auto;
  }
  .controls .pill {
    flex: 0 0 auto;
  }
}
@media (max-width: 600px) {
  .welcome h1 {
    grid-column: 1/-1;
    grid-row: 1;
    margin: 0;
    font-size: 58px;
  }
  .welcome-content {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 0 10px;
  }
  .welcome-copy .lede {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
    margin: 18px 0 20px;
    line-height: 1.8;
  }
  .welcome-art-wrap {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin: 0;
  }
  .welcome-art {
    width: 105px;
    height: 140px;
  }
  .welcome-copy .actions {
    grid-row: 3;
  }
  .welcome .actions .cta {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px;
    gap: 7px;
  }
  .welcome .window-bar > span {
    display: none;
  }
  .welcome-status > span:nth-child(2) {
    display: none;
  }
  .controls .pill {
    flex: 1 1 25%;
  }
  .controls .seg {
    flex: 1 0 100%;
    min-width: 0;
  }
  .controls .seg button {
    white-space: nowrap;
    font-size: 11px;
  }
  .input,
  .search-field input {
    font-size: 16px;
  }
  .search-field input {
    min-height: 42px;
  }
  .tabs button {
    font-size: 11px;
    min-height: 38px;
    padding: 7px 8px;
  }
  .tabs {
    justify-content: space-between;
  }
  .card .meta span:last-child {
    max-width: none;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .utility .cta {
    min-height: 44px;
  }
  .wizard-nav button {
    font-size: 11px;
  }
  .wizard-nav {
    padding: 0 3px;
  }
  .wizard-nav button {
    gap: 5px;
  }
  .preview-description,
  .preview-foot,
  .preview-specs .mini-row,
  .launch-facts {
    font-size: 12px;
  }
  .launch-preview .preview-placeholder {
    font-size: 11px;
  }
  .preview-placeholder span {
    white-space: normal;
  }
  .foot span:last-child {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .cta,
  .pill,
  .seg button,
  .menu-button {
    min-height: 44px;
  }
  .side h2 {
    font-size: 12px;
  }
  .screen .overlay small {
    font-size: 11px;
  }
}
@media (max-width: 370px) {
  .welcome h1 {
    font-size: 51px;
  }
  .welcome-content {
    padding: 20px 13px;
  }
  .welcome .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar {
    gap: 12px;
  }
  .topbar .nav {
    gap: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* take-it-anywhere actions on the player */
.rom-actions { margin-top: 12px; align-items: center; flex-wrap: wrap; gap: 8px; }
.rom-actions .hint { margin: 0; flex-basis: 100%; }
.rom-actions a.pill { text-decoration: none; display: inline-flex; align-items: center; }
.sheet .v code { font: inherit; overflow-wrap: anywhere; user-select: all; }

/* rail selector */
.rail-seg { flex-wrap: wrap; }
.rail-seg button { display: inline-flex; align-items: center; gap: 7px; }
.rail-logo { width: 15px; height: 15px; object-fit: contain; }
.seg button[aria-pressed="true"] .rail-logo { filter: none; }
.seg button[disabled] { opacity: .38; cursor: not-allowed; }

.theme-toggle { flex: none; background: transparent; border: 1px solid var(--rule); color: var(--ink); width: 30px; height: 30px; border-radius: var(--radius); display: inline-grid; place-items: center; cursor: pointer; padding: 0; margin-left: 10px; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- dark theme: follows the system, or the toggle ---- */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #131412; --white: #191a18; --paper-2: #1c1d1b; --paper-3: #262724;
    --ink: #efefe9; --ink-2: #b9b9b1; --ink-3: #8f9089;
    --rule: #34352f; --rule-strong: #efefe9; --spot: #efefe9;
    --bezel: #0b0c0a; --phosphor: #fafaf7;
  }
  :root:not([data-theme="light"]) .card .screen.small canvas { filter: invert(1); }
  :root:not([data-theme="light"]) .screen { background: var(--paper-3); border-color: var(--paper-3); }
  :root:not([data-theme="light"]) .welcome-art { filter: invert(1) contrast(1.15); mix-blend-mode: screen; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131412; --white: #191a18; --paper-2: #1c1d1b; --paper-3: #262724;
  --ink: #efefe9; --ink-2: #b9b9b1; --ink-3: #8f9089;
  --rule: #34352f; --rule-strong: #efefe9; --spot: #efefe9;
  --bezel: #0b0c0a; --phosphor: #fafaf7;
}
:root[data-theme="dark"] .card .screen.small canvas { filter: invert(1); }
:root[data-theme="dark"] .screen { background: var(--paper-3); border-color: var(--paper-3); }
:root[data-theme="dark"] .welcome-art { filter: invert(1) contrast(1.15); mix-blend-mode: screen; }
