@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* The black rack: powder-coated steel, label tape, fibre patch cables. */
:root {
  color-scheme: dark;
  /* rack and hardware */
  --canvas: #16171a;
  --rail-c: #202227;
  --rail-edge: #2c2f35;
  --unit: #26282d;          /* server bezel, chat panel */
  --ear: #2e3036;
  --screw: #5b5f68;
  --screw-core: #0d0d0e;
  --bay: #1c1e22;
  --led-off: #2d3036;
  --signal: #22b8c9;        /* fibre aqua: power ring, drive LEDs, the running line */
  --act: #ff8a1f;           /* amber activity blink */
  --pwr-ring: #737882;      /* idle: unlit steel; aqua only when on */
  --pwr-face: #3a3d44;
  --pwr-face-2: #222429;
  --pwr-icon: #8fa4bb;
  --pwr-icon-on: #f1f1ee;
  --lcd-glass: #081315;
  --lcd-ink: #5fe3f0;
  --fan-well: #070708;
  --fan-blade: #6a707b;
  --fan-hub: #202227;
  --fan-grille: #2a2c31;
  --fan-rim: #3a3d44;
  --on-canvas: #f1f1ee;
  --on-unit: #f1f1ee;
  --scroll: #3a3d44;
  /* label tape */
  --tape: #f1f1ee;
  --tape-hover: #ffffff;
  --tape-ink: #111111;
  --tape-me: #bfe6ea;
  --tape-me-hover: #d3eff2;
  --tape-me-ink: #111111;
  --tape-tag: #f1f1ee;
  --tape-tag-ink: #111111;
  --flag: #ec6a1c;          /* safety orange: NOT INSTALLED */
  --flag-ink: #111111;
  --flag-text: #ff9a5a;     /* flag colour as text on the unit */
  --skirt: #b5b5b0;
  --skirt-me: #7fb3b9;
  --key-base: #0a0a0b;
  --placeholder: #6d6a62;
  /* the printed sheet */
  --paper: #f6f6f3;
  --paper-ink: #111111;
  --rule: #deded9;
  --tie: #0d0d0e;
  --code-key: #0a6773;
  --code-str: #9a4a12;
  --code-com: #5f6366;
  --code-num: #5f6366;
  --line-active: #bfe6ea;
  --line-probe: rgb(236 106 28 / 0.18);
  /* patch cables, one colour per step */
  --cable-1: #22b8c9;
  --cable-2: #ec6a1c;
  --cable-3: #f1f1ee;
  --cable-4: #5b7fb8;
  --jack: #cfd5dc;
  --jack-edge: #7d848e;
  --focus: #22b8c9;           /* aqua on the dark rack; deep aqua on paper */
  --selection: #bfe6ea;
  --selection-ink: #111111;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --label: "Archivo", "Arial Narrow", sans-serif;
  --code: "JetBrains Mono", ui-monospace, monospace;
  --rail: 14px;
  --gutter: 16px;
  --u: 44px;                /* one rack unit on screen */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  padding: 0 var(--rail);
  background-color: var(--canvas);
  /* blank 1U filler panels down the whole rack */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='44'%3E%3Crect y='42' width='8' height='1' fill='%23000' fill-opacity='0.5'/%3E%3Crect y='43' width='8' height='1' fill='%23fff' fill-opacity='0.05'/%3E%3C/svg%3E");
  color: var(--on-canvas);
  font-family: var(--label);
  font-size: 1.0625rem;
  line-height: 1.35;
  caret-color: var(--focus);
  -webkit-font-smoothing: antialiased;
}

/* Rack rails with square cage-nut holes, three per U. */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 3;
  pointer-events: none;
  background-color: var(--rail-c);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='44'%3E%3Crect x='4' y='5' width='6' height='6' rx='0.5' fill='%23000' fill-opacity='0.72'/%3E%3Crect x='4' y='19' width='6' height='6' rx='0.5' fill='%23000' fill-opacity='0.72'/%3E%3Crect x='4' y='33' width='6' height='6' rx='0.5' fill='%23000' fill-opacity='0.72'/%3E%3C/svg%3E");
  background-size: var(--rail) var(--u);
  box-shadow: inset -1px 0 0 var(--rail-edge), inset 1px 0 0 var(--rail-edge);
}
body::before { left: 0; }
body::after { right: 0; }

::selection { background: var(--selection); color: var(--selection-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.code :focus-visible { outline-color: var(--code-key); }   /* aqua is too pale on paper */
* { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; }

/* ---------- label tape ---------- */

.tape {
  display: inline-block;
  margin: 0;
  padding: 0.32em 0.7em 0.36em;
  border-radius: 3px;
  background-color: var(--tape);
  background-image: linear-gradient(rgb(255 255 255 / 0.28), rgb(255 255 255 / 0) 45%);
  color: var(--tape-ink);
  font-family: var(--label);
  font-weight: 650;
  font-stretch: 88%;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.55), 0 0 0 0.5px rgb(0 0 0 / 0.4);
}
.tape-y { background-color: var(--tape-tag); color: var(--tape-tag-ink); }
.tape-xs {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25em 0.6em 0.28em;
}

/* ---------- boot: the server ---------- */

.boot {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(16px, env(safe-area-inset-bottom));
}
.filler { display: flex; justify-content: center; padding: 8px 0; }
.filler .tape { transform: rotate(-0.6deg); }

.server {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
  padding: 18px 26px;
  border-radius: 6px;
  background:
    linear-gradient(rgb(255 255 255 / 0.05), rgb(255 255 255 / 0) 22px),
    var(--unit);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    inset 0 -2px 0 rgb(0 0 0 / 0.35),
    0 10px 30px rgb(0 0 0 / 0.55);
  view-transition-name: rig;
}
/* rack ears with their mounting screws */
.ear {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background:
    radial-gradient(circle at 50% 22px, var(--screw-core) 0 3px, var(--screw) 3.5px 6px, transparent 6.5px),
    radial-gradient(circle at 50% calc(100% - 22px), var(--screw-core) 0 3px, var(--screw) 3.5px 6px, transparent 6.5px),
    var(--ear);
}
.ear-l { left: 0; border-radius: 6px 0 0 6px; }
.ear-r { right: 0; border-radius: 0 6px 6px 0; }

.face {
  display: grid;
  grid-template-areas: "tapes" "fans" "bays" "lcd" "power";
  gap: 18px;
}
/* the role is a second strip stuck over the name tape's lower edge */
.tapes { grid-area: tapes; display: flex; flex-direction: column; align-items: flex-start; }
.tape-name { flex-basis: 100%; max-width: max-content; }
.tape-name {
  font-size: clamp(2.6rem, 13vw, 5.25rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  padding: 0.1em 0.28em 0.12em;
  transform: rotate(-1deg);
}
.tape-role {
  font-size: 0.9375rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  margin: -0.45em 0 0 1.4em;
  transform: rotate(1.5deg);
}

.fans { grid-area: fans; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fan { width: 100%; height: auto; display: block; }
.fan .blades { transform-origin: 100px 100px; }

.bays { grid-area: bays; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bay {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border-radius: 3px;
  background: var(--bay);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.6), 0 1px 0 rgb(255 255 255 / 0.05);
}
/* drive sled pull handle */
.bay::after { content: ""; margin-left: auto; width: 30%; height: 4px; border-radius: 2px; background: var(--ear); box-shadow: 0 1px 0 rgb(0 0 0 / 0.5); }
.led {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-off);
  transition: background-color 120ms, box-shadow 120ms;
}

.power {
  grid-area: power;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pwr {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 4px solid var(--pwr-ring);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--pwr-face), var(--pwr-face-2) 70%);
  color: var(--pwr-icon);
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.1);
  cursor: pointer;
  transition: transform 120ms var(--ease), border-color 200ms, box-shadow 200ms, color 200ms;
}
.pwr svg { width: 34px; height: 34px; }
.pwr:hover { border-color: var(--signal); color: var(--pwr-icon-on); }
.pwr:active { transform: scale(0.96); }
.power .tape { transform: rotate(-1deg); }

/* Front-panel display */
.lcd {
  grid-area: lcd;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 3px;
  background: var(--lcd-glass);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.7), inset 0 2px 6px rgb(0 0 0 / 0.8), 0 1px 0 rgb(255 255 255 / 0.06);
  color: var(--lcd-ink);
  font: 500 0.9375rem/1.3 var(--code);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 6px color-mix(in srgb, var(--lcd-ink) 55%, transparent);
}
.lcd-row:first-child { font-size: 0.75rem; letter-spacing: 0.14em; opacity: 0.7; }
#lcd::after { content: ""; display: inline-block; width: 0.6em; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: cursor 1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }

/* Standby: the ring breathes until someone presses it. */
.pwr { animation: standby 2.4s ease-in-out infinite; }
.pwr:hover, .powering .pwr, .on .pwr { animation: none; }
@keyframes standby {
  50% {
    border-color: color-mix(in srgb, var(--signal) 75%, var(--pwr-ring));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 18%, transparent), 0 0 20px color-mix(in srgb, var(--signal) 40%, transparent), 0 4px 10px rgb(0 0 0 / 0.5);
  }
}

/* Power on: ring lights, drives come up one by one. */
.powering .pwr,
.on .pwr {
  border-color: var(--signal);
  color: var(--pwr-icon-on);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent), 0 0 18px color-mix(in srgb, var(--signal) 60%, transparent), 0 4px 10px rgb(0 0 0 / 0.5);
}
.powering .led,
.on .led {
  background: var(--signal);
  box-shadow: 0 0 6px color-mix(in srgb, var(--signal) 90%, transparent);
}
.powering .bay:nth-child(2) .led { transition-delay: 250ms; }
.powering .bay:nth-child(3) .led { transition-delay: 500ms; }
.powering .bay:nth-child(4) .led { transition-delay: 750ms; }
.led.act { background: var(--act) !important; box-shadow: 0 0 8px color-mix(in srgb, var(--act) 90%, transparent) !important; transition: none; }

@media (min-width: 860px) {
  :root { --rail: 30px; --gutter: 40px; }
  body::before, body::after { background-size: 30px var(--u); }
  body::before, body::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='44'%3E%3Crect x='11' y='5' width='8' height='7' rx='0.5' fill='%23000' fill-opacity='0.72'/%3E%3Crect x='11' y='18.5' width='8' height='7' rx='0.5' fill='%23000' fill-opacity='0.72'/%3E%3Crect x='11' y='32' width='8' height='7' rx='0.5' fill='%23000' fill-opacity='0.72'/%3E%3C/svg%3E");
  }
  .server { width: min(100%, 1180px); padding: 26px 48px; }
  .ear { width: 26px; }
  .face {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
    grid-template-areas:
      "tapes tapes power"
      "fans  lcd   power"
      "fans  bays  power";
    align-items: center;
    column-gap: 32px;
    row-gap: 22px;
  }
  .tape-name { font-size: clamp(3.5rem, 5.4vw, 5.5rem); }
  .tape-role { font-size: 1.125rem; }
  .lcd { font-size: 1.0625rem; align-self: end; }
  .fans { max-width: 520px; }
  .bays { grid-template-columns: 1fr; align-self: stretch; align-content: center; }
  .bay { height: 46px; }
  .power { flex-direction: column; align-self: stretch; justify-content: center; padding-left: 8px; }
  .pwr { width: 112px; height: 112px; border-width: 5px; }
  .pwr svg { width: 44px; height: 44px; }
}

/* ---------- powered: chat, cable, code sheet ---------- */

.app {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "bar" "chat" "code" "controls";
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px calc(var(--gutter) - 6px);
}
.bar .server {
  width: 132px;
  padding: 6px 12px;
  border-radius: 3px;
  view-transition-name: rig;
}
.bar .ear { width: 8px; background: var(--ear); }
.bar .tapes, .bar .power, .bar .bay::after { display: none; }
.bar .face { grid-template-columns: 1fr 1fr; grid-template-areas: "fans bays"; gap: 6px; align-items: center; }
.bar .fans { gap: 4px; }
.bar .bays { gap: 3px; grid-template-columns: 1fr 1fr; }
.bar .bay { height: 9px; padding: 0 3px; }
.bar .led { width: 4px; height: 4px; }
.tape-bar {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  transform: rotate(-1deg);
}
.tape-bar { white-space: nowrap; }
@media (max-width: 480px) {
  .tape-bar { font-size: 1.125rem; }
  .bar .server { width: 112px; }
}

.chat {
  grid-area: chat;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  padding: 10px var(--gutter) 18px;
}
/* U14: the chat is a mounted unit, bezel and screws behind the tapes. */
.chat {
  margin: 4px calc(var(--gutter) - 10px) 12px;
  padding: 14px 22px 16px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 9px 9px, var(--screw-core) 0 2.5px, var(--screw) 3px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--screw-core) 0 2.5px, var(--screw) 3px 5px, transparent 5.5px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--screw-core) 0 2.5px, var(--screw) 3px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--screw-core) 0 2.5px, var(--screw) 3px 5px, transparent 5.5px),
    var(--unit);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), inset 0 -2px 0 rgb(0 0 0 / 0.35), 0 8px 24px rgb(0 0 0 / 0.5);
}

.log {
  list-style: none;
  margin: 0;
  padding: 8px 4px 30px;   /* room for the cable to leave the last message */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}
/* Every message is printed on label tape and stuck to the panel. */
.log > li {
  max-width: min(34ch, 86%);
  font-size: 1.125rem;
  font-weight: 620;
  font-stretch: 90%;
  line-height: 1.25;
  padding: 0.45em 0.8em 0.5em;
  animation: print 420ms var(--ease) both;
}
.log > .bot { align-self: flex-start; transform: rotate(-0.4deg); }
.log > .me { align-self: flex-end; background-color: var(--tape-me); color: var(--tape-me-ink); transform: rotate(0.5deg); }
.log > li:nth-child(4n + 3) { transform: rotate(0.3deg); }
/* What the run skipped, and why: an empty slot outline, not a message. */
.log > li.note {
  align-self: center;
  max-width: min(40ch, 94%);
  border: 1.5px dashed var(--flag);
  border-radius: 2px;
  color: var(--on-unit);
  font-size: 1rem;
  font-weight: 500;
  transform: none;
}
.note b {
  display: block;
  margin-bottom: 2px;
  color: var(--flag-text);
  font: 800 0.75rem/1.4 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes print {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* The code: a printed sheet zip-tied to the rack. */
.code {
  grid-area: code;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0 var(--gutter);
  height: 36dvh;
  border-radius: 2px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 8px 22px rgb(0 0 0 / 0.55);
  transition: height 320ms var(--ease);
}
.code::before,
.code::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 6px;
  height: 22px;
  border-radius: 2px;
  background: var(--tie);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}
.code::before { left: 22px; }
.code::after { right: 22px; }
.code.expanded { height: 72dvh; }

.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 8px 14px;
  border-bottom: 1px solid var(--rule);
}
.code-head .tape { transform: rotate(-0.6deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0.02em; }
.expand {
  margin-left: auto;
  flex: none;
  min-height: 36px;
  border: 0;
  cursor: pointer;
  transform: rotate(0.6deg);
}
.expand:hover { background-color: var(--tape-hover); }

.lines {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 10px 0 14px;
  overflow: auto;
  font: 400 12.5px/1.6 var(--code);
  font-variant-ligatures: none;   /* show the file literally: === stays three characters */
  overscroll-behavior: contain;
}
.lines > li {
  position: relative;
  display: grid;
  grid-template-columns: 3.4ch 1fr;
  gap: 1.2ch;
  padding: 0 12px 0 6px;
  border: 1px solid transparent;
  transition: background-color 180ms;
}
.lines > li::before { content: attr(data-n); text-align: right; color: var(--code-num); }
.lines code {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-left: var(--ind, 2ch);   /* wrapped lines hang under their own code */
  text-indent: calc(-1 * var(--ind, 2ch));
}
.tk-com { color: var(--code-com); font-style: italic; }
.tk-key { color: var(--code-key); font-weight: 700; }
.tk-str { color: var(--code-str); }
.tk-tp { color: var(--code-key); font-weight: 700; }

.lines > li.hit::before { color: var(--code-key); font-weight: 700; }
/* The executing line gets an aqua highlight. */
.lines > li.active { background: var(--line-active); box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); }

/* Commented-out code: an empty slot, tagged NOT INSTALLED. */
.lines > li.dnp { border-left: 1.5px dashed var(--paper-ink); border-right: 1.5px dashed var(--paper-ink); margin: 0 8px; }
.lines > li.dnp-first { border-top: 1.5px dashed var(--paper-ink); margin-top: 22px; }
.lines > li.dnp-last { border-bottom: 1.5px dashed var(--paper-ink); }
.lines > li.dnp-first::after {
  content: "NOT INSTALLED";
  position: absolute;
  top: -20px;   /* sits above the dashed outline, clear of the code */
  right: 10px;
  padding: 1px 7px 2px;
  border-radius: 2px;
  background: var(--flag);
  color: var(--flag-ink);
  font: 800 10.5px/1.5 var(--label);
  letter-spacing: 0.08em;
  transform: rotate(1.2deg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
  animation: stamp 320ms var(--ease) both;
}
.lines > li.dnp-first.pending::after { visibility: hidden; animation: none; }
@keyframes stamp {
  from { opacity: 0; transform: scale(1.8) rotate(-6deg); }
  to { opacity: 1; transform: rotate(1.2deg); }
}
/* Execution probing a commented-out line: nothing there to run. */
.lines > li.active.probe { background: var(--line-probe); box-shadow: none; }

/* Replies are keycaps. */
.controls {
  grid-area: controls;
  display: grid;
  gap: 12px;
  padding: 16px var(--gutter) max(16px, env(safe-area-inset-bottom));
  min-height: 86px;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip, .send {
  min-height: 50px;
  min-width: 64px;
  padding: 0 18px 4px;
  border: 0;
  border-radius: 6px;
  background-color: var(--tape);
  color: var(--tape-ink);
  font: 700 1.0625rem var(--label);
  font-stretch: 90%;
  cursor: pointer;
  /* the keycap's lower skirt, drawn as a background band */
  background-image: linear-gradient(to top, var(--key-skirt, var(--skirt)) 4px, transparent 4px);
  box-shadow: 0 2px 0 var(--key-base), 0 4px 8px rgb(0 0 0 / 0.45);
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease);
  animation: rise 360ms var(--ease) both;
}
.chip:hover { background-color: var(--tape-hover); }
.chip:active, .send:active {
  transform: translateY(2px);
  background-image: linear-gradient(to top, var(--key-skirt, var(--skirt)) 2px, transparent 2px);
  box-shadow: 0 0 0 var(--key-base), 0 2px 4px rgb(0 0 0 / 0.45);
}
.send { background-color: var(--tape-me); color: var(--tape-me-ink); --key-skirt: var(--skirt-me); }
.send:hover { background-color: var(--tape-me-hover); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.ask { display: flex; gap: 12px; animation: rise 360ms var(--ease) both; }
.ask input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  background: var(--tape);
  color: var(--tape-ink);
  font: 620 1.125rem var(--label);
  font-stretch: 90%;
  caret-color: var(--tape-ink);
  box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.25);
}
.ask input::placeholder { color: var(--placeholder); }

/* The patch cable from a message to the line it ran. */
.trace {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms;
}
.trace.live { opacity: 1; }
.trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cable-shade { stroke: rgb(0 0 0 / 0.55); stroke-width: 9; transform: translateY(3px); }
.cable { stroke: var(--cable, var(--cable-1)); stroke-width: 6; }
.cable-pulse { stroke: rgb(255 255 255 / 0.85); stroke-width: 2; stroke-dasharray: 10 100; stroke-dashoffset: 110; }
.jack { fill: var(--jack); stroke: var(--jack-edge); stroke-width: 1; }

@media (min-width: 860px) {
  .app {
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "bar bar" "chat code" "controls code";
    column-gap: 96px;
    padding: 0 var(--gutter) 28px;
  }
  .bar { padding: 16px 0 20px; }
  .bar .server { width: 168px; }
  .tape-bar { font-size: 1.625rem; }
  .controls { padding-left: 0; padding-right: 0; }
  .chat { margin: 0 0 14px; padding: 18px 30px 20px; }
  .lines > li.dnp-first::after { font-size: 12px; }
  .code { margin: 14px 0 0; height: auto; }
  .code.expanded { height: auto; }
  .expand { display: none; }
  .lines { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

::view-transition-group(rig) { animation-duration: 700ms; animation-timing-function: var(--ease); }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 450ms; }

.noscript { padding: 24px; font-size: 1.25rem; }
.noscript a { color: var(--on-canvas); }
