/* unfairvoice.com: a live surface built on the scrollcraft engine.
   The engine CSS is the mechanism; everything here is the product's own idiom. */

:root {
  --sc-canvas: #eef1ea;
  --sc-surface: #ffffff;
  --sc-ink: #1f3229;
  --sc-ink-soft: #52645a;
  --sc-accent: #174e3e;
  --sc-accent-ink: #eef7e0;
  --sc-font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sc-font-text: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sc-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sc-shadow-color: 140 30% 18%;

  --deep: #123f32;
  --lime: #dbedb9;
  --lime-2: #b9d98a;
  --line: #dde4d8;
  --warn-bg: #fbf3df;
  --warn-ink: #6b4f10;
  --nav-w: 15rem;
  --bar-h: 0px;
}

body { background: var(--sc-canvas); padding-left: var(--nav-w); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.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 { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.crumb { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); font-weight: 500; }
.crumb span { margin-inline: 0.35em; }

/* ------------------------------------------------------------ app chrome */
.rail-nav {
  position: fixed; inset: 0 auto 0 0; width: var(--nav-w); z-index: 60;
  display: flex; flex-direction: column; gap: var(--sc-6);
  padding: var(--sc-5) var(--sc-4);
  background: var(--deep); color: #dfeee0;
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.02em; }
.mark svg { width: 28px; height: 28px; }
.tenant { display: grid; gap: 2px; padding: var(--sc-3); border-radius: var(--sc-r-md); background: rgb(255 255 255 / 0.06); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06); }
.tenant__label { font-size: var(--sc-t-xs); color: #a9c7b2; text-transform: uppercase; letter-spacing: 0.08em; }
.tenant__name { font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.tenant__note { font-size: var(--sc-t-xs); color: #a9c7b2; }
.rail-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail-nav [data-nav] {
  display: block; padding: 9px 12px; border-radius: var(--sc-r-sm);
  color: #cfe3d4; text-decoration: none; font-size: var(--sc-t-sm); font-weight: 500;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.rail-nav [data-nav]:hover { background: rgb(255 255 255 / 0.07); color: #fff; }
.rail-nav [data-nav][aria-current="true"] { background: var(--lime); color: var(--deep); }
.rail-nav :focus-visible { outline-color: var(--lime); }
.rail-nav__status { margin-top: auto; font-size: var(--sc-t-xs); color: #b8d3bf; display: flex; gap: 8px; align-items: baseline; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7fc45a; display: inline-block; flex: none; }
.dot--idle { background: #8aa395; }

/* ---------------------------------------------------------------- acts */
.act { position: relative; }
.stage { padding: clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 4vw, 4rem); display: flex; flex-direction: column; gap: var(--sc-6); }
.panel {
  background: var(--sc-surface); border-radius: var(--sc-r-lg); padding: var(--sc-5);
  box-shadow: var(--sc-e1), 0 0 0 1px var(--line);
}
.panel__title { font-size: var(--sc-t-lg); font-weight: 600; }
.panel__hint { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); margin-top: var(--sc-1); }

/* 1 · builder */
.page-head { display: grid; gap: var(--sc-3); max-width: 46rem; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: 1.04; font-weight: 650; letter-spacing: -0.035em; color: var(--deep); }
.saved { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: #2f6b2a; background: #e3f0d3; padding: 5px 12px; border-radius: 999px; }
.lede { font-size: var(--sc-t-lg); color: var(--sc-ink-soft); max-width: 38ch; line-height: 1.45; }
.builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sc-5); align-items: start; max-width: 72rem; }
.panel--overview { grid-row: span 2; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4); margin-top: var(--sc-4); }
.field:first-child { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: var(--sc-t-sm); font-weight: 600; }
.field input, .form input:not([type="checkbox"]), .form select {
  width: 100%; padding: 11px 13px; border-radius: var(--sc-r-md);
  border: 1.5px solid #7f9086; background: #fbfcf9; color: var(--sc-ink);
  font-size: 1rem; font-weight: 400;
  transition: border-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.field input:hover, .form input:not([type="checkbox"]):hover, .form select:hover { border-color: #5f7166; }
.field input:focus, .form input:focus, .form select:focus { outline: none; border-color: var(--sc-accent); box-shadow: 0 0 0 4px rgb(185 217 138 / 0.55); }
.greeting { margin-top: var(--sc-5); padding: var(--sc-4); border-radius: var(--sc-r-md); background: #f3f7ec; }
.greeting__label { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.greeting__text { margin-top: var(--sc-2); font-size: var(--sc-t-lg); line-height: 1.4; color: var(--deep); font-weight: 500; }
.toggles { list-style: none; margin: var(--sc-4) 0 0; padding: 0; display: grid; gap: var(--sc-1); }
.toggle { display: flex; gap: var(--sc-3); align-items: flex-start; padding: var(--sc-2); border-radius: var(--sc-r-md); cursor: pointer; transition: background-color 160ms var(--sc-ease-out); }
.toggle:hover { background: #f4f7f0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui { flex: none; width: 38px; height: 22px; margin-top: 2px; border-radius: 999px; background: #7f9086; position: relative; transition: background-color 160ms var(--sc-ease-out); }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 180ms var(--sc-ease-out); }
.toggle input:checked + .toggle__ui { background: var(--sc-accent); }
.toggle input:checked + .toggle__ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.toggle__text { display: grid; }
.toggle__text b { font-weight: 600; }
.toggle__text small { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.4; }
.help { padding: var(--sc-4); border-radius: var(--sc-r-md); background: var(--warn-bg); color: var(--warn-ink); font-size: var(--sc-t-sm); }

/* 2 · line status (authored silence) */
.act--line { padding: clamp(5rem, 22vh, 12rem) clamp(1.25rem, 4vw, 4rem); }
.line { max-width: 72rem; display: grid; gap: var(--sc-8); }
.statusbar { display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-6); font-family: var(--sc-font-mono); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); padding-bottom: var(--sc-4); border-bottom: 1px solid var(--line); }
.statusbar b { color: var(--sc-ink); font-weight: 600; }
.empty { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); color: #66776d; font-weight: 500; letter-spacing: -0.02em; }

/* 3 · the call */
.stage--call { flex-direction: row; align-items: stretch; justify-content: center; gap: var(--sc-5); }
.call { flex: 1 1 auto; max-width: 52rem; display: flex; flex-direction: column; background: var(--sc-surface); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e2), 0 0 0 1px var(--line); overflow: hidden; }
.call__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sc-4); padding: var(--sc-4) var(--sc-5); border-bottom: 1px solid var(--line); }
.call__who { display: flex; align-items: center; gap: var(--sc-4); }
.ring { width: 44px; height: 44px; border-radius: 14px; background: var(--deep); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--lime); }
.call__title { font-size: var(--sc-t-lg); font-weight: 600; display: grid; }
.call__state { grid-area: 1 / 1; }
.call__meta { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); font-family: var(--sc-font-mono); }
.call__clock { white-space: nowrap; font-family: var(--sc-font-mono); font-size: var(--sc-t-lg); color: var(--deep); }
.transcript { list-style: none; margin: 0; padding: var(--sc-5); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sc-3); flex: 1 1 auto; overflow: hidden; }
.transcript li { max-width: 80%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.line-agent { background: #edf3e6; border-bottom-left-radius: 5px; align-self: flex-start; }
.line-caller { background: var(--deep); color: #eef6e6; border-bottom-right-radius: 5px; align-self: flex-end; }
.line-event { align-self: center; max-width: none !important; font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: #2f5a3f; border: 1px dashed var(--lime-2); border-radius: 999px !important; padding: 5px 14px !important; text-align: center; }
.transcript li[hidden] { display: none; }
.transcript:not(:has(li:not([hidden])))::before { content: "Incoming call. Waiting for your agent to answer."; margin: auto; text-align: center; max-width: 24ch; color: var(--sc-ink-soft); font-family: var(--sc-font-mono); font-size: var(--sc-t-sm); }
.agent-card { flex: 0 0 17rem; align-self: flex-start; display: grid; gap: var(--sc-3); padding: var(--sc-5); border-radius: var(--sc-r-lg); background: var(--deep); color: #dcebdf; box-shadow: var(--sc-e2); }
.agent-card__label { font-size: var(--sc-t-xs); text-transform: uppercase; letter-spacing: 0.08em; color: #a9c7b2; }
.agent-card__name { font-weight: 600; color: #fff; font-size: var(--sc-t-lg); line-height: 1.3; overflow-wrap: anywhere; }
.agent-card__acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--sc-t-sm); }
.agent-card__acts li::before { content: "on"; display: inline-block; width: 2.4em; font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--lime); }
.agent-card__acts li.is-off { color: #8fab98; text-decoration: line-through; text-decoration-color: rgb(255 255 255 / 0.35); }
.agent-card__acts li.is-off::before { content: "off"; color: #8fab98; }
.agent-card__foot { font-size: var(--sc-t-sm); color: #b8d3bf; }

/* 4 · record */
.act--record { padding: clamp(4rem, 14vh, 9rem) clamp(1.25rem, 4vw, 4rem); }
.record { max-width: 72rem; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.record h2, .setup h2, .plans__lead h2 { font-size: var(--sc-t-xl); line-height: 1.06; font-weight: 650; letter-spacing: -0.03em; color: var(--deep); }
.record__copy p, .setup__copy p, .plans__lead p { color: var(--sc-ink-soft); margin-top: var(--sc-4); max-width: 46ch; }
.sheet { margin: 0; background: var(--sc-surface); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e3), 0 0 0 1px var(--line); padding: var(--sc-5); }
.sheet__title { font-family: var(--sc-font-mono); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); padding-bottom: var(--sc-3); border-bottom: 1px solid var(--line); }
.sheet__rows { margin: 0; }
.sheet__rows div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--sc-4); padding: var(--sc-3) 0; border-bottom: 1px solid var(--line); }
.sheet__rows dt { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.sheet__rows dd { margin: 0; font-weight: 500; }
.sheet__review { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-2); margin-top: var(--sc-4); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.sheet__review span { margin-right: var(--sc-2); }
.sheet__review button { border: 1.5px solid #7f9086; background: #fff; border-radius: var(--sc-r-md); padding: 7px 12px; font-weight: 500; color: var(--sc-ink); cursor: pointer; transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out); }
.sheet__review button:hover { border-color: #b9c8b4; }
.sheet__review button:active { transform: translateY(1px); }
.sheet__review button[aria-pressed="true"] { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }

/* 5 · routing */
.stage--routing { justify-content: center; padding-inline: 0; }
.plans { gap: var(--sc-5); padding-inline: clamp(1.25rem, 4vw, 4rem); align-items: stretch; }
/* The engine travels scrollWidth minus the viewport; the sidebar narrows the stage, so pay it back
   with a trailing spacer (padding is not counted in a flex row's scrollWidth). */
.sc-on .plans::after { content: ""; flex: 0 0 calc(var(--nav-w) + 0.5rem); }
.plans > * { flex: 0 0 auto; }
.plans__lead { width: min(26rem, 80vw); align-self: center; padding-right: var(--sc-5); }
.plan { width: min(21rem, 78vw); display: flex; flex-direction: column; gap: var(--sc-3); padding: var(--sc-6) var(--sc-5); background: var(--sc-surface); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e2), 0 0 0 1px var(--line); }
.plan h3 { font-size: var(--sc-t-xl); font-weight: 650; color: var(--deep); }
.plan p { color: var(--sc-ink-soft); }
.plan__status { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); }
.plan__status--ok { color: #2f6b2a; }
.plan__status--blocked { color: #8a3b22; }
.plan__meta { margin-top: auto; padding-top: var(--sc-3); border-top: 1px solid var(--line); font-size: var(--sc-t-sm); }
.plan--health { background: linear-gradient(160deg, #eef6e2, #fff 65%); box-shadow: var(--sc-e2), 0 0 0 1.5px var(--lime-2); }
.plan__status--soon { color: #2f6b2a; }
.plan__link { margin-top: auto; font-weight: 600; color: var(--sc-accent); }
.plans__note { width: min(22rem, 78vw); align-self: center; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); padding-left: var(--sc-4); border-left: 1px solid var(--line); }

/* 6 · setup (the close) */
.act--setup { padding: clamp(4rem, 12vh, 8rem) clamp(1.25rem, 4vw, 4rem) var(--sc-6); }
.setup { max-width: 72rem; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.setup__copy .crumb { margin-bottom: var(--sc-3); }
.setup__copy .fine { font-size: var(--sc-t-sm); padding: var(--sc-3) var(--sc-4); border-radius: var(--sc-r-md); background: var(--warn-bg); color: var(--warn-ink); }
.form { display: grid; gap: var(--sc-4); background: var(--sc-surface); border-radius: var(--sc-r-lg); padding: var(--sc-6); box-shadow: var(--sc-e3), 0 0 0 1px var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4); }
.form label { display: grid; gap: 6px; font-size: var(--sc-t-sm); font-weight: 600; }
.opt { font-weight: 400; color: var(--sc-ink-soft); }
.form [aria-invalid="true"] { border-color: #b23b25 !important; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: var(--sc-t-sm); font-weight: 600; margin-bottom: var(--sc-2); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sc-2); }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 7px 13px; border-radius: var(--sc-r-md); border: 1.5px solid #7f9086; font-weight: 500; cursor: pointer; transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
.chips span:hover { border-color: #b9c8b4; }
.chips input:checked + span { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.consent { display: flex !important; align-items: flex-start; gap: var(--sc-3) !important; font-weight: 400 !important; color: var(--sc-ink-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  border: 0; border-radius: var(--sc-r-md); padding: 15px 20px; cursor: pointer;
  background: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 600; font-size: 1rem;
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.submit:hover { background: var(--deep); }
.submit:active { transform: scale(0.98); }
.submit[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: var(--sc-t-sm); min-height: 1.4em; }
.form-status.ok { color: #2f6b2a; font-weight: 600; }
.form-status.err { color: #a3361f; }
.form.done > :not(.form-status) { display: none; }
.form.done .form-status { font-size: var(--sc-t-lg); padding: var(--sc-5) 0; }
.foot { grid-column: 1 / -1; display: flex; gap: var(--sc-5); justify-content: space-between; padding-top: var(--sc-6); margin-top: var(--sc-6); border-top: 1px solid var(--line); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

/* ------------------------------------------------ the scroll experience
   Only when boot.js has decided motion is welcome. Without it (reduced
   motion, no JS) the page is the static layout above with everything shown. */
html:not(.sc-on) [data-sc-cue],
html:not(.sc-on) [data-sc-in],
html:not(.sc-on) [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; }
html:not(.sc-on) .sc-stage, html:not(.sc-on) [data-sc-stage] { position: static; height: auto; }
html:not(.sc-on) .call__state--ring { display: none; }
html:not(.sc-on) .saved { display: none; }
html:not(.sc-on) .stage--routing .plans { flex-wrap: wrap; display: flex; }
html:not(.sc-on) .act--builder, html:not(.sc-on) .act--call, html:not(.sc-on) .act--routing { padding-block: var(--sc-6); }

/* Reserve pinned heights before the engine mounts (CLS). */
.sc-on .act--builder { height: 170vh; }
.sc-on .act--call { height: 420vh; }
.sc-on .act--routing { height: 300vh; }
.sc-on [data-sc-stage] { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }

.sc-on .stage--call { padding-block: clamp(1.25rem, 5vh, 3rem); }
/* Ringing until the call is answered, then live. Driven by act progress. */
.sc-on .act--call { --answered: clamp(0, calc((var(--sc-p, 0) - 0.05) * 40), 1); }
.sc-on .call__state--ring { opacity: calc(1 - var(--answered)); }
.sc-on .call__state--live { opacity: var(--answered); }
.sc-on .ring::before { animation: ring 1s var(--sc-ease-out) infinite; animation-play-state: running; }
.sc-on .act--call[data-answered] .ring::before { animation: none; }
@keyframes ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.72); } }
.sc-on .transcript li { animation: line-in 360ms var(--sc-ease-out) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .agent-card { display: none; }
  .builder { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-w: 0px; --bar-h: 3.5rem; }
  body { padding-top: var(--bar-h); }
  .rail-nav { inset: 0 0 auto 0; width: auto; height: var(--bar-h); flex-direction: row; align-items: center; gap: var(--sc-4); padding: 0 var(--sc-4); }
  .tenant, .rail-nav__status { display: none; }
  .rail-nav nav { overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, #000 85%, transparent); }
  .rail-nav ul { display: flex; gap: 2px; white-space: nowrap; }
  .rail-nav [data-nav] { padding: 7px 10px; }
  .mark span { display: none; }
  .sc-on [data-sc-stage] { top: var(--bar-h); height: calc(100svh - var(--bar-h)); }
  .builder { grid-template-columns: 1fr; }
  .panel--overview { grid-row: auto; }
  .record, .setup { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stage { gap: var(--sc-4); padding: var(--sc-4); }
  .page-head h1 { font-size: 2.1rem; }
  .lede { font-size: 1rem; }
  .panel { padding: var(--sc-4); }
  .fields { gap: var(--sc-3); margin-top: var(--sc-3); }
  .greeting { margin-top: var(--sc-3); padding: var(--sc-3); }
  .greeting__text { font-size: 1rem; }
  .toggle__text small { display: none; }
  .toggles { margin-top: var(--sc-2); }
  .transcript { padding: var(--sc-4); }
  .transcript li { max-width: 92%; font-size: 0.95rem; }
  .call__head { padding: var(--sc-3) var(--sc-4); }
  .form { padding: var(--sc-5) var(--sc-4); }
  .form .row { grid-template-columns: 1fr; }
  .sheet__rows div { grid-template-columns: 6rem 1fr; }
}
/* Short screens: the builder cannot hold still in less than this, so it scrolls normally. */
@media (max-height: 700px) and (max-width: 900px), (max-height: 600px) {
  .panel__hint { display: none; }
  .page-head .crumb { display: none; }
}

/* Builder that doesn't fit the screen scrolls as an ordinary section. */
.sc-on .act--builder.is-flow { height: auto; }
.sc-on .act--builder.is-flow [data-sc-stage] { position: static; height: auto; overflow: visible; }
/* If a resize makes the pinned builder taller than the screen, let it scroll rather than clip. */
.sc-on .act--builder:not(.is-flow) [data-sc-stage] { overflow-y: auto; }

/* Short laptops: compact the builder so it can hold still. */
@media (min-width: 901px) and (max-height: 880px) {
  .act--builder .stage { padding-block: var(--sc-5); gap: var(--sc-4); }
  .page-head { gap: var(--sc-2); }
  .page-head h1 { font-size: clamp(2rem, 1.2rem + 2vw, 2.8rem); }
  .lede { font-size: 1rem; max-width: 60ch; }
  .panel { padding: var(--sc-4); }
  .fields { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sc-3); margin-top: var(--sc-3); }
  .field:first-child { grid-column: auto; }
  .greeting { margin-top: var(--sc-3); padding: var(--sc-3) var(--sc-4); }
  .greeting__text { font-size: 1.05rem; }
  .toggles { margin-top: var(--sc-2); }
  .toggle { padding-block: 6px; }
  .toggle__text small { display: none; }
  .help { display: none; }
  .panel--overview { grid-row: auto; }
}
