/* Shekspi admin dashboard: the admin-only rules. The design tokens, base styles and every shared
   component come from packages/ui (served at /ui/styles/tokens.css and /ui/styles/base.css,
   linked before this file), the same files the integrator console uses. */

/* Sign-in. */
.login-actions .btn:not(:disabled) + .field-hint { visibility: hidden; }
/* The permanent "this is the admin dashboard" badge: small and amber (packages/ui tokens), in both
   themes. Amber, not orange: orange means a problem. The sign-in card wears the same badge. */
.admin-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--admin-badge-bg); color: var(--admin-badge-ink);
  border: 1px solid var(--admin-badge-line);
  font-size: var(--t-11); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 18px;
}
.admin-badge .icon { width: 12px; height: 12px; }
/* The account menu's button holds the key chip (name and countdown). */
.admin-acct-btn { max-width: 340px; }
.admin-acct-btn .key-chip { min-width: 0; overflow: hidden; }
.admin-acct-btn .key-chip-text { overflow: hidden; text-overflow: ellipsis; }
.acct-meta { margin: 0; font-size: var(--t-12); }
.key-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: var(--fs-xs); white-space: nowrap; }
.key-chip .icon { color: var(--dim); width: 14px; height: 14px; }
.key-chip-warn { color: var(--warn); font-weight: 600; }
.key-chip-warn .icon { color: var(--warn); }
/* Read-only notice at the top of every page, with the command to copy. */
.ro .banner-body { gap: 8px; }
.ro-cmds { display: grid; gap: 8px; }
/* A command to copy: one line, monospace, a copy button. */
.cmd { align-items: center; }
.cmd .code-text { white-space: pre-wrap; word-break: break-all; padding-top: 0; }
.cmd-label { color: var(--dim); font-size: var(--fs-xs); }
.cmd-block { display: grid; gap: 4px; }
/* Open an integrator by id. */
.open-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.open-form .field { flex: 1 1 320px; }
.recent-list { display: grid; gap: 6px; }
.recent-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.recent-item a { font-weight: 600; }
/* Platform health. */
.no-reading { color: var(--bad); font-weight: 700; }
.not-measured { color: var(--dim); font-size: var(--fs-md); font-weight: 400; }
.health-summary .health-unmeasured { color: var(--ink-2); }
.health-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--dim); font-size: var(--fs-xs); }
.health-legend li { display: inline-flex; align-items: center; gap: 6px; }
.health-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.health-dot-ok { background: var(--ok); }
.health-dot-warn { background: var(--warn); }
.health-dot-bad { background: var(--bad); }
.health-dot-none { border: 1.5px dashed var(--dim); }
.detail-tabs { margin-top: -4px; }
/* Shell bits. */
.main-col { min-width: 0; }
.ro-chip { flex: none; }
.key-chip-when { color: var(--dim); }
.key-chip-warn .key-chip-when { color: var(--warn); }
.sidebar { overflow-x: hidden; border-right: 1px solid var(--side-rule); }
.nav-link { min-width: 0; }
.nav-recent .nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-meta code { font-size: 11.5px; }
.row-name { font-weight: 600; }
/* Lists of plain sentences inside cards. */
.plain-list { display: grid; gap: 6px; padding-left: 18px; color: var(--ink-2); }
/* JSON behind a disclosure: audit detail, message values, health bodies. */
.json summary { cursor: pointer; color: var(--accent); font-size: var(--fs-xs); }
.json[open] summary { margin-bottom: 6px; }
.json-pre {
  max-width: min(560px, 80vw); max-height: 320px; overflow: auto; padding: 8px 10px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.howto summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.howto[open] { display: grid; gap: 6px; }
.howto code, .howto-cmd { display: block; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.stream-progress { padding: 0 16px; }
.tab-panel:focus { outline: none; }
@media (max-width: 900px) {
  .ro-chip .pill-text { display: none; }
  .ro-chip { padding: 2px 6px; }
}
@media (max-width: 640px) {
  .key-chip-text { display: none; }
  .admin-badge { padding: 1px 6px; }
  .ro-chip { display: none; }
  .kc-pre { display: none; }
  .topbar .brand-mark { display: none; }
  .signout-text { display: none; }
  .json-pre { max-width: 100%; }
}
.expiry-soon .cell-sub { color: var(--warn); font-weight: 600; }
/* U1a: dead-letter error text wraps instead of widening the table. */
.dl-error { white-space: pre-wrap; word-break: break-word; }
.filters { gap: 8px; flex-wrap: wrap; align-items: center; }

/* U1b: management actions (pages/actions.js). */
.actions-grid { align-items: stretch; }
.actions-grid > .card { height: 100%; }
.perm-boxes { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.perm-boxes .field-check-row { font-family: var(--mono); font-size: 12.5px; }
.blast { margin: 0; }
.revoke-panel { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.secret-panel .code { overflow-x: auto; }
.secret { word-break: break-all; user-select: all; }
.card-focus { box-shadow: 0 0 0 2px var(--accent); }
textarea.input { resize: vertical; min-height: 56px; font-family: var(--mono); }
@media (max-width: 760px) { .actions-grid { grid-template-columns: minmax(0, 1fr); } }

/* Catalogue (C1, ADR-0017 section 11): read-only tabs over the shared catalogue. */
.cat-howto { margin: 12px 0; }
.cat-note { display: block; max-width: 60ch; color: var(--ink-2, inherit); overflow-wrap: anywhere; }
.cat-target { display: inline-flex; flex-direction: column; gap: 2px; }
.cat-sources { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.cat-steps { margin: 0; padding-left: 18px; }
.cat-steps > li + li { margin-top: 2px; }
.cat-json > summary { cursor: pointer; color: var(--dim); font-size: var(--fs-xs); }
.cat-json > pre { margin: 6px 0 0; max-width: 40ch; white-space: pre-wrap; font-size: 11.5px; }
.cat-filters { padding: 0 16px 12px; }
/* Device pictures (lane images-everywhere; the kit draws them, /ui/styles/device-image.css). */
.cat-model-cell { display: inline-flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-model-link { color: inherit; text-decoration: none; display: inline-flex; min-width: 0; }
.cat-model-link:hover .dimg-chip-name { text-decoration: underline; }
.cat-model-hero { display: flex; align-items: flex-start; gap: 24px; }
.cat-model-hero > .kv, .cat-model-hero > dl { flex: 1 1 auto; min-width: 0; }
.cat-model-pic { flex: none; }
.cat-config { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.cat-um-title { display: inline-flex; align-items: center; gap: 8px; }
.cat-back { align-self: flex-start; justify-self: start; }
@media (max-width: 720px) {
  .cat-model-hero { flex-direction: column; gap: 16px; }
  .cat-model-pic .dimg-lg { width: 160px !important; height: 160px !important; border-radius: 18px; }
}
/* Unmapped readings (lane unmapped): one sentence, the window switch beside it. */
.um-head { justify-content: space-between; gap: 8px 16px; }
.um-intro { margin: 0; max-width: 70ch; color: var(--dim); }
.um-window .seg { padding: 5px 12px; font-size: var(--fs-xs); }

/* Usage (U3c, pages/usage.js): range controls, notes, share bars. The bar chart itself (.bc-*) is
   packages/ui, shared with the console. */
.au-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.au-range { min-width: 0; max-width: 100%; overflow-x: auto; }
.au-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; flex-basis: 100%; }
.au-date { display: grid; gap: 4px; }
.au-date label { font-size: var(--fs-xs); font-weight: 600; color: var(--dim); }
.au-range-hint { flex-basis: 100%; color: var(--dim); font-size: var(--fs-xs); }
.au-range-bad { color: var(--bad); font-weight: 600; }
.au-counter:empty { display: none; }
.au-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--dim); font-size: var(--fs-xs); margin-top: 6px; }
.au-note .icon { width: 13px; height: 13px; flex: none; }
.au-sort .seg { padding: 5px 12px; font-size: var(--fs-xs); }
.au-share { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; }
.au-share-bar { position: relative; display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.au-share-fill { position: absolute; inset: 0 auto 0 0; background: var(--chart-1); border-radius: 3px; }
.au-share-text { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 3ch; }
.au-row-own td { background: var(--panel-2); }
.au-block .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.page .tiles:has(> .tile:nth-child(6)) { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 640px) {
  .au-custom .au-date, .au-custom .au-date .input { width: 100%; }
  .au-share-bar { width: 44px; }
}

/* Private mappings (ADR-0017 C3) */
.pm-list { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pm-list code { font-size: var(--fs-xs); overflow-wrap: anywhere; }
.pm-warn { color: var(--warn); }

/* The "this screen only reads" line (ui.js readOnly with no commands): quiet, one line. */
.ro-line { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: var(--fs-xs); }
.ro-line .icon { width: 14px; height: 14px; }
/* The command-line twins: folded at the bottom of a page, quiet until opened. */
.howto.ro > summary { color: var(--dim); font-weight: 500; font-size: var(--fs-xs); }
.howto.ro > summary:hover { color: var(--accent); }

/* Replay and Retention (ADR-0028, lane data): the form grid, a progress bar and its states. */
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.actions-row { gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.progress { height: 8px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; min-width: 120px; }
.progress-bar { height: 100%; background: var(--accent); }
.progress-bar.progress-warn { background: var(--warn); }
.progress-bar.progress-bad { background: var(--bad); }

/* Overview (lane ui-wire-admin, pages/overview.js): platform health and statistics, ADR-0039.
   The demo a2.html's Platform health, Health figures and Platform statistics, on kit cards. Green
   only for an up day, orange only for a problem; everything else ink and grey. */
.ov-grid { display: grid; gap: var(--card-gap); grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.ov-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); }
.ov-section-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 -4px; font-size: var(--t-18); font-weight: 600; letter-spacing: -0.01em; }
.ov-section-h span { color: var(--dim); font-size: var(--t-13); font-weight: 400; letter-spacing: 0; }
.ov-pad { padding: 0 var(--card-pad) 18px; }
.ov-updated { align-self: center; color: var(--dim); font-size: var(--t-12); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-head-state:empty { display: none; }
.ov-stale { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--bad); font-size: var(--t-13); }
.ov-stale .icon { width: 14px; height: 14px; }
.ov-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--dim); font-size: var(--t-12); }
.ov-note .icon { width: 13px; height: 13px; flex: none; }
.ov-none { margin: 0; color: var(--ink-2); }
.ov-bad { color: var(--bad-mark); }
/* The 30-day strip: one cell per UTC day. */
.ov-strip { display: inline-flex; gap: 2px; width: 100%; min-width: 180px; max-width: 280px; height: 18px; vertical-align: middle; }
.ov-strip-lg { max-width: none; height: 34px; gap: 3px; margin: 2px 0 10px; }
.ov-day { flex: 1 1 0; display: block; min-width: 3px; height: 100%; border-radius: 1px; box-sizing: border-box; }
.ov-day-up { background: var(--ok); opacity: 0.72; }
.ov-day-degraded { background: var(--panel); border: 1.5px solid var(--bad-mark); }
.ov-day-outage { background: var(--bad-mark); }
.ov-day-no_data { background: var(--line); }
.ov-strip .ov-day:hover, .ov-strip .ov-day:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 1px; opacity: 1; }
.ov-strip-lg .ov-day { border-radius: 2px; cursor: default; }
.ov-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; padding: 0; list-style: none; color: var(--dim); font-size: var(--t-12); }
.ov-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ov-legend .ov-day { flex: none; width: 7px; height: 12px; }
.ov-svc td { height: 50px; }
.ov-svc .ov-strip-cell { width: 290px; }
.ov-svc .row-name { display: block; white-space: nowrap; }
.ov-svc .td-primary { min-width: 150px; }
.ov-svc .td-primary .cell-sub { white-space: nowrap; }
.ov-inc { white-space: nowrap; font-size: var(--t-12); color: var(--ink-2); }
.ov-svc tfoot td { height: 46px; padding: 8px 12px; border-top: 1px solid var(--line-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-svc tfoot td:first-child { padding-left: var(--card-pad); }
.ov-svc tfoot td.dim { font-weight: 400; }
/* Health figures (the demo's .hf): two columns of figures, ruled. */
.ov-hf { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.ov-fig { display: grid; align-content: start; gap: 2px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); min-width: 0; color: inherit; }
.ov-fig-wide { grid-column: span 2; }
.ov-hf > .ov-fig:first-child { padding-top: 0; }
.ov-hf > .ov-fig:last-child { border-bottom: 0; padding-bottom: 0; }
.ov-fig-label { display: flex; align-items: baseline; gap: 8px; color: var(--dim); font-size: var(--t-12); }
.ov-fig-v { font-family: var(--mono); font-size: var(--t-24); font-weight: 400; letter-spacing: -0.04em; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.ov-fig-v small { margin-left: 6px; font-family: var(--sans); font-size: var(--t-12); letter-spacing: 0; color: var(--dim); }
.ov-fig-v.ov-bad { color: var(--bad-mark); }
.ov-fig-none { color: var(--faint); font-size: var(--t-14); line-height: 1.7; }
.ov-fig-sub { color: var(--dim); font-size: var(--t-12); overflow-wrap: anywhere; }
.ov-fig-sub.ov-bad { color: var(--bad); }
a.ov-fig-link { text-decoration: none; }
a.ov-fig-link:hover .ov-fig-label { color: var(--ink); text-decoration: underline; }
.ov-q3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4px; }
.ov-q3 > div { display: grid; align-content: start; gap: 1px; min-width: 0; }
.ov-q3 > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.ov-q3 em { font-style: normal; font-family: var(--mono); font-size: var(--t-11); color: var(--faint); }
.ov-expect { font-family: var(--mono); font-size: var(--t-11); color: var(--faint); }
.ov-bar { position: relative; display: block; height: 6px; margin: 8px 0 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ov-bar i { position: absolute; inset: 0 auto 0 0; background: var(--chart-1); border-radius: 3px; }
.ov-bar i.ov-bar-lt { background: var(--line-strong); }
.ov-bar i.ov-bar-bad { background: var(--bad-mark); }
/* Live intake. */
.ov-live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: var(--t-12); }
.ov-live i { width: 7px; height: 7px; background: var(--ok); }
.ov-rate { display: flex; align-items: baseline; gap: 8px; }
.ov-rate-v { font-size: var(--t-30); }
.ov-rate small { color: var(--dim); font-size: var(--t-12); }
.ov-spark { margin-top: 10px; }
.ov-scale { display: flex; justify-content: space-between; margin-top: 2px; color: var(--faint); font-family: var(--mono); font-size: var(--t-11); }
.ov-trio { margin: 14px 0 0; }
.ov-trio dt { color: var(--dim); font-size: var(--t-12); }
.ov-trio dd { margin: 0; font-size: var(--t-18); }
.ov-sub-h { margin: 20px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--t-13); font-weight: 600; }
/* Pipeline latency: p95 a soft bar, p50 a 2px ink tick. */
.ov-key { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: var(--t-12); }
.ov-key i { display: inline-block; }
.ov-key-50 { width: 2px; height: 11px; background: var(--ink); }
.ov-key-95 { width: 14px; height: 5px; background: var(--line-strong); margin-left: 10px; }
.ov-lat td { height: 42px; }
.ov-lat td.al-num, .ov-lat th { white-space: nowrap; }
.ov-lat td:first-child { white-space: nowrap; }
.ov-lat th:first-child, .ov-lat td:first-child { padding-left: 0; }
.ov-lat th:last-child, .ov-lat td:last-child { padding-right: 0; }
.ov-lat-bar-cell { width: 36%; min-width: 64px; }
.ov-lat td.al-num .cell-sub { display: block; }
.ov-rng { position: relative; display: block; height: 12px; }
.ov-rng::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.ov-rng-95 { position: absolute; left: 0; top: 3.5px; height: 5px; background: var(--line-strong); border-radius: 1px; }
.ov-rng-50 { position: absolute; top: 0; width: 2px; height: 12px; margin-left: -1px; background: var(--ink); }
.ov-lat-total td { font-weight: 600; border-top: 1px solid var(--line-strong); }
.ov-lat-scale-h { font-family: var(--mono); text-transform: none; }
/* Refusal reasons, ranked. */
.ov-rank { display: grid; margin: 0; padding: 0; list-style: none; }
.ov-rank li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ov-rank li:first-child { padding-top: 0; }
.ov-rank-i { color: var(--faint); font-family: var(--mono); font-size: var(--t-12); }
.ov-rank-name { display: block; font-size: var(--t-13); font-weight: 600; }
.ov-rank-name .cell-sub { display: block; font-weight: 400; }
.ov-rank .ov-bar { margin: 6px 0 0; }
.ov-rank-pct { font-family: var(--mono); font-size: var(--t-13); font-variant-numeric: tabular-nums; }
.ov-rank-n { min-width: 4ch; text-align: right; color: var(--dim); font-family: var(--mono); font-size: var(--t-12); font-variant-numeric: tabular-nums; }
.ov-missing { margin-top: 12px; color: var(--dim); font-size: var(--t-12); }
.ov-missing summary { cursor: pointer; color: var(--dim); }
.ov-missing summary:hover { color: var(--ink); }
.ov-missing ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.ov-missing b { color: var(--ink-2); font-weight: 600; }
/* Active alerts. */
.ov-alerts { display: grid; margin: 0; padding: 0; list-style: none; }
.ov-alerts li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: start; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ov-alerts li:first-child { padding-top: 0; }
.ov-alerts li:last-child { border-bottom: 0; padding-bottom: 0; }
.ov-alert-main { display: grid; gap: 3px; min-width: 0; }
.ov-alert-name { font-weight: 600; }
.ov-alert-name .cell-sub { display: inline; margin-left: 8px; font-weight: 400; }
.ov-alert-sum { color: var(--ink-2); font-size: var(--t-13); }
.ov-alert-rb { color: var(--dim); font-size: var(--t-12); overflow-wrap: anywhere; }
.ov-alert-when { color: var(--dim); font-size: var(--t-12); white-space: nowrap; }
/* The profile is off. */
.ov-off-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; max-width: 760px; }
.ov-off-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); background: var(--panel-2); color: var(--dim); }
.ov-off-body p { margin: 0; }
/* The service drawer. */
.ov-dr-now { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; font-size: var(--t-13); }
.ov-reasons { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ov-reasons li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 10px; align-items: start; }
.ov-reasons li code { grid-column: 2; font-size: var(--t-11); }
.ov-sources { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ov-sources code { font-size: var(--t-12); overflow-wrap: anywhere; }
.ov-inc-table { margin-top: 12px; }
.ov-inc-table td, .ov-inc-table th { padding-left: 0; }
@media (max-width: 1280px) {
  .ov-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ov-grid-3 > :last-child { grid-column: span 2; }
}
@media (max-width: 1100px) {
  .ov-grid, .ov-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .ov-grid-3 > :last-child { grid-column: auto; }
}
@media (max-width: 640px) {
  .ov-strip { max-width: none; }
  .ov-svc .ov-strip-cell { width: auto; }
  .ov-svc tfoot td { display: block; padding: 4px 16px; border: 0; }
  .ov-alerts li { grid-template-columns: minmax(0, 1fr); }
  .ov-hf { grid-template-columns: minmax(0, 1fr); }
  .ov-fig-wide { grid-column: auto; }
}
/* Dead letters: the filter row on one line (stage, integrator, the test switch), and the "test" tag. */
.row.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row.filters > .input { width: auto; flex: 0 1 220px; }
.row.filters > .tb-toggle { margin-left: 8px; }
.dl-test { margin-left: 6px; }
.ov-lat th.al-num, .ov-svc th.al-num { text-align: right; }

/* Integrators: "Find an account", the server search above the list (lane searchable-pickers). */
.find-account { display: grid; gap: 6px; max-width: 560px; }

/* Lane admin-completeness: the Overview's operations cards, the API rate limits card, the test
   account clean-up. Green only for healthy, orange only for a problem, the rest ink and grey. */
.ops-grid > .card { height: 100%; }
.ops-grid .ov-hf > .ov-fig:nth-child(-n+2) { padding-top: 0; }
.ops-v { font-size: var(--t-14); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ops-off .cmd-block { max-width: 100%; }
.ops-report { margin-top: 14px; }
.ops-report-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.rl-summary { display: grid; gap: 6px; margin-bottom: 4px; }
.rl-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.rl-label { color: var(--dim); font-size: var(--t-13); }
.rl-pair { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 4px; margin: 0; min-width: 0; }
.rl-pair legend { padding: 0 4px; }
@media (max-width: 640px) {
  .rl-row { grid-template-columns: minmax(0, 1fr); }
}
/* Catalogue: a dictionary name opens its detail (the original description and its sources). */
.cat-name-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.cat-name-btn:hover code, .cat-name-btn:focus-visible code { text-decoration: underline; }
.prov-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.prov-item { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.prov-item:first-child { border-top: 0; padding-top: 0; }
.prov-note { margin: 0; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--t-13); }
.prov-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--dim); font-size: var(--t-12); }
.prov-meta a { overflow-wrap: anywhere; }
/* Lane live-views: Device photos (#/device-photos). */
.dp-model { display: inline-flex; align-items: center; gap: 10px; }
.dp-model strong { display: block; }
.dp-sizes { display: inline-flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.dp-sizes a { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; }
.dp-sizes img { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; object-fit: contain; }
.dp-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dp-preview { display: flex; align-items: center; gap: 12px; }
.dp-preview:empty { display: none; }
.dp-preview-img { max-width: 128px; max-height: 128px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); object-fit: contain; }
.dp-problems { margin: 0; padding-left: 18px; font-size: var(--fs-xs); }
.dp-problems .bad { color: var(--bad); }
.dp-steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.stack-tight { display: grid; gap: 2px; }
.mc-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 16px; color: var(--dim); font-size: var(--fs-xs); border-top: 1px solid var(--line); }
.mc-note .icon { width: 13px; height: 13px; flex: none; }
/* Lane small-gaps: the Company profile card on an account page (pages/profile.js). */
.profile-card { display: flex; align-items: flex-start; gap: 16px; }
.profile-card > :last-child { flex: 1; min-width: 0; }
.profile-logo { flex: none; width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.profile-notes { margin: 0; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-address { white-space: pre-line; }
@media (max-width: 640px) { .profile-card { flex-direction: column; } }
