/* Catto Mail dashboard: the application's look on top of Bootstrap 6 (owner decision, 2026-10-10).
   Bootstrap's compiled CSS (assets/vendor/bootstrap, linked first by templates/_site.html.twig) sits
   in cascade layers, so every rule here, which is unlayered, takes precedence over it. Bootstrap
   provides the reboot and the page grid (.grid, .g-col-*); no build step. The
   Content-Security-Policy allows no inline styles: every style lives here. Data-driven sizes are
   SVG attributes in the templates; charts are drawn by chart_controller.js with the same colours. */

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/outfit-latin-wght-normal-3BR0lLl.woff2") format('woff2');
}

:root {
    --bg: #F2F6F3; --surface: #FFFFFF; --soft: #F5F9F6; --line: #E3ECE6; --line-2: #EEF3EF; --field: #DCE6DF;
    --ink: #0E1411; --ink-2: #2E3832; --muted: #4E5A53; --muted-2: #66726B;
    --green: #0E8A44; --green-dark: #0B6B35; --green-deep: #053D1F; --neon: #22D56B; --mint: #EEFBF3; --mint-line: #A8E3BF;
    --warn: #8A4B00; --warn-dot: #C27400; --warn-bg: #FFF6E6; --warn-line: #F1C98A;
    --bad: #A11B27; --bad-dot: #C4202F; --bad-bg: #FDF1F2; --bad-line: #F5C9CE;
    --r-card: 16px; --r-ctl: 10px;
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45;
    color-scheme: light;
}
* { box-sizing: border-box; }
/* font: inherit, because Bootstrap's reboot gives body its own font. */
body { margin: 0; color: var(--ink); background: var(--bg); font: inherit; }
a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #F0B400; outline-offset: 2px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: .5rem; background: #fff; padding: .4rem .8rem; border-radius: 10px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }

/* The type scale (owner decision, 2026-10-25): every level clearly bigger or bolder than the next. */
h1 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .6rem; }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.005em; margin: 1.6rem 0 .6rem; }
h1, h2, h3, h4 { color: inherit; }
/* Bootstrap's reboot drops the top margin of text blocks, makes labels inline blocks and enlarges
   legends; this design was drawn with the browsers' own defaults, which these element rules
   restore (every class rule still overrides them). */
p, ul, ol, blockquote, figure, pre { margin-block: 1em; }
:is(ul, ol) :is(ul, ol) { margin-block: 0; }
label { display: inline; }
legend { float: none; width: auto; padding-inline: 2px; margin-bottom: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
h3 { font-size: 16px; line-height: 22px; font-weight: 600; margin: 1rem 0 .4rem; }
.muted, small { color: var(--muted); }
.small { font-size: 13px; }
.text-bad { color: var(--bad); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; color: inherit; background: var(--line-2); padding: 1px 5px; border-radius: 6px; }
.url, .diag, .token, .secret { word-break: break-all; }

/* ---- Shell: the top bar (brand, the menu bar, controls), then the content ---- */
.topbar { position: relative; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 0 24px; min-height: 68px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.logo { color: var(--ink); flex: none; }
.logo-disc { fill: var(--neon); }
.topright { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.modepill { height: 40px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid; font-size: 14px; font-weight: 600; text-decoration: none; }
.modepill.mode-LIVE { background: #EAFBF1; border-color: #BDEBD0; color: var(--green-dark); }
.modepill.mode-HELD { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.modepill.mode-PAUSED, .modepill.mode-STOPPED { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); flex: none; }
.modepill.mode-LIVE .dot, .dot.mode-LIVE { background: #16B85A; box-shadow: 0 0 0 4px rgba(22,184,90,.2); }
.modepill.mode-HELD .dot, .dot.mode-HELD { background: var(--warn-dot); box-shadow: 0 0 0 4px rgba(194,116,0,.2); }
.modepill.mode-PAUSED .dot, .modepill.mode-STOPPED .dot, .dot.mode-PAUSED, .dot.mode-STOPPED { background: var(--bad-dot); box-shadow: 0 0 0 4px rgba(196,32,47,.2); }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.iconbtn:hover { color: var(--ink); background: #F7FAF8; }
.iconbtn-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad-dot); border: 2px solid #fff; }
.chip { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 5px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: inherit; line-height: inherit; }
.chip:hover { color: var(--ink); background: #F7FAF8; }
.chip .avatar { width: 28px; height: 28px; font-size: 11px; }
.chip-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 18px 40px rgba(14,20,17,.14); }
.dropdown-panel p { margin: 0 0 8px; }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--neon); font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--line); }
.account-name { font-weight: 600; word-break: break-all; }


/* The menu bar (owner decision, 2026-10-25): three tiers. An area's pages open on hover or
   keyboard focus (.menu-panel), a page's views one tier further (.menu-flyout); the last two
   areas open towards the left. Below 1100px the bar folds behind the Menu button
   (navbar_controller.js); without JavaScript it stays open and wraps. */
.menubar { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; align-items: center; }
.menubar-toggle { display: none; }
.menubar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; }
.menubar-item { position: relative; display: flex; align-items: center; }
.menubar-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.menubar-link .icon:last-child { color: var(--muted-2); }
.menubar-link:hover, .menubar-item:hover > .menubar-link, .menubar-item:focus-within > .menubar-link { background: var(--line-2); color: var(--ink); }
.menubar-link[aria-current] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); border-radius: 10px 10px 0 0; }
.menubar-link .count { min-width: 20px; height: 20px; padding: 0 6px; font-size: 11.5px; }
.menu-panel, .menu-flyout { display: none; position: absolute; z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(14,20,17,.16); }
.menu-panel { top: calc(100% + 6px); left: 0; }
.menu-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.menubar-item:hover > .menu-panel, .menubar-item:focus-within > .menu-panel { display: block; }
.menubar-item.menu-closed > .menu-panel { display: none; }
.menu-item { position: relative; }
.menu-item.has-views::after { content: ''; position: absolute; top: 0; right: -10px; width: 10px; height: 100%; }
.menu-panel a, .menu-flyout a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.menu-panel a:hover, .menu-item:hover > a, .menu-item:focus-within > a, .menu-flyout a:hover { background: var(--bg); color: var(--ink); }
.menu-panel a[aria-current] { font-weight: 600; color: var(--green-dark); }
.menu-label { flex: 1; }
.menu-note { font-size: 12.5px; color: var(--muted); }
.menu-panel .icon { color: var(--muted-2); }
.menu-flyout { top: -7px; left: calc(100% + 8px); min-width: 250px; max-height: calc(100vh - 140px); overflow-y: auto; }
.menu-item:hover > .menu-flyout, .menu-item:focus-within > .menu-flyout { display: block; }
.menubar-item-end > .menu-panel { left: auto; right: 0; }
.menubar-item-end .menu-flyout { left: auto; right: calc(100% + 8px); }
.menubar-item-end .menu-item.has-views::after { right: auto; left: -10px; }
.menu-head { padding: 10px 12px 3px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.menu-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #B7C3BC; }
.menu-dot-done { background: var(--green); }
.menu-dot-skipped { background: var(--warn-dot); }
/* Where you are, above the page title. */
.crumbs { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

.count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--ink); }
.count-bad { background: var(--bad-dot); color: #fff; }
.count-warn { background: var(--warn-dot); color: #fff; }
.count-info, .count-dark { background: var(--ink); color: #fff; }
.count-ok { background: var(--mint); color: var(--green-dark); }

.content { max-width: 1440px; margin: 0 auto; padding: 24px 24px 48px; }
.viewing { margin: 0 0 16px; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #D9E2DC; }
.viewing a { color: var(--neon); }
/* The footer of every page (templates/_site.html.twig). */
.sitefoot { margin: 0 20px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; text-align: center; }
.sitefoot p { max-width: 72ch; margin: 0 auto 4px; }
.sitefoot strong { color: var(--ink-2); font-weight: 600; }
body.bare .topbar-bare { justify-content: center; padding-top: 48px; }
body.bare .topbar-bare .brand { margin: 0; }
.content-bare { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
.content-bare .narrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 30px; }
body > main.help-body { margin: 40px auto; padding: 0 16px; }
/* The public front page (/, templates/front.html.twig): a full-width banner over four quarter cards. */
.front-signin { margin-left: auto; }
.front-hero { padding: 56px 48px; border-radius: var(--r-card); background: var(--green-deep); color: #fff; }
.front-hero h1 { margin: 0 0 18px; font-size: 3.2rem; }
.front-hero p { max-width: 68ch; margin: 0 0 28px; color: #D9E2DC; font-size: 1.15rem; line-height: 1.55; }
.front-hero .front-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.front-hero .btn { background: var(--neon); border-color: var(--neon); color: var(--ink); }
.front-hero .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.front-hero .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.front-hero .btn-secondary:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.front-card h2 { display: flex; align-items: center; gap: 10px; }
.front-card h2 .icon { color: var(--green); }
.front-card p { line-height: 1.55; }

/* ---- Page header, cards, grids ---- */
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.pagehead h1 { margin: 0; }
.sub { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lead { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions form { margin: 0; }
/* display and colour reset Bootstrap's .card (a flex column) to ordinary flow. */
.card { display: block; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 26px; margin: 0 0 20px; min-width: 0; }
.card h2 { margin: 0 0 .7rem; font-size: 20px; line-height: 28px; font-weight: 600; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.card-head p { margin: 4px 0 0; }
.more { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink); }
.card-flush { padding-left: 0; padding-right: 0; }
.card-flush > .card-head, .card-flush > .card-foot, .card-flush > .empty, .card-flush > p { margin-left: 26px; margin-right: 26px; }
.card-flush table th:first-child, .card-flush table td:first-child { padding-left: 26px; }
.card-flush table th:last-child, .card-flush table td:last-child { padding-right: 26px; }
/* The page grid (owner decision, 2026-10-10): Bootstrap 6's CSS Grid with 4 equal columns and
   20px gaps. With the 20px page margins a 2560px screen is 20 + 4 x 615 + 3 x 20 + 20. Every child
   of a .grid names its span, mobile first; the md:, lg: and xl: variants answer the width of the
   grid itself (container queries at 768, 1024 and 1280px):
     a quarter     g-col-4 md:g-col-2 xl:g-col-1      KPI tiles, small cards
     a half        g-col-4 lg:g-col-2
     three + one   g-col-4 xl:g-col-3 + g-col-4 xl:g-col-1   a main column and a side column
     full width    g-col-4                            wide tables
   A half or a main column holding a table of five or more columns pairs only from 2xl (1536px):
   g-col-4 2xl:g-col-2, g-col-4 2xl:g-col-3 + g-col-4 2xl:g-col-1.
   .sticky-side keeps a side column in view while the main column scrolls (from 1536px). */
.grid { --bs-columns: 4; --bs-gap: 20px; margin: 0 0 20px; }
.grid > * { min-width: 0; margin: 0; }
/* A card that fills a wrapper cell (a list item, a column with a pager) ends flush with the cell. */
.grid > * > .card:last-child { margin-bottom: 0; }
.grid > * > .card:only-child { height: 100%; }
.grid > fieldset.perms { margin: 0; }
/* A section whose heading sits above its card starts level with the cards beside it. */
.grid > * > h2:first-child { margin-top: 0; }
.grid > .sticky-side { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; }
@container (width < 1536px) { .grid > .sticky-side { position: static; max-height: none; overflow: visible; } }
.big { margin: 2px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.big span { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* Delivery banner (shown when delivery is not LIVE). */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 20px 24px; margin: 0 0 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.banner-HELD { background: var(--warn-bg); border-color: var(--warn-line); }
.banner-PAUSED, .banner-STOPPED { background: var(--bad-bg); border-color: var(--bad-line); }
.banner-text { flex: 1 1 420px; min-width: 0; }
.banner h2 { margin: 0 0 2px; font-size: 20px; }
.banner-HELD h2 { color: var(--warn); }
.banner-PAUSED h2, .banner-STOPPED h2 { color: var(--bad); }
.banner p { margin: 0; color: var(--ink-2); }
dl.banner-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; flex: 1 1 380px; }
.banner-facts div { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.banner-facts dt { font-size: 13px; color: var(--muted); }
.banner-facts dd { margin: 2px 0 0; font-weight: 600; }

/* KPI cards with a trend line. */
.kpi { position: relative; min-height: 224px; display: flex; flex-direction: column; overflow: hidden; }
.kpi h2 { position: relative; z-index: 1; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); margin: 0; }
.kpi-chart { position: absolute; right: 14px; top: 46px; width: 56%; height: 112px; }
.kpi-value { position: relative; z-index: 1; margin: auto 0 0; padding-top: 70px; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-delta { position: relative; z-index: 1; margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.delta { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E8EFEA; color: var(--ink); }
.delta .icon { stroke-width: 2.6; }
.delta-good { background: var(--neon); color: var(--ink); }
.delta-bad { background: #FAD4D7; color: #8A1520; }

/* Key figures: at most four tiles, a label with ⓘ, the number and its comparison (owner decision 2026-10-25). */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; margin: 0 0 20px; }
.kpis > .kpi { min-height: 0; margin: 0; padding: 18px 20px; overflow: visible; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.kpis .kpi-value { margin: 6px 0 0; padding-top: 0; }
.kpis .kpi-delta { margin: 6px 0 0; font-size: 13px; }

/* Needs attention as tiles: the tone colours the tile, the words say what it is and where it leads. */
.att-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.att-tile { height: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); text-decoration: none; }
.att-tile:hover { color: var(--ink); }
a.att-tile:hover .att-title { text-decoration: underline; }
.att-tile-bad { background: var(--bad-bg); border-color: var(--bad-line); }
.att-tile-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.att-tile .att-title { font-weight: 600; }
.att-tile .att-mark { background: var(--surface); }
.mode-word-HELD { color: var(--warn); }
.mode-word-PAUSED, .mode-word-STOPPED { color: var(--bad); }
.mode-word-LIVE { color: var(--green-dark); }
.card-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.health-line { margin: 0 0 10px; font-size: 16px; }
.plainlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plainlist li { display: flex; align-items: center; gap: 10px; }
.rate-warn, .text-warn { color: var(--warn); font-weight: 600; }
.rate-bad { color: var(--bad); font-weight: 600; }
.rate-ok { color: var(--green-dark); font-weight: 600; }
/* A batch's results: short lists of counts, each a link to the addresses behind it. */
.resultcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px 28px; }
.resultcols h3 { margin: 0 0 6px; font-size: 15px; }
.countlist { list-style: none; margin: 0; padding: 0; }
.countlist li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.countlist li:last-child { border-bottom: 0; }
/* One status per sending domain; its reason is in the title. */
.domainlist { list-style: none; margin: 0; padding: 0; }
.domainlist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.domainlist .domain-name { overflow-wrap: normal; }
.domainlist li:first-child { border-top: 0; }
.dstate { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); cursor: help; }
.dstate-ok { background: var(--mint); color: var(--green-dark); }
.dstate-warn { background: var(--warn-bg); color: var(--warn); }
.dstate-bad { background: var(--bad-bg); color: var(--bad); }

/* Charts (canvas size comes from these boxes). */
.chart { position: relative; height: 280px; margin: 14px 0 10px; }
.chart-tall { height: 310px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid transparent; flex: none; }
.sw-0 { background: #053D1F; border-color: #053D1F; }
.sw-1 { background: #0E8A44; border-color: #0B6B35; }
.sw-2 { background: #22D56B; border-color: #12A150; }
.sw-3 { background: #B8E8CB; border-color: #5FB383; }
.sw-other { background: #D5DDD8; border-color: #9AA8A0; }
details.figures { margin-top: 6px; font-size: 14px; }
details.figures > summary { cursor: pointer; color: var(--muted); min-height: 32px; }

/* Workers and queues. */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.panel { border-radius: 18px; background: var(--soft); padding: 16px 18px; min-width: 0; }
.panel p { margin: 0 0 4px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.panel-value { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.panel-value span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.live-on { color: var(--green-dark); }
.live-on::before { background: var(--neon); box-shadow: 0 0 0 3px rgba(34,213,107,.25); }
.live-off { color: var(--muted); }
.live-bad { color: var(--bad); }
.live-bad::before { background: var(--bad-dot); }
.stackbar { display: block; width: 100%; height: 8px; margin: 6px 0; }
.track { fill: var(--line); }
.seg-ok { fill: var(--green); }
.seg-hatch { fill: #79C99A; }
.seg-bad { fill: var(--bad-dot); }
.inflight { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--soft); }
.chip-sm { padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }

/* Needs attention. */
.attention { list-style: none; margin: 0; padding: 0; }
.attention li > a, .attention li > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.attention li:last-child > a, .attention li:last-child > div { border-bottom: 0; }
.attention li > a:hover .att-title { text-decoration: underline; }
.att-mark { width: 38px; height: 38px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.att-bad { background: #FDECEE; color: var(--bad); }
.att-warn { background: #FFF4E2; color: var(--warn); }
.att-info { background: var(--line-2); color: var(--ink); }
.att-text { flex: 1; min-width: 0; }
.att-title { display: block; font-weight: 500; }
.att-meta { display: block; font-size: 13px; color: var(--muted); }

/* Clients and meters. */
.client-name { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.client-name:hover { text-decoration: underline; color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.av-0 { background: #053D1F; color: #fff; }
.av-1 { background: #0E8A44; color: #fff; }
.av-2 { background: #22D56B; color: var(--ink); }
.av-3 { background: #B8E8CB; color: #0B4A26; }
.av-4 { background: var(--ink); color: var(--neon); }
.av-5 { background: var(--line); color: var(--ink); }
.meterline { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.meter-num { min-width: 88px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meter { flex: 1 1 70px; min-width: 56px; height: 8px; }
.table-clients th, .table-clients td { padding-left: 10px; padding-right: 10px; }
.table-clients thead th { white-space: normal; vertical-align: bottom; }
.table-clients small { white-space: nowrap; }
.meter .track { fill: var(--line-2); }
.fill-ok { fill: var(--green); }
.fill-warn { fill: #D98A1C; }
.fill-bad { fill: var(--bad-dot); }
.tick { fill: var(--muted-2); }

/* Validation, health, suppressions, activity. */
.waffle { display: block; width: 100%; max-width: 230px; margin: 14px 0 6px; }
.wf-ok { fill: var(--green); }
.wf-mid { fill: #B9C6BE; }
.wf-bad { fill: var(--bad-dot); }
.swatch.wf-ok { background: var(--green); }
.swatch.wf-mid { background: #B9C6BE; }
.swatch.wf-bad { background: var(--bad-dot); }
.keyed { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.keyed li { display: flex; align-items: center; gap: 8px; }
.keyed li span:nth-child(2) { flex: 1; }
.health { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13px; }
.health li { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.hdot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: #D5DDD8; }
.h-pass .hdot { background: var(--neon); }
.h-warn { color: #7A4100; font-weight: 600; }
.h-warn .hdot { background: var(--warn-dot); }
.h-fail { color: #8A1520; font-weight: 600; }
.h-fail .hdot { background: var(--bad-dot); }
.bars { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.bar-label { display: flex; justify-content: space-between; gap: 8px; }
.bar { display: block; width: 100%; height: 6px; margin-top: 4px; }
.bar .track { fill: var(--line-2); }
.bar-hard_bounce { fill: #053D1F; }
.bar-recipient_global_opt_out { fill: var(--green); }
.bar-repeated_soft_bounce { fill: var(--neon); }
.bar-complaint { fill: var(--bad-dot); }
.bar-operator_block { fill: var(--muted-2); }
.bar-client_abuse_block { fill: #B9C6BE; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.activity li:last-child { border-bottom: 0; }
.act-line, .act-meta { display: block; }
.act-meta { color: var(--muted); }

/* Search: the top bar box and the results page. */
.topsearch { width: min(440px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.topsearch-row { display: flex; gap: 8px; }
.topsearch-row input { flex: 1; min-width: 0; }
.searchbox { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; }
.searchbox input { flex: 1; min-width: 0; border: 0; height: 48px; padding: 0; font-size: 17px; }
.searchbox input:focus { outline: none; }
.searchbox:focus-within { outline: 3px solid #F0B400; outline-offset: 2px; }
.searchbox-icon { color: var(--muted-2); display: flex; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list a { display: flex; align-items: center; gap: 12px; padding: 12px 26px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.result-list a:hover { background: #F7FAF8; }
.result-text { flex: 1; min-width: 0; }
.result-title { display: block; font-weight: 500; overflow-wrap: anywhere; }
.result-meta { display: block; font-size: 13px; color: var(--muted); }

/* ---- Building blocks for every page ----
   .titleline   h1 with a status word beside it
   dl.facts     key figures as tiles: <dl class="facts"><div><dt>…</dt><dd>…</dd></div>…</dl>
   dl.rows      key-value rows with separators (detail pages)
   .card-accent / .card-danger   a card that needs action / a destructive action
   .seg         segmented links (sub-views, state filters)
   .stepper     the setup wizard's steps
   .form-grid / .form-actions    multi-column forms, the action row at the end of a form
   .readable    readable text (help topics)
   .entity      avatar + name + status at the top of a detail page */
.titleline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.titleline h1 { margin: 0; }
dl.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; margin: 12px 0; }
dl.facts > div { background: var(--soft); border-radius: 16px; padding: 12px 14px; min-width: 0; }
dl.facts dt { font-size: 13px; color: var(--muted); }
dl.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
dl.facts dd.lg { font-size: 26px; letter-spacing: -.02em; }
dl.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
dl.facts-1 { grid-template-columns: minmax(0, 1fr); }
dl.rows { grid-template-columns: max-content minmax(0, 1fr); gap: 0 24px; margin: 6px 0; }
dl.rows dt, dl.rows dd { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
dl.rows > dt:last-of-type, dl.rows > dd:last-of-type { border-bottom: 0; }
.card-accent { border: 2px solid var(--neon); }
.card-danger { border-color: var(--bad-line); background: #FFFBFB; }
.card-danger h2 { color: var(--bad); }
.banner-client-pending_approval, .banner-client-throttled { background: var(--warn-bg); border-color: var(--warn-line); }
.banner-client-pending_approval h2, .banner-client-throttled h2 { color: var(--warn); }
.banner-client-suspended, .banner-client-closed { background: var(--bad-bg); border-color: var(--bad-line); }
.banner-client-suspended h2, .banner-client-closed h2 { color: var(--bad); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--line-2); }
.seg a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.seg a:hover { background: #E3ECE6; color: var(--ink); }
.seg a[aria-current] { background: var(--ink); color: #fff; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: step; }
.stepper li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; counter-increment: step; }
.stepper li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid #C9D3CD; color: var(--ink-2); }
.stepper li.done::before { content: '✓'; background: var(--neon); border-color: var(--neon); color: var(--ink); }
.stepper li.skipped::before { content: '–'; background: var(--line-2); border-color: var(--line); }
.stepper li.current { background: var(--surface); box-shadow: 0 0 0 2px var(--neon); }
.stepper li.current::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper a { color: var(--ink); text-decoration: none; font-weight: 500; }
.stepper a:hover { text-decoration: underline; }
.stepper .step-state { margin-left: auto; font-size: 12px; color: var(--muted); }
/* System › System setup: groups of steps; a step opens its checks and its actions (owner decision 2026-10-25). */
.setup-progress { display: block; margin-top: 12px; max-width: 44rem; }
.setup-group { padding-bottom: 6px; }
.setup-group > .card-head { margin-bottom: 4px; }
.setup-step { border-top: 1px solid var(--line-2); }
.setup-step > summary { display: flex; align-items: center; gap: 14px; padding: 12px 26px; cursor: pointer; list-style: none; }
.setup-step > summary::-webkit-details-marker { display: none; }
.setup-step > summary:hover { background: #F7FAF8; }
.setup-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: var(--warn-dot); }
.setup-done .setup-mark { background: var(--green); }
.setup-ready .setup-mark { background: #7FCFA0; color: var(--green-deep); }
.setup-done.setup-problem .setup-mark { background: var(--warn-dot); color: #fff; }
.setup-text { flex: 1; min-width: 0; }
.setup-title { display: block; font-weight: 600; }
.setup-line { display: block; font-size: 14px; color: var(--ink-2); }
.setup-problem .setup-line { color: var(--warn); }
.setup-chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--warn-bg); color: var(--warn); }
.setup-chip-done, .setup-chip-ready { background: var(--mint); color: var(--green-dark); }
.setup-step > summary::after { content: '▸'; color: var(--muted-2); }
.setup-step[open] > summary::after { content: '▾'; }
.setup-body { padding: 0 26px 16px 68px; display: grid; gap: 12px; }
.setup-checks { font-size: 14px; }
.setup-body-flush { padding: 0 0 12px; }
.stepnav { display: flex; flex-wrap: wrap; gap: 8px; }
.titleline .setup-chip { font-size: 14px; }
.setup-step > summary > .res { flex: none; min-width: 6.2em; }
.setup-checks li { align-items: baseline; }

/* A sending domain's progress in the client dashboard: the same steps in one row. */
.stepper.stepper-row { flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.stepper.stepper-row li { padding: 6px 14px 6px 6px; background: var(--soft); }
.stepper.stepper-row li.current { background: var(--surface); }
.domain-setup h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.records td:last-child { min-width: 18rem; }
.records .rec-name { min-width: 15rem; }
.records-notes { display: grid; gap: 6px; margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 16px; }
.form-grid label { display: block; font-size: 14px; color: var(--ink-2); }
.form-grid label > input:not([type="checkbox"]):not([type="radio"]), .form-grid label > select, .form-grid label > textarea { display: block; width: 100%; margin-top: 6px; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.readable { max-width: 52rem; }
.readable p, .readable li { line-height: 1.65; }
.readable h2 { margin-top: 1.8rem; }
/* The acceptable use policy (/acceptable-use-policy): one readable column, centred in the grid. */
.policy { justify-self: center; width: 100%; }
.policy h1 { margin-top: 0; }
.entity { display: flex; align-items: center; gap: 14px; }
.entity .avatar { width: 52px; height: 52px; font-size: 16px; }

/* The Delivery page: the mode panel and its controls. */
.mode-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.mode-hero h2 { margin: 0 0 4px; }
.mode-hero p { margin: 0; color: var(--ink-2); }
.mode-orb { width: 76px; height: 76px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--line-2); }
.mode-orb .dot { width: 22px; height: 22px; }
.mode-orb-LIVE { background: #EAFBF1; }
.mode-orb-HELD { background: var(--warn-bg); }
.mode-orb-PAUSED, .mode-orb-STOPPED { background: var(--bad-bg); }
.mode-orb .dot.mode-LIVE { box-shadow: 0 0 0 8px rgba(22,184,90,.2); }
.mode-orb .dot.mode-HELD { box-shadow: 0 0 0 8px rgba(194,116,0,.2); }
.mode-orb .dot.mode-PAUSED, .mode-orb .dot.mode-STOPPED { box-shadow: 0 0 0 8px rgba(196,32,47,.2); }
.modetrack { list-style: none; margin: 18px 0 4px; padding: 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-radius: 999px; background: var(--line-2); }
.modetrack li { min-height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.modetrack li.is-current { background: var(--ink); color: #fff; font-weight: 600; }
.modetrack .dot { box-shadow: none !important; width: 8px; height: 8px; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.control, .controls > form.control { max-width: none; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); padding: 16px 18px; }
.control h3 { margin: 0; }
.control p { margin: 0; }
.control-danger { border-color: var(--bad-line); background: #FFF8F8; }
.control-danger h3 { color: var(--bad); }
.control-go { border-color: #BDEBD0; background: #F3FCF6; }
.mode-title { display: flex; align-items: center; gap: 8px; margin-top: 0; }

/* Quota rings and sending domains (client overview). */
.quotas { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px 14px; }
.quotas li { display: flex; align-items: center; gap: 12px; }
.ring { width: 76px; height: 76px; flex: none; }
.ring-track { fill: none; stroke: var(--line-2); stroke-width: 9; }
.ring-fill { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-ok { stroke: var(--green); }
.ring-warn { stroke: #D98A1C; }
.ring-bad { stroke: var(--bad-dot); }
.ring-text { font-size: 15px; font-weight: 600; fill: var(--ink); font-family: inherit; }
.quota-name { display: block; font-weight: 500; }
.quota-period, .quota-used { display: block; font-size: 13px; color: var(--muted); }
.quota-used { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.domains { list-style: none; margin: 4px 0 0; padding: 0; }
.domains li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.domains li:last-child { border-bottom: 0; }
.domain-name { display: block; font-weight: 500; overflow-wrap: anywhere; }
.domain-state { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.st-dkim-active { border-color: var(--mint-line); background: var(--mint); color: var(--green-dark); }
.st-dkim-pending_dns { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }

/* Small fixes for the converted pages. */
.card-head h3 { margin: 0; }
td .stackbar { min-width: 120px; }
.legend svg { flex: none; }
.raw code { background: none; padding: 0; }
.card-flush > .filters { margin: 0 26px 12px; }
.st-sev-critical { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.st-sev-warning { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }

/* Workspace list (the home page of client members). */
.workspaces { list-style: none; padding: 0; }
.workspace { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--ink); text-decoration: none; }
.workspace:hover { border-color: var(--mint-line); color: var(--ink); }
.workspace-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.workspace-name { font-size: 1.1rem; font-weight: 500; }

/* ---- Views, more filters, tooltips (owner decision, 2026-10-25) ----
   .chips         a page's ready-made views as links (aria-current marks the one shown)
   .morefilters   the full filter form, folded away unless a filter is in use
   .tip           an ⓘ button whose explanation shows on hover or keyboard focus (no script)
   table.list     a list: comfortable rows, times that do not wrap */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip-link { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip-link:hover { background: var(--line-2); color: var(--ink); }
.chip-link[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.morefilters { margin: 0 0 16px; }
.morefilters > summary { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.morefilters > summary::-webkit-details-marker { display: none; }
.morefilters > summary::after { content: '▸'; margin-left: 8px; color: var(--muted-2); }
.morefilters[open] > summary::after { content: '▾'; }
.morefilters > .filters { margin: 10px 0 0; }
.tip { position: relative; display: inline-flex; vertical-align: middle; }
.tip-btn { height: 28px; width: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted-2); }
.tip-btn:hover, .tip-btn:focus-visible { background: var(--line-2); color: var(--ink); }
.tip-body { display: none; position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); width: max-content; max-width: min(360px, 80vw); padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; box-shadow: 0 14px 32px rgba(14,20,17,.25); overflow-wrap: anywhere; }
.tip-body code { background: rgba(255,255,255,.12); color: var(--neon); }
.tip-body a { color: var(--neon); }
.tip:hover > .tip-body, .tip:focus-within > .tip-body { display: block; }
.tip-start > .tip-body { right: auto; left: 0; }
.tip-dl { display: block; margin-top: 6px; }
.tip-dl > span { display: block; }
.tipcell { width: 44px; text-align: right; }
.card-head > .tip { margin-right: auto; margin-left: -10px; }
.sectionhead { display: flex; align-items: center; gap: 4px; margin: 1.6rem 0 .6rem; }
.sectionhead h2 { margin: 0; }
/* An action that needs a reason: a button that opens its small form (no form on the page until asked). */
.actionrow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 12px; }
.actionform { margin-top: 12px; }
.actionrow > .actionform { margin-top: 0; }
.actionform > summary { list-style: none; }
.actionform > summary::-webkit-details-marker { display: none; }
.searchline { display: flex; gap: 8px; max-width: 40rem; margin: 0 0 12px; }
.searchline input { flex: 1; min-width: 0; }
.rowaction { margin-top: 0; }
.rowaction > summary.btn { height: 34px; padding: 0 12px; font-size: 14px; }
.rowaction > form { min-width: 260px; }
.actionform > form { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); min-width: min(360px, 100%); max-width: 34rem; }
table.list td { vertical-align: middle; padding-top: 11px; padding-bottom: 11px; }
.nowrap { white-space: nowrap; }

/* ---- Tables, lists, forms (all pages) ---- */
table { border-collapse: collapse; width: 100%; margin: .5rem 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
thead th { font-weight: 400; color: var(--muted); border-top: 1px solid var(--line-2); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.table-clients td { vertical-align: middle; }
table.dense th, table.dense td { padding: 8px 10px; font-size: 14px; }
table.kv th { font-weight: 400; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num, td.num { text-align: right; }
/* position: relative keeps absolutely positioned descendants (screen-reader labels) inside the scroll box. */
.scroll { overflow-x: auto; position: relative; }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: .5rem 0; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.inline-dl { grid-template-columns: max-content 1fr; font-size: 14px; }
.counts, .plain { margin: .3rem 0; padding-left: 1.1rem; }
.crumbs { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.tag { display: inline-block; margin: 0 4px 4px 0; padding: 2px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 12px; }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
/* System › Settings: one editable table per group, the same columns in every group. */
.table-settings { table-layout: fixed; width: 100%; min-width: 720px; }
.table-settings th:nth-child(1) { width: 38%; }
.table-settings th:nth-child(2) { width: 24%; }
.table-settings th:nth-child(3) { width: 32%; }
.table-settings th:nth-child(4) { width: 6%; }
.table-settings td { overflow-wrap: anywhere; }
.table-settings input, .table-settings select { width: 100%; }
.table-settings code { font-size: 12px; }

input, select, textarea { font: inherit; font-size: 15px; height: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: 12px; background: var(--surface); color: var(--ink); max-width: 100%; }
textarea { height: auto; padding: 10px 14px; }
input[type="checkbox"], input[type="radio"] { height: 18px; width: 18px; padding: 0; accent-color: var(--green); }
input[type="file"] { height: auto; padding: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input::placeholder { color: var(--muted-2); }
button, .btn { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: var(--r-ctl); border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { background: #26302B; color: #fff; }
button.secondary, .btn-secondary { background: var(--surface); color: var(--ink); border-color: #C9D3CD; }
button.secondary:hover, .btn-secondary:hover { background: #F7FAF8; color: var(--ink); }
/* Stop sending in the top bar: always there, outlined so it does not shout on every page. */
.btn-stop { height: 40px; padding: 0 14px; background: var(--surface); border-color: var(--bad-line); color: var(--bad); font-weight: 600; }
.btn-stop:hover { background: var(--bad-bg); color: var(--bad); }
button.danger, .btn-danger { background: var(--bad-dot); border-color: var(--bad-dot); color: #fff; font-weight: 600; }
button.danger:hover, .btn-danger:hover { background: #A31A27; color: #fff; }
button.link { height: auto; background: none; border: 0; padding: 0; color: var(--green-dark); text-decoration: underline; font-weight: 400; }
table button, form.formrow button, .inline button { height: 38px; padding: 0 14px; font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 16px 18px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.filters a { align-self: center; }
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 34rem; }
.stack label { display: block; font-size: 14px; color: var(--ink-2); }
.stack label > input:not([type="checkbox"]):not([type="radio"]), .stack label > select, .stack label > textarea { display: block; width: 100%; margin-top: 6px; }
.stack > button, .stack > .btn { align-self: flex-start; }
label.checkline, .stack label.checkline, .filters label.checkline { display: flex; flex-direction: row; align-items: center; gap: .5rem; }
form.formrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline { display: inline; }
.narrow { max-width: 30rem; }
/* The sign-up form's honeypot: off screen for people, filled in by form robots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
fieldset.perms { border: 1px solid var(--line); border-radius: 16px; margin: .6rem 0; padding: .6rem 1rem; }
fieldset.perms label { display: block; margin: .3rem 0; }
progress { width: 100%; max-width: 40rem; height: 12px; accent-color: var(--green); }
.pager { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 0; }
.pager-count { color: var(--muted); }

/* Messages and notes. */
.flash, .warn, .caveat, .empty { padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.flash { margin: 0 0 14px; }
.flash-success { background: var(--mint); border-color: var(--mint-line); }
.flash-error { background: var(--bad-bg); border-color: var(--bad-line); }
.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.caveat { background: var(--soft); font-size: .92em; }
.empty { background: #F7FAF8; border-style: dashed; border-color: #C9D3CD; color: var(--muted); }

/* Status words: the text carries the meaning, the colour only reinforces it. */
.st { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 9px; border: 1px solid #C9D3CD; background: #F4F7F5; color: var(--ink); font-size: 14px; white-space: nowrap; }
.st-remote_accepted, .st-verified, .st-completed, .st-active, .st-deliverable, .st-matched { border-color: var(--mint-line); background: var(--mint); color: var(--green-dark); }
.st-deferred, .st-soft_bounced, .st-outcome_unknown, .st-pending, .st-throttled, .st-risky, .st-probably_deliverable, .st-match_requested, .st-open, .st-temporarily_unverifiable, .st-pending_approval { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.st-hard_bounced, .st-complained, .st-failed, .st-suppressed, .st-suspended, .st-closed, .st-undeliverable, .st-disabled { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.res { display: inline-block; min-width: 4.4em; text-align: center; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--line); font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.res-pass { border-color: var(--mint-line); background: var(--mint); color: var(--green-dark); }
.res-warn, .res-waiting, .res-manual { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.res-fail { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.res-skipped, .res-info, .res-none { color: var(--muted); }
.mode { display: inline-block; padding: 2px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .03em; border: 1px solid; }
.mode.mode-LIVE { background: var(--mint); border-color: var(--mint-line); color: var(--green-dark); }
.mode.mode-HELD { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.mode.mode-PAUSED, .mode.mode-STOPPED { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }

/* Message timeline, raw content, setup steps, help. */
.timeline { list-style: none; padding: 0 0 0 18px; margin: 0 0 0 6px; border-left: 2px solid var(--line); }
.ev { position: relative; margin: 0 0 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ev::before { content: ''; position: absolute; left: -26px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #B9C6BE; border: 2px solid var(--bg); }
.ev-accepted::before { background: var(--neon); }
.ev-warning::before { background: var(--warn-dot); }
.ev-failure::before { background: var(--bad-dot); }
.ev-engagement::before { background: var(--ink); }
.raw, .help-body pre, pre.cmd, .flow { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; overflow-x: auto; }
.raw { white-space: pre-wrap; word-break: break-all; max-height: 30rem; overflow: auto; }
.flow { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; font-size: .85em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: .8rem; align-items: baseline; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.steps li.current { border: 2px solid var(--neon); }
.help-body { max-width: 52rem; }
.help-body p, .help-body li { line-height: 1.6; }
.helplink { font-size: .9em; }

/* Narrower screens keep the bar on one line: the area icons go first, then the arrows. */
/* The workspace switch shows the client's name only where the top bar has room for it; screen readers still read it. */
@media (max-width: 1599px) { .chip .chip-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 1359px) { .menubar-link > .icon:first-child { display: none; } }
@media (max-width: 1239px) { .menubar-link > .icon:last-child { display: none; } .topbar { gap: 10px 14px; } }
/* Below 1100px the menu bar folds behind the Menu button; open, it lists every area and page
   (the views stay on the pages). Without JavaScript (no .js-menubar) it simply wraps. */
@media (max-width: 1099px) {
    .topbar { padding: 10px 16px; }
    .menubar { order: 3; flex-basis: 100%; }
    .menubar.js-menubar { order: 2; flex: 0 0 auto; margin-left: auto; }
    .topright { order: 3; margin-left: 0; }
    .js-menubar.is-open { order: 4; flex-basis: 100%; margin-left: 0; }
    .js-menubar .menubar-toggle { display: inline-flex; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
    .js-menubar .menubar-toggle:hover { background: var(--line-2); color: var(--ink); }
    .js-menubar .menubar-list { display: none; }
    .js-menubar.is-open { flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 8px; }
    .js-menubar.is-open .menubar-toggle { align-self: flex-start; }
    .js-menubar.is-open .menubar-list { display: block; }
    .js-menubar.is-open .menubar-item { display: block; }
    .js-menubar.is-open .menu-panel { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 30px; min-width: 0; }
    .js-menubar.is-open .menu-panel::before, .js-menubar.is-open .menu-item.has-views::after { display: none; }
    .js-menubar.is-open .menu-flyout, .js-menubar.is-open .menu-item > a > .icon { display: none !important; }
    .js-menubar.is-open .menubar-link .icon:last-child { display: none; }
}
@media (max-width: 760px) {
    .topright { margin-left: auto; }
    .modepill-word { display: none; }
    .content { padding: 12px 16px 32px; }
    .sitefoot { margin: 0 16px; }
    h1 { font-size: 26px; line-height: 32px; }
    .front-hero { padding: 32px 22px; }
    .front-hero h1 { font-size: 2.2rem; }
    dl { grid-template-columns: 1fr; }
    .kpi-value { font-size: 30px; }
}
