/* Request workbench: the book's Operate surface, using only its shared tokens. */
[hidden] { display: none !important; }
.request-page { background: var(--paper); color: var(--ink); margin: 0; font: var(--text-sm)/1.5 var(--sans); }
.request-page * { box-sizing: border-box; }
.request-page .topbar { position: sticky; top: 0; z-index: 5; }
.request-page button, .request-page input, .request-page select, .request-page textarea { font: inherit; }
/* The row the page ends on is the book's, not the workbench's: its button keeps the book's weight. */
.request-page .lesson-footer .button { font-weight: 600; }
.request-page button, .request-page a, .request-page input, .request-page select, .request-page textarea { touch-action: manipulation; }
.request-page button:focus-visible, .request-page a:focus-visible, .request-page input:focus-visible,
.request-page select:focus-visible, .request-page textarea:focus-visible, .request-page summary:focus-visible,
.request-page pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rq-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.rq-heading > div { flex: 1; min-width: 0; }
.rq-heading h1 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.rq-heading .lesson-title { margin: 0; }
.request-embedded .rq-heading { max-width: 1049px; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.rq-heading p:not(.lesson-meta) { margin: 0; color: var(--muted); max-width: var(--measure); font-size: var(--text-body); line-height: 1.5; }
.rq-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.rq-footer a:hover { text-decoration: underline; }
/* The form stands over the response; where the workbench is wide enough, the two stand side by side (the container
   query at the foot of this sheet). */
.rq-workbench { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; border-radius: var(--radius-card); box-shadow: var(--raise); outline: 1px solid transparent; overflow: clip; }
.rq-config { background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.rq-section-heading { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.rq-section-heading h2 { font-size: var(--text-sm); font-weight: 600; margin: 0; }
.rq-text-button, .rq-theme { border: 0; border-radius: var(--radius-sm); color: var(--muted); background: transparent; padding: 10px 6px; cursor: pointer; font-size: var(--text-xs) !important; }
.rq-text-button:hover, .rq-theme:hover { background: var(--hover); color: var(--ink); }
.rq-section-actions { display: flex; gap: 12px; }
.rq-config fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 18px 24px; min-width: 0; }
.rq-config legend { float: left; width: 100%; margin-bottom: 15px; padding: 0; font-weight: 600; }
.rq-config legend + * { clear: both; }
.rq-config label { display: block; font-size: var(--text-xs); color: var(--muted); margin-bottom: 6px; }
.rq-config input:not([type=checkbox]), .rq-config select, .rq-config textarea { width: 100%; border: 1px solid var(--line-strong); color: var(--ink); background: var(--paper); border-radius: var(--radius-sm); padding: 9px 10px; min-height: 40px; }
.rq-config input:disabled, .rq-config textarea:disabled, .rq-config select:disabled { opacity: .65; }
.rq-config input::placeholder { color: var(--faint); }
.rq-config textarea { resize: vertical; line-height: 1.55; }
.rq-help { color: var(--faint); font-size: var(--text-xs); line-height: 1.45; margin: 6px 0 0; }
.rq-toggle-row { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 8px; }
.rq-toggle-row label { margin: 0; color: var(--ink); font-size: var(--text-sm); cursor: pointer; flex: 1; }
.rq-toggle-row code { font: var(--text-xs) var(--mono); color: var(--faint); margin-left: 8px; }
.rq-toggle-row input { appearance: none; width: 32px; height: 19px; border-radius: var(--radius-pill); background: var(--line-strong); position: relative; cursor: pointer; margin: 0; flex: 0 0 32px; }
.rq-toggle-row input::before { content: ""; position: absolute; width: 13px; height: 13px; background: var(--surface); border-radius: 50%; top: 3px; left: 3px; }
.rq-toggle-row input:checked { background: var(--accent); }
.rq-toggle-row input:checked::before { left: 16px; background: var(--on-accent); }
.rq-input .rq-toggle-row { margin-top: 12px; }
.rq-option + .rq-option { margin-top: 16px; }
.rq-inline { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--faint); font-size: var(--text-xs); }
.rq-inline label { margin: 0; }
.rq-inline input { width: 88px !important; min-height: 34px !important; padding: 5px 9px !important; }
.rq-advanced { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
.rq-advanced summary { cursor: pointer; font-size: var(--text-xs); padding: 4px 0; color: var(--muted); }
.rq-advanced summary span { display: block; padding-left: 14px; color: var(--faint); margin-top: 3px; }
.rq-advanced[open] summary { margin-bottom: 16px; }
.rq-code-input { font: var(--text-xs)/1.55 var(--mono) !important; white-space: pre; }
.rq-send { padding: 16px 24px 22px; }
/* With no error to show, the form ends at its last option. */
.rq-send:has(> #form-error:empty) { padding: 0; }
.rq-primary { background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius); padding: 11px 16px; width: auto; min-width: 160px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; }
.rq-primary:hover { background: var(--accent-ink); }
.rq-primary:disabled { opacity: .6; cursor: progress; }
#form-error { font-size: var(--text-xs); color: var(--danger); margin: 0; }
#form-error:not(:empty) { margin-bottom: 12px; }
.rq-send > .rq-help { text-align: center; }
.rq-inspect { background: var(--surface); min-width: 0; display: flex; }
.rq-response { background: var(--surface); }
.rq-badge { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 6px; color: var(--faint); font-size: var(--text-xs); }
.rq-badge.is-sent { color: var(--ok); border-color: var(--ok); }
.rq-endpoint { display: flex; align-items: center; gap: 12px; padding: 15px 24px 9px; font-size: var(--text-xs); overflow-wrap: anywhere; }
.rq-endpoint code { flex: 0 0 auto; white-space: nowrap; font: 600 var(--text-xs) var(--mono); color: var(--accent-ink); background: var(--accent-pale); padding: 3px 6px; border-radius: var(--radius-sm); }
.rq-endpoint span { font-family: var(--mono); color: var(--muted); }
.rq-headers { padding: 0 24px 10px; font-size: var(--text-xs); color: var(--muted); }
.rq-headers summary { cursor: pointer; }
.rq-headers summary span { margin-left: 8px; color: var(--faint); }
.rq-headers pre { font-size: var(--text-xs); margin: 12px 0 0; white-space: pre-wrap; }
.request-page pre { font-family: var(--mono); line-height: 1.6; tab-size: 2; }
.rq-json { height: 325px; margin: 0; padding: 16px 24px 24px; overflow: auto; background: var(--sunken); font-size: var(--text-xs); border-top: 1px solid var(--line); }
/* What the workbench is not, said once under the card. */
.rq-page-note { margin: 10px 0 0; color: var(--faint); font-size: var(--text-xs); }
.rq-wire-note { display: flex; justify-content: space-between; gap: 12px; padding: 10px 24px; color: var(--faint); font-size: var(--text-xs); }
.rq-response { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rq-status { color: var(--faint); font-size: var(--text-xs); }
.rq-status[data-state=success] { color: var(--ok); }
.rq-status[data-state=error] { color: var(--danger); }
.rq-status[data-state=loading] { color: var(--accent-ink); }
.rq-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 12px; }
.rq-metrics div { display: grid; gap: 4px; }
/* A measurement's name; its help button and the explanation that opens are spans of their own. */
.rq-metrics div > span:first-child { color: var(--faint); font-size: var(--text-xs); }
/* A status, a code and a count are values, set in the sans with figures of one width. */
.rq-metrics output { font: var(--text-sm) var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rq-tabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); }
/* Each column's top row holds only its tabs, and the column's one action at its right: what can be chosen is all
   that stands there. The left column sets the request with the form, or shows it as the JSON that is sent. */
.rq-section-heading { height: 52px; }
.rq-section-heading .rq-tabs { flex: 1; align-self: stretch; min-width: 0; gap: 24px; padding: 0; border-bottom: 0; overflow: visible; }
.rq-section-heading .rq-tabs button[role=tab] { display: flex; align-items: center; gap: 4px; padding: 0; margin-bottom: -1px; }
/* A column's name is for a screen reader; the tabs say what the column holds. */
.rq-unseen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Reset is a plain button: the sunken fill and no outline. */
.rq-plain-button { flex: none; min-height: 30px; padding: 4px 10px; border: 0; border-radius: var(--radius-sm);
  background: var(--sunken); color: var(--ink); font-size: var(--text-xs); cursor: pointer; }
.rq-plain-button:hover { background: color-mix(in srgb, var(--ink) 8%, var(--sunken)); }
.rq-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--faint); padding: 13px 0; cursor: pointer; white-space: nowrap; }
.rq-tabs button[aria-selected=true] { color: var(--ink); border-color: var(--accent); }
/* A tab is as tall as the row of tabs, at the top of a card that clips or in a list that scrolls sideways, so its
   ring stands 2px inside its top and bottom, where neither cuts it, and 6px clear of its words at its sides. */
.rq-tabs [role="tab"] { position: relative; }
.request-page .rq-tabs [role="tab"]:focus-visible { outline: none; }
.rq-tabs [role="tab"]:focus-visible::after {
  content: ""; position: absolute; inset: 2px -6px; border: 2px solid var(--accent); border-radius: var(--radius-sm);
  pointer-events: none;
}
/* The request's toolbar stands at the top of the pane that scrolls it, so its buttons' rings stand inside them. */
.request-page .rq-request-toolbar .rq-text-button:focus-visible { outline-offset: -2px; }
#event-count { font-family: var(--mono); font-size: var(--text-xs); color: var(--faint); }
.rq-output-panel { min-height: 320px; padding: 20px 24px; }
.rq-empty { display: grid; justify-items: center; align-content: center; text-align: center; height: 100%; color: var(--faint); }
.rq-empty svg { margin-bottom: 8px; color: var(--wire); }
.rq-empty h3 { color: var(--muted); margin: 8px 0; font-size: var(--text-sm); font-weight: 600; }
.rq-empty p { margin: 0; font-size: var(--text-xs); line-height: 1.6; }
.rq-output-panel pre { margin: 0; font-size: var(--text-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
/* The model's reply is read as prose, in the sans like the rest of the page. */
.rq-output-panel .rq-prose { font-family: var(--sans); font-size: var(--text-body); line-height: 1.6; white-space: pre-wrap; }
.rq-output-panel details { margin-top: 18px; color: var(--muted); }
.rq-output-panel h3 { font-size: var(--text-sm); font-weight: 600; margin: 18px 0 10px; }
.rq-error { color: var(--danger); background: var(--danger-pale); padding: 12px; border-radius: var(--radius-sm); font-size: var(--text-sm); }
.rq-events { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: var(--text-xs); }
.rq-events li { display: grid; grid-template-columns: 64px 70px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rq-events time { color: var(--faint); }
.rq-events code { color: var(--accent-ink); }
.rq-events span { white-space: pre-wrap; overflow-wrap: anywhere; }
/* An event's data that wraps hangs two places in from its start, as a raw line does. */
.rq-events li > span { padding-left: 2ch; text-indent: -2ch; }
/* On a phone an event's time and type stand over its data, which takes the whole row, so it wraps at its commas and
   spaces rather than mid-word. */
@media (max-width: 600px) {
  .rq-events li { grid-template-columns: 64px 1fr; gap: 2px 12px; }
  .rq-events li > span { grid-column: 1 / -1; overflow-wrap: break-word; }
}
.rq-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; font-size: var(--text-xs); color: var(--faint); }
.rq-footer p { margin: 0; }

@media (max-width: 1000px) { .rq-heading { align-items: start; } .rq-section-heading, .rq-config fieldset { padding-left: 18px; padding-right: 18px; } }
@media (max-width: 720px) {
  .rq-heading { display: block; } .rq-heading h1 { font-size: var(--text-xl); }
  .rq-heading p:not(.lesson-meta) { font-size: var(--text-sm); }
  .request-page .brand-sub { display: none; } .request-page .brand > span { font-size: var(--text-sm); }
  .request-page .brand-mark { width: 24px; height: 24px; }
  .request-page .topbar { padding: 0 16px; gap: 12px; flex-wrap: wrap; height: auto; min-height: 64px; }
  .request-page .top-actions { margin-left: auto; }
  .rq-json { height: 300px; padding: 14px 18px; } .rq-output-panel { padding: 18px; }
  .rq-wire-note { display: block; padding: 10px 18px; } .rq-wire-note span { display: block; }
  .rq-metrics { grid-template-columns: 1fr 1fr; padding: 16px 18px; } .rq-tabs { padding: 0 18px; gap: 20px; }
  .rq-footer { display: block; } .rq-footer a { display: inline-block; margin-top: 8px; }
}

.request-page .skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--surface); padding: 12px; }
.request-page .skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 720px) { .rq-footer a { display: block; } }

/* The introduction lives inside the course shell, beside its directory. */
.main.request-embedded {
  margin: var(--header-height) 0 0 var(--sidebar-width);
  max-width: none;
  padding-top: 28px;
  padding-bottom: 24px;
}
@media (max-width: 720px) {
  .rq-heading .rq-primary { margin-top: 18px; }
}

.rq-config .rq-input-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.rq-config .rq-input-heading label { margin: 0; font-weight: 400; }
.rq-config .rq-input-heading + textarea { clear: both; }

.rq-limit-row .rq-limit-value { margin: 0; flex: 0 0 auto; }
.rq-limit-value input { width: 72px !important; }

/* Keep the live reply and its send action together; inspect the payload on demand. */
.rq-inspect { position: static; }
.rq-response .rq-primary { min-width: 132px; min-height: 36px; padding: 8px 12px; font-size: var(--text-xs); }
.rq-response .rq-output-panel { height: auto; flex: 1 0 auto; overflow: visible; }
.rq-response { min-height: 0; }
.rq-label-with-help { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rq-toggle-row > .rq-label-with-help { flex: 1; }
.rq-toggle-row .rq-label-with-help > label { flex: 0 1 auto; }
.rq-label-with-help > label { margin-bottom: 0; }
.rq-hint { display: inline-flex; align-items: center; flex: 0 0 auto; }
.rq-help-trigger { display: inline-flex; align-items: center; justify-content: center; padding: 3px;
  min-height: 24px; min-width: 24px; border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--faint); cursor: help; }
.rq-help-trigger:hover, .rq-help-trigger:focus-visible { color: var(--ink); background: var(--hover); }
/* A help button's ring hugs the round button, so it stands clear of the words on either side of it. */
.request-page .rq-help-trigger:focus-visible { outline-offset: 0; }
/* A choice of message: the browser's own control is drawn flat, as a field of the form, with a chevron of the book's
   icons at its end. The chevron is a mask, so it takes its colour from the tokens. */
.rq-select { position: relative; display: block; }
.rq-select > select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  border-radius: var(--radius); box-shadow: 0 1px 2px var(--hover); transition: border-color 120ms ease-out;
  /* A message longer than the column ends in an ellipsis, never cut through a letter; the list shows it whole. */
  text-overflow: ellipsis; }
.rq-select > select:hover { border-color: var(--wire); }
.rq-select::after {
  content: ""; position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; margin-top: -8px;
  background: var(--muted); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rq-tooltip { position: fixed; z-index: 50; width: min(290px, calc(100vw - 24px)); padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--muted); font: 400 var(--text-xs)/1.5 var(--sans); text-align: left; white-space: normal;
  box-shadow: 0 4px 16px var(--line); visibility: hidden; }
.rq-hint[data-open] .rq-tooltip { visibility: visible; }
.rq-config .rq-input-heading .rq-label-with-help { flex: 1; }
.rq-config .rq-limit-row > .rq-label-with-help > label { flex: 0 1 auto; white-space: nowrap; }
/* The Output limit row holds its label, the field's name in code, the help button, the count and the switch on one
   line, some 360 wide. Where the form's own column is too narrow for all of them, whatever the window, the code name
   gives way. */
.rq-config { container: rq-form / inline-size; }
@container rq-form (max-width: 409px) {
  .rq-limit-row > .rq-label-with-help code { display: none; }
}
@media (max-width: 720px) {
  .rq-response .rq-section-heading { padding-left: 18px; padding-right: 18px; }
}
/* Send comes before the response's tabs, as the reader goes from the form to sending to what came back; beside the
   tabs it stands at their right. On a phone it takes a row of its own over them, so it never covers one. */
.rq-response > .rq-section-heading .rq-primary { order: 1; }
@media (max-width: 560px) {
  .rq-response > .rq-section-heading { flex-wrap: wrap; height: auto; gap: 0; padding-top: 12px; }
  .rq-response > .rq-section-heading .rq-primary { order: 0; flex: 1 0 100%; min-height: 40px; }
  .rq-response > .rq-section-heading .rq-tabs { flex: 1 0 100%; min-height: 46px; }
}

.rq-tabs { overflow-x: auto; gap: 18px; }
#panel-request { padding: 0; }
.rq-request-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 18px; border-bottom: 1px solid var(--line); }
#panel-request .rq-json { height: auto; overflow: visible; padding: 12px 18px; }
@media (max-width: 720px) { .rq-tabs { gap: 14px; } }

/* Measurements stay available without taking space from the reply. */
.rq-metrics { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 6px 16px; padding: 9px 18px; border-top: 1px solid var(--line); border-bottom: 0; }
.rq-metrics div { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.rq-metrics div > span:first-child, .rq-metrics output { font-size: var(--text-xs); }
/* Elapsed and Tokens say how they are counted with a help button, as the form's options do; it stands centred on
   the line and takes no more of the row's height than the words. */
.rq-metrics .rq-hint { align-self: center; margin-block: -3px; }
/* Where the reply's column is too narrow for the four measurements on one line, they stand two by two, in two
   columns, rather than leaving Tokens alone on a second line. A phone's column wraps them as they fit. */
.rq-response { container: rq-response / inline-size; }
@container rq-response (400px <= width < 600px) {
  .rq-response > .rq-metrics { display: grid; grid-template-columns: repeat(2, max-content); justify-content: space-between; }
}
/* A value that updates is as wide as the longest it shows: "Request failed", a scripted reply's "3.78 s" and
   "13 in · 22 out". A reply then moves none of the values across the row. */
.rq-response > .rq-metrics output { min-width: 3ch; }
.rq-response > .rq-metrics #status, .rq-response > .rq-metrics #usage { min-width: 14ch; }
.rq-response > .rq-metrics #elapsed { min-width: 6ch; }
#finish { font-size: var(--text-xs); }
@media (max-width: 720px) {
  .rq-metrics { justify-content: flex-start; gap: 6px 14px; padding: 9px 18px; }
}

/* Request metadata shares one quiet row; JSON gets the main panel space. */
.rq-request-toolbar { gap: 10px; padding: 4px 12px; }
.rq-request-toolbar .rq-badge { border: 0; padding: 0; font-size: var(--text-xs); flex: 0 0 auto; }
.rq-request-toolbar .rq-endpoint { flex: 1; min-width: 0; padding: 0; gap: 6px; }
.rq-request-toolbar .rq-endpoint code { background: transparent; padding: 0; font-size: var(--text-xs); font-weight: 400; }
.rq-request-toolbar .rq-endpoint span { min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: var(--text-xs); }
.rq-request-toolbar .rq-section-actions { flex: 0 0 auto; gap: 4px; }
.rq-request-toolbar .rq-text-button { padding: 4px 6px; min-height: 28px; font-size: var(--text-xs) !important; }
#panel-request .rq-headers { padding: 8px 18px; border-top: 1px solid var(--line); }

/* One page scrolls both columns; the reply fills the grid down to its metrics. */
.rq-config > .rq-section-heading, .rq-response > .rq-section-heading {
  position: sticky; top: var(--header-height); z-index: 3;
  background: var(--surface); flex-shrink: 0;
}
.rq-response > .rq-metrics { flex-shrink: 0; }

/* The form and the response stand side by side where the workbench is 900 wide or more, whatever the window: from
   1024px the sidebar is a drawer, so the card is as wide there as beside the sidebar at 1280px. Side by side, the
   workbench keeps one height, with its tabs over each column and the measurements under the reply always in view.
   Each column's view scrolls on its own under its tabs, so opening More options scrolls the form and not the reply,
   and a long list of events scrolls the events and not the form; the edge a view holds more past fades (edges.mjs),
   so no line is cut through its letters at the tabs or the measurements. */
.request-main { container: rq-page / inline-size; }
@container rq-page (min-width: 900px) {
  .rq-workbench { grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); height: var(--workbench-height);
    grid-template-rows: minmax(0, 1fr); overflow: clip; }
  .rq-config { border-right: 1px solid var(--line-strong); border-bottom: 0; }
  .rq-config, .rq-response { display: flex; flex-direction: column; min-height: 0; }
  .rq-inspect { min-height: 0; }
  .rq-workbench [role="tabpanel"] { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .rq-config > .rq-send { flex: none; }
  .rq-empty { height: min(280px, calc(var(--workbench-height) - 150px)); }
  .rq-config > .rq-section-heading, .rq-response > .rq-section-heading { position: static; }
  .rq-response > .rq-metrics { position: static; }
}
/* Stacked, a response pane keeps one height, 420px, and scrolls inside, its edges fading (edges.mjs), as Streaming's
   do: the Raw response and the events no longer grow the workbench by thousands of pixels on a phone, and a change of
   tab moves nothing under it (R7-04). */
@container rq-page (max-width: 899px) {
  .rq-workbench .rq-output-panel { height: 420px; overflow-y: auto; overscroll-behavior: contain; }
}

.rq-request-toolbar .rq-badge.is-invalid { color: var(--danger); }

.rq-response > .rq-error { margin: 10px 18px; flex-shrink: 0; }

.rq-config legend.sr-only { float: none; width: 1px; margin: 0; }
