/* Admin theme. See docs/ADMIN_DESIGN_GUIDELINES.md. Everything is scoped under .adm. */
.adm {
    --adm-canvas: #f4f6f9;
    --adm-surface: #ffffff;
    --adm-line: #e1e6ed;
    --adm-ink: #1c2430;
    --adm-muted: #4a5565;
    --adm-accent: #2457c5;
    --adm-accent-soft: #eef3fc;
    --adm-good: #17653a;
    --adm-good-soft: #e3f4ea;
    --adm-bad: #9a1c1c;
    --adm-bad-soft: #fbe4e4;
    --adm-warn: #7a4a00;
    --adm-warn-soft: #fdf0d5;
    --adm-s1: #2457c5;
    --adm-s2: #c2570c;
    --adm-s3: #0f7a6a;
    --adm-s4: #7a4fb3;
    --adm-s5: #7a8494;
    color: var(--adm-ink);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.adm-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.adm-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.adm-sub { margin: 6px 0 0; font-size: 15px; color: var(--adm-muted); }

.adm-btn { height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid #c5ccd6; background: var(--adm-surface); color: var(--adm-ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.adm-btn:hover { background: #f4f6f9; }
.adm-btn-primary { border-color: var(--adm-accent); background: var(--adm-accent); color: #fff; }
.adm-btn-primary:hover { background: #1d49a6; }
.adm-btn:disabled { opacity: 0.5; cursor: default; }

.adm-card { background: var(--adm-surface); border: 1px solid var(--adm-line); border-radius: 12px; }
.adm-card-pad { padding: 20px 24px; }
.adm-card-title { margin: 0; font-size: 17px; font-weight: 600; }
.adm-card-note { margin: 2px 0 0; font-size: 13px; color: var(--adm-muted); }

.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.adm-kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.adm-kpi-label { font-size: 14px; font-weight: 500; color: var(--adm-muted); }
.adm-kpi-value { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.adm-kpi-note { font-size: 13px; color: var(--adm-muted); }
.adm-kpi-note.good { color: var(--adm-good); }
.adm-kpi-note.bad { color: var(--adm-bad); }

.adm-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.adm-col-wide { flex: 1.7 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.adm-col-narrow { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.adm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.adm-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.adm-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.adm-s-0 { background: var(--adm-s1); }
.adm-s-1 { background: var(--adm-s2); }
.adm-s-2 { background: var(--adm-s3); }
.adm-s-3 { background: var(--adm-s4); }
.adm-s-4 { background: var(--adm-s5); }

/* Weekly stacked bars */
.adm-bars { display: flex; gap: 8px; height: 210px; }
.adm-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 12px; color: var(--adm-muted); padding-bottom: 22px; min-width: 24px; }
.adm-plot { flex: 1; min-width: 0; position: relative; display: flex; gap: 8px; align-items: stretch; border-bottom: 1px solid #c5ccd6; margin-bottom: 22px; }
.adm-grid-line { position: absolute; inset-inline: 0; border-top: 1px dashed var(--adm-line); }
.adm-bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.adm-bar { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; gap: 1px; }
.adm-bar > div { border-radius: 2px; min-height: 0; }
.adm-bar-label { position: absolute; bottom: -22px; font-size: 12px; color: var(--adm-muted); white-space: nowrap; }
.adm-empty { font-size: 14px; color: var(--adm-muted); padding: 16px 0; }

/* Source breakdown */
.adm-hbars { display: flex; flex-direction: column; gap: 12px; }
.adm-hbar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.adm-hbar-head .name { font-weight: 500; overflow-wrap: anywhere; }
.adm-hbar-track { display: block; height: 10px; background: #eef1f5; border-radius: 5px; overflow: hidden; margin-top: 5px; }
.adm-hbar-fill { display: block; height: 10px; border-radius: 5px; }

/* Filter bar */
.adm-toolbar { padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--adm-line); }
.adm-toolbar-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.adm-toolbar-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.adm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.adm-check input { width: 18px; height: 18px; }
.adm-search { height: 44px; width: 280px; max-width: 100%; box-sizing: border-box; padding: 0 14px; border: 1px solid #c5ccd6; border-radius: 8px; font-size: 15px; }
.adm-secret-field { min-height: 44px; flex: 1 1 280px; min-width: 0; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 20px 32px; }
.adm-filter-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-chip { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #c5ccd6; background: var(--adm-surface); color: #2b3440; font-size: 14px; font-weight: 600; cursor: pointer; }
.adm-chip:hover { background: #f4f6f9; }
.adm-chip.on { background: var(--adm-accent); border-color: var(--adm-accent); color: #fff; }
.adm-chip .n { font-weight: 500; opacity: 0.85; margin-inline-start: 4px; }

/* Table */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.adm-table th { padding: 12px; text-align: start; font-weight: 600; background: #f8fafc; border-bottom: 1px solid var(--adm-line); white-space: nowrap; }
.adm-table td { padding: 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.adm-table th:first-child, .adm-table td:first-child { padding-inline-start: 24px; }
.adm-table th:last-child, .adm-table td:last-child { padding-inline-end: 24px; }
.adm-table tbody tr { cursor: pointer; }
.adm-table tbody tr:hover td { background: #fafbfd; }
.adm-table .key { background: #f7f9fd; white-space: nowrap; }
.adm-table th.key { background: var(--adm-accent-soft); color: var(--adm-accent); font-weight: 700; border-bottom: 2px solid var(--adm-accent); }
.adm-table tbody tr:hover td.key { background: var(--adm-accent-soft); }
.adm-sort { all: unset; cursor: pointer; font: inherit; font-weight: inherit; color: inherit; }
.adm-sort:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 2px; }
.adm-name { font-weight: 600; color: var(--adm-ink); text-decoration: none; }
.adm-name:hover { color: var(--adm-accent); text-decoration: underline; }
.adm-email { display: block; font-size: 13px; color: var(--adm-muted); }
.adm-never { color: var(--adm-bad); font-weight: 600; }
.adm-dim { color: #6b7686; }
.adm-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.adm-pill.good { background: var(--adm-good-soft); color: var(--adm-good); }
.adm-pill.warn { background: var(--adm-warn-soft); color: var(--adm-warn); }
.adm-pill.bad { background: var(--adm-bad-soft); color: var(--adm-bad); }
.adm-foot { padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--adm-muted); background: #f8fafc; border-top: 1px solid var(--adm-line); }
.adm-pager { display: flex; gap: 8px; align-items: center; }
.adm-pager .adm-btn { height: 36px; padding: 0 14px; font-size: 14px; }

@media (max-width: 575.98px) {
    .adm-title { font-size: 24px; }
    .adm-toolbar, .adm-card-pad { padding-inline: 16px; }
}

/* ---- Detail pages (user edit) ---- */
.adm-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 14px; font-weight: 600; color: var(--adm-accent); text-decoration: none; }
.adm-back:hover { text-decoration: underline; }
.adm-idcard { padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.adm-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.adm-id-name { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--adm-accent-soft); color: var(--adm-accent); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex: none; }
.adm-facts { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.adm-facts > div { display: flex; flex-direction: column; gap: 2px; }
.adm-fact-label { font-size: 12px; font-weight: 600; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.adm-fact-value { font-size: 16px; font-weight: 600; }
.adm-form { display: flex; flex-direction: column; gap: 20px; }
.adm-detail { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.adm-detail-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.adm-detail-rail { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.adm .adm-output { max-height: 32rem; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; padding: 16px; border: 1px solid var(--adm-line); border-radius: 8px; background: var(--adm-canvas); color: var(--adm-ink); font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.adm-stack { display: flex; flex-direction: column; gap: 14px; }
.adm-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.adm-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.adm-linked { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid #eef1f5; }
.adm-linked-kind { font-size: 15px; font-weight: 600; }
.adm-linked-text { font-size: 14px; color: var(--adm-muted); overflow-wrap: anywhere; }
.adm-linked-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-inset { border: 1px solid var(--adm-line); border-radius: 8px; }
.adm-rule { border-top: 1px solid #eef1f5; padding-top: 14px; }
.adm-dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; }
.adm-dl dt { color: var(--adm-muted); }
.adm-dl dd { margin: 0; font-weight: 600; text-align: end; white-space: nowrap; }
.adm-confirm { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--adm-line); border-radius: 8px; background: var(--adm-warn-soft); color: var(--adm-warn); font-size: 14px; font-weight: 600; }
.adm-btn-danger { color: var(--adm-bad); border-color: #e3b3b3; }
.adm-btn-danger:hover { background: var(--adm-bad-soft); }
.adm-btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.adm-savebar { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 4px 16px rgba(28, 36, 48, 0.12); padding: 14px 24px; background: var(--adm-surface); border: 1px solid var(--adm-line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--adm-muted); }

/* Form label, native select and inline notice */
.adm-label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--adm-muted); }
.adm-select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--adm-line); border-radius: 8px; background: var(--adm-surface); color: var(--adm-ink); font: inherit; }
.adm-select:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 1px; }
.adm-notice { padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.adm-notice.good { background: var(--adm-good-soft); color: var(--adm-good); }
.adm-notice.bad { background: var(--adm-bad-soft); color: var(--adm-bad); }

/* ---- Notary review page (/admin/notaries/{guid}) ---- */
.adm-toolbar-tools .adm-select { width: auto; min-height: 44px; }
.nr-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.nr-ident { flex: 1 1 440px; min-width: 0; display: flex; gap: 20px; align-items: flex-start; }
.nr-ident-text { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.nr-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.nr-photo-empty { display: flex; align-items: center; justify-content: center; background: var(--adm-accent-soft); color: var(--adm-accent); font-size: 30px; font-weight: 700; }
.nr-name-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nr-address { color: var(--adm-muted); font-size: 15px; }
.nr-scores { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; padding-inline-start: 24px; border-inline-start: 1px solid var(--adm-line); }
.nr-scores > div { display: flex; flex-direction: column; gap: 4px; }
.nr-big { font-size: 40px; font-weight: 700; line-height: 1.1; }
.nr-of { font-size: 20px; font-weight: 600; color: var(--adm-muted); }
.nr-pending { color: var(--adm-muted); font-size: 20px; }
.nr-tone-good { color: var(--adm-good); } .nr-tone-warn { color: var(--adm-warn); } .nr-tone-bad { color: var(--adm-bad); }
.nr-bar { height: 8px; border-radius: 4px; background: var(--adm-line); overflow: hidden; }
.nr-bar > div { height: 8px; }
.nr-fill-good { background: var(--adm-good); } .nr-fill-warn { background: var(--adm-warn); } .nr-fill-bad { background: var(--adm-bad); } .nr-fill-accent { background: var(--adm-accent); }
.nr-actions { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--adm-line); }
.nr-reject { flex: 0 0 100%; display: flex; flex-direction: column; gap: 8px; }
.nr-reject textarea { width: 100%; height: auto; padding: 10px 14px; font: inherit; }
.nr-body { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.nr-docs { flex: 1 1 320px; max-width: 400px; min-width: 280px; overflow: hidden; }
.nr-right { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.nr-card-head { padding: 14px 16px; border-bottom: 1px solid var(--adm-line); display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: baseline; }
.nr-viewer-head { align-items: center; }
.nr-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nr-zoom { min-width: 48px; text-align: center; font-size: 13px; }
.nr-doc { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 44px; border-bottom: 1px solid var(--adm-line); border-inline-start: 3px solid transparent; cursor: pointer; }
.nr-doc:hover { background: var(--adm-accent-soft); }
.nr-doc:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: -2px; }
.nr-doc.on { background: var(--adm-accent-soft); border-inline-start-color: var(--adm-accent); }
.nr-doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nr-doc-name { font-weight: 600; font-size: 14px; }
.nr-viewer { position: relative; min-height: 420px; background: var(--adm-canvas); padding: 20px; display: flex; align-items: center; justify-content: center; overflow: auto; }
.nr-img { max-width: 100%; max-height: 640px; object-fit: contain; transition: transform 0.2s ease; }
.nr-viewer-empty { display: flex; flex-direction: column; gap: 6px; text-align: center; color: var(--adm-muted); max-width: 320px; }
.nr-acc { border-bottom: 1px solid var(--adm-line); }
.nr-acc:last-child { border-bottom: 0; }
.nr-acc-btn { all: unset; box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: 15px; }
.nr-acc-btn:hover { background: var(--adm-canvas); }
.nr-acc-btn:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: -2px; }
.nr-acc-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.nr-field { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--adm-line); }
.nr-field-label { flex: 0 0 170px; color: var(--adm-muted); font-size: 13px; }
.nr-field-value { flex: 1 1 200px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.nr-flags { margin: 8px 0 0; padding-inline-start: 20px; color: var(--adm-bad); font-size: 14px; }
.nr-raw { margin: 0; white-space: pre-wrap; max-height: 240px; overflow: auto; background: var(--adm-canvas); border: 1px solid var(--adm-line); border-radius: 8px; padding: 12px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .nr-img { transition: none; } }
@media (max-width: 720px) { .nr-scores { padding-inline-start: 0; border-inline-start: 0; } }

/* ---- Secrets and settings editor (/admin/secrets) ---- */
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-chips-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-fact { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--adm-line); border-radius: 18px; background: var(--adm-surface); font-size: 13px; color: var(--adm-muted); }
.st-fact.good { background: var(--adm-good-soft); border-color: transparent; color: var(--adm-good); font-weight: 600; }
.st-fact.warn { background: var(--adm-warn-soft); border-color: transparent; color: var(--adm-warn); font-weight: 600; }
.st-message { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; }
.st-message-line { flex: 0 0 100%; font-size: 13px; }
.st-banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.st-info { background: var(--adm-accent-soft); color: #1c3d8f; }
.st-warn { background: var(--adm-warn-soft); color: var(--adm-warn); }
.st-link { all: unset; box-sizing: border-box; min-height: 32px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px; color: var(--adm-accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.st-link:hover { text-decoration: underline; }
.st-link:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 1px; }
.st-link.current { color: var(--adm-ink); cursor: default; text-decoration: none; }

.st-work { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.st-tree { flex: 1 1 360px; max-width: 460px; min-width: 0; overflow: hidden; }
.st-tree-head { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--adm-line); }
.st-tree-tools { display: flex; gap: 8px; }
.st-tree-list { max-height: 640px; overflow: auto; padding: 6px 0; }
.st-pad { padding-inline: 16px; }
.st-row { display: flex; align-items: center; min-height: 40px; gap: 2px; padding-inline-end: 12px; border-inline-start: 3px solid transparent; }
.st-row.on { background: var(--adm-accent-soft); border-inline-start-color: var(--adm-accent); }
.st-chev { all: unset; box-sizing: border-box; width: 32px; height: 32px; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--adm-muted); cursor: pointer; }
.st-chev::before { content: ""; border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent currentColor; transition: transform 150ms ease-out; }
.st-chev[aria-expanded="true"]::before { transform: rotate(90deg); }
.st-chev:hover { background: var(--adm-canvas); }
.st-chev:focus-visible, .st-pick:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: -2px; }
[dir="rtl"] .st-chev::before { border-width: 5px 7px 5px 0; border-color: transparent currentColor transparent transparent; }
[dir="rtl"] .st-chev[aria-expanded="true"]::before { transform: rotate(-90deg); }
.st-leafmark { width: 32px; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; }
.st-pick { all: unset; box-sizing: border-box; flex: 1 1 auto; min-width: 0; min-height: 40px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.st-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.st-name.group { font-weight: 600; }
.st-meta { margin-inline-start: auto; flex: 0 0 auto; font-size: 13px; color: var(--adm-muted); }
.st-pill-sm { padding: 1px 8px; font-size: 12px; }

.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--adm-s5); }
.st-src-store { background: var(--adm-s1); }
.st-src-host { background: var(--adm-s4); }
.st-src-command { background: var(--adm-s2); }
.st-src-file { background: var(--adm-s5); }

.st-side { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.st-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.st-crumb-sep { color: var(--adm-s5); }
.st-stack { display: flex; flex-direction: column; gap: 16px; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.st-card { all: unset; box-sizing: border-box; min-height: 44px; padding: 16px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--adm-line); border-radius: 12px; background: #f8fafc; cursor: pointer; }
.st-card:hover { background: var(--adm-accent-soft); }
.st-card:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 2px; }
.st-card-head { padding: 20px 24px; border-bottom: 1px solid var(--adm-line); }
.st-between { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.st-grow { flex: 1 1 240px; min-width: 0; }
.st-h2 { margin: 0; font-size: 22px; font-weight: 700; }
.st-key { margin: 4px 0 0; display: block; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--adm-muted); overflow-wrap: anywhere; }
.st-pills { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.st-inuse { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 16px; background: var(--adm-accent-soft); font-size: 13px; font-weight: 700; }
.st-body { padding: 20px 24px; }
.st-section { padding: 16px 24px 20px; border-top: 1px solid var(--adm-line); display: flex; flex-direction: column; gap: 12px; }
.st-label { font-size: 14px; font-weight: 600; color: var(--adm-ink); }
.st-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.st-push { margin-inline-start: auto; }
.st-dirty { border-color: #c2570c; }
.st-invalid { border-color: var(--adm-bad); }
.st-error { color: var(--adm-bad); }
.st-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.st-source { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.st-fields { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.st-table tbody tr { cursor: pointer; }
.st-table { min-width: 560px; }
.st-table .st-key { margin: 0; }

.st-layer-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--adm-line); border-radius: 8px; overflow: hidden; }
.st-layer { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--adm-line); }
.st-layer:last-child { border-bottom: 0; }
.st-layer.on { background: var(--adm-accent-soft); }
.st-rank { flex: 0 0 20px; font-size: 13px; font-weight: 600; color: var(--adm-muted); }
.st-layer-value { flex: 2 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--adm-muted); }

.st-move-bar { padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; background: #f8fafc; border-bottom: 1px solid var(--adm-line); }
.st-move-list { max-height: 460px; overflow: auto; }
.st-move-row { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; min-height: 44px; padding: 8px 24px; border-bottom: 1px solid var(--adm-line); cursor: pointer; }
.st-move-row.group { background: #f8fafc; }
.st-move-row input { width: 20px; height: 20px; flex: 0 0 20px; }
.st-move-row:not(.group) { padding-inline-start: 48px; }
.st-skip { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--adm-muted); }

@media (max-width: 575.98px) {
    .st-body, .st-section, .st-card-head, .st-move-bar, .st-move-row { padding-inline: 16px; }
    .st-pills { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .st-chev::before { transition: none; } }


/* Company verification checklist: one line per check, one primary action, forms open in place. */
.adm .adm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adm .adm-step { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--adm-line); }
.adm .adm-step:first-child { border-top: 0; }
.adm .adm-step-main { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; min-width: 0; }
.adm .adm-step-name { font-size: 16px; font-weight: 600; }
.adm .adm-step-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm .adm-step-form { flex-basis: 100%; padding: 16px; border: 1px solid var(--adm-line); border-radius: 8px; background: var(--adm-canvas); }
.adm .adm-step .adm-select { min-height: 44px; }
.adm .adm-reasons { margin: 0; padding-inline-start: 20px; font-size: 14px; line-height: 1.5; }
.adm .adm-step-form { scroll-margin-block: 96px; }
.adm .adm-step .adm-btn { transition: transform 160ms ease-out, background-color 160ms ease-out; }
.adm .adm-step .adm-btn:active:not(:disabled) { transform: scale(0.97); }
.adm .adm-toast { position: static; animation: adm-toast-in 200ms ease-out; } /* inline, in the flow: never floats over the rows or forms below */
@keyframes adm-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .adm .adm-toast { animation: none; } .adm .adm-step .adm-btn { transition: none; } }
@media (max-width: 575.98px) { .adm .adm-step-actions { width: 100%; } .adm .adm-step-actions .adm-btn { flex: 1 1 auto; } }
