/* Stage 3: readable priorities and financial figures; no business state changes. */
.button.primary { color: var(--primary-ink, #fff); }
.button.primary:hover { color: var(--primary-dark-ink, #fff); }
.login-form .button { min-height: 44px; font-size: 14px; }
.login-form :is(input, button):focus-visible { outline: 2px solid var(--primary-text, var(--primary)); outline-offset: 3px; }
.login-card, .login-brand > div { min-width: 0; }
.login-error {
    color: var(--state-danger);
    background: color-mix(in srgb, var(--state-danger) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--state-danger) 30%, var(--line));
}
.login-card :is(h1, .login-copy), .login-brand :is(strong, small) { overflow-wrap: anywhere; }
.content :is(.text-link, .panel-heading a, .dashboard-section-title > a) { color: var(--primary-text, var(--primary)); }
.content :is(.panel-heading p, .empty-state p, .table-scroll-hint) { font-size: 12px; line-height: 1.5; }
.content .badge { font-size: 12px !important; line-height: 1.45; }
.content :is(.dashboard-section-title h3, .panel-heading h3) { font-size: 17px; line-height: 1.4; }
.content .dashboard-section-title p { font-size: 12px; line-height: 1.5; }
.content .dashboard-control-copy small { font-size: 11px; letter-spacing: .08em; }
.content .dashboard-control-copy p { font-size: 13px; line-height: 1.5; }

.content .dashboard-financial-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.content .dashboard-financial-strip article { grid-column: span 2; }
.content .dashboard-financial-strip article:nth-last-child(-n+2) { grid-column: span 3; }
.content .dashboard-financial-strip article { padding: 18px; align-items: flex-start; gap: 12px; min-width: 0; }
.content .dashboard-financial-strip article > div { flex: 1; min-width: 0; }
.content .dashboard-financial-strip article > span { width: 34px; height: 34px; font-size: 15px; flex: none; }
.content .dashboard-financial-strip small { font-size: 11px; line-height: 1.5; letter-spacing: .035em; color: var(--muted); }
.content .dashboard-financial-strip .currency-values { margin: 8px 0; gap: 5px; }
.content .dashboard-financial-strip .currency-values strong { font-size: 21px; line-height: 1.35; white-space: normal; width: auto; max-width: 100%; overflow-wrap: anywhere; padding: 0; background: none; color: var(--ink); }
.content .dashboard-financial-strip p { font-size: 12px; line-height: 1.5; }
.content .dashboard-financial-strip article > a { width: 32px; height: 32px; font-size: 12px; flex: none; }
.content .dashboard-business-counts { gap: 12px 20px; font-size: 13px; line-height: 1.6; }
.content .dashboard-business-counts strong { font-size: 16px; }
.content .dashboard-business-counts > :is(span, a) { font-size: 12px; line-height: 1.5; }
.content .dashboard-priority-card { min-height: 100px; padding: 18px; gap: 12px; }
.content .dashboard-priority-card > div { min-width: 0; }
.content .dashboard-priority-card strong { font-size: 15px; line-height: 1.4; color: var(--ink); }
.content .dashboard-priority-card small { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.content .dashboard-priority-card b { font-size: 12px; line-height: 1.5; color: var(--primary-text); }
.content .dashboard-all-clear strong { font-size: 16px; }
.content .dashboard-all-clear p { font-size: 13px; line-height: 1.5; }
.content .dashboard-collection-cards strong { font-size: 26px; line-height: 1.2; }
.content .dashboard-collection-cards small { font-size: 12px; }
.content :is(.dashboard-collection-message p, .dashboard-agenda-list small, .dashboard-account-list small, .dashboard-activity-list small) { font-size: 12px; line-height: 1.5; }
.content :is(.dashboard-agenda-list strong, .dashboard-account-list strong, .dashboard-activity-list strong) { font-size: 14px; line-height: 1.4; }
.content .dashboard-account-list b { font-size: 15px; }
.content .dashboard-activity-list time { font-size: 11px; }

.content :is(.client-summary-card, .instance-summary-card, .finance-summary-card, .financial-kpi, .collections-summary article) { min-width: 0; }
.content :is(.client-summary-card, .instance-summary-card, .finance-summary-card, .financial-kpi, .collections-summary article) small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.content :is(.client-summary-card, .instance-summary-card, .finance-summary-card, .financial-kpi, .collections-summary article) > div > strong { font-size: 25px; line-height: 1.3; color: var(--ink); }
.content :is(.client-summary-card, .instance-summary-card, .finance-summary-card, .financial-kpi, .collections-summary article) p { font-size: 12px; line-height: 1.5; }
.content :is(.finance-module-summary, .cash-total-strip, .financial-kpis, .collections-summary, .client-commercial-overview, .system-commercial-overview, .client-infrastructure-summary) .currency-values strong { font-size: 20px; line-height: 1.4; white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.content :is(.client-commercial-overview, .system-commercial-overview, .client-infrastructure-summary) small { font-size: 12px; line-height: 1.5; }
.content :is(.client-commercial-overview, .system-commercial-overview, .client-infrastructure-summary) p { font-size: 12px; line-height: 1.5; }
.content :is(.instance-health-pill, .instance-subscription-badge, .instance-update-badge) { font-size: 12px; line-height: 1.45; }
.content :is(.instance-version-pair, .instance-connection-state) small { font-size: 12px; line-height: 1.5; }
.content .instance-connection-state strong { font-size: 14px; line-height: 1.4; }
.content .instance-problem { font-size: 12px !important; line-height: 1.5; }
.content .instance-problem.connection { color: var(--state-danger); background: color-mix(in srgb, var(--state-danger) 10%, var(--surface)); }
.content .instance-problem.subscription { color: var(--state-warning); background: color-mix(in srgb, var(--state-warning) 10%, var(--surface)); }
.content .instance-connection-state.is-connected strong { color: var(--state-success); }
.content .instance-connection-state.is-disconnected strong { color: var(--state-danger); }
.content .instance-connection-state.is-unstable strong { color: var(--state-warning); }
.content .statistics-result-banner small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.content .statistics-result-banner p { font-size: 12px; line-height: 1.5; }
.content .statistics-result-banner .currency-values strong { font-size: 26px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.content .statistics-result-banner .currency-values strong.negative { color: var(--state-danger); }
.content .statistics-banner-margin strong { font-size: 18px; line-height: 1.4; color: var(--ink); }
.content .negative { color: var(--state-danger); }
.content .dashboard-financial-strip .currency-values strong.negative { color: var(--state-danger); }
.content :is(.badge.success, .instance-subscription-badge.is-active, .instance-update-badge.status-current, .instance-health-healthy .instance-health-pill) { --status-ink: var(--state-success); }
.content :is(.badge.warning, .instance-subscription-badge.is-missing, .instance-update-badge.status-stale, .instance-health-no_subscription .instance-health-pill, .instance-health-unstable .instance-health-pill, .instance-health-attention .instance-health-pill) { --status-ink: var(--state-warning); }
.content :is(.badge.danger, .instance-health-disconnected .instance-health-pill) { --status-ink: var(--state-danger); }
.content .badge.info { --status-ink: var(--state-info); }
.content :is(.badge.auto-generated, .instance-update-badge.status-outdated, .instance-health-outdated .instance-health-pill) { --status-ink: var(--state-update); }
.content .badge.rejected { --status-ink: var(--state-rejected); }
.content .badge.cancelled { --status-ink: var(--state-cancelled); }
.content :is(.badge.success, .badge.warning, .badge.danger, .badge.info, .badge.auto-generated, .badge.rejected, .badge.cancelled, .instance-subscription-badge.is-active, .instance-subscription-badge.is-missing, .instance-update-badge.status-current, .instance-update-badge.status-outdated, .instance-update-badge.status-stale, .instance-health-pill) {
    color: var(--status-ink, var(--muted));
    background: color-mix(in srgb, var(--status-ink, var(--muted)) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--status-ink, var(--muted)) 28%, var(--line));
}
@media (min-width: 1600px) {
    .content .dashboard-financial-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .content .dashboard-financial-strip article:nth-child(n) { grid-column: auto; }
}
@media (max-width: 900px) {
    .content .dashboard-financial-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content .dashboard-financial-strip article:nth-child(n) { grid-column: auto; }
    .content .dashboard-financial-strip article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .content .dashboard-priority-card { padding: 16px; flex-wrap: wrap; }
    .content .dashboard-priority-card > div { flex: 1; }
    .content .dashboard-priority-card b { margin-left: auto; }
    .content .dashboard-financial-strip article { padding: 16px; }
}
@media (max-width: 540px) {
    .content .dashboard-financial-strip { grid-template-columns: minmax(0, 1fr); }
}
