/* ===========================================================================
 * Chrome for /styleguide — the frame around the specimens, not product UI.
 *
 * Kept out of application.css so the product sheet stays a description of the
 * product. `require_tree .` folds this in, which is harmless: none of these
 * class names appear on any other screen.
 * ======================================================================== */

.specimen {
  margin: 0 0 2rem;
  border: 1px solid var(--line);
}

.specimen__label {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-2);
}

/* Positioned and clipped so a specimen containing a .page-head draws its
 * 100vw rule across the specimen rather than across the window. */
.specimen__render {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

/* A .page-head inside a specimen has no page above it to clear. */
.specimen__render > .page-head { padding-top: 0; margin-bottom: 0; }

.specimen__source {
  margin: 0;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  tab-size: 2;
}

.specimen__source code {
  padding: 0;
  background: none;
  font-size: inherit;
  color: var(--ink-2);
}

/* Colour tokens. A swatch is a square of the value with its name under it —
 * the one place in the product where a block of colour is the subject rather
 * than a signal. */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.swatch__chip {
  height: 3.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
}

.swatch__name { font-size: 12px; color: var(--ink); }
.swatch__value { font-size: 12px; color: var(--ink-3); }

/* Type specimens: the note in a left gutter, the sample beside it. */
.type-scale { display: flex; flex-direction: column; }

.type-scale__row {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 2rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.type-scale__note { font-size: 12px; color: var(--ink-3); }

@media (max-width: 60rem) {
  .type-scale__row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}
/*


 */

/* ===========================================================================
 * emaaaail — admin UI. v2.0
 *
 * Direction: siteinspire. Near-monochrome, hairline rules that run the full
 * width of the window, square containers, pill controls, one accent used once.
 * System fonts throughout.
 *
 * doc/ui.md is the styleguide: tokens, the type scale, every component with the
 * ERB that renders it, and a checklist. Read it before adding a screen — and
 * update it in the same commit as anything you change here.
 *
 * Two rules hold the whole thing together, so break them deliberately or not
 * at all:
 *
 *   1. Containers are square (radius 0); things you click are pills (999px).
 *      That is the only reason a shape ever changes.
 *   2. Status is a coloured dot and a word — never a filled block. This screen
 *      is read at a glance to answer "is anything broken", and a page of tinted
 *      panels answers that worse than a page of white with four red dots on it.
 * ======================================================================== */

:root {
  /* Greys. The whole interface is built from these five. */
  --ink:      #18181b;
  --ink-2:    #71717a;
  --ink-3:    #a1a1aa;
  --line:     #e4e4e7;
  --surface:  #fafafa;
  --bg:       #ffffff;

  /* The brand mark in the header and the wordmark on the login screen. Nothing
   * else gets to be this colour. */
  --accent:   #ef4444;

  /* Semantic tones. `good` is "working", `warn` is "held up on purpose", `bad`
   * is "broken or refused", `info` is "waiting on the clock". Read them in that
   * order; nothing on a screen should mean two of them at once. Text-weight
   * only — there are no tinted backgrounds anywhere in this sheet. */
  --good: #15803d;
  --warn: #a16207;
  --bad:  #b91c1c;
  --info: #4338ca;

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

  --gutter: 2rem;
  --header-h: 3.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* The full-width rules are pseudo-elements sized to the viewport; clip keeps
   * them from adding a horizontal scrollbar. `clip` rather than `hidden` so
   * position: sticky still works on the header. */
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Anything that is counted, measured or clocked lines up in a column. */
table, time, .stat__value, .mono, .tabular { font-variant-numeric: tabular-nums; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms ease, color 120ms ease;
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 1px;
}

code, .mono { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--surface); padding: 0.1em 0.35em; }

strong, b { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------------------------------------------------------------------------
 * Type scale. One label idiom — 11px, uppercase, tracked, grey — does every
 * small label on the site: table heads, stat captions, field labels, section
 * headings. Learn it once, read it everywhere.
 * ------------------------------------------------------------------------ */

h1 {
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h2, h3 {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-2);
  margin: 2rem 0 0.85rem;
}

h3 { margin-top: 1.5rem; }

p { margin: 0 0 0.75rem; }
p:last-child { margin-bottom: 0; }

.small { font-size: 12.5px; }
.muted { color: var(--ink-2); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------------------
 * Header. Brand left, sections centre, state right — one band, one hairline.
 * ------------------------------------------------------------------------ */

.admin__header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.5rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.admin__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* The one spot of colour in the product. */
.admin__brand::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--accent);
}

.admin__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin__nav::-webkit-scrollbar { display: none; }

.admin__nav a {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.admin__nav a:hover { color: var(--ink); }
.admin__nav a.is-current { color: var(--ink); }

/* Everything to the right of the nav: alerts, who you are, the way out. */
.admin__header > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.admin__who { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; padding-left: 0.7rem; }

/* ---------------------------------------------------------------------------
 * Page shell.
 * ------------------------------------------------------------------------ */

.admin__main { margin: 0 auto; padding: 0 var(--gutter) 6rem; }
.admin__main--wide {  }

.public__main,
.page { max-width: 30rem; margin: 0 auto; padding: 5rem var(--gutter) 6rem; }
.page h1, .public__main h1 { margin-bottom: 2rem; }

/* On the public pages a button_to is the one thing on the page you press, not
 * something tucked into a table row. */
.public__main form.button_to,
.page form.button_to { display: block; margin: 1.75rem 0; }

/* The mark, away from the admin header — the login screen and nothing else. */
.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; }

.wordmark::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
}

/* A rule that runs to both edges of the window. This is the structural device
 * the whole layout leans on: the page is a stack of full-width bands, and the
 * content inside them is held to a column. */
.page-head::after,
.admin__main > h2::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding: 3rem 0 2rem;
  /* Clears the rule for whatever comes next, whatever that is — the views put a
   * callout, a table or a heading here and only some of them carry a margin. */
  margin-bottom: 1.75rem;
}

.page-head::after { bottom: 0; }

/* Prose in some pages, a run of badges and links in others, so it stays a plain
 * line of text rather than a flex row that would break sentences into columns. */
.page-head__meta {
  margin-top: 0.6rem;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-head__meta .badge { vertical-align: -1px; }

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Section headings sit under their own full-width rule. Only at the top level:
 * an h2 inside a column is a local heading and gets no rule. */
.admin__main > h2 {
  position: relative;
  margin: 3rem 0 1.25rem;
  padding-top: 1.5rem;
}

.admin__main > h2::before { top: 0; }

/* The page head already closed with a rule; a second one 3rem below it is just
 * an empty band. */
.page-head + h2 { margin-top: 0; padding-top: 0; }
.page-head + h2::before { display: none; }

/* ---------------------------------------------------------------------------
 * Arrangement primitives.
 * ------------------------------------------------------------------------ */

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.grid { display: grid; gap: 1rem 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Stat tiles read as one band under a single rule, not as a row of boxes. The
 * rule belongs to the container, not to each tile: nine tiles wrap to seven and
 * two, and a per-tile rule would leave the second row underlined halfway across
 * the page. Space alone separates the columns. */
.grid--tiles {
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------------------
 * Blocks. Square, hairline, no shadow.
 * ------------------------------------------------------------------------ */

.card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1rem 1.15rem;
}

.card--soft { border-color: transparent; background: var(--surface); }
.card__title { font-weight: 600; margin-bottom: 0.4rem; }

.empty {
  border: 1px solid var(--line);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-2);
}

/* A callout is a hairline box with a tone on its left edge. The edge and the
 * title carry the meaning; the panel stays white so the body text keeps full
 * contrast and a page of warnings doesn't turn into a page of colour. */
.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--ink-3);
  padding: 0.9rem 1.15rem;
}

.callout__title { font-weight: 600; margin-bottom: 0.15rem; }
.callout ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.callout ul li { margin-bottom: 0.15rem; }

.callout--good { border-left-color: var(--good); }
.callout--warn { border-left-color: var(--warn); }
.callout--bad  { border-left-color: var(--bad); }
.callout--info { border-left-color: var(--info); }

.callout--good > .callout__title { color: var(--good); }
.callout--warn > .callout__title { color: var(--warn); }
.callout--bad  > .callout__title { color: var(--bad); }
.callout--info > .callout__title { color: var(--info); }

blockquote.callout { font-style: normal; }

/* ---------------------------------------------------------------------------
 * Tables. Rules between rows, nothing around them.
 * ------------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; margin-top: 0.5rem; }

table { border-collapse: collapse; width: 100%; }

th, td {
  text-align: left;
  padding: 0.7rem 1.25rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th:last-child, td:last-child { padding-right: 0; }

thead th {
  padding-top: 0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-2);
  white-space: nowrap;
}

tbody tr:hover { background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------------------
 * Controls. Pills, because they are the things you press.
 * ------------------------------------------------------------------------ */

.button,
button.link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.button:hover,
button.link:hover,
input[type="submit"]:hover { border-color: var(--ink); text-decoration: none; }

.button--primary,
input[type="submit"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.button--primary:hover,
input[type="submit"]:hover { background: #000; border-color: #000; }

.button--quiet {
  border-color: transparent;
  color: var(--ink-2);
  padding: 0 0.5rem;
}

.button--quiet:hover { border-color: transparent; color: var(--ink); }

.button--danger { color: var(--bad); }
.button--danger:hover { border-color: var(--bad); }

.button--small { height: 1.65rem; padding: 0 0.7rem; font-size: 12px; }

.button[disabled], .button:disabled, input[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

form.button_to { display: inline; }

/* ---------------------------------------------------------------------------
 * Status. A dot and a word.
 * ------------------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}

.badge::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
}

.badge--good { color: var(--good); }
.badge--warn { color: var(--warn); }
.badge--bad  { color: var(--bad); }
.badge--info { color: var(--info); }
.badge--neutral { color: var(--ink-3); }

a .badge { text-decoration: none; }

/* ---------------------------------------------------------------------------
 * Stat tiles. A caption, a number, a hint — separated by rules, not boxes.
 * ------------------------------------------------------------------------ */

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 1.5rem 1.6rem 0;
}

/* Two lines' worth of room whether or not the caption needs it, so a wrapping
 * label like "Suppressed (global)" doesn't drop its number below the rest of
 * the row. The numbers are the thing being compared; they have to line up. */
.stat__label {
  min-height: 2.6em;
  line-height: 1.3;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-2);
}

.stat__value {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat__hint { font-size: 12.5px; color: var(--ink-3); }

.stat--good .stat__value { color: var(--good); }
.stat--warn .stat__value { color: var(--warn); }
.stat--bad  .stat__value { color: var(--bad); }

/* ---------------------------------------------------------------------------
 * Forms.
 * ------------------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field > label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-2);
}

/* A form inside a card is a flat run of .field and .grid siblings with nothing
 * between them, so the rhythm has to come from here. */
.card > .card__title + .field,
.card > .card__title + .grid,
.card > .field + .field,
.card > .field + .grid,
.card > .grid + .field,
.card > .grid + .grid { margin-top: 1.15rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="search"], input[type="date"], input[type="datetime-local"],
input[type="time"], select, textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 120ms ease;
}

textarea { line-height: 1.6; resize: vertical; min-height: 5rem; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}

/* Several fields lock once a campaign is approved. That has to look locked. */
input:disabled, select:disabled, textarea:disabled {
  background: var(--surface);
  color: var(--ink-2);
  cursor: not-allowed;
}

input::placeholder, textarea::placeholder { color: var(--ink-3); }

select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) calc(50% + 1px), calc(100% - 0.8rem) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); }

.field__hint { font-size: 12.5px; color: var(--ink-3); }

.field--inline { flex-direction: row; align-items: center; gap: 0.5rem; }
.field--inline input[type="checkbox"] { width: auto; margin: 0; }

/* An inline checkbox label names a choice, so it reads as a sentence rather
 * than as one of the tracked uppercase captions above. */
.field--inline > label { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }

.checkboxes { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.checkboxes label { display: inline-flex; align-items: center; gap: 0.4rem; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------------------------------------------------------------------------
 * Flash.
 * ------------------------------------------------------------------------ */

.flash {
  margin: 1.5rem 0 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--ink);
  font-size: 13px;
}

.flash--alert { border-left-color: var(--bad); color: var(--bad); }
.flash--notice { border-left-color: var(--good); }

/* ---------------------------------------------------------------------------
 * Message preview. The head is metadata, the body is the mail as sent.
 * ------------------------------------------------------------------------ */

.preview { border: 1px solid var(--line); }

.preview__head {
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.preview__subject { font-weight: 600; }

.preview__body {
  padding: 1.25rem 1.15rem;
  white-space: pre-wrap;
  max-width: 44rem;
}

/* ---------------------------------------------------------------------------
 * Sequence timeline. A hairline down the left with a dot per step; a filled
 * dot is an approved step, a hollow one is not.
 * ------------------------------------------------------------------------ */

.timeline { display: flex; flex-direction: column; gap: 1.5rem; }

.timeline__item {
  position: relative;
  padding-left: 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0.19rem;
  top: 0.75rem;
  bottom: -1.5rem;
  width: 1px;
  background: var(--line);
}

.timeline__item:last-child::before { display: none; }

.timeline__dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  background: var(--bg);
}

.timeline__item--approved .timeline__dot { border-color: var(--ink); background: var(--ink); }

.timeline__when {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------------------
 * Gates. One line per check, so "why is nothing sending" is scanned rather
 * than read. The mark is a glyph the view supplies — the tone only colours it,
 * because the label beside it has to carry the same meaning without colour.
 * ------------------------------------------------------------------------ */

.gate { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.25rem 0; }
.gate__mark { flex: none; width: 0.9rem; font-weight: 500; color: var(--ink-3); }

.gate--good .gate__mark { color: var(--good); }
.gate--warn .gate__mark { color: var(--warn); }
.gate--bad  .gate__mark { color: var(--bad); }
.gate--info .gate__mark { color: var(--info); }
.gate--muted .gate__mark { color: var(--ink-3); }

/* The headline answer to "is this going to send", set at reading size. */
.verdict { font-size: 1.15rem; font-weight: 400; letter-spacing: -0.01em; }
.verdict--good { color: var(--good); }
.verdict--warn { color: var(--warn); }
.verdict--bad  { color: var(--bad); }
.verdict--info { color: var(--info); }

/* ---------------------------------------------------------------------------
 * Snippet. A block of code that is meant to leave this screen — an install tag
 * an admin pastes into a message to whoever owns a website. It is .preview for
 * code rather than for prose: the same square hairline box, but the body holds
 * its own line breaks instead of wrapping, because a <script> tag broken across
 * a soft wrap is a <script> tag someone pastes wrong.
 *
 * The copy button sits inside the box rather than beside it. A button in the
 * page flow reads as an action on the page; a button in the corner of the block
 * reads as an action on the block, which is the whole of what it does.
 * ------------------------------------------------------------------------ */

.snippet { position: relative; border: 1px solid var(--line); }

.snippet__body {
  margin: 0;
  /* Right padding clears the copy button so a long src does not run under it. */
  padding: 0.9rem 5.5rem 0.9rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
}

.snippet__copy { position: absolute; top: 0.55rem; right: 0.55rem; }

/* ---------------------------------------------------------------------------
 * Narrow screens.
 * ------------------------------------------------------------------------ */

/* The header runs out of room a long way above the phone breakpoint: brand, five
 * sections, up to three status badges, an admin's email address and a way out need
 * roughly 940px on one line, and the email is as long as whoever signed up made it.
 *
 * Past that the nav is the only item that can shrink, so it becomes a ~325px strip
 * that scroll-clips "MCP clients" behind a hidden scrollbar — no arrow, no fade,
 * nothing to say there is more. Giving it its own row keeps every section visible.
 * The 12rem of slack over the measured 940px is for the email address. */
@media (max-width: 72rem) {
  .admin__header {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .admin__nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .admin__header > div:last-child { margin-left: auto; }
}

@media (max-width: 60rem) {
  .split, .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 48rem) {
  :root { --gutter: 1.25rem; }

  .admin__who { display: none; }

  .page-head { padding: 2rem 0 1.5rem; }
  h1 { font-size: 1.5rem; }

  .grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
