/* Final readability layer: loaded after legacy, page, and responsive styles. */
body { font-size: var(--font-base); line-height: var(--line-body); }
small { font-size: var(--font-xs); line-height: var(--line-body); }
label { font-size: var(--font-sm); }
input,select,textarea,button { font-size: var(--font-md); }

/* Shared navigation, status, cards, diagnostics, and audit text. */
.sidebar-brand small,.sidebar-user small,.nav-group-label,.nav-glyph,
.kicker,.section-label,.eyebrow,.mode-pill,.status,.live-dot,
.notice > span,.step span,.step b,.ring span,.mini-stats span,
.scope-row,.scope-row code,.event time,.doc-note,.login-brand small,
.login-step-head p,.login-boundary { font-size: var(--font-xs); }
.result-note,.event p,.empty-state,.privacy-note { font-size: var(--font-sm); line-height: var(--line-body); }
.notice strong,.event b,.mini-stats b { font-size: var(--font-md); }

/* Workbench, source material, master data, and diagnostics. */
.data-item span,.block-item span,.tool-card form label,.device-code-row,
.material-warnings strong,.material-warnings span,.metric-card small,
.panel-head > span:not(.status),.batch-summary dt,.batch-summary dd,
.quality-list > div { font-size: var(--font-xs); line-height: var(--line-body); }
.compact-button { font-size: var(--font-sm); }
.dept-row.dept-head { font-size: var(--font-xs); }

/* Organization, talent lists, and profile entry points. */
.access-summary,.org-node b,.talent-meta,.talent-metrics span,
.talent-metrics small,.mapping-state { font-size: var(--font-xs); }
.org-node span,.talent-toolbar label,.profile-link { font-size: var(--font-sm); }
.talent-toolbar select,.talent-toolbar input { font-size: var(--font-md); }
.talent-table th { font-size: var(--font-sm); }
.talent-table td { font-size: var(--font-md); }
.talent-table td small { font-size: var(--font-xs); }

/* Personal profile drawer and every governance dialog. */
.profile-dialog { font-size: var(--font-md); }
.profile-dialog-head .section-label { font-size: var(--font-xs); }
.profile-dialog-head h2 { font-size: 22px; line-height: 1.25; }
.profile-dialog .compact-button { min-height: 36px; font-size: var(--font-sm); }
.profile-subtitle { font-size: var(--font-sm); line-height: var(--line-body); }
.profile-grid h3 { font-size: var(--font-lg); line-height: 1.35; }
.profile-grid dl > div,.profile-status-list > div { min-height: 42px; padding-block: 10px; }
.profile-grid dt,.profile-status-list span { font-size: var(--font-sm); line-height: var(--line-body); }
.profile-grid dd,.profile-status-list strong { font-size: var(--font-md); line-height: var(--line-body); }
.analysis-empty > strong { font-size: var(--font-2xl); }
.analysis-empty p { font-size: var(--font-sm); line-height: var(--line-body); }
.profile-footnote { font-size: var(--font-xs); line-height: var(--line-body); }
.profile-dialog .evidence-timeline article > div { font-size: var(--font-xs); }
.profile-dialog .evidence-timeline p { font-size: var(--font-sm); line-height: var(--line-body); }
.profile-dialog .evidence-timeline small { font-size: var(--font-xs); line-height: var(--line-body); }

/* Governance center: tables, cards, lists, forms, and review surfaces. */
.operations-metrics span,.operations-metrics small,.operations-toolbar label,
.operation-field,.operations-table th,.operations-table td small,.mini-action,
.operations-audit-item small,.role-options legend,.preview-summary span,
.preview-summary small,.preview-chip,.connection-item span,.connection-item small,
.schedule-item small,.governance-cards small,.governance-cards p,.batch-strip span,
.evidence-metrics span,.evidence-metrics small,.department-evidence-grid span,
.department-evidence-grid small,.evidence-timeline article > div,.evidence-timeline small,
.evidence-admin-metrics span,.evidence-admin-metrics small,.rule-version-list small,
.rule-version-list p,.quality-alert-list small,.quality-alert-list p,
.quality-alert-list article span,.retention-policy-item label { font-size: var(--font-xs); line-height: var(--line-body); }
.operations-toolbar input,.operations-toolbar select,.operation-field input,
.operation-field select,.operations-table td,.operations-audit-item strong,
.role-options label,.preview-orgs h3,.preview-employees h3,
.evidence-review-source h3 { font-size: var(--font-md); }
.operations-audit-item span,.operation-warning,.evidence-timeline p,
.retention-policy-item input,.retention-policy-item select,
.evidence-review-source p { font-size: var(--font-sm); line-height: var(--line-body); }
.operations-table th { font-size: var(--font-sm); }
.subsection-title { font-size: var(--font-md) !important; }

@media (max-width: 760px) {
  body { font-size: var(--font-base); }
  .profile-dialog-head h2 { font-size: var(--font-xl); }
  .profile-grid h3 { font-size: 15px; }
}
