/*
 * Signup, dashboard and admin.
 *
 * Shares tokens.css with the landing page on purpose, and now shares its
 * masthead, buttons and labels too: arriving at the dashboard after signing up
 * should feel like the same product. tokens.css is linked ahead of this file by
 * the page's head (src/web/layout.tsx), never @imported: see src/web/assets.ts.
 *
 * The editorial language applied to an application rather than a magazine: the
 * panel is the unit, a 1px ink edge around a paper tint, titled with the same
 * small-caps mono label the landing page sets its section numbers in. Rules do
 * the work that borders and shadows would do elsewhere.
 */

/*
 * A `display` declaration on a class beats the UA stylesheet's
 * `[hidden] { display: none }`, so `.field { display: grid }` would keep the
 * invite-code and plan fields visible on /login even after auth.ts hides them.
 */
[hidden] {
  display: none !important;
}

/* .shell is in tokens.css; the signup column is the same frame, narrower. */
.narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted {
  color: var(--fg-muted);
}
.bad {
  color: var(--warn);
}
.ok {
  color: var(--fg-body);
}

/*
 * Same display type as the landing page, one size down: these are page titles
 * in an application, not a cover line.
 */
h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 18px 0 0;
}

/* The toolbar buttons sit inline; only the auth form's submit spans its column. */
.site-nav .btn {
  padding: 8px 14px;
  font-size: 12px;
}

/* --- auth ------------------------------------------------------------------- */

.auth {
  padding: 64px 0 80px;
}

.auth__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-body);
  margin: 18px 0 0;
  text-wrap: pretty;
}

.form {
  display: grid;
  gap: 20px;
  margin: 32px 0 0;
}

.field {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

.field__label {
  color: var(--fg-muted);
  padding: 0;
}

.field__hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-faint);
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field select,
.field textarea {
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 14px 15px;
  background: var(--bg);
  border: 1px solid var(--rule-interactive);
  color: var(--fg);
  width: 100%;
}
.field textarea {
  resize: vertical;
}
/*
  The caret is drawn rather than inherited: the platform one is the only part of
  a native select that will not take the surrounding type, and one blue chevron
  is enough to make the whole console look borrowed.
*/
.field select {
  appearance: none;
  border-radius: 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
    linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field select option:disabled {
  color: var(--fg-faint);
}
.field input::placeholder {
  color: var(--fg-faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field textarea::placeholder {
  color: var(--fg-faint);
}

.choices {
  display: grid;
  gap: 8px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  accent-color: var(--accent);
  padding: 13px 15px;
  border: 1px solid var(--rule-interactive);
  font-size: 15px;
  color: var(--fg-body);
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--fg);
}
.choice strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--fg);
  margin-right: 6px;
}

.form__error {
  font-size: 14px;
  color: var(--warn);
  border-left: 2px solid var(--warn);
  padding-left: 12px;
  margin: 0;
}

.auth__switch {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule);
}

/*
 * The consent line under the submit button. Quieter than a field hint and
 * without its left padding — it belongs to the form as a whole, not to the
 * field above it.
 */
.auth__legal {
  display: block;
  padding-left: 0;
  margin: 0;
  line-height: 1.5;
}
.auth__legal a {
  color: var(--fg-muted);
}

/*
 * The two steps that set a password require the checkbox above rather than
 * just printing the sentence, so the label needs the checkbox and its text
 * side by side instead of the plain block the paragraph used to be.
 */
.auth__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  accent-color: var(--accent);
}
.auth__consent input {
  margin-top: 3px;
  flex: none;
}

.keyout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--rule-heavy);
  border-left: 3px solid var(--accent-edge);
  flex-wrap: wrap;
}
.keyout code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent-text);
  word-break: break-all;
  flex: 1;
  min-width: 240px;
}
.keyout--inline {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--rule-heavy);
  border-left: 3px solid var(--accent-edge);
}

/* --- dashboard -------------------------------------------------------------- */

.loading {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 64px 0;
}

.dash {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  padding: 32px 0 64px;
  align-items: start;
}

.dash__col {
  display: grid;
  gap: 20px;
  /*
   * A grid item defaults to `min-width: auto`, which refuses to shrink below
   * its content's min-content width. One long unbroken value — an endpoint URL,
   * an API key prefix — was enough to push the whole column past a phone
   * viewport and give the page a horizontal scrollbar.
   */
  min-width: 0;
}

/* The unit of the application: an ink edge around a paper tint, titled. */
.panel {
  border: 1px solid var(--rule-heavy);
  background: var(--surface);
  /*
   * Panels are grid items, and a grid item's default `min-width: auto` refuses
   * to shrink below its content's min-content width. One long endpoint URL or a
   * row of buttons was enough to push a panel — and with it the whole page —
   * wider than a phone viewport. Let it shrink; the content inside wraps or
   * scrolls in its own container.
   */
  min-width: 0;
}

.panel__title {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-heavy);
  color: var(--fg-muted);
}

.panel__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--rule-heavy);
  color: var(--fg-muted);
}

.panel__foot {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-faint);
  line-height: 1.7;
  border-top: 1px solid var(--rule);
}

/*
 * The billing doctor's findings.
 *
 * Deliberately not `.panel__foot`'s faint grey and not a table. Each of these
 * is a sentence naming something that is wrong right now, and the panel foot
 * style is for the explanatory prose *underneath* a table — reusing it would
 * make the findings look like more of the same and get them skimmed.
 */
.findings {
  margin: 0;
  padding: 14px 16px 14px 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg);
}

.findings li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

.spec {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.spec__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.spec__row:last-child {
  border-bottom: 0;
}
.spec__row dt {
  color: var(--fg-faint);
  white-space: nowrap;
}
.spec__row dd {
  margin: 0;
  color: var(--fg);
  text-align: right;
  word-break: break-all;
}

/* live concurrency */

.live__body {
  padding: 20px 16px;
}

.live__figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.live__count {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.live__of {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-faint);
}

/* The blocks themselves are the shared .meter component, below. */
.live__meter {
  margin: 16px 0 0;
}

.live__queue {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-body);
  margin: 16px 0 0;
}
.live__hint {
  color: var(--fg-faint);
}

/* keys */

.keyrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.keyrow:last-child {
  border-bottom: 0;
}
.keyrow code {
  color: var(--fg);
}
.keyrow--revoked {
  color: var(--fg-faint) !important;
  text-decoration: line-through;
}
.keyrow__meta {
  color: var(--fg-faint);
  font-size: 11.5px;
  flex: 1;
}

.copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--rule-interactive);
  color: var(--fg-dim);
}
/* Hover comes from tokens.css — one treatment for this button everywhere. */
.copy:disabled {
  opacity: 0.5;
}

/* requests table */

.table-scroll {
  overflow-x: auto;
}
.table-scroll--flush {
  border: 0;
}

.grid {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.grid th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule-heavy);
  white-space: nowrap;
}
.grid td {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-body);
  white-space: nowrap;
}
.grid tbody tr:last-child td {
  border-bottom: 0;
}

/*
 * The state utilities, restated for a table cell.
 *
 * `.grid td` sets a colour and is a class-plus-element selector, so a bare
 * `.bad` on the cell loses to it on specificity and renders as ordinary body
 * text. Every status, state and staleness column in the app was written
 * expecting otherwise, which is how a 429 and a 200 came to look identical on
 * the dashboard's own request log. Scoped to .grid rather than fixed with
 * !important on the utilities themselves: the utilities are correct everywhere
 * else, and it is this selector that is too strong.
 */
.grid td.bad,
.grid td.warn {
  color: var(--warn);
}
.grid td.ok {
  color: var(--fg-body);
}
.grid td.muted {
  color: var(--fg-muted);
}
.grid td.accent {
  color: var(--accent-text);
}
.grid--requests {
  min-width: 560px;
}

.empty {
  color: var(--fg-faint) !important;
  white-space: normal !important;
  padding: 24px 16px !important;
}
/*
 * The same class outside a table. Table cells inherit the grid's mono face and
 * size; a bare <p> in a panel does not, and set in the body sans it reads as a
 * heading rather than as the absence of rows.
 */
p.empty {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* --- admin ------------------------------------------------------------------ */

.admin {
  display: grid;
  gap: 20px;
  padding: 32px 0 64px;
}

.inviteform {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  flex-wrap: wrap;
}
.inviteform .field {
  flex: 1 1 18em;
}
.field--narrow {
  flex: 0 0 8em !important;
}
.field--wide {
  flex: 1 1 100%;
}
.field input[type="number"] {
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 14px 15px;
  background: var(--bg);
  border: 1px solid var(--rule-interactive);
  color: var(--fg);
  width: 100%;
}
.inviteform + .form__error {
  margin: 0 16px 16px;
}

/* /admin/outreach: each list's default wording, folded away under its table. */
.outreach-template {
  border-top: 1px solid var(--rule);
}
.outreach-template summary {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted);
  cursor: pointer;
}
.outreach-template .inviteform {
  padding-top: 0;
}

/* The per-recipient composer: the waitlist dialog's frame, wide enough to write in. */
.dialog--compose {
  max-width: 640px;
  width: calc(100% - 32px);
}
.dialog--compose .form {
  margin: 0;
  gap: 14px;
}
.dialog__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* One-time invite link: same treatment as a freshly minted API key, because it
   is the same kind of secret and gets exactly one showing. */
.keyout--invite {
  margin: 0;
  border: 0;
  border-left: 3px solid var(--accent-edge);
  align-items: flex-start;
  justify-content: space-between;
}
.keyout--invite .panel__title,
.keyout--invite .panel__foot {
  padding: 0;
  border: 0;
}
.keyout--invite .panel__foot {
  margin-top: 10px;
}

.grid--admin {
  min-width: 720px;
}
.grid--admin td {
  vertical-align: middle;
}

/* The size box sits inline with its button so the pair reads as one control. */
.inline-number {
  font-family: var(--font-mono);
  font-size: 12.5px;
  width: 4.5em;
  padding: 5px 8px;
  margin-right: 8px;
  background: var(--bg);
  border: 1px solid var(--rule-heavy);
  color: var(--fg);
}
.inline-number:focus {
  border-color: var(--accent);
}

/*
 * Where you are, beside the wordmark.
 *
 * This replaced a strip of project tabs. Projects have an index of their own
 * now — a grid of tiles that says far more about each one than a tab could —
 * and once a list exists, a second list along the top is not navigation, it is
 * a duplicate. What is left is the one thing the tab strip did that the index
 * does not: telling you which project you are looking at, and offering the way
 * back out of it.
 */
.crumbs {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  /* Sits with the wordmark, not with the account controls on the right. */
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 0;
}
/* The way back: ink with an accent hover, like every link in the masthead. */
.crumbs a {
  color: var(--fg);
}
.crumbs a:hover {
  color: var(--accent-text);
}
/*
 * Where you are: not a link, and set in the accent — the same slot and the same
 * treatment as .wordmark__section, which names the part of the site you are in
 * on every server-rendered page.
 */
.crumbs__here {
  color: var(--accent-text);
  overflow-wrap: anywhere;
}
.crumbs__sep {
  color: var(--rule);
}

.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--rule-heavy);
  color: var(--fg-muted);
}
.badge--ok {
  color: var(--accent-text);
  border-color: var(--accent-edge);
  background: var(--accent-wash);
}
.badge--warn {
  color: var(--warn);
  border-color: var(--warn);
}

.warn {
  color: var(--warn);
}

/*
 * The resize control.
 *
 * The hint under the slider is the important part, not the slider: growing is
 * charged now and shrinking starts at the renewal, and a customer should read
 * which one they are about to do before they click, not after.
 */
/*
 * A single centred panel: the empty state, the create form, the "activating"
 * wait. Carries the same vertical rhythm as .dash so moving between them does
 * not shift the page.
 */
.solo {
  max-width: 560px;
  margin: 32px auto 64px;
}

/*
 * Panels have no default body padding — .spec__row, .live__body and
 * .panel__foot each carry their own — so free-form content needs a box that
 * does, or it sits flush against the ink edge.
 */
.panel__body {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
}

.resize {
  display: grid;
  gap: 9px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--rule);
}

.resize .field__hint {
  min-height: 2.6em;
  line-height: 1.5;
}

/*
 * In-panel actions sit on one row. `.choices` is a stacking grid because the
 * signup form's options are full-width decisions; three small controls at the
 * foot of a panel are not, and a disabled full-width "apply" reads as a broken
 * slab rather than a button waiting for a change.
 */
/*
 * Flex with wrap, not `grid-auto-flow: column`. A column grid refuses to wrap,
 * so three buttons set a min-content width for the whole panel — which on a
 * phone pushed the dashboard 190px wider than the viewport.
 */
.resize .choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: center;
  gap: 12px;
}
.resize .btn {
  padding: 9px 18px;
}

/* --- tiles --------------------------------------------------------------------
 *
 * A grid of cells joined by hairlines: every cell carries a 1px ring *outside*
 * its box, and the grid leaves a 1px gap for two neighbouring rings to meet in.
 * Neighbours therefore share one hairline and the outer edge is the same weight
 * as the inner ones — without an ink backdrop showing through, which is what a
 * background-plus-gap does the moment a row is not full (the admin overview's
 * ten figures across seven columns painted a black slab where the last three
 * cells were missing).
 *
 * Two things are set in it — a project on the dashboard's index, a figure on the
 * admin overview — and they are the same object: a bordered cell with a
 * small-caps label, a number set large, and an optional link. Auto-fit rather
 * than a column count, so the same grid holds three project tiles or ten admin
 * figures without a media query per case.
 */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
}
/* The figures on the admin overview are narrower than a project; 150px is where
   a label like "INVITED, NOT ACCEPTED" stops fitting on two lines. */
.tiles--figures {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
/*
 * The Coder page's row, which is the one place a grid of tiles can hold exactly
 * one. `auto-fit` collapses the empty tracks and stretches what is left, which
 * is right for two or three cards and wrong for a lone plan project: it would
 * run the whole measure and read as a banner rather than a tile. Capped only in
 * that case, so nothing changes the moment there is something beside it.
 */
.tiles--plans:has(> :only-child) {
  max-width: 400px;
}

/*
 * A tile is a column with its price pinned to the bottom.
 *
 * Grid items already stretch to the row's height, so without this a card whose
 * head runs to two lines — "1 concurrent, bursts up to 3" beside a plan's
 * kicker — pushes its own price down and out of line with the card next to it.
 * The prices are the row's whole point of comparison, so they are the thing
 * that has to agree; a head one line taller than its neighbour's does not.
 */
.tile {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--rule-heavy);
  padding: 20px 18px;
  min-width: 0;
}

.tile__label {
  font-size: 11px;
  color: var(--fg-muted);
}
/*
 * The state utilities, restated for a tile label — the same fix .grid td needed.
 * `.tile__label` sets a colour and is declared after them, so a bare `.accent`
 * on a project's status loses and every state renders as ordinary grey.
 */
.tile__label.accent {
  color: var(--accent-text);
}
.tile__label.warn {
  color: var(--warn);
}
.tile__label.muted {
  color: var(--fg-faint);
}
.tile__value {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 0;
}
.tile__more {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin: 8px 0 0;
}

/*
 * A tile that leads somewhere.
 *
 * It has to keep reading as one of the grid — the accent is already spent on the
 * number, so the affordance is the caption underneath and an edge that takes the
 * accent on hover, not a different-looking box. Hover recolours the ring the
 * cell already carries rather than adding a border, which would push the
 * contents by a pixel; and colours are reset off the anchor so the label and the
 * figure stay exactly what they are in the tiles either side of it.
 */
.tile--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.tile--link:hover {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
  color: inherit;
}
.tile--link:hover .tile__more,
.tile--link:hover .tile__open {
  color: var(--accent-text);
}

/* --- the project tile ---------------------------------------------------------
 *
 * One project, read at a glance: whether it is serving, what it is, the two
 * dials it was bought with, and what it costs. Everything on it comes from
 * /api/me, so the index needs no request of its own.
 */
.tile--project {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
/*
 * A tile's top line: what it is on the left, what it admits on the right.
 *
 * Wraps as a whole rather than squeezing, and the left label never breaks: a
 * plan's note runs to "1 concurrent, bursts up to 3", which in a two-up grid is
 * long enough to crush "Plan · Coder+" into two lines beside it. Dropping the
 * note to its own line is the graceful version of the same fit.
 */
.tile__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tile__head > :first-child {
  white-space: nowrap;
}
.tile__name {
  margin: 12px 0 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.tile__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
}
/* The two dials, restated. Pushed to the foot so tiles of different name
   lengths still line their numbers up with each other. */
.tile__dials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}
/*
 * The two figures read as a row, so they have to sit on one line even when the
 * labels above them do not: "Concurrent requests" wraps where "Context" never
 * will, and a figure that dropped with its own label would leave the pair
 * reading as a stagger rather than a row. Grid items are already equal height,
 * so pinning the label to the top and the figure to the bottom is enough.
 */
.tile__dials > * {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile__figure {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tile__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 0;
  padding-top: 0;
  /* See .tile: the price is what a row of cards is compared by. */
  margin-top: auto;
}
.tile__price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.tile__unit {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--fg-faint);
}
/*
 * "Open" rather than an arrow: → is outside the latin subsets we self-host (see
 * tokens.css), so it would fall back to whatever the visitor's system has.
 */
.tile__open {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* The one empty cell in the grid: what to do when there is nothing in it yet. */
.tile--new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  /* Dashed instead of ruled: an outline around something that is not there. */
  box-shadow: none;
  border: 1px dashed var(--fg-faint);
  color: var(--fg);
}
.tile--new:hover {
  background: var(--surface);
  border-color: var(--rule-heavy);
  box-shadow: none;
  color: var(--fg);
}
.tile__plus {
  font-size: 32px;
  line-height: 1;
  color: var(--accent-text);
}
.tile--full {
  cursor: default;
  color: var(--fg-faint);
}
.tile--full:hover {
  background: var(--bg);
  border-color: var(--fg-faint);
  box-shadow: none;
}
.tile--full .tile__plus {
  color: var(--fg-faint);
}

/* --- the index ----------------------------------------------------------------- */

.index {
  padding: 30px 0 64px;
}
.index__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.index__head h1 {
  margin: 0;
}
.index__summary {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-faint);
}

/*
 * --- the console frame -------------------------------------------------------
 *
 * The app is the one place on the site with standing destinations rather than a
 * single column of prose, so it is the one place laid out as a console:
 * design/solheim-console.html puts a 260px rail down the left and the view
 * beside it, and this is that.
 *
 * Its own class rather than a modifier on .shell, because .shell is the
 * measure-wide centred column that every server-rendered page and the admin
 * shell are set in (see tokens.css). The rail is full-bleed and full-height and
 * has no business narrowing those.
 */
.console {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

/*
 * The rail: brand, then the sections, then who you are.
 *
 * Sticky and full-height so the products stay reachable from inside a project —
 * which is the whole reason the switch moved off the masthead. The nav scrolls
 * on its own if it ever outgrows the viewport; the brand and the account line
 * are pinned to the ends.
 */
.console__rail {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 2px solid var(--rule-heavy);
}

.console__brand {
  padding: 22px 24px;
  border-bottom: 2px solid var(--rule-heavy);
}

.rail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 0 24px;
}

/* A gap between sections, not a rule: the rail is already one column of ink. */
.rail__section + .rail__section {
  margin-top: 30px;
}
.rail__section[hidden] {
  display: none;
}

.rail__label {
  margin: 0;
  padding: 0 24px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/*
 * One destination. Full-bleed to the rail's edges so the active tint reads as a
 * band in the column rather than a floating chip, and reset hard because two of
 * these are <button> and two are <a>: without it the pair would disagree about
 * font, alignment and background on every page.
 */
.rail__item {
  display: block;
  width: 100%;
  padding: 11px 24px;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.rail__item:hover {
  background: var(--surface);
  color: var(--fg);
}
.rail__item[hidden] {
  display: none;
}

/*
 * Where you are. The accent edge is the marker rather than a bolder weight,
 * because the two entries already differ in weight from the account links and a
 * second weight step would leave nothing to say "current" with.
 */
.rail__item--on {
  background: var(--accent-wash);
  border-left-color: var(--accent-edge);
}
.rail__item--on .rail__label-text {
  color: var(--accent-text);
}

/* The account links: the same band, a step quieter than a product. */
.rail__item--quiet {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 8px;
  padding-bottom: 8px;
}
.rail__item--quiet:hover {
  color: var(--accent-text);
}

/* A product's first line: what it is, and how much of it you have. */
.rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.rail__label-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.rail__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
}
.console__who {
  margin: 0;
  padding: 18px 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--fg-faint);
  overflow-wrap: anywhere;
}

/*
 * The view. Its own measure rather than the site's: there is a 260px rail to
 * the left of it now, so .shell's centred --measure column would sit off-centre
 * on the screen and run wider than the grids inside it want to be.
 */
.console__view {
  min-width: 0;
  padding: 0 40px;
  max-width: 1140px;
}
/*
 * The view's own top rule. The masthead used to draw the line across the top of
 * the page; there is no masthead over the view any more, so the crumbs row
 * carries it — same 2px ink, same place on the screen, and the heading under it
 * starts where it always did.
 */
.console__view > .crumbs {
  margin: 0;
  padding: 26px 0 20px;
  border-bottom: 2px solid var(--rule-heavy);
}

/*
 * Narrow: the rail stops being a rail. It unpins, runs across the top as a
 * band, and the sections lay out in a row — the same list, one axis over.
 */
@media (max-width: 860px) {
  .console {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .console__rail {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 2px solid var(--rule-heavy);
  }
  .rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0 32px;
    overflow: visible;
    padding: 18px var(--gutter);
  }
  .rail__section + .rail__section {
    margin-top: 0;
  }
  .rail__label,
  .rail__item {
    padding-left: 0;
    padding-right: 0;
  }
  .rail__item {
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .rail__item:hover {
    background: none;
  }
  .rail__item--on {
    background: none;
    border-bottom-color: var(--accent-edge);
  }
  .console__brand,
  .console__who {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .console__view {
    padding: 0 var(--gutter);
  }
}

/*
 * The Coder page: the plans, kept out of the instance grid on purpose.
 *
 * It is a page and not a filtered grid because that is the product decision
 * being made in the UI: an instance is dialled in, a plan is chosen. The cards
 * and the plan projects are tiles underneath, so a card and a project agree on
 * everything a tile is.
 */
/* The kicker sits over the heading, so the pair is what baselines with the
 * summary rather than the heading alone. */
.coder__title .eyebrow {
  margin: 0 0 6px;
}
.coder__sub {
  margin: 0 0 22px;
  max-width: 44em;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}
/* A refused purchase, under the cards it was refused on. */
.coder__error {
  margin: 22px 0 0;
  max-width: 44em;
}
.coder__note {
  margin: 22px 0 0;
  max-width: 44em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-faint);
}
/*
 * The shared billing toggle above a row of tier cards — same component as
 * the landing page's `.billing-toggle` (landing.css), duplicated rather than
 * shared across bundles: this page and the landing page ship separately, and
 * both already duplicate their own copies of the tokens each draws from.
 */
.billing-toggle {
  display: inline-flex;
  margin: 0 0 20px;
  border: 2px solid var(--rule-heavy);
}
.billing-toggle__option {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  background: none;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--fg-faint);
}
.billing-toggle__option + .billing-toggle__option {
  border-left: 2px solid var(--rule-heavy);
}
.billing-toggle__option[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}
/*
 * A plan card: a tile that is bought whole. The same anatomy as a project
 * tile — state row, name, meta, the two figures, the price — with nothing
 * that pretends to be a dial.
 */
.tile--plan {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.tile--plan:hover {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
}
.tile--plan:hover .tile__open {
  color: var(--accent-text);
}

/*
 * The card somebody already chose, on the way in from the landing page.
 *
 * The hover treatment made permanent rather than a colour of its own: it is
 * the same "this is the one" the pointer says, said before the pointer gets
 * there. The card is focused as well, so it is never the only cue.
 */
.tile--plan.tile--picked {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
}
.tile--plan.tile--picked .tile__open {
  color: var(--accent-text);
}

/*
 * The waitlist popup a sold-out plan's card opens instead of Stripe. Native
 * <dialog>, styled to the same flat, hard-edged language as every other box
 * on the page — no rounded corners, a heavy ink rule instead of a shadow.
 */
.dialog {
  max-width: 360px;
  margin: auto;
  padding: 28px;
  border: 2px solid var(--rule-heavy);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
}
.dialog::backdrop {
  background: oklch(0.18 0.012 60 / 0.5);
}
.dialog__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
}
.dialog__body {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-body);
}
/* The figure about to be charged: the one line of the upgrade dialog that must not be skimmed. */
.dialog__charge {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--fg);
}

/*
 * The empty state, set as a page rather than as an empty box: the first thing a
 * new account sees is this, so it says what a project is and offers the one
 * thing worth doing, instead of apologising for having no rows.
 */
.blankslate {
  border: 1px solid var(--rule-heavy);
  padding: clamp(48px, 9vw, 90px) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.blankslate__title {
  margin: 0;
  max-width: 22em;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  text-wrap: balance;
}
.blankslate__body {
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-body);
  text-wrap: pretty;
}
.blankslate .btn {
  margin-top: 10px;
  padding: 17px 30px;
}

/* --- configurator components ------------------------------------------------
 *
 * The parts a size is chosen with, in the editorial language rather than in a
 * form's: a numbered section, its control set on a rule, and the price arrived
 * at rather than announced. They are built by src/web/components.ts and used in
 * two places — the create-project page and the plan panel's resize control — so
 * buying a size and changing it are the same gesture rather than two dialects.
 *
 * The list components size themselves with container queries rather than media
 * queries, because the same component sits in a 1240px page and in a 340px panel
 * on a phone: what matters is the width of the box it landed in, not the width
 * of the window.
 */

/*
 * A numbered section: its index in the margin, its control in the column. The
 * index is the shared .eyebrow from tokens.css — the same small-caps mono label
 * the landing page numbers its bands with.
 */
.config {
  display: grid;
  /* Wide enough for "03 / INSTANCES" to stay on one line in the mono caps. */
  grid-template-columns: 132px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
/* The last one before the outcome: a section rule, not a row rule. */
.config--close {
  border-bottom: 2px solid var(--rule-heavy);
}
.config__index {
  padding-top: 6px;
}
.config__body {
  display: grid;
  gap: 14px;
  /* Grid items refuse to shrink below their content without this, and one long
     endpoint URL is enough to widen the page. */
  min-width: 0;
}
/* For a control that sits beside its footnote rather than above it. */
.config__body--inline {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.config__aside {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-faint);
  /* These notes are two sentences that want two lines; the break is in the copy. */
  white-space: pre-line;
}

/*
 * A choice with only one option, stated rather than offered.
 *
 * Sized like a selected option's label rather than like an aside: it is the
 * answer to "which model", not a footnote about it, and shrinking it would make
 * the one irreversible decision on the form the quietest thing on it.
 */
.config__only {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--fg);
}

/*
 * The one field on the page that is set in display type. A project's name is the
 * only thing here a customer writes rather than picks, and it is written on a
 * rule, like a form filled in on paper.
 */
.bigfield {
  flex: 1 1 280px;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--rule-heavy);
  border-radius: 0;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 4px 0 10px;
}
.bigfield::placeholder {
  color: var(--fg-faint);
}
.bigfield:focus {
  border-bottom-color: var(--accent);
}

/* One option per row, chosen with a radio that is hidden but still focusable. */
.optionlist {
  border-top: 2px solid var(--rule-heavy);
  container-type: inline-size;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  /* The rail: the selected row is marked in the margin, as the panels are. */
  border-left: 3px solid transparent;
}
/*
 * The wash rather than the panel tint, which is what the source design used:
 * this list sits on paper on the create page and on a panel in the plan card,
 * and a tint the same colour as the panel marks nothing at all there. It is the
 * treatment .choice already gives a checked option elsewhere in the app.
 */
.option:has(.option__input:checked) {
  border-left-color: var(--accent-edge);
  background: var(--accent-wash);
}
/* The input carries the focus, so the row has to show it. */
.option:has(.option__input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.option__pick {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 16px;
  cursor: pointer;
}
/*
 * Kept in the layout and kept focusable — only made invisible. `display: none`
 * would take it out of the tab order and out of the radio group's arrow-key
 * behaviour, which is the entire reason this is a radio and not a button.
 */
.option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option__label {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.option__note {
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg-body);
}
.option__price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
  text-align: right;
  white-space: nowrap;
}
.option__action {
  flex: none;
  margin-right: 16px;
}

/*
 * Rows whose label is a name rather than a number.
 *
 * The default grid gives the label 88px, which is right for "128k" and wrong
 * for "Qwen3.6-35B-A3B" — a single unbreakable token that wraps to three lines
 * in that column and collides with the note beside it.
 *
 * So a named list stacks instead: label over note in one column, price held to
 * the right across both rows. Two columns rather than three, which also means an
 * id nobody has thought about yet cannot break the layout by being long.
 */
.optionlist--named .option__pick {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: start;
}
.optionlist--named .option__label {
  grid-column: 1;
  font-size: 22px;
  /* A model id is one long token; break it rather than let it overflow. */
  overflow-wrap: anywhere;
}
.optionlist--named .option__note {
  grid-column: 1;
  grid-row: 2;
}
.optionlist--named .option__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

/* Listed, priced, and not for sale from a form — see the 256k row. */
.option--locked .option__pick {
  cursor: default;
}
.option--locked .option__label,
.option--locked .option__note,
.option--locked .option__price {
  color: var(--fg-faint);
}

/*
 * In a panel rather than across the page: the same rows, one size down. The
 * display numeral is right on the create page, where choosing a window is the
 * whole task, and shouts in a 620px card beside a plan summary.
 */
@container (max-width: 700px) {
  .option__pick {
    padding: 12px 14px;
    gap: 14px;
  }
  .option__label {
    font-size: 20px;
  }
  .option__note {
    font-size: 14px;
  }
}

/*
 * Narrow: the price keeps its line with the size it belongs to, and the note
 * drops underneath both. Placed explicitly rather than left to auto-flow, which
 * put the price on a third row of its own.
 */
@container (max-width: 560px) {
  .option__pick {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
  }
  .option__label,
  .option__price {
    grid-row: 1;
  }
  .option__note {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* Narrower still — a panel on a phone: the action takes a line of its own,
   rather than squeezing the note into a four-line column beside it. */
@container (max-width: 380px) {
  .option {
    flex-wrap: wrap;
  }
  .option__pick {
    flex: 1 0 100%;
  }
  .option__action {
    margin: 0 16px 14px;
  }
}

/* A count with a button either side. Replaced a slider in both places. */
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stepper__step {
  flex: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule-interactive);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.stepper__step:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-text);
}
.stepper__step:disabled {
  border-color: var(--rule);
  color: var(--fg-faint);
  cursor: default;
}
.stepper__value {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: 2.2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/*
 * One block per unit bought, filled to show how many are in use. The dashboard's
 * live counter and the size picker draw the same figure with it: hairline pips
 * for a reading that changes every second, slabs for a number being chosen.
 */
.meter {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.meter__cell {
  flex: 1;
  height: 12px;
  background: transparent;
  border: 1px solid var(--rule);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.meter__cell--on {
  background: var(--accent);
  border-color: var(--accent);
}
.meter--tall {
  border-top: 1px solid var(--rule-heavy);
  border-bottom: 1px solid var(--rule-heavy);
  padding: 6px 0;
}
.meter--tall .meter__cell {
  height: 30px;
  border: 0;
  background: var(--rule);
}
.meter--tall .meter__cell--on {
  background: var(--accent);
}

/* The stepper and its meter read as one control. */
.instances {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.instances .meter {
  flex: 1 1 200px;
}

/* --- the outcome: what the size is good for, and what it costs -------------- */

.outcome {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  padding: 30px 0 64px;
  align-items: start;
}
.outcome__col {
  min-width: 0;
}
.outcome__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.outcome__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.fit {
  border-top: 2px solid var(--rule-heavy);
  container-type: inline-size;
}
.fit__row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
/*
 * The grade, drawn rather than typed: ● and ◐ are outside the latin subsets we
 * self-host and would fall back to whatever the visitor has. Filled, half, empty
 * — and the verdict is written out beside it, so this is never the only cue.
 */
.fit__mark {
  align-self: center;
  width: 11px;
  height: 11px;
  border: 1px solid var(--fg-faint);
}
.fit__row--good .fit__mark {
  background: var(--accent);
  border-color: var(--accent);
}
.fit__row--workable .fit__mark {
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
  border-color: var(--accent);
}
.fit__title {
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--fg-body);
}
.fit__verdict {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--fg-faint);
}
.fit__row--good .fit__verdict {
  color: var(--accent-text);
}
.fit__row--workable .fit__verdict {
  color: var(--fg-muted);
}
@container (max-width: 420px) {
  .fit__row {
    grid-template-columns: 12px 1fr;
  }
  .fit__verdict {
    grid-column: 2;
    text-align: left;
  }
}

.advice {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fg-body);
}

/* The price, arrived at. A .panel, with the total set as display type. */
.summary__figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.summary__total {
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.summary__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}
/*
 * The price a promo replaced. Same treatment as the promo page's own struck
 * figure (.hero__offer-was in landing.css) — smaller, faint, ruled through —
 * because it is the same claim being made twice, on two pages, to one reader.
 */
.summary__was {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-faint);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.summary__breakdown,
.summary__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fg-faint);
}
.summary__note {
  text-align: center;
}
.summary .btn {
  margin-top: 6px;
  padding: 17px;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  :root {
    --gutter: 22px;
  }
  .dash {
    grid-template-columns: 1fr;
  }
  /* .tiles needs no override here: auto-fit already reflows it, and forcing
     exactly two columns was a worse layout than the four that fit at 768px. */
  /* Stacked one per row, a floor that exists to line four tiles up with each
     other only leaves a gap under the last line of the one tile on screen. */
  .tile--project {
    min-height: 0;
  }
  /*
   * The section number moves above its control rather than beside it: a 100px
   * margin column costs a third of a phone's width to say "02".
   */
  .config {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .config__index {
    padding-top: 0;
  }
  .outcome {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
