/* VoidMail console. The world is the waybill: carbon-paper ground for the
   night operator, hairline-ruled fields, label-white ink, canary only on what
   can be pressed, rubber-stamp states, copy-part tints for projects. */

@font-face { font-family: 'Archivo'; src: url(/assets/fonts/archivo-latin.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url(/assets/fonts/archivo-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; src: url(/assets/fonts/martian-mono-latin.woff2) format('woff2'); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; src: url(/assets/fonts/martian-mono-latin-ext.woff2) format('woff2'); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;

  /* carbon paper */
  --ground: oklch(16.5% 0.022 262);
  --rail: oklch(13% 0.03 270);
  --panel: oklch(19.5% 0.022 262);
  --panel-2: oklch(22.5% 0.024 262);
  --well: oklch(13.5% 0.02 262);
  --rule: oklch(31% 0.022 262);
  --rule-2: oklch(40% 0.026 262);
  --rule-soft: oklch(31% 0.022 262 / 0.6);   /* row dividers inside a table or list */
  --scrim: oklch(8% 0.02 265 / 0.62);

  /* ink */
  --ink: oklch(95.5% 0.008 250);
  --ink-2: oklch(80% 0.014 255);
  --ink-3: oklch(67% 0.016 258);
  --ink-4: oklch(55% 0.018 260);

  /* the one action colour: canary copy stock */
  --canary: oklch(88.5% 0.165 98);
  --canary-2: oklch(93% 0.13 100);
  --canary-ink: oklch(19% 0.03 262);
  --canary-glow: oklch(88.5% 0.165 98 / 0.18);

  /* stamps */
  --delivered: oklch(76% 0.15 152);
  --deferred: oklch(81% 0.145 75);
  --bounced: oklch(68% 0.19 25);
  --bounced-text: oklch(78% 0.12 25);   /* a remote server's refusal, read as text */
  --queued: oklch(73% 0.11 290);
  --transit: oklch(78% 0.1 230);
  --local: oklch(80% 0.07 200);
  --muted-stamp: oklch(62% 0.02 258);

  /* copy-part tints: projects as a data series (never a state hue) */
  --tint-paper: oklch(91% 0.012 250);
  --tint-rose: oklch(77% 0.12 352);
  --tint-sky: oklch(77% 0.1 234);
  --tint-lilac: oklch(75% 0.11 300);
  --tint-teal: oklch(77% 0.09 186);

  --f-ui: 'Archivo', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --f-data: 'Martian Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* type scale, 1.15 */
  --t-xs: 0.71875rem;   /* 11.5 */
  --t-sm: 0.78125rem;   /* 12.5 */
  --t-md: 0.84375rem;   /* 13.5 */
  --t-base: 0.90625rem; /* 14.5 */
  --t-lg: 1rem;         /* 16 */
  --t-xl: 1.15625rem;   /* 18.5 */
  --t-2xl: 1.375rem;    /* 22 */
  --t-3xl: 1.875rem;    /* 30 */

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px;
  --r: 5px;
  --r-lg: 8px;
  --rail-w: 236px;
  --top-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t-med: 220ms;
}

/* ---------- base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-base) / 1.5 var(--f-ui);
  font-stretch: 100%;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--canary);
}
::selection { background: oklch(88.5% 0.165 98 / 0.32); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--canary); outline-offset: 2px; border-radius: 3px; }
a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd, .mono { font-family: var(--f-data); font-size: 0.9em; font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s5) 0; }
img, svg { display: block; }
.i { flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s3); top: -100px; z-index: 100; background: var(--canary); color: var(--canary-ink); padding: var(--s2) var(--s3); border-radius: var(--r); font-weight: 650; }
.skip:focus { top: var(--s3); }
.num { font-variant-numeric: tabular-nums; }

/* field label: the small condensed caps printed above every waybill box */
.lbl {
  display: block;
  font: 600 var(--t-xs) / 1.2 var(--f-ui);
  font-stretch: 72%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.rail {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--rail);
  border-right: 1px solid var(--rule);
  padding: var(--s4) var(--s3);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: var(--s1) var(--s2) var(--s5); text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font: 700 1.0625rem / 1 var(--f-ui); font-stretch: 88%; letter-spacing: -0.01em; }
.brand__env { margin-left: auto; font: 600 10px / 1 var(--f-ui); font-stretch: 72%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deferred); border: 1px solid currentColor; border-radius: 3px; padding: 3px 5px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r);
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--t-md);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav a .i { color: var(--ink-3); transition: color var(--t-fast) var(--ease); }
.nav a:hover { background: oklch(100% 0 0 / 0.04); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.nav a[aria-current="page"] .i { color: var(--canary); }
.nav__count { margin-left: auto; font: 500 var(--t-xs) / 1 var(--f-data); font-stretch: 87.5%; color: var(--ink-3); }
.nav__count--alert { color: var(--bounced); }
.nav__sep { height: 1px; background: var(--rule); margin: var(--s3) var(--s2); }

.rail__foot { margin-top: auto; padding-top: var(--s4); display: grid; gap: var(--s2); }
.ident { border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 11px; display: grid; gap: 6px; background: oklch(100% 0 0 / 0.015); }
.ident__host { font: 500 var(--t-sm) / 1.3 var(--f-data); font-stretch: 87.5%; color: var(--ink); word-break: break-all; }
.ident__row { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--t-xs); color: var(--ink-3); }
.ident__row b { font-weight: 500; color: var(--ink-2); font-family: var(--f-data); font-stretch: 87.5%; }
.who { display: flex; align-items: center; gap: var(--s2); padding: 6px 4px; }
.who__av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--rule); font: 650 var(--t-xs) / 1 var(--f-ui); color: var(--ink-2); flex: none; }
.who__name { font-size: var(--t-sm); color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who form { margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: var(--s3);
  padding: 0 var(--s6);
  background: oklch(16.5% 0.022 262 / 0.9);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.top .top__menu { display: none; }
.search { flex: 1; max-width: 520px; position: relative; }
.search .i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 34px; }
.search kbd { position: absolute; right: 9px; top: 50%; translate: 0 -50%; font-size: var(--t-xs); color: var(--ink-3); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; background: var(--panel); }
.top__end { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
/* the project scope: every list follows it */
.scope { display: flex; align-items: center; gap: 8px; flex: none; }
.scope__select { height: 34px; width: auto; min-width: 170px; max-width: 220px; font-size: var(--t-sm); }
.scope__chip .ptag__chip { width: 10px; height: 14px; }
.rail__scope { display: none; padding: var(--s3) var(--s3) 0; }
.rail__scope .scope__select { width: 100%; max-width: none; }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.lang button { background: transparent; border: 0; color: var(--ink-3); font: 600 var(--t-xs) / 1 var(--f-ui); letter-spacing: 0.06em; padding: 7px 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); }

.page { padding: var(--s6) var(--s6) var(--s9); width: 100%; max-width: 1480px; }
.page__head { display: flex; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.page__title { font-size: var(--t-2xl); line-height: 1.15; letter-spacing: -0.015em; }
.page__sub { color: var(--ink-3); font-size: var(--t-md); margin-top: 4px; }
.page__actions { margin-left: auto; display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--ink-3); margin-bottom: var(--s2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.section { margin-top: var(--s7); }
.section__head { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); }
.section__title { font-size: var(--t-lg); font-weight: 650; }
.section__meta { color: var(--ink-3); font-size: var(--t-sm); }
.section__end { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }

/* ---------- controls ---------- */
.btn {
  --b: var(--rule-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 13px;
  border: 1px solid var(--b); border-radius: var(--r);
  background: transparent; color: var(--ink);
  font: 600 var(--t-md) / 1 var(--f-ui);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: oklch(100% 0 0 / 0.05); border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--canary); border-color: var(--canary); color: var(--canary-ink); }
.btn--primary:hover { background: var(--canary-2); border-color: var(--canary-2); }
.btn--danger { color: var(--bounced); --b: oklch(68% 0.19 25 / 0.55); }
.btn--danger:hover { background: oklch(68% 0.19 25 / 0.1); border-color: var(--bounced); }
.btn--quiet { border-color: transparent; color: var(--ink-2); }
.btn--quiet:hover { color: var(--ink); background: oklch(100% 0 0 / 0.05); border-color: transparent; }
.btn--sm { height: 28px; padding: 0 9px; font-size: var(--t-sm); gap: 5px; }
.btn--icon { width: 34px; padding: 0; }
.btn--sm.btn--icon { width: 28px; }
.btn[aria-busy="true"] { position: relative; color: transparent; }
.btn[aria-busy="true"]::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--ink-3) var(--ink-3) transparent transparent; animation: spin 0.7s linear infinite; }
.btn--primary[aria-busy="true"]::after { border-color: var(--canary-ink) var(--canary-ink) transparent transparent; }
@keyframes spin { to { rotate: 360deg; } }

.input, .select, .textarea {
  width: 100%;
  height: 34px;
  padding: 0 11px;
  background: var(--well);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  color: var(--ink);
  font: 400 var(--t-md) / 1.2 var(--f-ui);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { height: auto; min-height: 90px; padding: 9px 11px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--rule-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--canary); box-shadow: 0 0 0 3px var(--canary-glow); }
.input[aria-invalid="true"] { border-color: var(--bounced); }
.input--mono { font-family: var(--f-data); font-stretch: 87.5%; font-size: var(--t-sm); }
/* the chevron is a data URL, which cannot read tokens: its stroke is --ink-3 in sRGB */
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f969f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.field { display: grid; gap: 6px; }
.field__hint { font-size: var(--t-sm); color: var(--ink-3); }
.field__error { font-size: var(--t-sm); color: var(--bounced); }
.form-grid { display: grid; gap: var(--s4); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-md); color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--canary); width: 15px; height: 15px; }

.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); padding: 2px; gap: 2px; background: var(--well); }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; color: var(--ink-3); text-decoration: none; font: 600 var(--t-sm) / 1 var(--f-ui); background: transparent; border: 0; cursor: pointer; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--panel-2); color: var(--ink); box-shadow: 0 1px 0 oklch(0% 0 0 / 0.3); }

/* ---------- waybill fields ---------- */
.fbox {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 9px 12px 10px;
  background: var(--panel);
  display: grid; gap: 5px;
  min-width: 0;
}
.fbox__val { font-size: var(--t-base); color: var(--ink); min-width: 0; overflow-wrap: break-word; }
.fbox__val--mono { font-family: var(--f-data); font-stretch: 87.5%; font-size: var(--t-sm); }
.fbox__val--big { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.01em; }
.fbox__note { font-size: var(--t-xs); color: var(--ink-3); }

/* one ruled strip of boxes that share their borders, like a printed form */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.strip > * { border: 0; border-radius: 0; border-left: 1px solid var(--rule); background: transparent; }
.strip > :first-child { border-left: 0; }

/* ---------- stamps ---------- */
.stamp {
  --c: var(--muted-stamp);
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 7px;
  border: 1.5px solid var(--c);
  border-radius: 4px;
  color: var(--c);
  font: 700 10.5px / 1 var(--f-ui);
  font-stretch: 70%;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  white-space: nowrap;
  background: color-mix(in oklch, var(--c) 9%, transparent);
}
.stamp .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stamp--delivered { --c: var(--delivered); }
.stamp--deferred { --c: var(--deferred); }
.stamp--bounced, .stamp--failed, .stamp--void { --c: var(--bounced); }
.stamp--queued { --c: var(--queued); }
.stamp--transit { --c: var(--transit); }
.stamp--local { --c: var(--local); }
.stamp--partial { --c: var(--deferred); }
.stamp--muted { --c: var(--muted-stamp); }
.stamp--ok { --c: var(--delivered); }
.stamp--warn { --c: var(--deferred); }
.stamp--bad { --c: var(--bounced); }
.stamp--lg { height: 30px; padding: 0 11px; font-size: 13px; border-width: 2px; letter-spacing: 0.1em; }
.stamp--live .dot { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- project tag ---------- */
.ptag { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; max-width: 100%; }
.ptag__chip { width: 9px; height: 12px; border-radius: 2px; background: var(--tint); flex: none; box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.25); }
.ptag span:last-child { overflow: hidden; text-overflow: ellipsis; }
[data-tint="paper"] { --tint: var(--tint-paper); }
[data-tint="rose"] { --tint: var(--tint-rose); }
[data-tint="sky"] { --tint: var(--tint-sky); }
[data-tint="lilac"] { --tint: var(--tint-lilac); }
[data-tint="teal"] { --tint: var(--tint-teal); }

/* ---------- panels and tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.panel__head { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4); border-bottom: 1px solid var(--rule); }
.panel__title { font-size: var(--t-md); font-weight: 650; }
.panel__body { padding: var(--s4); }

.tbl-wrap { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: auto; background: var(--panel); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-md); }
.tbl th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; white-space: nowrap;
  padding: 0 var(--s3); height: 34px;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  font: 600 var(--t-xs) / 1 var(--f-ui); font-stretch: 72%; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3);
}
.tbl td { padding: 0 var(--s3); height: 40px; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t-fast) var(--ease), opacity var(--t-med) var(--ease); }
.tbl tbody tr:hover { background: oklch(100% 0 0 / 0.025); }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:focus-visible { outline: 2px solid var(--canary); outline-offset: -2px; }
.tbl .r { text-align: right; }
.tbl .mono { font-size: var(--t-sm); }
.tbl .dim { color: var(--ink-3); }
.tbl .grow { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tbl .ellip { overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
/* the streaming-wall raise: one focused row, the rest step back */
.tbl.is-focusing tbody tr:not(.is-focus) { opacity: 0.55; }
/* split-flap raise: a row that just changed flashes its stamp in place */
.tbl tr.is-fresh .stamp { animation: stampin 0.9s var(--ease); }
@keyframes stampin { 0% { transform: scale(1.35) rotate(-6deg); opacity: 0; } 60% { transform: scale(0.96) rotate(-1deg); opacity: 1; } 100% { transform: none; } }

.route { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.route .i { color: var(--ink-4); }
.route__a, .route__b { font-family: var(--f-data); font-stretch: 87.5%; font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the sender's short local part stays whole; the recipient gives way */
.route__a { flex: 0 0 auto; }
.route__b { flex: 1 1 auto; min-width: 0; }
.route__a { color: var(--ink-2); }
.track { font: 500 var(--t-sm) / 1 var(--f-data); font-stretch: 87.5%; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; }

.empty { display: grid; justify-items: start; gap: var(--s3); padding: var(--s7) var(--s6); }
.empty__title { font-size: var(--t-lg); font-weight: 650; }
.empty__body { color: var(--ink-3); max-width: 62ch; }

/* ---------- notices ---------- */
.notice { display: flex; align-items: flex-start; gap: var(--s3); padding: 12px var(--s4); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); }
.notice .i { margin-top: 2px; }
.notice--bad { border-color: oklch(68% 0.19 25 / 0.5); background: oklch(68% 0.19 25 / 0.07); }
.notice--bad > .i { color: var(--bounced); }
.notice--warn { border-color: oklch(81% 0.145 75 / 0.45); background: oklch(81% 0.145 75 / 0.06); }
.notice--warn > .i { color: var(--deferred); }
.notice--ok > .i { color: var(--delivered); }
.notice__body { display: grid; gap: 3px; min-width: 0; }
.notice__title { font-weight: 600; }
.notice__text { color: var(--ink-2); font-size: var(--t-md); }
.notice__act { margin-left: auto; flex: none; }

.copy { display: inline-flex; align-items: center; gap: 6px; }
.copy-btn { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 4px; border: 1px solid transparent; background: transparent; color: var(--ink-3); cursor: pointer; flex: none; }
.copy-btn:hover { color: var(--ink); border-color: var(--rule); background: var(--panel-2); }
.copy-btn.is-done { color: var(--delivered); }

/* ---------- drawer (the waybill opens here) ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(640px, 100vw); height: 100vh; height: 100dvh; max-height: none; max-width: none; padding: 0; border: 0; border-left: 1px solid var(--rule-2); background: var(--ground); color: var(--ink); box-shadow: -24px 0 60px oklch(0% 0 0 / 0.45); }
.drawer::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.drawer[open] { animation: drawin var(--t-med) var(--ease); }
@keyframes drawin { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
/* the close button has its own strip, so scrolled content never runs under it */
.drawer[open] { display: flex; flex-direction: column; }
.drawer__bar { flex: none; display: flex; justify-content: flex-end; align-items: center; height: 52px; padding: 0 10px; border-bottom: 1px solid var(--rule); }
.drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.drawer__body:focus { outline: none; }
.drawer__loading { padding: var(--s8) var(--s6); display: grid; gap: var(--s3); }
.skel { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel--40 { width: 40%; }
.skel--60 { width: 60%; }
.skel--70 { width: 70%; }
.skel--90 { width: 90%; }
.skel--tall { height: 30px; }
.skel--bars { height: 44px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: var(--s5); bottom: var(--s5); z-index: 60; display: grid; gap: var(--s2); }
.toast { display: flex; align-items: center; gap: var(--s2); padding: 10px 14px; border: 1px solid var(--rule-2); border-radius: var(--r-lg); background: var(--panel-2); box-shadow: 0 10px 30px oklch(0% 0 0 / 0.4); font-size: var(--t-md); animation: toastin var(--t-med) var(--ease); }
.toast--ok .i { color: var(--delivered); }
.toast--bad .i { color: var(--bounced); }
@keyframes toastin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- the waybill ---------- */
.slip {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 0 22px 22px;
  box-shadow: 0 28px 70px oklch(0% 0 0 / 0.42), inset 0 1px 0 oklch(100% 0 0 / 0.04);
}
.slip__band { height: 8px; margin: 0 -22px 18px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--tint, var(--tint-paper)); }
.slip__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.slip__track { margin-top: 12px; font: 600 var(--t-3xl) / 1 var(--f-data); font-stretch: 78%; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.slip__bars { margin-top: 12px; color: var(--ink); }
.slip__bars .barcode { width: 100%; height: 44px; }
.slip__route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.slip__events { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--rule-2); display: grid; gap: 9px; }
.slip__events li { display: grid; grid-template-columns: 76px max-content minmax(0, 1fr); gap: 12px; align-items: center; font-size: var(--t-sm); color: var(--ink-2); }
.slip__events .mono { color: var(--ink-3); }
.slip__stamp { rotate: -4deg; }

/* ---------- sign-in ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); background: var(--rail); }
.gate__art { position: relative; overflow: hidden; border-right: 1px solid var(--rule); background: var(--ground); display: flex; flex-direction: column; justify-content: space-between; padding: var(--s7); }
.gate__form { position: relative; display: flex; flex-direction: column; justify-content: center; padding: var(--s8) var(--s7); gap: var(--s5); }
.gate__lang { position: absolute; top: var(--s5); right: var(--s5); }
.gate__title { font-size: var(--t-2xl); letter-spacing: -0.015em; }
.gate__sub { color: var(--ink-3); font-size: var(--t-md); margin-top: 6px; }
.gate__foot { color: var(--ink-4); font-size: var(--t-xs); }
.gate__art .slip { width: min(500px, 100%); align-self: center; rotate: -1.2deg; }
.gate__claim { max-width: 46ch; display: grid; gap: 6px; }
.gate__claim-title { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.01em; }
.gate__claim-body { color: var(--ink-3); }
.gate__form .btn--primary { height: 40px; }
.gate__form .input { height: 40px; }
.input--code { letter-spacing: 0.3em; font-size: var(--t-lg); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-w); z-index: 40; translate: -100% 0; transition: translate var(--t-med) var(--ease); }
  body.nav-open .rail { translate: 0 0; box-shadow: 20px 0 50px oklch(0% 0 0 / 0.45); }
  body.nav-open::after { content: ''; position: fixed; inset: 0; z-index: 30; background: var(--scrim); }
  .top { padding: 0 var(--s4); }
  .top .top__menu { display: inline-flex; }
  .page { padding: var(--s5) var(--s4) var(--s8); }
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gate__art { display: none; }
}
@media (max-width: 640px) {
  .search kbd, .top__end .btn__label { display: none; }
  .top .scope { display: none; }
  .rail__scope { display: block; }
  /* filter tabs scroll sideways instead of wrapping their words */
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg a, .seg button { white-space: nowrap; flex: none; }
  .route__a { max-width: 10ch; }
  .strip { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > * { border-left: 0; border-top: 1px solid var(--rule); }
  .strip > :nth-child(2n) { border-left: 1px solid var(--rule); }
  .strip > :nth-child(-n + 2) { border-top: 0; }
  .page__title { font-size: var(--t-xl); }
  .tbl .hide-sm { display: none; }
  /* section heads stack: the title (and its button) first, the meta line under */
  .section__head { flex-wrap: wrap; row-gap: 4px; }
  .section__meta { order: 3; flex-basis: 100%; }
  /* a notice's next step drops under its words instead of squeezing them */
  .notice { flex-wrap: wrap; }
  .notice__body { flex: 1 1 0; }
  .notice__act { flex: 1 0 100%; margin-left: 0; padding-left: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* access.css */
/* Access: mailboxes and their cards, SMTP credentials, API keys, the panel
   that shows a secret once (a perforated stub stamped VIA ÚNICA), and the
   developer docs read inside the console. Tokens only; no raw colours. */

/* ---------- shared form pieces ---------- */
.acc-form { max-width: 760px; }
.acc-form .form-row { align-items: start; }
.acc-form .field { align-content: start; }
.acc-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.acc-row__field { flex: 1 1 240px; min-width: 0; }
.acc-row__field--fit { flex: 0 1 280px; }
.acc-row__err { flex-basis: 100%; }
.acc-row .btn { height: 34px; flex: none; }
.acc-row--note { align-items: center; }
.acc-row--note .mbx__note { flex: 1 1 260px; margin: 0; }
.acc-inline { display: inline-flex; margin: 0; }
.acc-filters-meta { margin-left: auto; color: var(--ink-3); font-size: var(--t-sm); }
.acc-empty-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* a value quoted inside a caps field label keeps its own case */
.acc-lbl-code { font: 500 0.75rem / 1 var(--f-data); font-stretch: 87.5%; letter-spacing: 0; text-transform: none; color: var(--ink-2); }

/* a quiet action that turns red only when it is about to cancel something */
.acc-void { color: var(--ink-3); }
.acc-void:hover { color: var(--bounced); background: oklch(68% 0.19 25 / 0.08); border-color: transparent; }

/* ticket wallet: a void row stays, stepped back, stamped */
.tbl--keys tr.is-void td, .tbl--cred tr.is-void td { color: var(--ink-4); }
.tbl--keys tr.is-void .ptag { opacity: 0.6; }

/* ---------- mailboxes list ---------- */
.mbx-list { display: grid; gap: var(--s7); }
.mbx-proj__head { flex-wrap: wrap; row-gap: var(--s2); }
.mbx-proj__title { display: inline-flex; align-items: center; gap: 9px; font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.01em; }
.mbx-proj__title .ptag__chip { width: 10px; height: 14px; }

.tbl--mbx { table-layout: fixed; }
.tbl--mbx .c-addr { width: 31%; }
.tbl--mbx .c-kind { width: 124px; }
.tbl--mbx .c-alias { width: 16%; }
.tbl--mbx .c-store { width: 164px; }
.tbl--mbx .c-created { width: 108px; }
.tbl--mbx td { overflow: hidden; text-overflow: ellipsis; height: 44px; }
.tbl--mbx .mbx-dom td { height: 30px; background: color-mix(in oklch, var(--panel) 55%, var(--well)); border-bottom: 1px solid var(--rule); }
.tbl--mbx tbody + tbody .mbx-dom td { border-top: 1px solid var(--rule); }
.tbl--mbx tbody tr.mbx-dom:hover, .tbl--mbx tbody tr.mbx-none:hover { background: transparent; }
.mbx-dom__in { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.mbx-dom__in .i { color: var(--ink-4); }
.mbx-dom__in .mono { font-size: var(--t-xs); }
.mbx-dom__n { color: var(--ink-4); font-size: var(--t-xs); }
.tbl--mbx .mbx-none td { color: var(--ink-3); font-size: var(--t-sm); }

.mbx-addr { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font: 500 var(--t-sm) / 1.35 var(--f-data); font-stretch: 87.5%; }
.mbx-addr__l { color: var(--ink); }
.mbx-addr__d { color: var(--ink-3); }
.mbx-addr:hover .mbx-addr__l { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.mbx-sm-kind { display: none; }

.mbx-kind { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: var(--t-sm); white-space: nowrap; }
.mbx-kind .i { color: var(--ink-3); }

.mbx-aliases .mono { font-size: var(--t-xs); color: var(--ink-2); }

/* storage: the figure, then a hairline meter (SVG: no style attributes) */
.mbx-store { display: grid; gap: 5px; min-width: 0; justify-items: start; }
.mbx-store__txt { font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mbx-meter { width: 100%; max-width: 132px; height: 3px; border-radius: 2px; overflow: hidden; }
.mbx-meter__track { fill: var(--rule); }
.mbx-meter__fill { fill: var(--ink-3); }
.mbx-store--high .mbx-meter__fill { fill: var(--deferred); }

/* ---------- new mailbox: kind as two boxed choices ---------- */
.mbx-kinds { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.mbx-kinds legend { padding: 0; margin-bottom: 6px; }
.mbx-kinds__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s2); }
.mbx-kopt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 12px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--well); cursor: pointer; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.mbx-kopt:hover { border-color: var(--rule-2); }
.mbx-kopt:has(input:checked) { border-color: var(--ink-3); background: var(--panel-2); }
.mbx-kopt:has(input:focus-visible) { outline: 2px solid var(--canary); outline-offset: 2px; }
.mbx-kopt input { accent-color: var(--canary); width: 15px; height: 15px; margin: 2px 0 0; flex: none; }
.mbx-kopt input:focus-visible { outline: none; }
.mbx-kopt__body { display: grid; gap: 3px; min-width: 0; }
.mbx-kopt__title { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: var(--t-md); }
.mbx-kopt__title .i { color: var(--ink-3); }
.mbx-kopt__hint { font-size: var(--t-sm); color: var(--ink-3); }

/* ---------- the mailbox card ---------- */
.mbx { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); max-width: 820px; }
.mbx > * { min-width: 0; }
.drawer .mbx { padding: var(--s6) var(--s6) var(--s7); max-width: none; }
.mbx__slip { box-shadow: none; }
.mbx__addr { margin-top: 12px; font: 600 1.5rem / 1.15 var(--f-data); font-stretch: 80%; overflow-wrap: anywhere; }
.mbx__addr .mbx-addr__d { color: var(--ink-3); }
/* a long address wraps before the @, never inside "qa-" */
.mbx__addr .mbx-addr__l, .mbx__addr .mbx-addr__d { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.mbx__desc { margin-top: 6px; color: var(--ink-2); }
.mbx__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); }
.mbx__store .mbx-store { gap: 7px; }
.mbx__store .mbx-meter { max-width: none; }
.mbx__sec .section__head { margin-bottom: var(--s2); }
.mbx__note { color: var(--ink-3); font-size: var(--t-sm); margin-bottom: var(--s3); max-width: 68ch; }
.mbx__empty { color: var(--ink-3); font-size: var(--t-md); }
.mbx__danger { border-top: 1px dashed var(--rule-2); padding-top: var(--s5); }

.acc-conn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.acc-conn .copy { max-width: 100%; min-width: 0; }
.acc-conn .copy .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* three boxes (SMTP only): the third takes the whole row instead of half */
.acc-conn > :nth-child(3):last-child, .acc-once__fields > :nth-child(3):last-child { grid-column: 1 / -1; }

.mbx-alist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); }
.mbx-alist li { display: flex; align-items: center; gap: var(--s2); min-height: 38px; padding: 3px 5px 3px 12px; border-top: 1px solid var(--rule-soft); }
.mbx-alist li:first-child { border-top: 0; }
.mbx-alist__a { font-size: var(--t-sm); color: var(--ink); overflow-wrap: anywhere; }
.mbx-alist .acc-inline { margin-left: auto; }

.tbl--cred td { height: 40px; }
.mbx-cred-name { font-size: var(--t-sm); color: var(--ink); }
.tbl--cred tr.is-void .mbx-cred-name { color: var(--ink-4); }
.mbx-cred-ext { margin-left: 8px; font-size: var(--t-xs); color: var(--ink-3); }
.mbx-cred-by { color: var(--ink-4); }

/* ---------- a secret, once: the perforated stub ---------- */
.acc-once { position: relative; display: grid; gap: var(--s4); max-width: 760px; padding: var(--s5); border: 1px solid var(--rule-2); border-radius: var(--r-lg); background: var(--panel); box-shadow: 0 18px 48px oklch(0% 0 0 / 0.34); }
/* focus lands here so a screen reader reads the title; it is not pressable,
   so no canary ring */
.acc-once:focus, .acc-once:focus-visible { outline: none; }
.acc-once__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.acc-once__title { font-size: var(--t-xl); line-height: 1.25; overflow-wrap: anywhere; }
.acc-once__stamp { flex: none; rotate: -4deg; animation: stampin 0.9s var(--ease); }
.acc-once__note { color: var(--ink-2); max-width: 64ch; }
.acc-once__secret { display: grid; gap: 7px; padding: 13px 14px 14px; border: 1px dashed var(--rule-2); border-radius: var(--r); background: var(--well); }
.acc-once__val { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.acc-once__code { flex: 1 1 260px; min-width: 0; font: 600 1.0625rem / 1.45 var(--f-data); font-stretch: 87.5%; color: var(--ink); letter-spacing: 0.01em; word-break: break-all; user-select: all; }
.drawer .acc-once__code { font-size: 0.9375rem; }
.acc-once__copy { flex: none; }
.acc-once__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.acc-once__use { display: grid; gap: var(--s2); }
.acc-once__use .dx-code { margin: 0; }
.acc-once__use-t { color: var(--ink-2); font-size: var(--t-md); }
.acc-once__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding-top: var(--s4); border-top: 1px dashed var(--rule-2); }
.acc-once__acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--s2); }
.drawer .acc-once { box-shadow: none; }

/* ---------- keys ---------- */
.tbl--keys .acc-key-name__t { font-weight: 550; color: var(--ink); }
.tbl--keys tr.is-void .acc-key-name__t { color: var(--ink-3); }
.acc-key-prefix { font-size: var(--t-sm); color: var(--ink-2); }
.acc-key-prefix--sm { display: none; }
.acc-key-when { font-size: var(--t-sm); }

/* ---------- docs ---------- */
.dx { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: var(--s8); align-items: start; max-width: 1120px; }
.dx-body { grid-column: 1; grid-row: 1; min-width: 0; }
.dx-toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--top-h) + var(--s5)); max-height: calc(100vh - var(--top-h) - var(--s8)); overflow-y: auto; padding-bottom: var(--s4); }
.dx-toc .lbl { margin-bottom: var(--s2); }
.dx-toc ol, .dx-tocsm ol { list-style: none; margin: 0; padding: 0; }
.dx-toc ol { border-left: 1px solid var(--rule); }
.dx-toc a { display: block; margin-left: -1px; padding: 4px 0 4px 12px; border-left: 1px solid transparent; color: var(--ink-3); font-size: var(--t-sm); line-height: 1.35; text-decoration: none; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.dx-toc a:hover { color: var(--ink); }
.dx-toc a[aria-current] { color: var(--ink); border-left-color: var(--ink-2); }
.dx-tocsm { display: none; }
.dx > .notice, .page > .notice + .dx { margin-top: var(--s4); }

.dx-prose { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-2); }
.dx-prose .dx-sec:first-child h2 { margin-top: 0; }
.dx-prose h2 { margin: var(--s8) 0 var(--s3); font-size: var(--t-xl); line-height: 1.25; color: var(--ink); scroll-margin-top: calc(var(--top-h) + var(--s4)); }
.dx-prose h3 { margin: var(--s5) 0 var(--s2); font-size: var(--t-base); font-weight: 650; color: var(--ink); }
.dx-prose p { margin: 0 0 var(--s3); }
.dx-prose p, .dx-prose li, .dx-prose dd { max-width: 68ch; }
.dx-prose strong { color: var(--ink); font-weight: 650; }
.dx-prose a { color: var(--ink); }
.dx-prose :not(pre) > code { padding: 1px 5px; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel-2); color: var(--ink); font-size: 0.84em; overflow-wrap: anywhere; }
.dx-prose .tbl { font-size: var(--t-md); }

.dx-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.dx-steps > li { counter-increment: step; position: relative; min-width: 0; padding-left: 36px; max-width: none; }
.dx-steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 50%; font: 600 var(--t-xs) / 1 var(--f-data); color: var(--ink-2); }
.dx-steps .dx-code { margin: var(--s2) 0 0; }

.dx-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin: 0 0 var(--s4); }
.dx-ways__item { padding: 12px 14px 13px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); }
.dx-ways dt { margin-bottom: 4px; font-weight: 650; color: var(--ink); }
.dx-ways dd { margin: 0; font-size: var(--t-md); }

.dx-ep { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 var(--s3); }
.dx-ep__verb { padding: 6px 8px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--panel-2); font: 700 var(--t-xs) / 1 var(--f-data); font-stretch: 87.5%; letter-spacing: 0.06em; color: var(--ink); }
.dx-prose .dx-ep__path { padding: 0; border: 0; background: none; font: 500 var(--t-base) / 1.2 var(--f-data); font-stretch: 87.5%; color: var(--ink); }

.dx-code { min-width: 0; margin: 0 0 var(--s4); overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--well); }
.dx-code__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 4px 5px 4px 14px; border-bottom: 1px solid var(--rule); background: oklch(100% 0 0 / 0.015); }
.dx-code__pre { margin: 0; padding: 12px 14px 14px; overflow-x: auto; font: 400 var(--t-sm) / 1.65 var(--f-data); font-stretch: 87.5%; color: var(--ink-2); tab-size: 2; }
.dx-code__pre:focus-visible { outline: 2px solid var(--canary); outline-offset: -2px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.dx-code__pre code { font: inherit; white-space: pre; color: inherit; }

.dx-tabs { margin: 0 0 var(--s4); }
.dx-tabs__list { margin-bottom: var(--s2); }
.dx-tabs .dx-code { margin-bottom: 0; }
.dx-tabs__panel + .dx-tabs__panel { margin-top: var(--s2); }
.dx-tabs__list [aria-selected="true"] { background: var(--panel-2); color: var(--ink); box-shadow: 0 1px 0 oklch(0% 0 0 / 0.3); }

.dx-defs, .dx-states { margin: 0 0 var(--s4); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); }
.dx-defs__row, .dx-states__row { display: grid; gap: var(--s3); padding: 9px 14px; border-top: 1px solid var(--rule-soft); align-items: start; }
.dx-defs__row:first-child, .dx-states__row:first-child { border-top: 0; }
.dx-defs__row { grid-template-columns: 128px minmax(0, 1fr); }
.dx-states__row { grid-template-columns: 212px minmax(0, 1fr); }
.dx-defs dt, .dx-states dt { margin: 0; }
.dx-defs dd, .dx-states dd { margin: 0; font-size: var(--t-md); }
.dx-states dt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.dx-prose .dx-states dt code { padding: 0; border: 0; background: none; color: var(--ink-3); font-size: var(--t-xs); }

.dx-limits { margin: 0 0 var(--s4); padding-left: 1.2em; }
.dx-limits li { margin-bottom: var(--s2); }
.dx-limits li::marker { color: var(--ink-4); }

.dx-tblwrap { margin: 0 0 var(--s4); }
.dx-tbl td { height: auto; padding-top: 9px; padding-bottom: 9px; white-space: normal; vertical-align: top; line-height: 1.5; }
.dx-tbl td:first-child, .dx-tbl td.mono { white-space: nowrap; }
.dx-prose .dx-tbl td:not(:last-child) code { white-space: nowrap; overflow-wrap: normal; }
.acc-conn--docs { margin: 0 0 var(--s4); }

/* ---------- narrow ---------- */
@media (max-width: 960px) {
  .dx { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dx-body { grid-row: auto; }
  .dx-toc { display: none; }
  .dx-tocsm { display: block; margin-bottom: var(--s5); border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); }
  .dx-tocsm summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--t-md); }
  .dx-tocsm summary::-webkit-details-marker { display: none; }
  .dx-tocsm summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); rotate: 45deg; translate: 0 -2px; transition: rotate var(--t-fast) var(--ease), translate var(--t-fast) var(--ease); }
  .dx-tocsm[open] summary::after { rotate: 225deg; translate: 0 2px; }
  .dx-tocsm ol { padding: 0 14px 10px; columns: 2; column-gap: var(--s4); }
  .dx-tocsm a { display: block; padding: 5px 0; color: var(--ink-2); font-size: var(--t-sm); text-decoration: none; break-inside: avoid; }
}

@media (max-width: 640px) {
  /* fixed layout would keep room for the hidden columns: the address grows instead */
  .tbl--mbx { table-layout: auto; }
  .tbl--mbx td.c-addr { width: 100%; max-width: 0; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .tbl--mbx .c-store { width: 134px; min-width: 134px; }
  .mbx__addr { font-size: 1.25rem; }
  .mbx-sm-kind { display: block; margin-top: 3px; }
  .mbx-sm-kind .mbx-kind { font-size: var(--t-xs); }
  .mbx-meter { max-width: 96px; }
  .drawer .mbx { padding: var(--s5) var(--s4) var(--s6); }
  .acc-row__field, .acc-row__field--fit { flex-basis: 100%; }
  .mbx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbx__store { grid-column: 1 / -1; }
  .acc-conn, .acc-once__fields, .dx-ways { grid-template-columns: minmax(0, 1fr); }
  .acc-once { padding: var(--s4); }
  .acc-once__head { flex-direction: column-reverse; align-items: flex-start; gap: var(--s2); }
  .acc-once__acts { margin-left: 0; }
  .acc-key-prefix--sm { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--ink-3); }
  .tbl--keys td.acc-key-name { height: auto; padding-top: 7px; padding-bottom: 7px; }
  .acc-filters-meta { margin-left: 0; width: 100%; }
  .dx-defs__row, .dx-states__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dx-tocsm ol { columns: 1; }
  .dx-prose { font-size: var(--t-base); }
  /* reference tables read as stacked entries: "from · string · Yes", then the words */
  .dx-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dx-tbl, .dx-tbl tbody, .dx-tbl tr { display: block; }
  .dx-tbl tr { padding: 10px 14px; border-top: 1px solid var(--rule-soft); }
  .dx-tbl tbody tr:first-child { border-top: 0; }
  .dx-tbl td { display: inline; height: auto; padding: 0; border: 0; white-space: normal; }
  .dx-tbl td + td::before { content: ' · '; color: var(--ink-4); }
  .dx-tbl td:last-child { display: block; margin-top: 4px; }
  .dx-tbl td:last-child::before { content: none; }
}

/* domains.css */
/* Projects and domains: the copy-colour picker, a project's colour band and
   strip of 7-day figures, the record meter, and the routing slip with its wayfinding
   sign, its record rows (printed-form boxes sharing hairlines) and the
   danger zone. */

/* ---------- copy-colour picker: each swatch is a small carbon-form copy ---------- */
.ptints { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s2); }
.ptints legend { padding: 0; margin-bottom: var(--s2); }
.ptints__row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ptint {
  position: relative;
  display: grid; justify-items: center; align-content: start; gap: 7px;
  width: 78px; padding: 12px 4px 8px;
  border-radius: var(--r-lg);
  color: var(--ink-3);
  font-size: var(--t-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ptint:hover { background: color-mix(in oklch, var(--ink) 4%, transparent); color: var(--ink-2); }
.ptint__input { position: absolute; top: 12px; left: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ptint__chip {
  position: relative;
  width: 38px; height: 50px;
  border-radius: 3px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.22), 0 6px 14px oklch(0% 0 0 / 0.32);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
/* ruled lines of the form copy */
.ptint__chip::before {
  content: ''; position: absolute; inset: 15px 7px 7px;
  background: repeating-linear-gradient(to bottom, oklch(0% 0 0 / 0.2) 0 1px, transparent 1px 7px);
}
/* folded corner */
.ptint__chip::after {
  content: ''; position: absolute; top: 0; right: 0; width: 10px; height: 10px;
  border-radius: 0 3px 0 0;
  background: linear-gradient(225deg, var(--ground) 50%, oklch(0% 0 0 / 0.28) 50%);
}
.ptint__name { line-height: 1.2; text-align: center; }
.ptint__used { font-size: var(--t-xs); color: var(--ink-4); line-height: 1; }
.ptint:has(.ptint__input:checked) { color: var(--ink); }
.ptint:has(.ptint__input:checked) .ptint__name { font-weight: 600; }
.ptint:has(.ptint__input:checked) .ptint__chip {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.22), 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ink), 0 12px 20px oklch(0% 0 0 / 0.4);
}
.ptint:has(.ptint__input:focus-visible) { outline: 2px solid var(--canary); outline-offset: 2px; }

/* ---------- forms ---------- */
.pj-form { max-width: 820px; }
.dom-form__foot { display: flex; justify-content: flex-end; align-items: center; gap: var(--s3); padding: 12px var(--s4); border-top: 1px solid var(--rule); }
.dom-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: var(--s6); align-items: start; max-width: 1120px; }
.dom-steps { padding-top: var(--s2); }
.dom-steps__list { list-style: none; margin: var(--s3) 0 0; padding: 0; counter-reset: step; display: grid; gap: var(--s3); }
.dom-steps__list li { counter-increment: step; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); color: var(--ink-2); font-size: var(--t-md); line-height: 1.45; }
.dom-steps__list li::before {
  content: counter(step);
  width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--rule-2); border-radius: 50%;
  font: 500 var(--t-xs) / 1 var(--f-data); font-stretch: 87.5%; color: var(--ink-3);
}

/* ---------- projects list ---------- */
.tbl--projects td { white-space: normal; height: auto; padding-top: 11px; padding-bottom: 11px; }
.pj-cell { min-width: 150px; }
.pj-name { display: inline-flex; text-decoration: none; }
.pj-name .ptag { color: var(--ink); font-size: var(--t-md); font-weight: 600; }
.pj-name:hover .ptag span:last-child { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.pj-slug { display: block; margin-top: 3px; padding-left: 16px; font-size: var(--t-xs); color: var(--ink-3); }
.pj-doms { min-width: 190px; }
.pj-dom { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 3px 16px 3px 0; text-decoration: none; }
.pj-dom__name { font-family: var(--f-data); font-stretch: 87.5%; font-size: var(--t-sm); color: var(--ink); white-space: nowrap; }
.pj-dom:hover .pj-dom__name { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.tbl tr.is-archived .ptag, .tbl tr.is-archived .num { color: var(--ink-3); }

/* ---------- a project's page ---------- */
.pj-head { margin-bottom: var(--s2); }
.pj-head__band { height: 7px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--tint, var(--tint-paper)); box-shadow: inset 0 -1px 0 oklch(0% 0 0 / 0.25); }
.pj-head__stats { border-radius: 0 0 var(--r-lg) var(--r-lg); border-top: 0; }
/* values sit right under their labels even when a neighbour carries a note */
.pj-head__stats > .fbox, .drs__meta > .fbox { align-content: start; }
.pj-head__stats .fbox__val { font-size: var(--t-lg); font-weight: 600; }
.pj-head__stats .fbox__note { line-height: 1.3; }
.pj-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.pj-box { min-width: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); padding: 10px var(--s4) var(--s3); }
.pj-box__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: 4px; }
.pj-list { list-style: none; margin: 0; padding: 0; }
.pj-list li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: 8px 0; border-top: 1px solid color-mix(in oklch, var(--rule) 60%, transparent); min-width: 0; }
.pj-list li:first-child { border-top: 0; }
.pj-list__main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-md); }
.pj-list .mono.pj-list__main { font-size: var(--t-sm); }
.pj-list__sub { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-xs); color: var(--ink-3); }
.pj-list li.is-void .pj-list__main { color: var(--ink-3); }
.pj-list__empty, .pj-list__more { padding: 8px 0 4px; color: var(--ink-3); font-size: var(--t-md); max-width: 60ch; }

.pj-settings { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.pj-archive { justify-items: start; }
.pj-archive__why { font-size: var(--t-sm); color: var(--ink-2); max-width: 60ch; }

/* ---------- danger zone ---------- */
.dzone { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid color-mix(in oklch, var(--bounced) 32%, transparent); border-radius: var(--r-lg); background: color-mix(in oklch, var(--bounced) 3.5%, transparent); }
.dzone__body { color: var(--ink-2); font-size: var(--t-md); max-width: 72ch; }
.dzone__body b { color: var(--ink); font-weight: 600; }
.dzone__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.dzone__form .field { flex: 1 1 260px; max-width: 420px; }
.dzone__error { flex-basis: 100%; }
.dzone__label { font-size: var(--t-sm); color: var(--ink-2); }
.dzone__name { padding: 1px 5px; border: 1px solid var(--rule); border-radius: 3px; background: var(--well); color: var(--ink); font-size: var(--t-sm); }

/* ---------- domains list and the record meter ---------- */
.dom-notice { margin-bottom: var(--s4); }
.dom-link { font-family: var(--f-data); font-stretch: 87.5%; font-size: var(--t-sm); color: var(--ink); text-decoration: none; }
.dom-link:hover { text-decoration: underline; text-decoration-color: var(--rule-2); }
.rmeter { display: inline-flex; align-items: center; gap: 8px; }
.rmeter__cells { display: inline-flex; gap: 3px; }
.rmeter__c { width: 8px; height: 13px; border-radius: 2px; border: 1.5px solid var(--rule-2); }
.rmeter__c--ok { background: var(--delivered); border-color: var(--delivered); }
.rmeter__c--missing { border-color: var(--deferred); }
.rmeter__c--different { background: var(--bounced); border-color: var(--bounced); }
.rmeter__c--error, .rmeter__c--none { border-style: dashed; border-color: var(--ink-4); }
.rmeter__n { font-size: var(--t-sm); color: var(--ink-2); }

/* ---------- the routing slip ---------- */
.drs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.drs > * { min-width: 0; }
.drs > .section { margin-top: var(--s3); }
.drs__slip { box-shadow: 0 18px 48px oklch(0% 0 0 / 0.3), inset 0 1px 0 oklch(100% 0 0 / 0.04); }
.drs__meta { margin-top: 16px; }
.drs__meta .fbox__val { font-size: var(--t-md); }
.drs__meta .fbox__val--mono { font-size: var(--t-sm); }
.drs__plink { text-decoration: none; }
.drs__plink .ptag { color: var(--ink); font-size: var(--t-md); }
.drs__help { margin: 0 0 var(--s4); max-width: 82ch; color: var(--ink-3); font-size: var(--t-md); }
.drs__hint { margin-top: var(--s2); color: var(--ink-3); font-size: var(--t-sm); }

/* airport wayfinding: the one next step, and the one way to act on it */
.dsign {
  display: flex; align-items: center; gap: var(--s4);
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  background: var(--panel-2);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 26px oklch(0% 0 0 / 0.22);
}
.dsign__mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: var(--r); background: var(--rule); color: var(--ink); }
.dsign__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.dsign__text { font-size: var(--t-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; text-wrap: balance; }
.dsign__go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); transition: color var(--t-fast) var(--ease); }
.dsign__act { flex: none; }
.dsign--ok .dsign__mark { background: color-mix(in oklch, var(--delivered) 15%, transparent); color: var(--delivered); }
.dsign--bad .dsign__mark { background: color-mix(in oklch, var(--bounced) 15%, transparent); color: var(--bounced); }
.dsign--warn .dsign__mark { background: color-mix(in oklch, var(--deferred) 14%, transparent); color: var(--deferred); }
.dsign--muted .dsign__mark { background: var(--rule); color: var(--ink-2); }
/* the whole sign is pressable: its arrow takes the action colour */
.dsign--link { transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.dsign--link .dsign__mark { background: var(--canary); color: var(--canary-ink); }
.dsign--link:hover { border-color: var(--ink-4); background: color-mix(in oklch, var(--panel-2), var(--ink) 4%); }
.dsign--link:hover .dsign__go { color: var(--ink); }
.dsign--busy .dsign__mark .i { animation: pulse 1.6s var(--ease) infinite; }

/* each record: a head line, then one row of printed-form boxes */
.drecs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.drec {
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  scroll-margin-top: calc(var(--top-h) + var(--s4));
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.drec:target { border-color: var(--ink-4); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 10%, transparent); }
.drec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s3); padding: 11px var(--s4) 10px; }
.drec__title { font-size: var(--t-base); font-weight: 650; }
.drec__why { flex: 1 1 240px; min-width: 0; color: var(--ink-3); font-size: var(--t-sm); }
.drec__stamp { margin-left: auto; display: inline-flex; }
.drec__grid {
  display: grid; gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  grid-template-columns: 74px minmax(170px, 1.1fr) minmax(0, 3fr) 92px 84px;
  grid-template-areas: "type host value prio ttl";
}
.drec__f { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 9px 12px 11px; background: var(--panel); }
.drec__f--type { grid-area: type; }
.drec__f--host { grid-area: host; }
.drec__f--value { grid-area: value; background: color-mix(in oklch, var(--panel) 72%, var(--well)); }
.drec__f--prio { grid-area: prio; }
.drec__f--ttl { grid-area: ttl; }
.drec__v { min-width: 0; font-size: var(--t-md); color: var(--ink); }
.drec__v.mono { font-size: var(--t-sm); }
.drec__v .copy { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
/* a record value stays one unbroken line (it scrolls): copied by the button, read whole */
.drec__v .copy > .mono { min-width: 0; padding-top: 4px; font-size: var(--t-sm); line-height: 1.55; color: var(--ink); white-space: pre; overflow-x: auto; scrollbar-width: thin; }
.drec__fqdn { font-size: var(--t-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.drec__obs { display: grid; gap: 6px; padding: 10px var(--s4) 12px; border-top: 1px dashed var(--rule-2); }
.drec__seen { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s3); align-items: baseline; }
.drec__seen-v { font-size: var(--t-sm); color: var(--ink-2); white-space: pre; overflow-x: auto; scrollbar-width: thin; }
.drec__note { font-size: var(--t-sm); color: var(--ink-2); max-width: 90ch; }
/* split-flap raise: a record whose verdict just changed re-stamps in place */
.drec.is-fresh .drec__stamp .stamp { animation: stampin 0.9s var(--ease); }

.tbl--dkim td { height: 42px; }
.dkim-foreign { margin-left: 6px; font-size: var(--t-xs); color: var(--ink-3); }
.dkim-rec { text-decoration: none; }
.dkim-none { margin-bottom: var(--s3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .drec__grid { grid-template-columns: 66px minmax(150px, 1fr) minmax(0, 2.4fr) 84px 76px; }
}
@media (max-width: 860px) {
  .dom-new, .pj-two, .pj-settings { grid-template-columns: minmax(0, 1fr); }
  .drec__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "type prio ttl" "host host host" "value value value"; }
}
@media (max-width: 640px) {
  .section__meta.hide-sm { display: none; }
  .drs { gap: var(--s4); }
  .drec__head { padding: 10px 12px; }
  .drec__why { order: 3; flex-basis: 100%; }
  .drec__f { padding: 8px 10px 10px; }
  .drec__obs { padding: 10px 12px; }
  .drec__seen { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dsign { flex-wrap: wrap; align-items: flex-start; gap: var(--s3); padding: 12px; }
  .dsign__mark { width: 36px; height: 36px; }
  .dsign__text { font-size: var(--t-base); }
  .dsign__go { display: none; }
  .dsign__act { width: 100%; padding-left: calc(36px + var(--s3)); }
  .ptints__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .ptint { width: auto; padding-left: 0; padding-right: 0; }
  .ptint__name { font-size: var(--t-xs); font-stretch: 85%; white-space: nowrap; }
  .pj-slug { padding-left: 16px; }
  .dom-form__foot .btn { width: 100%; }
}

/* messages.css */
/* Overview health line, attention list, manifest, consignment tables and
   the waybill drawer. */

/* ---------- health line ---------- */
.hl { margin-bottom: var(--s2); }
.hl__cell { padding: 11px 14px 12px; gap: 6px; }
.hl__val { display: flex; align-items: center; gap: 8px; font-size: var(--t-base); font-weight: 600; letter-spacing: -0.005em; }
.hl__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-stamp); flex: none; }
.hl__cell--ok .hl__dot { background: var(--delivered); box-shadow: 0 0 0 3px oklch(76% 0.15 152 / 0.16); }
.hl__cell--warn .hl__dot { background: var(--deferred); box-shadow: 0 0 0 3px oklch(81% 0.145 75 / 0.16); }
.hl__cell--bad .hl__dot { background: var(--bounced); box-shadow: 0 0 0 3px oklch(68% 0.19 25 / 0.18); }
.hl__cell--bad .hl__val { color: var(--bounced); }
.hl__cell .fbox__note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* attention: one line per exception, the stamp first, the why opens under */
.att { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); }
.att__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: start; gap: 0 var(--s3); padding: 8px var(--s3) 8px var(--s4); }
.att__row + .att__row { border-top: 1px solid var(--rule-soft); }
.att__stamp { justify-self: start; margin-top: 7px; }
.att__why { min-width: 0; }
.att__why summary { display: flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; list-style: none; border-radius: 4px; }
.att__why summary::-webkit-details-marker { display: none; }
.att__why summary:focus-visible { outline: 2px solid var(--canary); outline-offset: 2px; }
.att__why summary .i { flex: none; color: var(--ink-3); transition: rotate var(--t-fast) var(--ease); }
.att__why[open] summary .i { rotate: 180deg; }
.att__why summary:hover .att__title { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
span.att__why { display: flex; align-items: center; min-height: 32px; }
.att__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.att__text { margin: 0 0 8px; max-width: 75ch; color: var(--ink-2); font-size: var(--t-md); }
.att__act { align-self: start; margin-top: 2px; }

/* ---------- manifest ---------- */
.manifest { margin: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); padding: var(--s4) var(--s4) var(--s3); }
.manifest--empty { padding: var(--s5) var(--s4); }
.manifest__chart { display: block; width: 100%; height: 130px; overflow: visible; }
.mf-base { stroke: var(--rule-2); stroke-width: 1; }
.mf-delivered { fill: var(--delivered); }
.mf-flight { fill: var(--deferred); }
.mf-bounced { fill: var(--bounced); }
.mf-none { fill: var(--rule); }
.mf-col:hover rect { filter: brightness(1.18); }
.mf-onset { stroke: var(--bounced); stroke-width: 1.2; stroke-dasharray: 3 3; }
/* the words around the plot share its 24 columns (gap 6 of 960 = 0.625%) */
.manifest__marks, .manifest__ticks { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: 0.625%; }
.manifest__marks { min-height: 15px; margin-bottom: 3px; }
.manifest__ticks { margin-top: 7px; }
.mf-tick { justify-self: center; white-space: nowrap; color: var(--ink-3); font: 500 10.5px / 1 var(--f-data); font-stretch: 87.5%; }
.mf-onset-label { align-self: end; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--bounced); font: 600 11px / 1.2 var(--f-ui); font-stretch: 80%; letter-spacing: 0.04em; text-transform: uppercase; }
.mf-onset-label--left { text-align: right; }
.mf-from-4 { grid-column: 4 / -1; }
.mf-from-5 { grid-column: 5 / -1; }
.mf-from-6 { grid-column: 6 / -1; }
.mf-from-7 { grid-column: 7 / -1; }
.mf-from-8 { grid-column: 8 / -1; }
.mf-from-9 { grid-column: 9 / -1; }
.mf-from-10 { grid-column: 10 / -1; }
.mf-from-11 { grid-column: 11 / -1; }
.mf-from-12 { grid-column: 12 / -1; }
.mf-from-13 { grid-column: 13 / -1; }
.mf-from-14 { grid-column: 14 / -1; }
.mf-from-15 { grid-column: 15 / -1; }
.mf-from-16 { grid-column: 16 / -1; }
.mf-from-17 { grid-column: 17 / -1; }
.mf-from-18 { grid-column: 18 / -1; }
.mf-from-19 { grid-column: 19 / -1; }
.mf-from-20 { grid-column: 20 / -1; }
.mf-from-21 { grid-column: 21 / -1; }
.mf-from-22 { grid-column: 22 / -1; }
.mf-from-23 { grid-column: 23 / -1; }
.mf-from-24 { grid-column: 24 / -1; }
.mf-upto-4 { grid-column: 1 / 4; }
.mf-upto-5 { grid-column: 1 / 5; }
.mf-upto-6 { grid-column: 1 / 6; }
.mf-upto-7 { grid-column: 1 / 7; }
.mf-upto-8 { grid-column: 1 / 8; }
.mf-upto-9 { grid-column: 1 / 9; }
.mf-upto-10 { grid-column: 1 / 10; }
.mf-upto-11 { grid-column: 1 / 11; }
.mf-upto-12 { grid-column: 1 / 12; }
.mf-upto-13 { grid-column: 1 / 13; }
.mf-upto-14 { grid-column: 1 / 14; }
.mf-upto-15 { grid-column: 1 / 15; }
.mf-upto-16 { grid-column: 1 / 16; }
.mf-upto-17 { grid-column: 1 / 17; }
.mf-upto-18 { grid-column: 1 / 18; }
.mf-upto-19 { grid-column: 1 / 19; }
.mf-upto-20 { grid-column: 1 / 20; }
.mf-upto-21 { grid-column: 1 / 21; }
.mf-upto-22 { grid-column: 1 / 22; }
.mf-upto-23 { grid-column: 1 / 23; }
.mf-upto-24 { grid-column: 1 / 24; }

.manifest__legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s3); font-size: var(--t-sm); color: var(--ink-3); }
.manifest__legend b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.mf-key::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.mf-key--delivered::before { background: var(--delivered); }
.mf-key--flight::before { background: var(--deferred); }
.mf-key--bounced::before { background: var(--bounced); }
.manifest__total { margin-left: auto; font-family: var(--f-data); font-stretch: 87.5%; font-size: var(--t-xs); }

/* ---------- consignment tables ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
.select--sm { height: 30px; width: auto; min-width: 150px; font-size: var(--t-sm); }
.tbl--msgs td { height: 44px; }
.tbl--msgs .route-cell { max-width: 340px; }
.more { font: 600 var(--t-xs) / 1 var(--f-data); font-stretch: 87.5%; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 3px; padding: 2px 4px; margin-left: 4px; vertical-align: 1px; }
.tbl a.track { text-decoration: none; }
/* the project's copy tint before the tracking number, only where the project column folds away */
.msg-chip { display: none; }
.tbl a.track:hover { text-decoration: underline; text-decoration-color: var(--rule-2); }
.pager { display: flex; justify-content: center; padding: var(--s4) 0 0; }

/* ---------- test send ---------- */
.compose { max-width: 760px; }
.from { display: flex; align-items: center; gap: 6px; }
.from .input { width: 140px; flex: none; }
.from .select { flex: 1; min-width: 0; }
.from__at { color: var(--ink-3); font-family: var(--f-data); }
.panel__foot { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4); border-top: 1px solid var(--rule); }
.panel__foot .btn { margin-left: auto; }

/* ---------- the waybill ---------- */
.wb { padding: var(--s6) var(--s6) var(--s7); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.wb > * { min-width: 0; }
.wb__grid > * { min-width: 0; }
.wb__slip { box-shadow: none; border-color: var(--rule-2); }
.wb__slip .slip__track { font-size: 2.125rem; }
.wb__dsn { margin-top: var(--s3); font-size: var(--t-sm); color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.wb__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.wb__wide { grid-column: 1 / -1; }
.wb__sec .section__head { margin-bottom: var(--s2); }
.tbl--rcpts td { white-space: normal; height: auto; padding-top: 9px; padding-bottom: 9px; vertical-align: top; }
.tbl--rcpts td.mono { white-space: nowrap; }

.wb__reply { color: var(--ink-2); font-size: var(--t-sm); min-width: 220px; }
.wb__reply .mono { color: var(--ink); }
.wb__rbody { display: block; min-width: 0; }
.wb__next, .wb__host { display: block; margin-top: 3px; font-size: var(--t-xs); color: var(--ink-3); font-family: var(--f-data); font-stretch: 87.5%; }
.wb__foot { font-size: var(--t-sm); }

/* event timeline: time, stamp, words; a hairline threads the ticks */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 92px; top: 10px; bottom: 10px; width: 1px; background: var(--rule); }
.tl__ev { display: grid; grid-template-columns: 70px 104px minmax(0, 1fr); gap: 0 var(--s3); align-items: start; padding: 7px 0; position: relative; }
.tl__at { color: var(--ink-3); font-size: var(--t-xs); padding-top: 4px; }
.tl__mark { display: flex; position: relative; z-index: 1; }
.tl__tick { width: 9px; height: 9px; margin: 6px 0 0 18px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--rule-2); }
.tl__mark .stamp { background: var(--ground); box-shadow: 0 0 0 4px var(--ground); }
.tl__text { color: var(--ink-2); font-size: var(--t-md); padding-top: 2px; }
.tl__ev--delivered .tl__text, .tl__ev--bounced .tl__text, .tl__ev--local .tl__text { color: var(--ink); }
.tl__extra { display: block; margin-top: 3px; font-size: var(--t-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.tl__ev--bounced .tl__extra { color: var(--bounced-text); }

@media (max-width: 640px) {
  .wb { padding: var(--s5) var(--s4) var(--s6); }
  .wb__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wb__slip .slip__track { font-size: 1.5rem; }
  .slip__route { grid-template-columns: minmax(0, 1fr); }
  .tl::before { left: 74px; }
  .tl__ev { grid-template-columns: 58px 92px minmax(0, 1fr); gap: 0 var(--s2); }
  .manifest__total { margin-left: 0; width: 100%; }
  .mf-tick--minor { visibility: hidden; }
  .att__row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "stamp why" ". act"; row-gap: 4px; padding: 10px var(--s3); }
  .att__stamp { grid-area: stamp; margin-top: 7px; }
  .att__why { grid-area: why; }
  .att__act { grid-area: act; margin: 0 0 4px; }
  .att__title { white-space: normal; }

  /* a consignment becomes two lines, tracking and stamp over route and time,
     so the state never scrolls out of view */
  .tbl--msgs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tbl--msgs, .tbl--msgs tbody { display: block; }
  .tbl--msgs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "track state" "route time"; align-items: center; gap: 5px var(--s3); padding: 10px var(--s3); border-bottom: 1px solid var(--rule-soft); }
  .tbl--msgs tbody tr:last-child { border-bottom: 0; }
  .tbl--msgs td { display: block; height: auto; padding: 0; border: 0; min-width: 0; }
  .tbl--msgs td:nth-child(1) { grid-area: track; }
  .tbl--msgs td:nth-child(3) { grid-area: route; }
  .tbl--msgs td:nth-child(5) { grid-area: state; justify-self: end; }
  .tbl--msgs td:nth-child(6) { grid-area: time; font-size: var(--t-xs); }
  .tbl--msgs .route-cell { max-width: none; }
  .msg-chip { display: inline-flex; margin-right: 8px; vertical-align: -1px; }

  /* recipients stack into one waybill line each, the column name inside the cell */
  .tbl--rcpts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tbl--rcpts, .tbl--rcpts tbody, .tbl--rcpts tr { display: block; }
  .tbl--rcpts tr { padding: 10px var(--s3) 11px; border-bottom: 1px solid var(--rule-soft); }
  .tbl--rcpts tbody tr:last-child { border-bottom: 0; }
  .tbl--rcpts td, .tbl--rcpts td.mono { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s3); align-items: baseline; padding: 3px 0; border-bottom: 0; white-space: normal; text-align: left; }
  .tbl--rcpts td.mono { overflow-wrap: break-word; }
  .tbl--rcpts td.r { text-align: left; }
  .tbl--rcpts td::before { content: attr(data-label); font: 600 var(--t-xs) / 1.2 var(--f-ui); font-stretch: 72%; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
  .tbl--rcpts td > .stamp { justify-self: start; }
  .wb__reply { min-width: 0; }
}

/* platform.css */
/* Platform: deliverability (dlv-: bounce meters, blocklists, DMARC and TLS
   reports per domain) and settings (set-: identity and DNS, operators, your
   account and its second factor, activity, the engine's webhook); pf- is
   shared by both. Every class is prefixed so no other feature's sheet can
   reach these pages. */

.pf-fine { margin-top: var(--s2); font-size: var(--t-sm); color: var(--ink-3); max-width: 78ch; }
.tbl td.pf-wrap { white-space: normal; min-width: 200px; }
.pf-sm-only { display: none; }
.pf-nobr { white-space: nowrap; }

/* row headers in these tables are body cells, not sticky column labels */
.tbl--dlv-bounce tbody th,
.tbl--dlv-lists tbody th {
  position: static;
  height: auto;
  padding: 10px var(--s3);
  background: transparent;
  border-bottom: 1px solid var(--rule-soft);
  font: 500 var(--t-md) / 1.3 var(--f-ui);
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.tbl--dlv-bounce tbody tr:last-child th,
.tbl--dlv-lists tbody tr:last-child th { border-bottom: 0; }

/* ---------- deliverability ---------- */
.dlv-strip { margin-bottom: var(--s2); }

.tbl--dlv-bounce td { height: auto; padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.tbl--dlv-bounce tr.is-total th, .tbl--dlv-bounce tr.is-total td { background: oklch(100% 0 0 / 0.018); }
.dlv-all { font-weight: 600; }
.dlv-who { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.dlv-rate { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 6px 10px; min-width: 150px; max-width: 280px; }
.dlv-rate__val { font: 600 var(--t-md) / 1 var(--f-data); font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.dlv-rate__n { font-size: var(--t-xs); color: var(--ink-3); text-align: right; white-space: nowrap; }
.dlv-rate .dlv-meter { grid-column: 1 / -1; }
.dlv-rate--none .dlv-rate__val { font: 400 var(--t-sm) / 1.3 var(--f-ui); color: var(--ink-3); }

/* the bounce meter: a 0-20% track, the fill carries the state, the mark at
   the middle is the provider's 10% line */
.dlv-meter { position: relative; display: block; height: 12px; min-width: 96px; --mf: var(--muted-stamp); --mt: var(--well); }
.dlv-meter__bar { position: absolute; left: 0; right: 0; top: 3px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--mt); }
.dlv-meter__bar svg { display: block; width: 100%; height: 100%; }
.dlv-meter__fill { fill: var(--mf); }
.dlv-meter::after { content: ''; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--ink-2); }
.dlv-meter--ok { --mf: var(--delivered); --mt: color-mix(in oklch, var(--delivered) 16%, var(--well)); }
.dlv-meter--warn { --mf: var(--deferred); --mt: color-mix(in oklch, var(--deferred) 16%, var(--well)); }
.dlv-meter--bad { --mf: var(--bounced); --mt: color-mix(in oklch, var(--bounced) 18%, var(--well)); }
.dlv-meter--over::before { content: ''; position: absolute; right: -7px; top: 3px; border-left: 5px solid var(--bounced); border-top: 3px solid transparent; border-bottom: 3px solid transparent; }

.dlv-why { color: var(--ink-2); font-size: var(--t-sm); }
.tbl--dlv-lists td { height: auto; padding-top: 10px; padding-bottom: 10px; }

.dlv-dom { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.dlv-dom .section__head { flex-wrap: wrap; }
.dlv-dom__intro > .notice { margin-bottom: var(--s3); }
.dlv-dom__block + .dlv-dom__block { margin-top: var(--s5); }
.dlv-dom__h { font-size: var(--t-md); font-weight: 650; color: var(--ink-2); margin-bottom: var(--s2); letter-spacing: 0; }
.dlv-dom__strip { margin-bottom: var(--s3); }
.dlv-dom__block > .notice { margin-bottom: var(--s3); }
.dlv-dom__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4); }
.dlv-dom__part { min-width: 0; }
.dlv-dom__sub { margin: 0 0 var(--s2); font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); }
.dlv-dom__none { color: var(--ink-3); font-size: var(--t-md); max-width: 78ch; }
.dlv-dom__none-title { color: var(--ink-2); font-weight: 600; }
.dlv-dom__empty { border: 1px dashed var(--rule-2); border-radius: var(--r-lg); padding: 14px var(--s4); }
.tbl--dlv-orgs .ellip { max-width: 220px; }

/* ---------- settings ---------- */
.set-tabs { display: flex; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: var(--s5); scrollbar-width: none; }
.set-tabs::-webkit-scrollbar { display: none; }
.set-tabs a { flex: none; white-space: nowrap; padding: 7px 12px; }
.set-tabs a[aria-current="page"] { background: var(--panel-2); color: var(--ink); box-shadow: 0 1px 0 oklch(0% 0 0 / 0.3); }
.set-done { margin-bottom: var(--s4); }
.set-verdict--top { margin: 0 0 var(--s3); }

.set-idn__ptr { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.set-verdict { display: grid; gap: var(--s2); margin-top: var(--s3); }
.set-verdict:empty { display: none; }

.tbl--set-rec td { white-space: normal; height: auto; padding-top: 10px; padding-bottom: 10px; vertical-align: top; }
.tbl--set-rec td.set-rec__type { padding-top: 14px; }
.tbl--set-rec .stamp { margin-top: 2px; }
.tbl--set-rec .copy { max-width: 100%; align-items: flex-start; }
.tbl--set-rec .copy .mono { padding-top: 4px; overflow-wrap: anywhere; }
.set-rec__name { min-width: 160px; }
.set-rec__value { min-width: 240px; }
.set-rec__fqdn, .set-rec__seen { display: block; margin-top: 3px; font-size: var(--t-xs); color: var(--ink-3); }
.set-rec__fqdn { font-family: var(--f-data); font-stretch: 87.5%; overflow-wrap: normal; word-break: normal; }
.set-rec__seen .mono { color: var(--ink-2); overflow-wrap: anywhere; }
.set-rec__kind { font: 600 var(--t-xs) / 1 var(--f-data); font-stretch: 87.5%; color: var(--ink-3); margin-bottom: 4px; }
.set-rec__stamp { margin-top: 8px; }

.set-ticket { display: grid; gap: var(--s3); max-width: 780px; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); }
.set-ticket__lead { color: var(--ink-2); }
.set-ticket__text { margin: 0; padding: 14px 16px; background: var(--well); border: 1px dashed var(--rule-2); border-radius: var(--r); color: var(--ink); font: 400 var(--t-sm) / 1.7 var(--f-data); font-stretch: 87.5%; white-space: pre-wrap; overflow-wrap: anywhere; }
.set-ticket__foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); }
.set-ticket__warn { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--ink-2); font-size: var(--t-sm); max-width: 60ch; }
.set-ticket__warn .i { color: var(--deferred); margin-top: 2px; }

.set-cert__names { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.set-cert__names .mono { color: var(--ink-2); }
.set-cert__names .set-cert__ehlo { color: var(--ink); font-weight: 600; }
.tbl--set-certs td { height: auto; padding-top: 10px; padding-bottom: 10px; }
.tbl--set-certs .ellip { max-width: 240px; }

.tbl--set-ops td { height: 54px; }
.set-op { display: grid; gap: 2px; min-width: 0; }
.set-op__name { font-weight: 600; }
.set-op__me { font-weight: 400; color: var(--ink-3); font-size: var(--t-sm); }
.set-op__mail { font-size: var(--t-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.tbl tr.is-void .set-op__name { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rule-2); }
.set-opadd .form-row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.set-secret {
  display: grid; gap: var(--s3);
  max-width: 780px;
  padding: var(--s4);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  background: var(--panel-2);
  box-shadow: 0 18px 44px oklch(0% 0 0 / 0.36);
  animation: set-secretin var(--t-med) var(--ease);
}
.set-secret:focus { outline: none; }
.set-secret:focus-visible { outline: 2px solid var(--canary); outline-offset: 2px; }
@keyframes set-secretin { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.set-secret__head { display: flex; align-items: center; gap: 8px; }
.set-secret__head > .i { color: var(--ink-3); }
.set-secret__title { font-weight: 600; overflow-wrap: anywhere; }
.set-secret__stamp { margin-left: auto; rotate: -3deg; }
.set-secret__val { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }
.set-secret__code { padding: 9px 12px; background: var(--well); border: 1px dashed var(--rule-2); border-radius: var(--r); color: var(--ink); font: 500 var(--t-lg) / 1.3 var(--f-data); font-stretch: 87.5%; letter-spacing: 0.02em; overflow-wrap: anywhere; user-select: all; }
.set-secret__note { color: var(--ink-2); font-size: var(--t-md); max-width: 70ch; }

.set-acct__strip { margin-bottom: var(--s5); }
.set-acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.set-tfa .panel__head .stamp { margin-left: auto; }
.set-tfa__lead { color: var(--ink-2); max-width: 62ch; }
.set-tfa__row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }

.set-enroll:focus { outline: none; }
.set-enroll:focus-visible { outline: 2px solid var(--canary); outline-offset: -2px; }
.set-enroll__steps { display: grid; gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.set-enroll__step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: var(--s3); }
.set-enroll__n { width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid var(--rule-2); border-radius: 50%; color: var(--ink-2); font: 600 var(--t-sm) / 1 var(--f-ui); }
.set-enroll__body { min-width: 0; }
.set-enroll__t { font-weight: 600; margin: 3px 0 var(--s3); }
.set-enroll__pair { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s4); }
/* the code is printed on paper: dark modules on the label-white stock */
.set-qr { flex: none; max-width: 100%; line-height: 0; border-radius: var(--r); background: var(--ink); color: var(--rail); box-shadow: 0 0 0 1px var(--rule-2), 0 14px 34px oklch(0% 0 0 / 0.38); }
.set-qr__svg { display: block; max-width: 100%; height: auto; }
.set-enroll__manual { display: grid; gap: 8px; align-content: start; flex: 1 1 200px; min-width: 0; }
.set-enroll__manual .btn { justify-self: start; }
.set-enroll__key { padding: 8px 10px; background: var(--well); border: 1px dashed var(--rule-2); border-radius: var(--r); color: var(--ink); font: 500 var(--t-md) / 1.6 var(--f-data); font-stretch: 87.5%; letter-spacing: 0.06em; word-spacing: 0.25em; overflow-wrap: anywhere; user-select: all; }
.set-enroll__stamp { justify-self: start; rotate: -3deg; }
.set-enroll__code { max-width: 220px; }

.set-filter-meta { margin-left: auto; color: var(--ink-3); font-size: var(--t-sm); }
.set-act { display: inline-flex; align-items: baseline; gap: 8px; }
.set-act__code { font-size: var(--t-xs); color: var(--ink-3); }
.set-act__who { margin-top: 2px; color: var(--ink); }
.tbl--set-act .ellip { max-width: 240px; }
.tbl--set-hooks .ellip { max-width: 440px; }

@media (max-width: 1080px) {
  .set-acct { grid-template-columns: minmax(0, 1fr); }
  .dlv-dom__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .pf-sm-only { display: block; }
  .dlv-who .pf-sm-only { display: inline-flex; }

  /* five-box strips fold to two columns; the odd one out spans */
  .dlv-strip > :last-child:nth-child(odd),
  .set-idn > :last-child:nth-child(odd),
  .dlv-dom__strip > :last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }

  .dlv-rate { grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 84px; }
  .dlv-rate__n { text-align: left; }
  .dlv-meter { min-width: 72px; }
  .tbl--dlv-bounce td, .tbl--dlv-bounce tbody th { padding-left: 10px; padding-right: 10px; }
  .dlv-src__who { margin-top: 6px; }
  .tbl--dlv-src td { height: auto; padding-top: 9px; padding-bottom: 9px; }
  .set-op__act.pf-sm-only { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

  .set-rec__name { min-width: 104px; }
  .set-rec__value { min-width: 170px; }
  .tbl--set-rec td { padding-left: 10px; padding-right: 10px; }

  .tbl--set-act td { padding-left: 10px; padding-right: 10px; }
  .tbl--set-act .ellip { max-width: 120px; }
  .set-filter-meta { margin-left: 0; width: 100%; }

  .set-secret__stamp { margin-left: 0; }
  .set-secret__head { flex-wrap: wrap; }
  .set-enroll__step { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .set-enroll__n { display: none; }
  .tbl td.pf-wrap { min-width: 150px; }
}
