/* Monochrome: one typeface, one size, white on black. Hierarchy comes from position,
   weight and opacity rather than colour or scale. */

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/geist-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/geist-mono-symbols.woff2) format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

:root {
  /* Marks drawn as SVG masks rather than Unicode (✓ ● ○ ▸), which Geist Mono doesn't
     include, so they'd come from a different fallback font on every platform. */
  --mark-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mark-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4'/%3E%3C/svg%3E");
  --mark-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
  --mark-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 4v8l6-4z'/%3E%3C/svg%3E");
  --bg: #000;
  --text: rgba(255, 255, 255, 0.8);
  --bright: #fff;
  --subtle: 0.5;
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.35);
  --pad-y: 32px;
  --pad-x: 40px;
  --font: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; font-synthesis: none; }

/* Scrollbars: thin square bars, no rounded thumbs. Chrome ignores the ::-webkit- rules once
   scrollbar-color is set, so the standard properties are only for browsers without them
   (Firefox), where the shape can't be changed. */
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
}
[hidden] { display: none !important; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { font-size: 1em; font-weight: 400; margin: 0; }
b, .strong { font-weight: 700; color: var(--bright); }
a { color: inherit; text-decoration: none; }
a:hover, .link:hover { opacity: 0.6; }
code, kbd { font: inherit; }
kbd { opacity: var(--subtle); }
ol, ul { list-style: none; margin: 0; padding: 0; }

.subtle { opacity: var(--subtle); }
.align-r { text-align: right; justify-self: end; }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Spans set only the end, so they combine with a start column like .col-2. */
.span-2 { grid-column-end: span 2; }
.span-3 { grid-column-end: span 3; }
.span-4 { grid-column-end: span 4; }
.col-2 { grid-column-start: 2; }

button.link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
button.link.subtle:hover { opacity: 0.3; }
button.link:disabled { opacity: 0.3; cursor: default; }

input, textarea {
  font: inherit;
  color: var(--bright);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 2px 0;
  outline: none;
  width: 100%;
}
input:focus { border-bottom-color: var(--bright); }
input::placeholder, textarea::placeholder { color: var(--text); opacity: 0.35; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Top bar, shared by every page. */
.bar { padding: var(--pad-y) var(--pad-x) 24px; align-items: baseline; }
.bar form { margin: 0; }
.brand b { letter-spacing: 0.02em; }
.actions { display: flex; gap: 3ch; justify-content: flex-end; white-space: nowrap; }
#notice { margin-right: auto; color: var(--bright); font-weight: 700; }
#save.is-saved { opacity: var(--subtle); }
#save.is-saved:hover { opacity: 0.8; }
#save.just-saved { animation: saved 1.6s ease-out; }
@keyframes saved { 0%, 50% { opacity: 1; color: var(--bright); } }
.speck { position: fixed; z-index: 20; width: 3px; height: 3px; background: var(--bright); pointer-events: none; }

/* A mark: one of the shapes above in the text colour, in a box two characters wide. */
.status-succeeded::before, .status-running::before, .status-queued::before,
.tab.is-active::before, .tab.is-dirty::after,
.toggle::before, .run-row.is-current .when::before, .mark-dot {
  content: "";
  display: inline-block;
  width: 2ch;
  height: 1em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: var(--mark) left center / 1em 1em no-repeat;
  mask: var(--mark) left center / 1em 1em no-repeat;
}

/* Status glyphs: weight and opacity instead of colour. */
.status::before { display: inline-block; width: 2ch; }
.mark-dot { --mark: var(--mark-dot); }
.status-succeeded::before { --mark: var(--mark-check); }
.status-failed, .status-timed_out { color: var(--bright); font-weight: 700; }
.status-failed::before, .status-timed_out::before { content: "×"; }
.status-running::before { --mark: var(--mark-dot); }
.status-queued::before { --mark: var(--mark-ring); }
.status-running, .status-queued { animation: pulse 1.6s ease-in-out infinite; }
.status-cancelled, .status-skipped_overlap, .status-none { opacity: var(--subtle); }
.status-cancelled::before, .status-skipped_overlap::before, .status-none::before { content: "–"; }

@keyframes pulse { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) {
  .status-running, .status-queued { animation: none; }
}

/* Index */
.index { padding: 0 var(--pad-x) 80px; }
.flash { margin: 0 0 24px; }
.list-head { padding: 24px 0 8px; }
.script-row { padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.script-row > span { padding-right: 2ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.script-list li:last-child .script-row { border-bottom: 1px solid var(--line); }
.empty { padding-top: 18vh; }
.empty p { margin-bottom: 1.3em; max-width: 52ch; }

/* Workspace */
.workspace-page { height: 100vh; overflow: hidden; }
.workspace { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; }
.name-input {
  font-weight: 700;
  color: var(--bright);
  border-bottom-color: transparent;
  padding: 0;
}
.name-input:hover { border-bottom-color: var(--line); }
.name-input:focus { border-bottom-color: var(--bright); }

.panes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 var(--pad-x) var(--pad-y);
  min-height: 0;
}

.editor-pane {
  grid-column: 1 / span 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
}

.tabs { display: flex; align-items: baseline; gap: 3ch; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tab {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: var(--subtle);
}
.tab { white-space: nowrap; }
.tab:hover { opacity: 0.8; }
.tab.is-active { opacity: 1; color: var(--bright); }
.tab.is-active::before { --mark: var(--mark-caret); }
.tab.is-dirty::after { --mark: var(--mark-dot); width: 1.5ch; -webkit-mask-position: right center; mask-position: right center; }
.tabs-hint { margin-left: auto; }
/* Only offered on narrow screens, where the editor and console are stacked. */
#toggle-code { display: none; margin-left: auto; white-space: nowrap; }

.editor { position: relative; flex: 1 1 auto; min-height: 120px; }
.editor .fallback {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
  padding: 16px;
  resize: none;
  color: var(--text);
  line-height: 20px;
  tab-size: 4;
  white-space: pre;
}
.editor .monaco { position: absolute; inset: 0; }
.has-monaco .fallback { display: none; }

.console { flex: 0 0 38%; min-height: 140px; border-top: 1px solid var(--line); display: flex; }
.console-inner { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.console-head { display: flex; align-items: baseline; gap: 3ch; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.console-head .push { margin-left: auto; }
.console-error { padding: 10px 16px 0; color: var(--bright); }
.console-note { padding: 0 16px 10px; }
.logs {
  flex: 1;
  margin: 0;
  padding: 12px 16px 16px;
  overflow: auto;
  font: inherit;
  line-height: 20px;
  white-space: pre-wrap;
  word-break: break-word;
}

.side { grid-column: 4 / span 2; padding-left: var(--pad-x); display: flex; gap: 24px; min-height: 0; }
.side-body {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  /* Keep room for the scrollbar whether or not it's showing, so the content doesn't jump or
     run under it, and keep it thin and quiet against the black. */
  scrollbar-gutter: stable;
  container-type: inline-size;
}

/* A column of icons at the panel's outer edge: one per section, and one to fold the panel away. */
.rail { flex: none; display: flex; flex-direction: column; gap: 20px; }
.rail-button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: var(--subtle); line-height: 0; }
.rail-button:hover, .rail-button[aria-pressed="true"] { opacity: 1; color: var(--bright); }
.rail-button:focus-visible { outline: 1px solid var(--line-strong); outline-offset: 4px; }
/* Folding sits apart from the sections, at the bottom of the rail: the page's bottom-right corner. */
#toggle-panel { margin-top: auto; }
.icon { width: 18px; height: 18px; }

/* Small icon toggles in the editor pane. Each holds two icons and shows the one for its state. */
.icon-button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: var(--subtle); line-height: 0; }
.icon-button:hover { opacity: 1; color: var(--bright); }
.icon-button:focus-visible { outline: 1px solid var(--line-strong); outline-offset: 4px; }
.icon-button .icon { width: 16px; height: 16px; }
.icon-button .when-on,
#toggle-max[aria-pressed="true"] .when-off,
.output-hidden #toggle-console .when-off { display: none; }
#toggle-max[aria-pressed="true"] .when-on,
.output-hidden #toggle-console .when-on { display: inline; }
#toggle-max { align-self: center; margin-left: 2ch; }

/* Folding the output leaves its header line, which still shows how the run went. */
.console { position: relative; }
#toggle-console { position: absolute; top: 11px; right: 16px; }
.editor-pane .console-head { padding-right: 48px; }
.workspace.output-hidden .console { flex: none; height: auto; min-height: 0; }
.output-hidden .console .logs, .output-hidden .console .console-error, .output-hidden .console .console-note { display: none; }
.output-hidden .console .console-head { border-bottom: 0; }

/* Full screen: the editor pane covers the window, bar and settings included. */
.workspace.editor-max .editor-pane { position: fixed; inset: 0; z-index: 10; height: auto; border: 0; background: var(--bg); }
.block { padding: 0 0 32px; }
.block > p.subtle { margin-bottom: 12px; }

/* Sections: a heading plus a one-line digest of the contents. The panel shows whichever
   one the rail picked. */
.block-head { display: flex; align-items: baseline; gap: 2ch; margin-bottom: 16px; }
.block-head h2 { font-weight: 700; color: var(--bright); }
.block-head .meta { opacity: var(--subtle); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side [data-section]:not(.is-shown) { display: none; }

/* Folding the panel leaves just the rail, and gives the editor the rest of the width. */
.workspace.panel-hidden .panes { grid-template-columns: minmax(0, 1fr) auto; }
.workspace.panel-hidden .editor-pane { grid-column: 1; }
.workspace.panel-hidden .side { grid-column: 2; padding-left: 24px; }
.workspace.panel-hidden .side-body { display: none; }

.field { display: grid; grid-template-columns: 10ch minmax(0, 1fr); align-items: baseline; margin-bottom: 10px; }
.label { opacity: var(--subtle); }
.with-unit { display: flex; gap: 1ch; align-items: baseline; }
.with-unit input { width: 8ch; }
.presets span { display: flex; flex-wrap: wrap; gap: 0 2.5ch; }
.field-error { color: var(--bright); margin: 0 0 10px 10ch; }
.field-error::before { content: "× "; font-weight: 700; }
.invalid { border-bottom-color: var(--bright) !important; }
.next-runs li { line-height: 1.5; }
#delete { margin-top: 32px; }

.toggle { font: inherit; color: var(--bright); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.toggle::before { --mark: var(--mark-ring); }
.toggle[aria-checked="true"]::before { --mark: var(--mark-dot); }
.toggle[aria-checked="false"] { opacity: var(--subtle); }
.toggle:hover { opacity: 0.6; }

.key-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3ch; gap: 2ch; padding: 6px 0; border-top: 1px solid var(--line); }
.key-list li:last-child { border-bottom: 1px solid var(--line); }
.key-list .remove { justify-self: end; }
/* Adding a key: label over field, as on GitHub's secret form, with each error under its field. */
.key-form { margin: 20px 0 0; }
.stacked { display: grid; gap: 6px; margin-bottom: 16px; }
.stacked .field-error { margin: 0; }
.boxed { border: 1px solid var(--line); padding: 7px 10px; }
.boxed:hover { border-color: var(--line-strong); }
.boxed:focus { border-color: var(--bright); }
.boxed.invalid { border-color: var(--bright) !important; }
textarea.boxed { display: block; resize: vertical; min-height: 64px; line-height: 20px; white-space: pre; overflow-wrap: normal; overflow: auto; }
.key-actions { display: flex; gap: 3ch; align-items: baseline; }
#add-key { margin-top: 12px; }

.run-list li { border-top: 1px solid var(--line); }
.run-list li:last-child { border-bottom: 1px solid var(--line); }
.run-row { display: grid; grid-template-columns: 18ch minmax(0, 1fr) 7ch 9ch; gap: 1.5ch; padding: 6px 0; white-space: nowrap; }
.run-row > span { overflow: hidden; text-overflow: ellipsis; }
.run-row.is-current .when::before { --mark: var(--mark-caret); }
@container (max-width: 420px) {
  .run-row { grid-template-columns: 18ch minmax(0, 1fr) 7ch; }
  .run-row > span:nth-child(4) { display: none; }
}
@container (max-width: 320px) {
  .run-row { grid-template-columns: 18ch minmax(0, 1fr); }
  .run-row > span:nth-child(3) { display: none; }
}
.run-row.is-current { color: var(--bright); }

/* Landing */
.landing { padding: 0 var(--pad-x) var(--pad-y); }
.landing section { padding: 0 0 120px; }
.landing .grid > p.subtle:first-child { padding-right: 2ch; }
.hero { padding-top: 14vh !important; padding-bottom: 96px !important; }
.hero h1 { margin-bottom: 1.3em; }
.hero p { max-width: 58ch; margin-bottom: 1.3em; }
.hero p:last-child { margin-bottom: 0; }
.cta { display: flex; gap: 3ch; align-items: baseline; }
/* Centre the copy on the moon so the two read as one row. */
.hero { align-items: center; }
.hero-moon { grid-column: 5; }
#moon { display: block; width: 100%; aspect-ratio: 1; color: var(--text); cursor: grab; touch-action: none; }
#moon.dragging { cursor: grabbing; }

/* Copy editing (?edit on any page) */
.copy-editing body { padding-bottom: 120px; }
.copy-editable { outline: 1px dashed transparent; outline-offset: 3px; cursor: text; }
.copy-editable:hover { outline-color: var(--line-strong); }
.copy-editable:focus { outline: 1px solid var(--bright); }
.copy-editable.copy-changed { outline-color: var(--line-strong); outline-style: solid; background: rgba(255, 255, 255, 0.06); }
.copy-edit-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 8px 3ch; align-items: baseline;
  padding: 14px var(--pad-x); background: var(--bg); border-top: 1px solid var(--line-strong);
}
.copy-edit-bar .copy-actions { margin-left: auto; display: flex; gap: 3ch; }
.copy-output {
  flex-basis: 100%; height: 160px; padding: 10px; resize: vertical;
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
}

.demo-window { border: 1px solid var(--line); }
.demo-bar { display: flex; gap: 3ch; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.demo-panes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); border-bottom: 1px solid var(--line); }
.demo-code { margin: 0; padding: 16px; font: inherit; line-height: 20px; overflow-x: auto; color: #d0c9c2; }
.demo-code .ln { display: inline-block; width: 4ch; color: #36312e; user-select: none; }
.demo-runs { padding: 16px; border-left: 1px solid var(--line); }
.demo-runs p { margin-bottom: 12px; }
.demo-runs li { display: grid; grid-template-columns: 11ch minmax(0, 1fr) auto; gap: 1ch; padding: 6px 0; border-top: 1px solid var(--line); }
.demo-console { margin: 0; padding: 12px 16px 16px; font: inherit; line-height: 20px; }
/* Same tints as the editor theme in syntax.js. */
.tk-k { color: #f7eadb; font-weight: 700; }
.tk-s { color: #e3806d; }
.tk-e { color: #f1c4aa; }
.tk-n { color: #e0667e; }
.tk-c { color: #6b5a5f; font-style: italic; }
.tk-b { color: #9fb1b4; }
.tk-f { color: #e9ded2; }
.tk-o { color: #80776f; }

.for .span-2 p { max-width: 46ch; margin-bottom: 1.3em; }
.fact-list li, .detail-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.fact-list li:last-child, .detail-list li:last-child { border-bottom: 1px solid var(--line); }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3ch; }
.detail-list li { display: flex; gap: 2ch; flex-wrap: wrap; }
.detail-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
.foot { padding-top: 24px; border-top: 1px solid var(--line); }

/* Log in and sign up */
.auth { padding: 12vh var(--pad-x) var(--pad-y); }
.auth-form h1 { margin-bottom: 1.6em; }
.auth-form > p { margin-bottom: 1.3em; max-width: 52ch; }
.auth-form .field { grid-template-columns: 14ch minmax(0, 1fr); margin-bottom: 16px; }
.auth-form .field-error { margin: 0 0 1.3em; }
.auth-form .hint { margin: -4px 0 1.3em 14ch; }
.auth-actions { display: flex; gap: 3ch; align-items: baseline; margin-top: 2em !important; }

/* Docs */
.docs { padding: 24px var(--pad-x) 120px; align-items: start; }
.docs-toc { position: sticky; top: 24px; }
.docs-toc li { padding: 3px 0; }
.docs-toc a:hover { opacity: 1; color: var(--bright); }
.docs-body section { padding-bottom: 72px; scroll-margin-top: 24px; }
.docs-body h1, .docs-body h2 { margin-bottom: 1.3em; }
.docs-body p { max-width: 68ch; margin-bottom: 1.3em; }
.docs-body code { background: none; padding: 0; color: var(--bright); }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.copy-row { display: flex; gap: 3ch; align-items: baseline; flex-wrap: wrap; }
.copy-row code { padding: 8px 12px !important; border: 1px solid var(--line); word-break: break-all; }
.docs-code { margin: 0 0 1.3em; padding: 12px 16px; border: 1px solid var(--line); font: inherit; color: var(--bright); overflow-x: auto; }
.steps { list-style: decimal inside; margin-bottom: 1.3em; }
.steps li { padding: 6px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.examples { margin-bottom: 1.3em; }
.examples li { padding: 6px 0; border-top: 1px solid var(--line); max-width: 78ch; }
.examples li:last-child { border-bottom: 1px solid var(--line); }
.tool-list > li { padding: 16px 0; border-top: 1px solid var(--line); }
.tool-list > li:last-child { border-bottom: 1px solid var(--line); }
.tool-list p { margin-bottom: 0.6em !important; }
.tag-quiet { opacity: var(--subtle); margin-left: 1ch; }
.params div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2ch; padding: 4px 0; }
.params dd { margin: 0; }
.facts-list div { display: grid; grid-template-columns: 12ch minmax(0, 1fr); gap: 2ch; padding: 6px 0; border-top: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 1px solid var(--line); }
.facts-list dt { opacity: var(--subtle); }
.facts-list dd { margin: 0; max-width: 68ch; }
.nav-links { display: flex; gap: 3ch; }
.consent-list { margin: 0 0 1.3em; }
.consent-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.consent-list li:last-child { border-bottom: 1px solid var(--line); }
.consent-list li::before { content: "· "; opacity: var(--subtle); }

/* Single run page */
.run-main { padding: 0 var(--pad-x) var(--pad-y); }
.console-full { height: calc(100vh - 110px); border: 1px solid var(--line); }
/* Already on the run's own page, so no link out to it. */
.console-full .open-run { display: none; }

@media (max-width: 960px) {
  :root { --pad-x: 16px; --pad-y: 20px; }
  .workspace-page { height: auto; overflow: visible; }
  .workspace { height: auto; display: block; }
  .bar { grid-template-columns: auto minmax(0, 1fr); column-gap: 2ch; row-gap: 12px; }
  .bar > * { grid-column: auto !important; }
  .bar .span-2, .bar .span-3 { grid-column: 1 / -1 !important; order: 3; }
  .bar .actions { grid-column: auto !important; order: 0; }
  .bar .actions kbd { display: none; }
  .panes { display: block; }
  .editor-pane { height: 85vh; }
  .side { padding: 32px 0 0; }
  .list-head { display: none; }
  .script-row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .script-row > span:nth-child(5) { display: none; }
  .empty .span-3 { grid-column: 1 / -1; }
  .run-row { grid-template-columns: minmax(0, 1fr) auto; }
  .run-row > span:nth-child(3), .run-row > span:nth-child(4) { display: none; }
  .tabs-hint { display: none; }
  /* Stacked under the editor there's no width to win back, so the panel always shows. */
  .rail { display: none; }
  .side [data-section]:not(.is-shown) { display: block; }
  .workspace.panel-hidden .panes { display: block; }
  .workspace.panel-hidden .side-body { display: block; }
  #toggle-code { display: inline; }
  .tabs { gap: 2ch; }
  .workspace.code-hidden .editor-pane { height: auto; }
  .workspace.code-hidden .editor { display: none; }
  .workspace.code-hidden .console { flex: none; height: 50vh; }
  .workspace.output-hidden .console { height: auto; }

  .landing section { padding-bottom: 72px; }
  .landing .grid > * { grid-column: 1 / -1 !important; }
  .landing .grid > p.subtle:first-child { margin-bottom: 12px; }
  .hero { padding-top: 8vh !important; }
  /* Above the headline on narrow screens, small enough not to push it off the fold. */
  .hero-moon { order: -1; width: min(56vw, 260px); margin: 0 auto 32px; }
  .demo-panes { grid-template-columns: 1fr; }
  .demo-runs { border-left: 0; border-top: 1px solid var(--line); }
  .demo-bar { flex-wrap: wrap; row-gap: 4px; }
  .detail-list { grid-template-columns: 1fr; row-gap: 0; }
  .detail-list li:nth-last-child(2) { border-bottom: 0; }
  .auth { padding-top: 6vh; }
  .auth .auth-form { grid-column: 1 / -1; }
  .auth-form .field { grid-template-columns: 1fr; gap: 4px; }
  .auth-form .hint { margin-left: 0; }
  .home-actions a.subtle { display: none; }
  .docs-toc { display: none; }
  .docs .docs-body { grid-column: 1 / -1; }
  .params div, .facts-list div { grid-template-columns: 1fr; gap: 2px; }
}
