/* dashboard-failures.css */
/* ADMIN ONLY — the Caption failures card (#failuresBlock, dashboard-failures.js):
   six count tiles, then one row per failure with its kind chip and diagnosis.
   Card surface #131926. Kind colours: AI red, microphone amber, speech service
   blue, help green, page/other grey. */
#failuresBlock .fl-range { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#failuresBlock .fl-range .btn.is-on { background: rgba(232, 67, 31, 0.12); border-color: rgba(232, 67, 31, 0.45); color: var(--ink, #F4F6FA); }

.fl-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0 10px; }
.fl-count { background: var(--panel, #10151F); border: 1px solid var(--line, #1F2733); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fl-count-value { font-size: 24px; font-weight: 800; color: var(--ink, #F4F6FA); font-variant-numeric: tabular-nums; }
.fl-count-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint, #909AAB); }
.fl-count-ai .fl-count-value { color: #FF8A6A; }
.fl-count-mic .fl-count-value { color: #F2BB63; }
.fl-count-speech .fl-count-value { color: #7CC4F5; }
.fl-count-help .fl-count-value { color: #2FB672; }

.fl-table { min-width: 860px; font-size: 12.5px; }
.fl-table td { vertical-align: top; }
.fl-kind { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid var(--line-2, #2B3543); color: var(--muted, #A7B0BE); background: var(--panel, #10151F); }
.fl-kind-ai { color: #FF8A6A; border-color: rgba(255, 138, 106, 0.4); }
.fl-kind-mic { color: #F2BB63; border-color: rgba(242, 187, 99, 0.4); }
.fl-kind-speech { color: #7CC4F5; border-color: rgba(124, 196, 245, 0.4); }
.fl-kind-help { color: #2FB672; border-color: rgba(47, 182, 114, 0.5); background: rgba(47, 182, 114, 0.1); }
.fl-detail { max-width: 240px; white-space: normal; color: var(--muted, #A7B0BE); }
.fl-diag { max-width: 320px; white-space: normal; }
.fl-diag-btn { margin-top: 4px; }
.fl-pre { margin: 6px 0 0; padding: 8px 10px; background: #0B0F16; border: 1px solid var(--line, #1F2733); border-radius: 8px; font-size: 11px; line-height: 1.4; color: var(--muted, #A7B0BE); white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }

/* the failure reason inside a teacher's expanded session list (dashboard-user-sessions.js) */
.us-fail { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #FF8A6A; border: 1px solid rgba(255, 138, 106, 0.4); background: rgba(255, 138, 106, 0.08); white-space: nowrap; }

/* 0148 — the Extend-trial button on an account row (dashboard-users.js) */
.us-extend { margin-top: 4px; }
.us-extend.is-armed { border-color: rgba(232, 67, 31, 0.6); color: #FF8A6A; }
