/* Admin views (marketing, analytics, approvals, notifications, channels, audit, executive, permissions, agent run) — builder F2.
   View-specific layout only; colours, type, panels, chips, lists, KPIs, meters and buttons come from the shared vocabulary in app.css.
   No style attributes are used anywhere (CSP): bar lengths are <progress class="meter">. */

/* touch targets: every control on these screens is at least 44px (WCAG 2.5.5) */
.adm .btn, .adm .seg button, .adm .select, .adm .input:not(textarea) { min-block-size: 44px; }
.adm .list-meta a, .adm .list-title a { display: inline-flex; align-items: center; min-block-size: 44px; }

/* marketing */
.mk-list { display: grid; gap: 12px; }
.mk-figures { margin-block: 10px; }
.mk-prefill { margin-block-start: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sunken); }
.mk-prefill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mk-prefill-text { flex: 1 1 220px; min-inline-size: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-family: var(--font); }

/* analytics: labelled horizontal bars */
.an-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.an-bar { display: grid; grid-template-columns: minmax(64px, 7.5rem) 1fr minmax(2.5rem, auto); gap: 10px; align-items: center; min-block-size: 28px; }
.an-bar-day { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-n { text-align: end; font-variant-numeric: tabular-nums; }
.an-bar .meter { inline-size: 100%; }

/* approvals */
.ap-text { margin: 8px 0; padding: 8px 12px; border-inline-start: 3px solid var(--line-2); background: var(--sunken); border-radius: var(--radius-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-result:empty { display: none; }

/* notifications */
.nt-item { display: flex; gap: 12px; align-items: flex-start; }
.nt-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--sunken); }
.nt-unread { border-inline-start: 3px solid var(--accent); }
.nt-unread .list-title { font-weight: 700; }
.nt-read { opacity: .82; }

/* channels */
.ch-list { display: grid; gap: 16px; }
.ch-steps { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 4px; }
.ch-step { min-block-size: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ch-step.is-done .check-row span { color: var(--ink-2); }
.ch-test { margin-block-start: 14px; }
.checkbox { inline-size: 22px; block-size: 22px; flex: none; }

/* executive */
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-group + .ex-group { margin-block-start: 6px; }

/* permissions matrix */
.perm-table th[scope="row"] { font-weight: 500; text-align: start; }
.perm-table .perm-mine { background: var(--accent-soft); }

@media (max-width: 760px) {
  .an-bar { grid-template-columns: minmax(56px, 5.5rem) 1fr minmax(2rem, auto); gap: 6px; }
  .mk-prefill-row .btn { inline-size: 100%; justify-content: center; }
  .perm-table { font-size: 13px; }
}

/* An unmeasured figure inside a KPI value: plain muted text, not the big number face (app.css .kpi-na styles a whole tile). */
.kpi-value .kpi-na { display: block; background: none; border: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--muted); padding-block: 4px; }

/* decision 64: pending recovery request on a member row */
.recovery-req { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }

/* UX pass (DECISIONS 70): notification titles read as titles, not as a column of underlined links */
.nt-item .list-title a { text-decoration: none; color: var(--ink); }
.nt-item .list-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* final polish (DECISIONS 71): notifications in a few plain sections; unread is said by the section, not by a coloured edge per row */
.nt-unread { border-inline-start: 0; }
.nt-group { display: grid; gap: 6px; margin-block: 14px 4px; }
.nt-group-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.nt-group-title .count { font-weight: 600; color: var(--muted); }
.nt-group-decide .nt-group-title, .nt-group-ops .nt-group-title { color: var(--ink); }
.nt-bundle .list-title { font-size: 15px; }
.nt-each { margin-top: 6px; }
.nt-each > summary, .nt-old > summary { cursor: pointer; color: var(--accent-strong); font-size: 13.5px; font-weight: 600; width: max-content; }
.nt-each .nt-list { margin-top: 6px; }
.nt-old { margin-top: 18px; }
.nt-old .nt-list { margin-top: 8px; }
/* approvals history: a quiet timeline — one sentence, one muted line */
.ap-his .tl-body { display: block; }
.ap-his-line { margin: 0; font-size: 14px; }
.ap-his-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.ap-his-warn { color: var(--warn); font-weight: 600; }

