/* Modernist - the design system from design_handoff_admin_helper/.
 *
 * Flat, architectural, Archivo throughout. Zero radius, 2px structural rules,
 * 1px row rules, flush-left everything, a single accent used sparingly.
 *
 * Two rules that are load-bearing rather than decorative:
 *   - accent on the ground is ~3:1. Fine for chrome and display figures, NOT
 *     for body copy. Accent text at paragraph size uses --color-accent-700.
 *   - no transitions. State changes are instant by intent; an operations tool
 *     benefits from no motion.
 *
 * The legacy block at the foot keeps the pre-redesign templates rendering while
 * they are ported one at a time. Delete it when the last one is done.
 */

/* ---- tokens --------------------------------------------------------------- */

:root {
  --color-bg:       #f3f2f2;
  --color-surface:  #eae9e9;
  --color-text:     #201e1d;
  --color-accent:   #ec3013;
  --color-divider:  color-mix(in srgb, #201e1d 40%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;   /* accent text at body size */
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-6: 24px; --space-8: 32px;

  --font-heading: Archivo, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    Archivo, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 0px; --radius-md: 0px; --radius-lg: 0px;

  /* fixed chrome. 208 + 320 + 268 = 796px is the floor; below it the rail must
     collapse or the main column loses usable width. */
  --nav-w: 208px;
  --rail-w: 336px;
  --rail-min: 268px;
}

/* ---- base ----------------------------------------------------------------- */

* { box-sizing: border-box; }

/* The browser's own [hidden] rule is display:none, but ANY author rule beats it -
   and .rail / .rail-tab / table rows all set display explicitly. Without this,
   el.hidden = true silently does nothing: the rail refuses to collapse and the
   collapsed tab shows permanently beside the open rail. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 13.5px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; }
h2 { font-size: 17px; font-weight: 800; }
h3 { font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

a { color: var(--color-accent-700); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent-200); }

.mono { font-family: var(--font-mono); font-size: 11.5px; }
.num  { font-variant-numeric: tabular-nums; }
.hr   { border: 0; border-top: 2px solid var(--color-divider); margin: 0; }

/* Long unbreakable strings - addresses, DNS values, IMAP hosts - are the single
   most common source of overlap in this design. Both halves are needed: the
   wrap on the text, min-width:0 on the flex/grid parent. */
.wrap { overflow-wrap: anywhere; min-width: 0; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.micro {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-neutral-600);
}
.note { font-size: 11px; color: var(--color-neutral-700); line-height: 1.4; }
.muted { color: var(--color-neutral-600); }
.accent-text { color: var(--color-accent-700); }

/* ---- app shell ------------------------------------------------------------ */

.shell { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-divider);
}
.topbar .brand {
  font-family: var(--font-heading); font-weight: 800; font-size: 18px;
  letter-spacing: -0.015em;
}
.topbar .section {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-neutral-600);
}
.topbar .spacer { margin-left: auto; }
.topbar .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; white-space: nowrap;
}
.topbar .chip .sq { width: 8px; height: 8px; background: var(--color-text); }
.topbar .chip .sq.accent { background: var(--color-accent); }

/* The autonomy chip states the operating mode chosen for this deployment. It is
   not decoration - if other modes are ever added, this is where mode is declared. */
.autonomy {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  color: var(--color-accent-700); border: 2px solid var(--color-accent);
  padding: 3px 8px; white-space: nowrap;
}

.body { display: flex; flex: 1 1 auto; align-items: stretch; min-height: 0; }

.nav {
  flex: 0 0 var(--nav-w); width: var(--nav-w);
  background: var(--color-surface);
  border-right: 2px solid var(--color-divider);
  display: flex; flex-direction: column;
  padding: var(--space-4) 0 0;
}
.nav .group { font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--color-neutral-600); padding: 0 var(--space-4) 6px; margin-top: var(--space-4); }
.nav .group:first-child { margin-top: 0; }
.nav a.item {
  display: block; padding: 7px var(--space-4); font-family: var(--font-heading);
  font-size: 13.5px; font-weight: 500; color: var(--color-text);
  border-left: 3px solid transparent; text-decoration: none;
}
.nav a.item:hover { background: var(--color-neutral-200); text-decoration: none; }
.nav a.item.on {
  font-weight: 800; background: var(--color-neutral-100);
  border-left-color: var(--color-accent);
}
.nav .foot {
  margin-top: auto; padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 2px solid var(--color-divider);
}
.nav .foot .big { font-family: var(--font-heading); font-weight: 800; font-size: 13px; }
.nav .foot .attention { color: var(--color-accent-700); font-weight: 600; }

.main {
  flex: 1 1 auto; min-width: 320px;
  padding: 22px 24px 40px;
  display: flex; flex-direction: column; gap: 22px;
  overflow: auto;
}

/* ---- collapsible rail ----------------------------------------------------- */

.rail {
  flex: 0 1 var(--rail-w); min-width: var(--rail-min);
  border-left: 2px solid var(--color-divider);
  background: var(--color-surface);
  display: flex; flex-direction: column; min-height: 0;
}
.rail-head {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px 12px; border-bottom: 2px solid var(--color-divider);
}
/* The collapse control sits at the LEFT edge of the rail header so the rail can
   never push it off-screen. */
.rail-head .toggle {
  flex: 0 0 24px; width: 24px; height: 24px; padding: 0;
  border: 2px solid var(--color-divider); background: transparent;
  font-family: var(--font-heading); font-size: 13px; line-height: 1; cursor: pointer;
  color: var(--color-text);
}
.rail-head .toggle:hover { background: var(--color-neutral-200); }
.rail-head .title {
  font-family: var(--font-heading); font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
}
.rail-body { padding: var(--space-3); overflow: auto; display: flex;
  flex-direction: column; gap: var(--space-3); }

.rail-tab {
  flex: 0 0 42px; width: 42px;
  border: 0; border-left: 2px solid var(--color-divider);
  background: var(--color-surface); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-top: 12px;
}
.rail-tab:hover { background: var(--color-accent-100); }
.rail-tab .sq { width: 10px; height: 10px; background: var(--color-accent); }
.rail-tab .vt {
  writing-mode: vertical-rl; font-family: var(--font-heading); font-weight: 800;
  font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
}

/* ---- stat strip ----------------------------------------------------------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 2px solid var(--color-divider); background: var(--color-surface);
}
.stats .cell { padding: 13px 16px; border-right: 1px solid var(--color-divider); }
.stats .cell:last-child { border-right: 0; }
.stats .k { font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-neutral-600); }
.stats .v { font-family: var(--font-heading); font-weight: 800; font-size: 26px;
  font-variant-numeric: tabular-nums; margin-top: 3px; line-height: 1.05; }
.stats .v.accent { color: var(--color-accent); }
.stats .v.dim { color: var(--color-neutral-500); }
.stats .n { font-size: 11px; color: var(--color-neutral-700); margin-top: 2px; }

/* ---- card ----------------------------------------------------------------- */

.card { border: 2px solid var(--color-divider); background: var(--color-surface); min-width: 0; }
/* Descendant, not direct-child. A card's rows are routinely wrapped in a <form>
   or a container the JS draws into, and a `>` selector silently drops the padding
   and rules from every one of them. There are no nested cards in this codebase;
   if one is ever added, these need scoping again. */
.card .head {
  display: flex; align-items: baseline; gap: var(--space-2);
  padding: 11px 14px; border-bottom: 2px solid var(--color-divider);
}
.card .head .t {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: .05em;
}
.card .head .meta { margin-left: auto; font-size: 11px; color: var(--color-neutral-700); }
.card .head .meta.accent { color: var(--color-accent-700); font-weight: 700; }
.card .row { padding: 10px 14px; border-bottom: 1px solid var(--color-divider); min-width: 0; }
.card .row:last-child { border-bottom: 0; }
.card .foot { padding: 10px 14px; font-size: 11px; color: var(--color-neutral-700); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; align-items: start; }

/* ---- pills ---------------------------------------------------------------- */

.pill {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 7px; white-space: nowrap;
  font-family: var(--font-body);
}
.pill-outline { background: transparent; color: var(--color-text); border: 1px solid var(--color-neutral-400); }
.pill-accent  { background: var(--color-accent); color: #fff; border: 1px solid var(--color-accent); }
.pill-soft    { background: var(--color-accent-100); color: var(--color-accent-700); border: 1px solid var(--color-accent-300); }
.pill-muted   { background: transparent; color: var(--color-neutral-600); border: 1px solid var(--color-neutral-300); }

/* ---- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  padding: 8px 14.4px; border: 2px solid transparent; border-radius: 0;
  cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover  { background: var(--color-accent-600); border-color: var(--color-accent-600); }
.btn-secondary { background: transparent; color: var(--color-text); border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost { background: transparent; color: var(--color-accent-700); border-color: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-sm { font-size: 12px; padding: 5px 10px; }
/* labels are flush left in any button wider than its text */
.btn-block { display: flex; width: 100%; justify-content: flex-start; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---- segmented / flush-joined selector ------------------------------------ */

.seg { display: flex; flex-wrap: wrap; }
.seg > * {
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  padding: 6px 12px; border: 2px solid var(--color-divider); border-left-width: 0;
  background: transparent; color: var(--color-text); cursor: pointer;
  text-decoration: none; line-height: 1.3;
}
.seg > *:first-child { border-left-width: 2px; }
.seg > *:hover { background: var(--color-neutral-200); text-decoration: none; }
.seg > .on { background: var(--color-text); color: var(--color-bg); font-weight: 700; }
.seg > .on:hover { background: var(--color-text); }

/* ---- table ---------------------------------------------------------------- */

.tablewrap { overflow-x: auto; border: 2px solid var(--color-divider); background: var(--color-surface); }
/* 900px (the design's figure) exceeds the main column at 1440px once the 336px
   rail is docked, so the primary view opened with a clipped last column and an
   internal scrollbar. 800px fits with the rail open and still forces a scroll
   rather than a squeeze on genuinely narrow windows. */
table.t { width: 100%; min-width: 800px; border-collapse: collapse; font-size: 13px; }
table.t th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: 8px; border-bottom: 2px solid var(--color-divider); white-space: nowrap;
  font-weight: 600;
}
table.t td { padding: 8px; border-bottom: 1px solid var(--color-divider); vertical-align: middle; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover { background: var(--color-neutral-100); }

/* ---- status squares, DNS lights ------------------------------------------- */

.sq { display: inline-block; width: 9px; height: 9px; vertical-align: middle; }
.sq-live     { background: var(--color-text); }
.sq-action   { background: var(--color-accent); }
.sq-progress { background: var(--color-neutral-500); }
.sq-parked   { background: var(--color-neutral-300); }

.lights { display: flex; gap: 3px; }
.lights .l { width: 14px; height: 14px; }
.lights .l.on  { background: var(--color-text); border: 1px solid var(--color-text); }
.lights .l.off { background: transparent; border: 1px solid var(--color-accent); }
/* Never reconciled is a third state. Rendering it as "off" would assert a
   failure the portal has not actually checked for. */
.lights .l.unk { background: transparent; border: 1px dashed var(--color-neutral-400); }
/* The reports cell sits apart from the four records it describes, and when it
   is off it is a button: reset the form and button so it is just the cell. */
.lights .l-rep { margin-left: 4px; }
.lights form { display: contents; }
.lights button.l { padding: 0; cursor: pointer; }
.lights button.l:hover, .lights button.l:focus-visible {
  background: var(--color-accent); outline: none; }

/* desired-vs-live diff row */
.diff { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.diff .kind { flex: 0 0 76px; }
.diff .kind .ty { font-family: var(--font-heading); font-weight: 700; font-size: 10.5px;
  text-transform: uppercase; display: block; }
.diff .side { flex: 1 1 210px; min-width: 0; }
.diff .side .lab { font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-neutral-600); display: block; }
.diff .side.want .lab { color: var(--color-accent-700); }
.diff .side .val { font-family: var(--font-mono); font-size: 11.5px;
  overflow-wrap: anywhere; color: var(--color-neutral-800); }
.diff .side.want .val { color: var(--color-text); font-weight: 600; }
.diff .side.gone .val { text-decoration: line-through; }
/* A 2048-bit DKIM key is ~400 characters and makes one row taller than the rest
   of the card. Clamp it; the full value is on the title attribute. */
.diff .side .val.clamp {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; max-height: 4.4em;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after {
  content: "+"; margin-left: 8px; font-family: var(--font-heading);
  font-weight: 800; color: var(--color-accent-700);
}
details.card[open] > summary::after { content: "\2013"; }

/* ---- progress / quota bars ------------------------------------------------ */

.bar { background: var(--color-neutral-200); height: 6px; width: 100%; }
.bar > i { display: block; height: 100%; background: var(--color-accent); }
.bar.full > i { background: var(--color-text); }
.bar-lg { height: 8px; }
.bar-quota { height: 5px; }
.bar-quota > i { background: var(--color-text); }
.bar-quota.over > i { background: var(--color-accent); }

/* Busy bar: shown while a form post or a data-busy link waits on the server.
   Indeterminate on purpose - the server does not report progress for these, and
   a bar that fills to a made-up 90% is a fabricated estimate. */
.busybar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1000;
  background: var(--color-accent-100); overflow: hidden; pointer-events: none; }
.busybar[hidden] { display: none; }
.busybar > i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: var(--color-accent); animation: busyslide 1.1s ease-in-out infinite; }
@keyframes busyslide { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .busybar > i { animation: none; left: 0; width: 100%; opacity: .6; }
}
.is-busy { cursor: progress; opacity: .75; pointer-events: none; }

/* ---- checklist marker ----------------------------------------------------- */

.mark { width: 17px; height: 17px; display: grid; place-items: center;
  font-size: 10px; line-height: 1; flex: 0 0 17px; }
.mark-done   { border: 2px solid var(--color-text); background: var(--color-text); color: var(--color-bg); }
.mark-active { border: 2px solid var(--color-text); background: transparent; color: var(--color-accent); }
.mark-todo   { border: 2px solid var(--color-neutral-400); background: transparent; color: var(--color-neutral-600); }

/* ---- plan row ------------------------------------------------------------- */
/* The provider track is min-content, never a fixed px width: "Cloudflare"
   overflows a 54-62px track and collides with the action text. */

.planrow {
  display: grid; grid-template-columns: 24px min-content minmax(0, 1fr);
  gap: 10px; align-items: baseline; padding: 10px 16px;
  border-bottom: 1px solid var(--color-divider);
}
.planrow:last-child { border-bottom: 0; }
.planrow .i { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--color-neutral-500); }
.planrow .p {
  font-family: var(--font-heading); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.planrow .p.cloudflare { color: var(--color-accent-700); }
.planrow .p.stalwart, .planrow .p.runner { color: var(--color-text); }
.planrow .p.mailgun, .planrow .p.portal { color: var(--color-neutral-700); }
.planrow .a { font-size: 12.5px; overflow-wrap: anywhere; color: var(--color-neutral-900); }

/* ---- tabs ----------------------------------------------------------------- */
/* Shares the segmented control's shared-edge treatment so the page has one
   vocabulary for "pick one of these". */
.tabs { display: flex; flex-wrap: wrap; margin-bottom: -2px; }
.tabs > button {
  font-family: var(--font-heading); font-weight: 600; font-size: 12.5px;
  padding: 8px 14px; border: 2px solid var(--color-divider); border-left-width: 0;
  background: var(--color-surface); color: var(--color-text); cursor: pointer;
  border-bottom-color: var(--color-divider);
}
.tabs > button:first-child { border-left-width: 2px; }
.tabs > button:hover { background: var(--color-neutral-200); }
.tabs > button.on {
  background: var(--color-bg); font-weight: 800;
  border-bottom-color: var(--color-bg);
  box-shadow: inset 0 3px 0 var(--color-accent);
}
.tabs .badge {
  margin-left: 7px; font-size: 10.5px; font-weight: 700;
  color: var(--color-accent-700);
}
.tabpanel { border: 2px solid var(--color-divider); background: var(--color-bg);
  padding: 16px; display: flex; flex-direction: column; gap: 16px; }

/* ---- forms ---------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-neutral-600); }
/* `input[type=text]` does NOT match `<input name="x">` - an input with no type
   attribute matches no [type=...] selector at all, even though it behaves as
   text. Listing types therefore silently skipped every field that omitted one.
   Select by exclusion instead, so a new field is styled by default. */
.input, select, textarea,
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]) {
  font-family: var(--font-body); font-size: 13.5px;
  padding: 8px 10px; border: 2px solid var(--color-divider); border-radius: 0;
  background: var(--color-bg); color: var(--color-text); width: 100%;
}
input[type=checkbox], input[type=radio] { width: auto; }
input[type=file] { font-size: 12.5px; }
textarea { resize: vertical; }

/* ---- auth pages ----------------------------------------------------------- */
/* Signed-out pages render outside the shell, so they carry their own centring.
   min-height + center keeps the card off the top edge on a tall screen without
   pushing it off the bottom of a short one, which a fixed vh margin does. */
.authpage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
}
.authcard { width: 100%; max-width: 384px; }
.authcard .brand {
  font-family: var(--font-heading); font-weight: 800; font-size: 22px;
  letter-spacing: -0.015em; text-transform: uppercase;
}
.authcard .sub {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-neutral-600); margin-top: 3px;
}
/* Every field in these forms is a stacked label wrapping its input. The generic
   `label` element is inline by default and `input` here is width:100%, which is
   what produced the wrapped, overlapping login form. */
/* Flex column rather than block: a bare text node becomes an anonymous flex item,
   so the label always sits above its input regardless of how the input is sized. */
label.stack {
  display: flex; flex-direction: column; align-items: stretch;
  margin-bottom: var(--space-3);
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-neutral-600);
}
label.stack > input, label.stack > select,
label.stack > textarea { margin-top: 5px; }

.alert { padding: 10px 14px; border-left: 3px solid; font-size: 13px; }
.alert.warn  { background: var(--color-accent-100); border-color: var(--color-neutral-500); }
.alert.error { background: var(--color-accent-100); border-color: var(--color-accent); }
.alert.info  { background: var(--color-neutral-100); border-color: var(--color-neutral-400); }

/* ---- legacy ---------------------------------------------------------------
 * Class names used by the templates not yet ported. Mapped onto the system so
 * those pages stay usable during the rebuild. Delete with the last port. */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 2px solid var(--color-divider); background: var(--color-surface); }
.tile { padding: 13px 16px; border-right: 1px solid var(--color-divider); }
.tile:last-child { border-right: 0; }
.tile .k { font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-neutral-600); }
.tile .v { font-family: var(--font-heading); font-weight: 800; font-size: 26px;
  font-variant-numeric: tabular-nums; margin-top: 3px; }

table:not(.t) { width: 100%; border-collapse: collapse; font-size: 13px; }
table:not(.t) th { text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: 8px; border-bottom: 2px solid var(--color-divider); white-space: nowrap; }
table:not(.t) td { padding: 8px; border-bottom: 1px solid var(--color-divider);
  vertical-align: top; }

.p-ok   { background: transparent; color: var(--color-text); border: 1px solid var(--color-neutral-400);
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 7px; }
.p-warn { background: var(--color-accent-100); color: var(--color-accent-700);
  border: 1px solid var(--color-accent-300); display: inline-block; font-size: 10.5px;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; }
.p-err  { background: var(--color-accent); color: #fff; border: 1px solid var(--color-accent);
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 7px; }

button { font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  padding: 8px 14.4px; border: 2px solid var(--color-accent); border-radius: 0;
  background: var(--color-accent); color: #fff; cursor: pointer; }
button:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); }

/* A record value in the zone table. DKIM keys run to 400 characters, so long
   values are clipped to three lines and open on click; the title has it whole. */
.rec-val { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; word-break: break-all; cursor: pointer; }
.rec-val.open { display: block; -webkit-line-clamp: unset; }
