/* Yardlet site. The page is a Yardlet window: a sidebar of sections, a title bar, and a conversation of
   questions and answers. Colors and corners follow the app's own screens, so the recordings sit in the
   page without a seam. System fonts only: the site makes no requests outside its own folder. */

:root {
  color-scheme: light dark;

  --desk: #dde2ea;
  --win: #ffffff;
  --side: #f4f4f5;
  --row-on: #e6e6e8;
  --row-hover: #ececee;
  --text: #1d1d1f;
  --text-2: #4b4b52;
  --text-3: #6b6b73;
  --line: rgb(0 0 0 / 0.08);
  --bubble: #ececee;
  --card: #ffffff;
  --card-ring: rgb(0 0 0 / 0.1);
  --card-fill: #f7f7f8;
  --link: #0a5fc9;
  --btn: #1d1d1f;
  --btn-text: #ffffff;
  --btn-hover: #3a3a3d;
  --quiet: #ececee;
  --quiet-hover: #e2e2e5;
  --code-bg: rgb(0 0 0 / 0.055);
  --bar-bg: rgb(255 255 255 / 0.86);
  --selection: rgb(10 95 201 / 0.18);
  --win-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.16), 0 2px 6px rgb(0 0 0 / 0.05), 0 24px 64px rgb(20 30 50 / 0.16);
  --shot-ring: 0 0 0 0.5px rgb(0 0 0 / 0.14), 0 8px 24px rgb(0 0 0 / 0.08);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Five sizes of text. */
  --t-1: 44px;   /* the first answer, and a page's own title */
  --t-2: 28px;   /* later answers */
  --t-3: 17px;   /* questions and body */
  --t-4: 14px;   /* sidebar, title bar, buttons, small print */
  --t-5: 12px;   /* group labels */

  /* One spacing scale. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 120px;

  --desk-pad: 16px;
  --side-w: 248px;
  --bar-h: 52px;
  --thread: 760px;
  --r-win: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark follows Yardlet's own dark window: near-black glass, cards lifted by a ring, not by shade alone. */
    --desk: #050506;
    --win: #161618;
    --side: #1c1c1f;
    --row-on: #2c2c30;
    --row-hover: #26262a;
    --text: #f1f1f3;
    --text-2: #c2c2c9;
    --text-3: #9a9aa3;
    --line: rgb(255 255 255 / 0.08);
    --bubble: #2a2a2e;
    --card: #1c1c1f;
    --card-ring: rgb(255 255 255 / 0.1);
    --card-fill: #202024;
    --link: #5aa8ff;
    --btn: #f1f1f3;
    --btn-text: #111113;
    --btn-hover: #ffffff;
    --quiet: #2c2c30;
    --quiet-hover: #35353a;
    --code-bg: rgb(255 255 255 / 0.08);
    --bar-bg: rgb(22 22 24 / 0.84);
    --selection: rgb(90 168 255 / 0.3);
    --win-shadow: 0 0 0 0.5px rgb(255 255 255 / 0.14), 0 24px 80px rgb(0 0 0 / 0.7);
    --shot-ring: 0 0 0 0.5px rgb(255 255 255 / 0.14), 0 8px 28px rgb(0 0 0 / 0.5);
  }
  .brand img, .jump-mark { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16); }
}

@media (max-width: 640px) {
  :root {
    --t-1: 32px;
    --t-2: 24px;
    --t-3: 16px;
    --s-8: 48px;
    --s-9: 80px;
    --desk-pad: 0px;
    --bar-h: 56px;
    --r-win: 0px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + var(--desk-pad) + var(--s-5)); }
body { margin: 0; background: var(--desk); color: var(--text); font: var(--t-3)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--selection); }
img, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
code { font: 0.84em/1.4 var(--mono); background: var(--code-bg); padding: 0.12em 0.36em; border-radius: 5px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 30; padding: var(--s-2) var(--s-4);
  background: var(--btn); color: var(--btn-text); border-radius: 8px; }
.skip-link:focus { top: var(--s-3); }

/* The desk and the window on it. A strip the desk's color keeps the scrolled thread out of the gap above. */
.desk { padding: var(--desk-pad); }
.desk::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--desk-pad); background: var(--desk); z-index: 20; }
/* On a large display the window stays window-sized, centered on the desk, as it would on a Mac. */
.win {
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr);
  max-width: 1600px; margin: 0 auto;
  min-height: calc(100vh - 2 * var(--desk-pad));
  background: var(--win);
  border-radius: var(--r-win);
  box-shadow: var(--win-shadow);
}

/* Sidebar */
.side { background: var(--side); border-right: 1px solid var(--line); border-radius: var(--r-win) 0 0 var(--r-win); }
.side-inner {
  position: sticky; top: var(--desk-pad);
  height: calc(100vh - 2 * var(--desk-pad));
  display: flex; flex-direction: column;
  padding: 0 var(--s-3) var(--s-4);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; height: var(--bar-h); padding: 0 var(--s-2); margin-bottom: var(--s-3);
  color: var(--text); text-decoration: none; font: 650 var(--t-3)/1 var(--display); letter-spacing: -0.01em; }
.brand img, .jump-mark { border-radius: 6px; }
.group { padding: 0 var(--s-2) var(--s-2); font: 500 var(--t-5)/1.3 var(--font); color: var(--text-3); }
.tasks + .tasks { margin-top: var(--s-5); }
.tasks ul { display: grid; gap: 2px; }
.task {
  display: flex; align-items: center; gap: 10px;
  min-height: 34px; padding: var(--s-1) var(--s-2);
  border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: var(--t-4); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.task svg { flex: none; width: 16px; height: 16px; color: var(--text-3); }
.task:hover { background: var(--row-hover); }
.task[aria-current] { background: var(--row-on); font-weight: 600; }
.side-foot { margin-top: auto; padding: var(--s-3) var(--s-2) 0; border-top: 1px solid var(--line); font-size: var(--t-5); color: var(--text-3); line-height: 1.5; }
.side-foot a { color: var(--text-2); }

/* Title bar */
.pane { min-width: 0; container-type: inline-size; }
.bar {
  position: sticky; top: var(--desk-pad); z-index: 10;
  height: var(--bar-h);
  display: flex; align-items: center; gap: var(--s-3);
  padding: 0 var(--s-4) 0 var(--s-5);
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line);
  border-top-right-radius: var(--r-win);
}
.bar-title { font: 600 var(--t-4)/1 var(--font); }
.version { font-size: var(--t-4); color: var(--text-3); }
.jump { display: none; position: relative; }
.bar-links { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.bar-links a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: var(--t-4); font-weight: 500; }
.bar-links a:not(.btn):hover { color: var(--text); }
.bar-source { display: none !important; }

/* Buttons, shaped like Yardlet's. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 40px; padding: 0 var(--s-5);
  border-radius: 10px;
  background: var(--btn); color: var(--btn-text);
  font: 600 var(--t-4)/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--btn-hover); }
.btn-small { height: 30px; padding: 0 var(--s-3); border-radius: 8px; }
.btn-quiet { background: var(--quiet); color: var(--text); }
.btn-quiet:hover { background: var(--quiet-hover); }

/* The thread: each section is a question and Yardlet's answer. */
.thread { max-width: calc(var(--thread) + 2 * var(--s-6)); margin: 0 auto; padding: var(--s-6) var(--s-6) var(--s-8); }
.turn + .turn { margin-top: var(--s-8); }
.ask {
  width: fit-content; max-width: min(78%, 34em); margin-left: auto;
  padding: 10px 16px; border-radius: 16px;
  background: var(--bubble); color: var(--text);
  font-size: var(--t-3); line-height: 1.5; text-wrap: pretty;
}
.reply { margin-top: var(--s-5); }
.reply h1 { font: 700 var(--t-1)/1.08 var(--display); letter-spacing: -0.03em; text-wrap: balance; max-width: 16em; }
.reply h2 { font: 700 var(--t-2)/1.18 var(--display); letter-spacing: -0.02em; text-wrap: balance; max-width: 22em; }
.reply > p { margin-top: var(--s-4); color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.reply > .lead { margin-top: var(--s-5); }
.reply > .aside-line { margin-top: var(--s-3); font-size: var(--t-4); color: var(--text-3); }
/* The agents Yardlet starts, by the icon each shows in Settings › Harnesses. */
.reply > .works {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4); max-width: none; font-size: var(--t-4);
}
.works-label { color: var(--text-3); }
.works .agent { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text-2); }
.works .agent img { width: 20px; height: 20px; border-radius: 5px; }
.works-more { color: var(--text-3); }
.works-more:hover { color: var(--text); }
.reply > .panel + p, .reply > .attach + p { margin-top: var(--s-5); }

/* The install card is Yardlet's approval card: what is asked, the command, then the two answers. Its box is a
   container, so the buttons drop below the text whenever the card itself is narrow, sidebar or not. */
.approve-box { container-type: inline-size; margin-top: var(--s-6); }
.approve {
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  background: var(--card); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--card-ring), 0 2px 8px rgb(0 0 0 / 0.04);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-5); row-gap: var(--s-3);
}
.approve-head { display: flex; gap: var(--s-3); align-items: flex-start; }
.approve-icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--text-2); stroke-width: 1.6; }
.approve h2, .approve h3 { font: 600 var(--t-3)/1.35 var(--font); letter-spacing: 0; max-width: none; }
.approve-head p { margin-top: 2px; font-size: var(--t-4); color: var(--text-3); }
.approve-head a { color: inherit; text-decoration-color: var(--line); }
.approve-head a:hover { color: var(--text); }
/* The command stays on one line; when the card is too narrow for it, only this line scrolls. */
.approve-cmd { grid-column: 1 / -1; min-width: 0; padding-left: calc(20px + var(--s-3)); overflow-x: auto; }
.approve-cmd code { font-size: var(--t-4); padding: var(--s-1) var(--s-2); white-space: nowrap; }
.approve-cmd .copy { margin-left: var(--s-2); padding: 2px 8px; border: 0; border-radius: 6px; background: var(--quiet); color: var(--text-2);
  font: 500 var(--t-5)/1.6 var(--font); cursor: pointer; vertical-align: middle; }
.approve-cmd .copy:hover { background: var(--quiet-hover); color: var(--text); }
.approve-actions { grid-column: 2; grid-row: 1; display: flex; gap: var(--s-2); }
@container (max-width: 720px) {
  .approve { grid-template-columns: minmax(0, 1fr); }
  .approve-actions { grid-column: 1; grid-row: auto; padding-left: calc(20px + var(--s-3)); margin-top: var(--s-1); }
}

/* Attachments. Recordings and whole-window screens take the pane's width, not the reading column's, so the
   app's own text stays legible; a settings sheet is already legible at the column's width. */
.attach { margin-top: var(--s-6); }
.attach.wide { --w: min(1100px, 100cqw - 2 * var(--s-6)); --r: min(var(--thread), 100cqw - 2 * var(--s-6)); }
@media (min-width: 641px) {
  .attach.wide { margin-inline: calc((100% - var(--w)) / 2); }
  /* The caption goes back to the reading column, so its left edge lines up with the text above. */
  .attach.wide figcaption { margin-inline: calc((var(--w) - var(--r)) / 2); }
}
.shot {
  position: relative; overflow: hidden;
  aspect-ratio: 2240 / 1383;
  border-radius: 12px; background: #000;
  box-shadow: var(--shot-ring);
}
.shot img, .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet { overflow: hidden; border-radius: 10px; box-shadow: var(--shot-ring); }
.sheet img { width: 100%; }
.attach figcaption { margin-top: var(--s-3); font-size: var(--t-4); color: var(--text-3); }
.attach figcaption:has(.pause) { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.pause {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 var(--s-3); border: 0; border-radius: 99px; cursor: pointer;
  background: var(--quiet); color: var(--text-2);
  font: 500 var(--t-5)/1 var(--font);
}
.pause:hover { background: var(--quiet-hover); color: var(--text); }
.pause svg { width: 12px; height: 12px; fill: currentColor; stroke-width: 1.6; }
.pause .icon-play, .pause[aria-pressed="true"] .icon-pause { display: none; }
.pause[aria-pressed="true"] .icon-play { display: block; }
.cap-phone { display: none; }

/* A heading inside an answer that covers several things. */
.reply > .sub { margin-top: var(--s-7); font: 700 var(--t-3)/1.35 var(--display); color: var(--text); }
.reply > .sub + p { margin-top: var(--s-2); }

/* Text an agent reads, exactly as Yardlet writes it: what the tool returns or what the other task receives. */
.trace { margin-top: var(--s-5); }
.trace + .trace { margin-top: var(--s-4); }
.trace figcaption { font-size: var(--t-4); color: var(--text-3); margin-bottom: var(--s-2); }
.trace pre {
  margin: 0; padding: var(--s-4) var(--s-5);
  background: var(--card-fill); border-radius: 12px; box-shadow: 0 0 0 1px var(--card-ring);
  font: var(--t-4)/1.6 var(--mono); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere;
}
.trace code { font: inherit; background: none; padding: 0; }
.trace .q { display: inline-block; padding-left: var(--s-3); border-left: 2px solid var(--link); color: var(--text); }

/* Tool names beside what they do. */
.rows.tools > div { grid-template-columns: 13.5em 1fr; }
.rows.tools dt code { background: none; padding: 0; font-size: var(--t-4); }

/* The agents, as one plain line of names between dots. */
.agent-names { display: flex; flex-wrap: wrap; margin-top: var(--s-5); max-width: 36em; color: var(--text); font-weight: 500; line-height: 1.7; }
.agent-names li { white-space: nowrap; }
.agent-names li:not(:last-child)::after { content: "·"; margin: 0 var(--s-2); color: var(--text-3); font-weight: 400; }

/* Panels, like the rail's in Yardlet: a title, then rows. */
.panel {
  margin-top: var(--s-5); padding: var(--s-4) var(--s-5) var(--s-2);
  background: var(--card-fill); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--card-ring);
}
.panel h3 { font: 600 var(--t-4)/1.3 var(--font); color: var(--text); padding-bottom: var(--s-2); }
.fold { padding-bottom: var(--s-4); }
.fold[open] { padding-bottom: var(--s-3); }
.fold summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); cursor: pointer; list-style: none;
  font: 600 var(--t-4)/1.3 var(--font); color: var(--text); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .chev { flex: none; width: 14px; height: 14px; color: var(--text-3); stroke-width: 1.6; transition: transform 0.15s; }
.fold[open] summary { padding-bottom: var(--s-2); }
.fold[open] summary .chev { transform: rotate(180deg); }
.fold-note { padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-4); color: var(--text-2); }
.rows > li, .rows > div {
  display: grid; grid-template-columns: 11em 1fr; gap: var(--s-3);
  padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-4); line-height: 1.5;
}
.rows dt, .rows .key { font-weight: 600; color: var(--text); }
.rows dd, .rows .val { color: var(--text-2); }
.rows code { font-size: 0.95em; }
.folders > li { grid-template-columns: 16px 7.5em 1fr; align-items: baseline; color: var(--text-2); }
.folders svg { width: 16px; height: 16px; color: var(--text-3); align-self: center; }
.folders code { justify-self: start; background: none; padding: 0; font-size: var(--t-4); color: var(--text); }
.folders.stacked > li { grid-template-columns: 16px 1fr; row-gap: 2px; }
.folders.stacked svg { align-self: start; margin-top: 2px; }
.folders.stacked .val { grid-column: 2; }

/* The foot of the thread */
.foot { margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-4); color: var(--text-3); }
.foot p + p { margin-top: var(--s-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-4); }
.foot-links a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* Documents (privacy policy, terms of use) share the window, with the text in the pane. */
.doc { max-width: calc(680px + 2 * var(--s-6)); margin: 0 auto; padding: var(--s-7) var(--s-6) var(--s-8); color: var(--text-2); }
.doc h1 { font: 700 var(--t-1)/1.1 var(--display); letter-spacing: -0.03em; color: var(--text); text-wrap: balance; }
.doc h2 { margin-top: var(--s-7); font: 700 var(--t-3)/1.35 var(--display); color: var(--text); }
.doc h2 + p, .doc h2 + ul { margin-top: var(--s-3); }
.doc p, .doc ul { margin-top: var(--s-4); text-wrap: pretty; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: var(--s-2); }
.doc strong { color: var(--text); }
.doc .updated { margin-top: var(--s-3); font-size: var(--t-4); color: var(--text-3); }
.doc .summary { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); background: var(--card-fill); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--card-ring); color: var(--text); }
.doc .narrow { max-width: none; }
/* The changelog: one section a release, its New, Fixes and Security lists under it. */
.doc .release + .release { margin-top: var(--s-8); padding-top: var(--s-2); border-top: 1px solid var(--card-ring); }
.doc .release h2 { margin-top: var(--s-6); font: 700 var(--t-2)/1.2 var(--display); letter-spacing: -0.02em; }
.doc .release h3 { margin-top: var(--s-5); font: 600 var(--t-3)/1.4 var(--font); color: var(--text); }
.doc .release h3 + ul, .doc .release h3 + p { margin-top: var(--s-2); }
.doc + .doc-end, .missing + .doc-end { max-width: calc(680px + 2 * var(--s-6)); margin: 0 auto; padding: 0 var(--s-6) var(--s-8); }
.missing + .doc-end { max-width: calc(var(--thread) + 2 * var(--s-6)); }
.doc-end .foot { margin-top: 0; }

/* The missing page */
.missing { max-width: calc(var(--thread) + 2 * var(--s-6)); margin: 0 auto; padding: var(--s-9) var(--s-6); }
.missing h1 { font: 700 var(--t-1)/1.08 var(--display); letter-spacing: -0.03em; }
.missing p { margin-top: var(--s-4); color: var(--text-2); }
.missing .actions { margin-top: var(--s-6); display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* Narrow desks lose the sidebar; phones get the whole screen, and the title opens the sections. */
@media (max-width: 1000px) {
  .win { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .bar { border-top-left-radius: var(--r-win); }
  .bar-title { display: none; }
  .jump { display: block; }
  .jump summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font: 600 var(--t-4)/1 var(--font); padding: var(--s-2) 0; }
  .jump summary::-webkit-details-marker { display: none; }
  .jump-mark { margin-right: 4px; border-radius: 6px; }
  .chev { width: 14px; height: 14px; color: var(--text-3); stroke-width: 1.6; }
  .jump ul {
    position: absolute; left: -8px; top: calc(100% + 6px); min-width: 260px; max-height: calc(100vh - var(--bar-h) - 24px);
    overflow-y: auto; padding: 6px;
    background: var(--card); border-radius: 12px; box-shadow: 0 0 0 1px var(--card-ring), 0 12px 32px rgb(0 0 0 / 0.18);
  }
  .jump li.sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
  .jump a { display: block; padding: var(--s-2) var(--s-3); border-radius: 8px; color: var(--text); text-decoration: none; font-size: var(--t-4); }
  .jump a:hover { background: var(--row-hover); }
}
@media (max-width: 640px) {
  .desk::before { display: none; }
  .win { box-shadow: none; min-height: 100vh; }
  .bar { top: 0; padding: 0 var(--s-4); }
  .bar-links a:not(.btn), .version, .bar-get { display: none; }
  .bar-source { display: inline-flex !important; }
  .cap-wide { display: none; }
  .cap-phone { display: inline; }
  .btn-small { height: 34px; padding: 0 var(--s-4); }
  .thread, .doc { padding: var(--s-6) var(--s-4) var(--s-8); }
  .doc + .doc-end, .missing + .doc-end { padding: 0 var(--s-4) var(--s-8); }
  .missing { padding: var(--s-8) var(--s-4); }
  .ask { max-width: 88%; }
  .reply { margin-top: var(--s-5); }
  .approve { grid-template-columns: minmax(0, 1fr); padding: var(--s-4) var(--s-3); }
  .approve-cmd { padding-left: 0; }
  .approve-cmd code { font-size: var(--t-5); padding: var(--s-1); }
  .approve-cmd .copy { display: none; }
  .approve-actions { grid-column: 1; grid-row: auto; flex-direction: column-reverse; padding-left: 0; margin-top: 0; }
  .approve-actions .btn { height: 44px; }
  .shot { aspect-ratio: 1036 / 1800; max-height: 80vh; margin-inline: auto; border-radius: 14px; }
  .shot-review { aspect-ratio: 1036 / 1290; }
  /* Phones get crops of the settings sheets (the rows themselves), so their text stays legible. */
  .rows > li, .rows > div { grid-template-columns: 1fr; gap: 2px; }
  .rows.tools > div { grid-template-columns: 1fr; }
  .trace pre { padding: var(--s-3) var(--s-4); font-size: var(--t-5); }
  .folders > li { grid-template-columns: 16px 1fr; row-gap: 2px; column-gap: var(--s-3); }
  .folders > li > span, .folders .val { grid-column: 2; }
  .panel { padding: var(--s-3) var(--s-4) var(--s-1); }
  .doc .summary { padding: var(--s-3) var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* The second headline, shown instead of the first when ab.js picks it. */
.headline-b { display: none; }
:root[data-headline="b"] .headline-a { display: none; }
:root[data-headline="b"] .headline-b { display: inline; }
