
:root {
  --pf-accent: #ff7a1a;
  --pf-accent-pressed: #e96d12;
  --pf-accent-tint: #fff3e9;
  --pf-ink: #1b1b1f;
  --pf-ink-2: #57534b;
  --pf-muted: #736e67;
  --pf-muted-soft: #9a958c;
  --pf-shell: #fbfaf7;
  --pf-surface: #ffffff;
  --pf-surface-2: #f7f4ef;
  --pf-surface-3: #f4f1ec;
  --pf-line: #eae6df;
  --pf-line-strong: #b5b0a6;
  --pf-success: #2e7d46;
  --pf-success-tint: #e2f2e6;
  --pf-danger: #b3403a;
  --pf-danger-tint: #fbeceb;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --shadow-xs: 0 1px 2px rgba(17, 17, 20, 0.04);
  --shadow: 0 4px 18px rgba(17, 17, 20, 0.07);
  --sidebar: 252px;
  --sans: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  /* Warm, never sterile white — rule 3 of the token file. Pure white is kept
     for raised surfaces so a card actually reads as raised. */
  background: var(--pf-shell);
  color: var(--pf-ink);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
}

:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; border-radius: 4px; }

@keyframes pf-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pf-enter { animation: pf-enter 180ms ease-out both; }

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

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
body.app { display: flex; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  width: var(--sidebar); flex: 0 0 var(--sidebar); height: 100dvh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px; background: var(--pf-surface-2); border-right: 1px solid var(--pf-line);
}
.sidebar .brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--pf-ink); padding: 0 8px; }
.logo { display: inline-flex; align-items: center; color: var(--pf-ink); }
.wordmark { font-weight: 600; line-height: 1; letter-spacing: -0.028em; }
.chip {
  align-self: flex-start; margin: 8px 0 18px 8px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--pf-muted); background: var(--pf-surface); border: 1px solid var(--pf-line);
  border-radius: 999px; padding: 2px 9px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: block; padding: 9px 11px; border-radius: var(--radius); text-decoration: none;
  color: var(--pf-ink-2); transition: background 140ms ease, color 140ms ease;
  border-left: 2px solid transparent;
}
.sidebar nav a:hover { background: rgba(255, 255, 255, 0.8); color: var(--pf-ink); }
/* The active item is the ONE place besides the primary button where the
   accent appears. Token rule 1. */
.sidebar nav a.on {
  background: var(--pf-surface); color: var(--pf-ink);
  border-left-color: var(--pf-accent); box-shadow: var(--shadow-xs);
}
.nav-label { display: block; font-size: 13.5px; font-weight: 500; }
.nav-hint { display: block; font-size: 10.5px; color: var(--pf-muted); line-height: 1.4; margin-top: 1px; }
.sidebar .who { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 0; border-top: 1px solid var(--pf-line); }

main { flex: 1 1 auto; min-width: 0; max-width: 1180px; padding: 30px 28px 72px; }

/* ── Type ────────────────────────────────────────────────────────────────── */
h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
h2 { font-size: 16px; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 4px; }
section { margin-top: 38px; }
.sub { color: var(--pf-muted); font-size: 13px; margin: 5px 0 0; max-width: 72ch; }
.meta { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pf-muted); }
.meta.block { display: block; text-transform: none; letter-spacing: 0; font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.strong { font-weight: 500; }
.bad { color: var(--pf-danger); }
.good { color: var(--pf-success); }
.right { text-align: right; }
.crumb { margin: 0 0 14px; font-size: 12.5px; }
.crumb a { color: var(--pf-muted); text-decoration: none; }
.crumb a:hover { color: var(--pf-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.toolbar { margin-top: 14px; }

/* ── Range tabs ──────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--pf-surface-2); border: 1px solid var(--pf-line); border-radius: var(--radius); }
.tabs a { padding: 5px 12px; border-radius: var(--radius-sm); font-size: 12.5px; color: var(--pf-ink-2); text-decoration: none; transition: background 140ms ease, color 140ms ease; }
.tabs a:hover { background: rgba(255, 255, 255, 0.75); color: var(--pf-ink); }
.tabs a.on { background: var(--pf-surface); color: var(--pf-ink); font-weight: 500; box-shadow: var(--shadow-xs); }
.tabs a.on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--pf-accent); margin-right: 7px; vertical-align: 1px; }

/* ── Tiles ───────────────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); gap: 12px; margin-top: 22px; }
.tile {
  background: var(--pf-surface); border: 1px solid var(--pf-line); border-radius: var(--radius-xl);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow-xs);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--pf-line-strong); }
.tile .value { font-family: var(--mono); font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; word-break: break-word; }
.tile .note { font-size: 11.5px; color: var(--pf-muted); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.card { margin-top: 12px; background: var(--pf-surface); border: 1px solid var(--pf-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); overflow: hidden; }
/* Sections need air between them more than they need rules. */
section + section { margin-top: 44px; }
/*
 * A card that CONTAINS a dropdown cannot clip its overflow.
 *
 * "overflow: hidden" is what rounds the table's corners against the card,
 * and it also cut every three-dot menu off at the row — the menu opened and
 * all you saw was a sliver of white below the row. Reported on 21 September
 * 2026 with a screenshot of exactly that.
 *
 * So this card does the corners the other way: the radius goes on the
 * header cells, and the overflow stays visible so a menu can escape.
 *
 * (No backticks in this comment. It lives inside a template literal, and a
 * stray one closes the stylesheet — which is how this rule first landed as
 * a syntax error rather than a fix.)
 */
.card.menus { overflow: visible; }
.card.menus thead th:first-child { border-top-left-radius: var(--radius-xl); }
.card.menus thead th:last-child { border-top-right-radius: var(--radius-xl); }
.card.menus tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-xl); }
.card.menus tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-xl); }
/* Sticky headers and an escaping dropdown do not mix: the header would sit
   over the open menu. This table is short by nature — the brands on one
   account — so it gives up stickiness rather than the menu. */
.card.menus thead th { position: static; }
table { width: 100%; border-collapse: collapse; }
/*
 * Roomier rows and a lighter rule between them.
 *
 * At 9px padding with a full-strength line under every row, a table of
 * twenty rows reads as a grid of boxes — the 1998 look. The rule is now a
 * tint of the line colour, the padding is up, and the header is plain
 * surface with a single real border under it. Quieter separators let the
 * numbers be the thing you see.
 */
th, td { padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--pf-line) 65%, transparent); text-align: left; vertical-align: middle; }
/* Digits line up in columns, which is the entire point of a figure in a
   table and something proportional numerals quietly break. */
td.mono, td.right, .value, .provider-figure, .provider-stats dd { font-variant-numeric: tabular-nums; }
thead th { background: var(--pf-surface); padding: 0; position: sticky; top: 0; border-bottom: 1px solid var(--pf-line); }
th button.sort {
  width: 100%; display: flex; align-items: center; gap: 6px; padding: 11px 16px;
  background: none; border: 0; font: inherit; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--pf-muted);
  cursor: pointer; text-align: inherit; transition: color 140ms ease;
}
th.right button.sort { justify-content: flex-end; }
th button.sort:hover { color: var(--pf-ink); }
th button.sort .caret::after { content: '↕'; opacity: 0.35; font-size: 10px; }
th[aria-sort='ascending'] button .caret::after { content: '↑'; opacity: 1; }
th[aria-sort='descending'] button .caret::after { content: '↓'; opacity: 1; }
tbody tr { transition: background 120ms ease; }
tbody tr:hover { background: color-mix(in srgb, var(--pf-surface-2) 70%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[hidden] { display: none; }
.row-link { text-decoration: none; color: inherit; display: block; }
.row-link:hover .strong { text-decoration: underline; text-decoration-color: var(--pf-accent); text-underline-offset: 3px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: 0.01em; border: 1px solid transparent; background: var(--pf-surface-3); color: var(--pf-ink-2); }
.pill.good { background: var(--pf-success-tint); color: var(--pf-success); }
.pill.bad { background: var(--pf-danger-tint); color: var(--pf-danger); }

/* A bar under the label, sized to its share of the column's peak. Cheaper
   than a chart library and readable at a glance, which is the whole job. */
.bar { display: block; height: 3px; margin-top: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--pf-accent) 0%, #ffb07a 100%); opacity: 0.55; transition: opacity 140ms ease; }
tbody tr:hover .bar { opacity: 1; }

/* A dashed box is the internet's universal "unfinished" signal. A soft
   filled block with no border says "nothing here yet" without the ransom
   note. */
.empty { margin-top: 12px; padding: 26px 22px; text-align: center; color: var(--pf-muted); font-size: 13px; background: var(--pf-surface-2); border: 0; border-radius: var(--radius-xl); }

/* ── Controls ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; cursor: pointer; border-radius: var(--radius); height: 38px; padding: 0 16px; border: 1px solid transparent; transition: background 140ms ease, border-color 140ms ease, color 140ms ease; }
.btn.primary { background: var(--pf-accent); color: #fff; font-weight: 600; box-shadow: var(--shadow-xs); }
.btn.primary:hover, .btn.primary:active { background: var(--pf-accent-pressed); }
.btn.ghost { background: transparent; color: var(--pf-ink-2); }
.btn.ghost:hover { background: var(--pf-surface); color: var(--pf-ink); }
.btn.lg { height: 44px; width: 100%; font-size: 14px; border-radius: var(--radius-lg); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: var(--radius-sm); align-self: flex-start; }

/*
 * Inputs.
 *
 * SELECTED BY EXCLUSION, and that is the fix rather than a preference. The
 * first version listed email, password and search by type — so every
 * text and number field in the console (a person's name, a brand name, a
 * credit amount, a typed confirmation) matched nothing and rendered as a
 * raw browser default: grey bevel, square corners, 13px Times-ish. Reported
 * as "the input area looks 90s design", which was exactly right.
 *
 * Filled rather than outlined: a hairline box on a white card reads as a
 * disabled field, and the warm surface tint says "type here" without
 * shouting. White on focus, so the active field is the brightest thing in
 * the form.
 */
input:not([type='hidden']):not([type='checkbox']):not([type='radio']) {
  font: inherit;
  font-size: 13.5px;
  color: var(--pf-ink);
  width: 100%;
  padding: 10px 12px;
  background: var(--pf-surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
input::placeholder { color: var(--pf-muted-soft); }
input:hover:not(:focus) { background: var(--pf-surface-3); }
input:focus {
  outline: none;
  background: var(--pf-surface);
  border-color: var(--pf-accent);
  box-shadow: 0 0 0 3px var(--pf-accent-tint);
}
/* Spinners on a credit amount are three pixels of arrow nobody clicks, and
   they drag the field back to looking like a 1998 form control. */
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* The filter box carries its own magnifier, as a background image rather
   than an icon font or a library — one data URI against one dependency. */
.filter input[type='search'] {
  min-width: 280px;
  padding-left: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%239a958c' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Cpath d='M10 10l3 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 11px 50%;
}
input[type='search']::-webkit-search-cancel-button { cursor: pointer; }

/* ── Three-dot menus and panels, both pure <details> ─────────────────────── */
.menu { position: relative; display: inline-block; }
.menu > summary {
  list-style: none; cursor: pointer; width: 30px; height: 30px; line-height: 26px;
  text-align: center; border: 1px solid var(--pf-line); border-radius: var(--radius-sm);
  background: var(--pf-surface); color: var(--pf-ink-2); font-size: 15px; letter-spacing: 1px;
  transition: background 140ms ease, border-color 140ms ease;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--pf-surface-2); border-color: var(--pf-line-strong); }
.menu[open] > summary { background: var(--pf-surface-2); border-color: var(--pf-line-strong); }
.menu-body {
  position: absolute; right: 0; z-index: 20; margin-top: 6px; width: 320px;
  display: flex; flex-direction: column; gap: 16px; padding: 14px;
  background: var(--pf-surface); border: 1px solid var(--pf-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg, 0 16px 40px rgba(17,17,20,0.14));
  text-align: left; white-space: normal;
}
.menu-body form { display: flex; flex-direction: column; gap: 7px; align-items: stretch; margin: 0; }
.menu-body form + form, .menu-body .menu-link + form { border-top: 1px solid var(--pf-line); padding-top: 14px; }
.menu-body label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--pf-ink-2); }
.menu-body input { width: 100%; }
/* A menu is a list of choices, so its items look alike: full-width, quiet,
   and highlighted on hover. The forms that used to live in here moved into
   dialogs, which is why these are one line each now. */
.menu-item {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 13px;
  padding: 7px 9px; border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--pf-ink); cursor: pointer; transition: background 120ms ease, color 120ms ease;
}
.menu-item:hover { background: var(--pf-surface-2); }
.menu-item.danger { color: var(--pf-danger); }
.menu-item.danger:hover { background: var(--pf-danger-tint); }
.menu-item.muted { color: var(--pf-muted); cursor: default; }
.menu-body form { gap: 0; }
.menu-body form + form, .menu-body .menu-item + form { border: 0; padding-top: 0; }
.modal-warning { margin: 0; font-size: 13px; line-height: 1.5; color: var(--pf-ink-2); }
.menu-link { font-size: 13px; color: var(--pf-ink); text-decoration: underline; text-decoration-color: var(--pf-accent); text-underline-offset: 3px; }
.danger-form { border-top: 1px solid var(--pf-line); padding-top: 14px; }

.panel > summary { list-style: none; cursor: pointer; display: inline-flex; }
.panel > summary::-webkit-details-marker { display: none; }
.panel-body {
  display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin-top: 12px;
  padding: 16px; background: var(--pf-surface); border: 1px solid var(--pf-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.panel-body label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--pf-ink-2); }
.row-actions { display: flex; align-items: center; gap: 8px; }
.toolbar-split { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Read-only values ────────────────────────────────────────────────────── */
.kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 22px; }
/* A read-only fact, NOT a disabled input. The first version gave these the
   same white fill and hairline border as a field, so a profile looked like a
   form full of greyed-out boxes. Flat tint, no border, heavier value. */
.kv { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; background: var(--pf-surface-2); border-radius: var(--radius-lg); }
.kv-value { font-size: 14.5px; font-weight: 500; line-height: 1.35; word-break: break-word; }
.kv .note { font-size: 11.5px; color: var(--pf-muted); }

/* ── Charts ──────────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.card.pad { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chart-card { padding: 14px 16px; }
.chart { width: 100%; height: 96px; display: block; fill: var(--pf-accent); opacity: 0.7; }
.chart rect:hover { opacity: 1; fill: var(--pf-accent-pressed); }
/* The axis is two dates, not a scale. A tick every third day would be
   decoration; the ends tell you what window you are looking at. */
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--pf-muted); font-family: var(--mono); }

/* A tile's sparkline sits under the note and answers one question: is this
   rising, falling or flat. */
.spark { width: 100%; height: 26px; display: block; margin-top: 2px; stroke: var(--pf-accent); opacity: 0.8; }
.barrow { display: grid; grid-template-columns: 1fr 90px auto; align-items: center; gap: 10px; font-size: 13px; }
.barrow.static { grid-template-columns: 1fr auto; }
.barrow-label { display: flex; align-items: center; gap: 7px; }
.barrow-track { height: 6px; background: var(--pf-surface-3); border-radius: 999px; overflow: hidden; }
.barrow-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pf-accent) 0%, #ffb07a 100%); border-radius: 999px; }
.barrow-value { font-size: 12.5px; }
.empty.flat { margin: 0; padding: 12px; }

/* ── Modals ──────────────────────────────────────────────────────────────── */
/*
 * A native <dialog>, so the browser handles the inert background, the focus
 * trap and Escape. Only the look is ours.
 */
.modal {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--pf-line);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(17, 17, 20, 0.25);
  background: var(--pf-surface);
  color: var(--pf-ink);
}
.modal::backdrop { background: rgba(27, 27, 31, 0.32); backdrop-filter: blur(2px); }
.modal[open] { animation: pf-enter 160ms ease-out both; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--pf-line);
}
.modal-head h2 { margin: 0; font-size: 15px; }
.modal-x {
  border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1;
  color: var(--pf-muted); padding: 2px 6px; border-radius: var(--radius-sm);
  transition: background 140ms ease, color 140ms ease;
}
.modal-x:hover { background: var(--pf-surface-2); color: var(--pf-ink); }
.modal-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; margin: 0; }
.modal-body label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--pf-ink-2); }
.modal-body .meta.block { font-size: 11.5px; line-height: 1.5; margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.modal-actions .btn { align-self: auto; }

/* ── Provider cards ──────────────────────────────────────────────────────── */
/*
 * One card per provider instead of two eight-column tables.
 *
 * The tables were honest and unreadable: half the cells were dashes,
 * because what a provider reports varies wildly — a bill, a quota, a
 * balance, or nothing at all — and a grid forces every provider into the
 * same columns. A card shows whichever figure that provider actually has,
 * with our own numbers beneath it. The full grid is still a click away.
 */
.callout {
  margin-top: 16px; padding: 12px 14px; max-width: none;
  background: var(--pf-surface-2); border-left: 2px solid var(--pf-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin-top: 18px; }
.provider {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: var(--pf-surface); border: 1px solid var(--pf-line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xs);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.provider:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--pf-line-strong); }
.provider header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.provider-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.provider-figure { margin: 2px 0 0; font-family: var(--mono); font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; word-break: break-word; }
.provider-note { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--pf-muted); }
.meter { display: block; height: 5px; background: var(--pf-surface-3); border-radius: 999px; overflow: hidden; }
.meter-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pf-accent) 0%, #ffb07a 100%); border-radius: 999px; }
.provider-stats { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--pf-line); }
.provider-stats dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px 8px; margin: 8px 0 0; }
.provider-stats dl > div { display: flex; flex-direction: column; gap: 1px; }
.provider-stats dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pf-muted); }
.provider-stats dd { margin: 0; font-family: var(--mono); font-size: 13px; }
.panel.wide .wide-body { max-width: none; padding: 0; background: none; border: 0; box-shadow: none; }

/* The overview's version: the same card, smaller, and a link — every one of
   them is a way into the Providers page. */
.providers.compact-grid { grid-template-columns: repeat(auto-fit, minmax(208px, 1fr)); }
.provider.compact { gap: 6px; padding: 13px 14px; text-decoration: none; color: inherit; }
.provider-figure.small { font-size: 16px; }
.provider.compact .provider-note { font-size: 11.5px; }

/* ── Writes: forms, confirmation, flash ──────────────────────────────────── */
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.inline-form input[type='text'] { min-width: 180px; width: auto; }
.flash { margin: 16px 0 0; padding: 9px 13px; font-size: 13px; border-radius: var(--radius); border: 1px solid var(--pf-line); background: var(--pf-surface); }
.flash.done { background: var(--pf-success-tint); border-color: rgba(46, 125, 70, 0.25); color: var(--pf-success); }
.flash.failed { background: var(--pf-danger-tint); border-color: rgba(179, 64, 58, 0.25); color: var(--pf-danger); }
.danger-zone { border-top: 1px solid var(--pf-line); padding-top: 26px; }
.danger-zone .actions { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 14px; }
.danger-zone form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 360px; margin: 0; }
.confirm { display: flex; flex-direction: column; gap: 4px; }
/* Danger is secondary's SHAPE in red ink, not a red fill — the product's own
   button hierarchy, where a filled red beside a filled orange is two loud
   things competing. */
.btn.secondary { background: var(--pf-surface); color: var(--pf-ink); border-color: var(--pf-line); }
.btn.secondary:hover { background: var(--pf-surface-2); border-color: var(--pf-line-strong); }
.btn.danger { background: var(--pf-surface); color: var(--pf-danger); border-color: rgba(179, 64, 58, 0.3); }
.btn.danger:hover { background: var(--pf-danger-tint); border-color: rgba(179, 64, 58, 0.5); }

/* ── Sign in ─────────────────────────────────────────────────────────────── */
body.auth { display: flex; min-height: 100dvh; align-items: center; justify-content: center; padding: 20px; }
.auth-shell { width: 100%; max-width: 380px; }
.auth-logo { margin-bottom: 32px; }
.auth-shell .sub { margin: 6px 0 28px; font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.field > span { color: var(--pf-ink-2); font-weight: 500; }
.alert { margin: 0 0 18px; padding: 10px 13px; font-size: 13px; color: var(--pf-danger); background: var(--pf-danger-tint); border: 1px solid rgba(179, 64, 58, 0.25); border-radius: var(--radius); }
.foot { margin-top: 24px; font-size: 12.5px; color: var(--pf-muted); }
code { font-family: var(--mono); font-size: 12px; background: var(--pf-surface-2); padding: 1px 5px; border-radius: 5px; }

@media (max-width: 900px) {
  body.app { flex-direction: column; }
  .sidebar { position: static; width: auto; flex: none; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .sidebar .chip { margin: 0; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .nav-hint { display: none; }
  .sidebar .who { margin: 0 0 0 auto; flex-direction: row; align-items: center; border: 0; padding: 0; }
  main { padding: 20px 16px 56px; }
  .filter input { min-width: 0; width: 100%; }
}
