/* Portal layout — the shell and the page patterns the portal redesign introduces.
 *
 * Layers on top of static/css/modernist.css, which stays the design system: this
 * file defines no colours, type or spacing of its own, only arrangement, and
 * every value it does carry comes from a Modernist token. If you find yourself
 * about to write a hex here, the token is missing from modernist.css and belongs
 * there instead.
 *
 * Loaded by templates/base.html, so it serves every origin that renders it — the
 * portal in full, and the account/auth screens the admin and product origins
 * borrow from it.
 *
 * Three sections:
 *   1. Shell            — header, context bars, main column, footer.
 *   2. Page patterns    — the redesign's tiles, rows, tabs and stat cells.
 *   3. Compatibility    — the class names screens outside the redesign still use,
 *                         re-expressed on Modernist tokens so no page is left
 *                         unstyled by the move off main.css. Retire an entry here
 *                         when its screens are rebuilt on the patterns above.
 */

/* ══════════════════════════════════════════════════════════════════════════
   1. Shell
   ══════════════════════════════════════════════════════════════════════════ */

/* One measure for the whole origin. Wider than main.css's 960px because the
   redesign puts product tiles and six-column admin tables on the same column. */
.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.site-header { border-bottom: 2px solid var(--color-divider); }

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: var(--color-text);
}
.brand:hover { color: var(--color-text); }
.brand-mark { width: 30px; height: 30px; padding: 6px 8px; }

/* The organisation's initial on the organisation's own colour. The letter is
   light because the branding defaults are both dark (#006593 / #162c55) and the
   branding form offers a colour picker, not a contrast check — an organisation
   that picks a pale colour gets a pale tile. If that turns out to happen, the
   fix belongs in the form as a validated minimum contrast against white, not in
   a CSS guess about which way round the pair should go. */
.brand-initial {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: var(--org-color); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1;
}

.brand-name {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.brand-name--nilsaro { letter-spacing: 0.06em; text-transform: uppercase; }

/* The organisation's colour as a rule under the header — the second and last
   place the chrome wears it. Only drawn when an organisation has set a display
   name, so an organisation still on the defaults gets the Nilsaro lockup and no
   rule rather than a stripe of our blue pretending to be theirs. */
.brand-rule { height: 5px; background: var(--org-color); }

.main-nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}
.main-nav a { color: var(--color-text); text-decoration: none; }
.main-nav a:hover { color: var(--color-accent-700); }
.nav-quiet { color: var(--color-neutral-700); }

.nav-notifications { display: inline-flex; align-items: center; gap: 7px; }
.nav-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 11px; line-height: 1;
}
.nav-rule { width: 2px; height: 22px; background: var(--color-divider); }

/* — context bars — */
/* Support runs on the accent because it is the platform speaking, and it sits
   above the organisation bar: the fact that this is a support session outranks
   which organisation it is a session in. */
.support-bar {
  background: var(--color-accent-100);
  border-bottom: 2px solid var(--color-divider);
  color: var(--color-accent-800);
}
.support-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-3) 14px;
  padding-block: 11px;
  font-size: 13px;
}
.support-chip {
  background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 11px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px var(--space-2);
}
.support-end { margin-left: auto; color: var(--color-accent-800); }

.context-bar { border-bottom: 1px solid var(--color-divider); }
.context-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-3);
  padding-block: 9px;
  font-size: 13px;
}
.context-label {
  font-size: 11px; font-weight: 600; line-height: 1;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.context-org { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.main-content { padding: 36px var(--space-8) 72px; min-height: 60vh; }

.site-footer {
  border-top: 2px solid var(--color-divider);
  padding: var(--space-4) 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.site-footer p { margin: 0; }

/* — flash messages — */
.messages { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.message {
  padding: 10px var(--space-3);
  margin-bottom: var(--space-2);
  border-left: 3px solid var(--color-neutral-500);
  background: var(--color-neutral-100);
  font-size: 14px;
}
.message-success { border-left-color: var(--color-accent-2-600); background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.message-info { border-left-color: var(--color-accent); background: var(--color-accent-100); color: var(--color-accent-800); }
.message-warning { border-left-color: var(--color-warning); background: var(--color-warning-100); color: var(--color-warning-800); }
.message-error { border-left-color: var(--color-danger); background: var(--color-danger-100); color: var(--color-danger-800); }

/* ══════════════════════════════════════════════════════════════════════════
   2. Page patterns
   ══════════════════════════════════════════════════════════════════════════ */

/* — page and section headings — */
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px;
  border-bottom: 2px solid var(--color-divider);
  padding-bottom: var(--space-4);
  margin-bottom: 28px;
}
.page-head h1 { font-size: 40px; margin: 0; }
.page-head .card-kicker + h1 { margin-top: 6px; }
.page-head-note {
  margin: 0 0 var(--space-1);
  max-width: 420px;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.page-head-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.page-intro {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.section-head {
  font-size: 22px; margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-divider);
}

/* — the modular grid — */
/* Rules are drawn by each cell's own 2px ring, not by a coloured background
   showing through the gaps.
 *
 * The background technique is the obvious one and it is wrong here: an auto-fit
 * grid almost never divides evenly, and the leftover space on the last row is
 * not a cell, so it has nothing to paint over the ground. Five contacts in three
 * columns rendered as five panels and one solid grey rectangle. With rings, the
 * outline hugs whatever cells actually exist and the leftover space stays empty.
 *
 * The ring colour is an opaque ramp step rather than --color-divider, which is a
 * 40% ink mix: adjacent cells' rings overlap inside the 2px gap, and two
 * transparent layers there would make every interior rule visibly darker than
 * the outer edge. */
.cell-grid {
  display: grid;
  gap: 2px;
  padding: 2px;
}
.cell-grid > * {
  background: var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-neutral-500);
}
.cell-grid--tiles { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cell-grid--stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cell-grid--panels { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cell-grid--panels > * { padding: 20px; }

/* — product tiles — */
/* The ring comes from .cell-grid > *; hover recolours it. */
.tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  background: var(--color-bg);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.12s, background 0.12s;
}
a.tile:hover {
  box-shadow: 0 0 0 2px var(--color-accent);
  background: var(--color-neutral-100);
  color: var(--color-text);
}
/* The primary product gets both cells on a two-up row. Below the breakpoint the
   grid is single-column anyway and the span would leave an empty second track. */
.tile--wide { grid-column: span 2; min-width: 0; }
@media (max-width: 719px) { .tile--wide { grid-column: span 1; } }

.tile--disabled { opacity: 0.55; cursor: default; }

.tile-head { display: flex; align-items: flex-start; gap: var(--space-4); }
.tile-head--compact { align-items: center; gap: var(--space-3); }

.tile-badge {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; line-height: 1;
}
.tile-badge--sm { width: 34px; height: 34px; font-size: 14px; }
.tile-badge--muted { background: var(--color-neutral-800); }
.tile-badge--empty {
  background: transparent; color: var(--color-text);
  border: 2px solid var(--color-divider);
}

.tile-name {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 26px; line-height: 1.1; letter-spacing: -0.015em;
}
.tile-name--sm { font-size: 20px; }
.tile-desc {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.tile-headings { min-width: 0; }
.tile-head .tile-desc { margin-top: var(--space-1); }
a.tile-name { text-decoration: none; color: var(--color-text); }
a.tile-name:hover { color: var(--color-accent-700); }
.grid-footnote {
  font-size: 12px; margin: 14px 0 0;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.tile-open {
  margin-left: auto;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 13px; line-height: 1;
  color: var(--color-accent-700);
  white-space: nowrap;
}
.tile-head .tile-open { padding-top: 6px; }
.tile-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* Deep links into the product, so the common task is one click from sign-in
   rather than a landing page away. Anchors nested in the tile anchor would be
   invalid HTML, so the tile is not itself a link when it carries these — see
   templates/core/app_launcher.html. */
.tile-quicks { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.quick {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  font-size: 12px;
  text-decoration: none;
  color: var(--color-text);
}
.quick:hover { border-color: var(--color-accent); color: var(--color-accent-700); }

/* — list rows — */
/* The alternative to a card per item. A rule between rows is enough structure
   when every row has the same shape, and it keeps six of them on one screen. */
.listrow {
  display: flex; gap: var(--space-4);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: flex-start;
}
.listrow:last-child { border-bottom: 0; }
.listrow-main { flex: 1; min-width: 0; }
.listrow-title { font-weight: 600; font-size: 15px; }
.listrow-meta {
  font-size: 12px; margin-top: 3px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.listrow-dot { width: 8px; height: 8px; flex: none; margin-top: 7px; background: var(--color-neutral-400); }
.listrow-dot--unread { background: var(--color-accent); }
.listrow--unread .listrow-title { font-weight: 600; }
.listrow--read .listrow-title { font-weight: 400; }

.listrow-strip { border-top: 2px solid var(--color-divider); }

/* — tab navigation — */
.tab-nav {
  display: flex; flex-wrap: wrap; gap: 26px;
  border-bottom: 2px solid var(--color-divider);
}
.tab {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px; line-height: 1; letter-spacing: 0.02em;
  padding: 0 0 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab:hover { color: var(--color-accent-700); }
.tab[aria-current="page"] { color: var(--color-accent-700); border-bottom-color: var(--color-accent); }

/* — the organisation admin area — */
.admin-head { margin-bottom: 26px; }
.admin-head h1 { font-size: 40px; margin: 6px 0 20px; }
.admin-subtitle { font-size: 26px; margin: 0 0 var(--space-4); }
.admin-stats { margin-bottom: 36px; }
.admin-lede {
  margin: 0 0 20px; max-width: 620px; font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
/* The row above a table: what this screen is, and the action that changes it. */
.admin-bar {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.admin-bar-note {
  margin: 0; max-width: 560px; font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.admin-bar .page-head-actions { margin-left: auto; }
.admin-table { margin-bottom: var(--space-4); }
.table-footnote { margin: var(--space-3) 0 var(--space-6); font-size: 13px; }
.cell-strong { font-weight: 600; }
.section-head--spaced { margin-top: 36px; }
.swatch {
  display: inline-block; width: 12px; height: 12px;
  margin-right: 6px; vertical-align: -1px;
  border: 1px solid var(--color-divider);
}

/* — stat cells — */
.stat-cell { padding: var(--space-4) 18px; }
.stat-value { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 34px; line-height: 1; }
.stat-label {
  font-size: 12px; margin-top: 6px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

/* — two-column split — */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}
.split--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.measure-form { max-width: 900px; }

/* — a bordered panel — */
.panel { border: 2px solid var(--color-divider); padding: 20px; }
.panel--narrow { max-width: 640px; }

/* — usage meter — */
.meter { display: flex; align-items: center; gap: var(--space-2); }
.meter-track { width: 64px; height: 8px; background: var(--color-neutral-300); display: block; overflow: hidden; }
/* Clamped, because usage past the limit produces a width above 100%. The bar
   stops at full and the colour change carries the overflow — a full bar and an
   overflowing one must not look the same. */
.meter-fill { display: block; height: 8px; max-width: 100%; background: var(--color-text); }
.meter-fill--over { background: var(--color-danger); }

/* — auth column — */
.auth-column { max-width: 400px; padding-top: var(--space-6); }
.auth-column h1 { font-size: 38px; margin: 0 0 6px; }
.auth-column .card-kicker + h1 { margin-top: 6px; }
.auth-mark { width: 44px; height: 44px; padding: 9px 12px; margin-bottom: 28px; }
.auth-lede {
  margin: 0 0 26px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.btn-wide { width: 100%; justify-content: flex-start; padding: 11px 14px; }

/* — organisation picker and eligible roles — */
.picker-name {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px; line-height: 1.15;
}
.picker-row, .eligible-row { align-items: center; padding: 18px 0; gap: var(--space-4); }
.picker-row > form, .eligible-action { margin-left: auto; }
.eligible-role { min-width: 240px; }
.eligible-action { min-width: 260px; }
.activate-form .field { margin-bottom: var(--space-2); }
.activate-form textarea.input { min-height: 56px; }

/* — get help — */
.contacts-grid { margin-bottom: var(--space-8); }
.contact-name {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px; line-height: 1.2; margin: 6px 0 2px;
}
.hr--tight { margin: 14px 0; }
.report-head { font-size: 26px; margin: 0 0 var(--space-1); }
.refline {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 14px;
}

.page-title { font-size: 40px; margin: 0 0 28px; }
.page-head--tight { margin-bottom: var(--space-2); }
.listrow-link { color: var(--color-text); text-decoration: none; }
.listrow-link:hover { color: var(--color-accent-700); }
.auth-alt { font-size: 13px; margin: 0; }

/* — code / reference blocks — */
.refcode { font-family: var(--font-mono); font-weight: 600; font-size: 15px; line-height: 1; }
.codeblock {
  margin: 0 0 var(--space-4);
  padding: 14px;
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-sm > * + * { margin-top: var(--space-3); }
.contact-lines { font-size: 13px; display: grid; gap: var(--space-1); }
.numeric-input { font-size: 20px; letter-spacing: 0.24em; min-height: 46px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════════════════
   3. Compatibility — screens not part of the portal redesign
   ══════════════════════════════════════════════════════════════════════════ */

/* base.html moved from main.css to Modernist, and it is rendered by roughly
   fifty templates. The redesign covers the portal's own screens; password
   reset, API tokens, OU and role forms, landing editors and the assisted-
   creation flow keep their markup and are carried here so none of them renders
   unstyled. These are translations of main.css onto Modernist tokens, not new
   design work — when one of those screens is rebuilt, delete its entry. */

.auth-card { max-width: 400px; padding-top: var(--space-6); }
.auth-card h1 { font-size: 38px; }

.sub-nav {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-divider);
}
.sub-nav a {
  color: var(--color-text); text-decoration: none;
  font-weight: 600; font-size: 13px;
  padding-bottom: 10px; margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}
.sub-nav a:hover { color: var(--color-accent-700); }
.sub-nav a.nav-link-active { color: var(--color-accent-700); border-bottom-color: var(--color-accent); }

/* Same ring technique as .cell-grid above, and for the same reason. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2px;
  padding: 2px;
  margin: 0 0 var(--space-6);
}
.stat-card {
  background: var(--color-bg);
  padding: var(--space-4) 18px;
  box-shadow: 0 0 0 2px var(--color-neutral-500);
}
.stat-card strong { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 34px; line-height: 1; }
.stat-card span { font-size: 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  padding: 2px;
  margin-top: var(--space-4);
}
.launcher-tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px;
  background: var(--color-bg);
  text-decoration: none; color: var(--color-text);
  box-shadow: 0 0 0 2px var(--color-neutral-500);
}
a.launcher-tile:hover {
  box-shadow: 0 0 0 2px var(--color-accent);
  background: var(--color-neutral-100);
  color: var(--color-text);
}
.launcher-tile__label { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; line-height: 1.15; }
.launcher-tile__product,
.launcher-tile__description,
.launcher-tile__external { font-size: 13px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.launcher-tile--disabled { opacity: 0.55; cursor: default; }
.launcher-tile--disabled:hover {
  box-shadow: 0 0 0 2px var(--color-neutral-500);
  background: var(--color-bg);
}
.launcher-tile__status {
  align-self: flex-start;
  font-size: 11px; letter-spacing: 0.02em;
  padding: 2px 9px;
  border: 1px solid var(--color-neutral-300);
  background: var(--color-neutral-200); color: var(--color-neutral-800);
}

.organisation-grid,
.tenant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.status-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; letter-spacing: 0.02em;
  padding: 2px 9px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-badge--neutral { background: var(--color-neutral-200); border-color: var(--color-neutral-300); color: var(--color-neutral-800); }
.status-badge--success { background: var(--color-accent-2-200); border-color: var(--color-accent-2-300); color: var(--color-accent-2-800); }
.status-badge--info { background: var(--color-accent-200); border-color: var(--color-accent-300); color: var(--color-accent-800); }
.status-badge--warning { background: var(--color-warning-200); border-color: var(--color-warning-300); color: var(--color-warning-800); }
.status-badge--danger { background: var(--color-danger-200); border-color: var(--color-danger-300); color: var(--color-danger-800); }

.context-banner {
  padding: 11px 0;
  border-bottom: 2px solid var(--color-divider);
  font-size: 13px;
}
.context-banner--platform { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.context-banner--organisation_admin { background: var(--color-accent-100); color: var(--color-accent-800); }
.context-banner--support { background: var(--color-warning-100); color: var(--color-warning-800); }
.context-banner--assisted { background: var(--color-danger-100); color: var(--color-danger-800); font-weight: 600; }

.context-pill {
  display: inline-flex; align-items: center;
  padding: 2px 9px; font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
}
.context-pill--organisation,
.context-pill--tenant { background: var(--color-accent-200); border-color: var(--color-accent-300); color: var(--color-accent-800); }
.context-pill--support { background: var(--color-warning-200); border-color: var(--color-warning-300); color: var(--color-warning-800); }
.context-pill--user { background: var(--color-neutral-200); border-color: var(--color-neutral-300); color: var(--color-neutral-800); }

.admin-help {
  background: var(--color-neutral-100);
  border-left: 3px solid var(--color-accent);
  padding: 10px 14px;
  margin: 0 0 var(--space-4);
  font-size: 13px;
}
.notice { background: var(--color-warning-100); color: var(--color-warning-800); padding: var(--space-2) var(--space-3); font-size: 14px; }
.danger-zone { border: 1px solid var(--color-danger-300); background: var(--color-danger-100); padding: var(--space-4); margin-top: var(--space-4); }
.empty-state { color: color-mix(in srgb, var(--color-text) 55%, transparent); padding: var(--space-4) 0; }
.empty-state p { margin: 0 0 var(--space-2); }

.detail-list { margin: 0; }
.detail-list dt { font-weight: 600; margin-top: var(--space-3); }
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: var(--space-1) 0 0; }

.filter-form { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.filter-form label { font-size: 12px; }
.form-input { width: 100%; }
.form-note, .help-text { font-size: 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.form-errors { color: var(--color-danger-800); font-size: 13px; }
.form-stack > p { margin: 0 0 var(--space-3); }

.foundation-list { list-style: disc; padding-left: var(--space-6); }
.shortcut-list { list-style: none; padding: 0; margin: 0; }
.shortcut-list li { margin-bottom: 6px; }
.notification-list { list-style: none; padding: 0; margin: 0; }
.notification-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--color-divider); }
.notification-unread { font-weight: 600; }

.token-secret { word-break: break-all; background: var(--color-surface); padding: var(--space-3); font-family: var(--font-mono); font-size: 13px; }
.qr-code { display: block; margin: var(--space-4) 0; }
.muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--color-accent-700); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Product module links in the header. Set apart from the surrounding nav by
   weight rather than a rule — they are the same kind of destination. */
.product-nav { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.product-nav-link { font-weight: 600; }

/* Fallback tables. Screens outside the redesign use bare <table>; the redesign's
   own tables carry .table from modernist.css. */
main table { width: 100%; border-collapse: collapse; font-size: 14px; }
main th, main td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--color-divider); vertical-align: top; }
main th {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  border-bottom: 2px solid var(--color-divider);
}
