/* ============================================================================
   classroom.css — Instructor "Classroom" student-progress dashboard
   Brand: #0d0221 navy · #0f084b indigo · #26408b blue · #a6cfd5 teal · #c2e7d9 mint
   The dashboard hero is a cinematic dark card on the light app page (mockup).
   ============================================================================ */

.cls-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 26px 28px 64px;
}

/* The [hidden] attribute must win over class-level display:flex/grid below
   (equal specificity → author stylesheet would otherwise override the UA
   [hidden]{display:none}). These targeted rules keep toggling reliable. */
.cls-toolbar[hidden], .cls-feature-row[hidden], .cls-loading[hidden],
.cls-modal[hidden], .cls-drawer[hidden], .cls-dash[hidden],
.cls-empty[hidden], .cls-modal-scrim[hidden], .cls-drawer-scrim[hidden],
.cls-switcher-menu[hidden] { display: none !important; }

/* ── Top role pill ──────────────────────────────────────────────── */
.cls-role-pill {
    display: inline-flex; align-items: center; gap: 5px;
    height: 20px; padding: 0 8px; margin-left: 4px;
    border-radius: 999px;
    background: rgba(38,64,139,0.10);
    color: #26408b;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
}

/* ── Page toolbar (class switcher + actions) ────────────────────── */
.cls-toolbar {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.cls-switcher { position: relative; }
.cls-switcher-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px 8px 14px;
    background: #fff; border: 1px solid #e3e7ee; border-radius: 11px;
    font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: #181c1f;
    cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.cls-switcher-btn:hover { border-color: #c3ccdb; box-shadow: 0 2px 10px rgba(13,2,33,0.05); }
.cls-switcher-btn .material-symbols-outlined { color: #8b93a3; }
.cls-switcher-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
    min-width: 260px; max-height: 60vh; overflow-y: auto;
    background: #fff; border: 1px solid #e3e7ee; border-radius: 12px;
    box-shadow: 0 16px 40px rgba(13,2,33,0.16); padding: 6px;
}
.cls-switcher-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 9px 11px; border: none; background: none;
    border-radius: 8px; cursor: pointer; text-align: left;
    font-size: 13.5px; font-weight: 600; color: #181c1f;
    transition: background .12s;
}
.cls-switcher-item:hover { background: #f4f7fc; }
.cls-switcher-item.is-active { background: rgba(38,64,139,0.08); color: #26408b; }
.cls-switcher-item small { color: #9aa2b1; font-weight: 500; font-size: 11px; }
.cls-switcher-new {
    margin-top: 4px; border-top: 1px solid #f0f2f6; padding-top: 8px;
    color: #26408b; font-weight: 700;
}
.cls-switcher-new .material-symbols-outlined { font-size: 18px; }

.cls-toolbar-actions { margin-left: auto; display: flex; gap: 8px; }
.cls-tbtn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 13px;
    background: #fff; border: 1px solid #e3e7ee; border-radius: 10px;
    color: #404750; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.cls-tbtn:hover { background: rgba(38,64,139,0.06); border-color: rgba(38,64,139,0.30); color: #26408b; }
.cls-tbtn .material-symbols-outlined { color: inherit; }

/* ── Loading / empty ────────────────────────────────────────────── */
.cls-loading {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 50vh; color: #8b93a3; font-size: 14px;
}
.cls-spinner {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2.5px solid #e3e7ee; border-top-color: #26408b;
    animation: cls-spin 0.7s linear infinite;
}
@keyframes cls-spin { to { transform: rotate(360deg); } }

.cls-empty {
    max-width: 460px; margin: 8vh auto 0; text-align: center;
}
.cls-empty-icon {
    width: 64px; height: 64px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: linear-gradient(160deg, #26408b, #0f084b);
    box-shadow: 0 12px 30px -8px rgba(38,64,139,0.5);
}
.cls-empty-icon .material-symbols-outlined { font-size: 32px; color: #c2e7d9; }
.cls-empty h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #181c1f; }
.cls-empty p  { margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: #6b7384; }

/* ── Shared buttons ─────────────────────────────────────────────── */
.cls-primary-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 18px;
    background: #26408b; color: #fff; border: none; border-radius: 11px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    box-shadow: 0 1px 2px rgba(13,2,33,0.2);
    transition: background .16s, transform .1s, box-shadow .16s;
}
.cls-primary-btn:hover { background: #1d3270; box-shadow: 0 6px 18px -6px rgba(38,64,139,0.6); }
.cls-primary-btn:active { transform: scale(0.98); }
.cls-primary-btn:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
.cls-ghost-btn {
    height: 40px; padding: 0 16px; border-radius: 11px;
    background: #fff; border: 1px solid #e3e7ee; color: #404750;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.cls-ghost-btn:hover { background: #f4f7fc; border-color: #c3ccdb; }

/* ════════════════════════════════════════════════════════════════
   THE DASHBOARD CARD (cinematic dark hero — replicates the mockup)
   ════════════════════════════════════════════════════════════════ */
.cls-dash {
    position: relative;
    border-radius: 22px;
    padding: 26px 30px 22px;
    background:
        radial-gradient(130% 150% at 0% 0%, #161d3a 0%, #0d0a28 52%, #0a0720 100%);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 26px 64px -24px rgba(10,6,32,0.7), 0 2px 0 rgba(255,255,255,0.03) inset;
    color: #eef1f8;
    overflow: hidden;
}
.cls-dash::after {  /* faint top sheen */
    content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(166,207,213,0.35), transparent);
}

.cls-dash-head { display: flex; align-items: flex-start; gap: 16px; }
.cls-dash-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(180,190,214,0.62); margin-bottom: 8px;
}
.cls-dash-title {
    margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #fff;
}
.cls-dash-head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.cls-range {
    display: inline-flex; padding: 3px; gap: 2px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 11px;
}
.cls-range button {
    height: 30px; padding: 0 14px; border: none; background: none; border-radius: 8px;
    color: rgba(220,226,240,0.6); font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: background .15s, color .15s;
}
.cls-range button:hover { color: #fff; }
.cls-range button.is-active { background: rgba(255,255,255,0.12); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }

.cls-assign-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 15px; border-radius: 11px; border: none; cursor: pointer;
    background: #fff; color: #0d0221; font-size: 13px; font-weight: 700;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.5); transition: transform .1s, background .15s;
}
.cls-assign-btn:hover { background: #c2e7d9; }
.cls-assign-btn:active { transform: scale(0.97); }

.cls-dash-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 20px 0; }

.cls-dash-body {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 860px) { .cls-dash-body { grid-template-columns: 1fr; gap: 30px; } }

.cls-section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(170,180,205,0.55); margin-bottom: 18px;
}

/* Topic mastery bars */
.cls-topic-bars { display: flex; flex-direction: column; gap: 18px; }
.cls-topic-row .cls-topic-top {
    display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px;
}
.cls-topic-name { font-size: 14px; font-weight: 600; color: #e7eaf3; }
.cls-topic-pct  { font-size: 14px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cls-topic-track {
    height: 7px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden;
}
.cls-topic-fill {
    height: 100%; border-radius: 999px;
    background: var(--c, #a6cfd5);
    box-shadow: 0 0 12px -2px var(--c, #a6cfd5);
    width: 0; transition: width 0.7s cubic-bezier(0.22,1,0.36,1);
}
.cls-topic-empty { font-size: 13px; color: rgba(170,180,205,0.5); padding: 6px 0; }

/* Roster */
.cls-roster { display: flex; flex-direction: column; }
.cls-roster-row {
    display: flex; align-items: center; gap: 13px;
    padding: 11px 8px; border-radius: 12px;
    border: none; background: none; width: 100%; text-align: left; cursor: pointer;
    transition: background .13s;
}
.cls-roster-row + .cls-roster-row { border-top: 1px solid rgba(255,255,255,0.05); }
.cls-roster-row:hover { background: rgba(255,255,255,0.04); }
.cls-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: 0.02em;
    background: #2a3566;
}
.cls-avatar-lg { width: 50px; height: 50px; font-size: 16px; }
.cls-roster-meta { flex: 1; min-width: 0; }
.cls-roster-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.cls-roster-active {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(165,175,200,0.55); margin-top: 2px;
}
.cls-roster-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cls-review-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em;
    color: #ff6b6b; border: 1px solid rgba(255,107,107,0.45);
    padding: 3px 7px; border-radius: 6px;
}
.cls-roster-score {
    font-size: 16px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums;
    min-width: 44px; text-align: right;
}
.cls-roster-score.is-high { color: #5fd39a; }
.cls-roster-score.is-low  { color: #ff6b6b; }
.cls-roster-score.is-none { color: rgba(170,180,205,0.45); font-weight: 600; font-size: 12px; }

.cls-dash-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cls-avg-wrap { font-size: 14px; color: rgba(205,212,230,0.78); }
.cls-avg-wrap b { color: #fff; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.cls-delta { margin-left: 6px; font-size: 13px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; }
.cls-delta.up   { color: #5fd39a; }
.cls-delta.down { color: #ff6b6b; }
.cls-export {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(180,190,214,0.7); transition: color .15s;
}
.cls-export:hover { color: #c2e7d9; }

/* ── Feature cards row ──────────────────────────────────────────── */
.cls-feature-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px;
}
@media (max-width: 860px) { .cls-feature-row { grid-template-columns: 1fr; } }
.cls-feature {
    text-align: left; cursor: pointer;
    border-radius: 18px; padding: 22px 22px 24px;
    background: radial-gradient(130% 140% at 0% 0%, #12172e 0%, #0c0a24 60%, #0a0720 100%);
    border: 1px solid rgba(255,255,255,0.06); color: #eef1f8;
    transition: border-color .16s, transform .12s, box-shadow .16s;
    display: block;
}
.cls-feature:hover { border-color: rgba(166,207,213,0.28); transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(10,6,32,0.8); }
.cls-feature-chip {
    display: block; width: 26px; height: 26px; border-radius: 8px; margin-bottom: 16px;
    background: color-mix(in srgb, var(--c) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
    position: relative;
}
.cls-feature-chip::after {
    content: ''; position: absolute; inset: 8px; border-radius: 3px; background: var(--c);
}
.cls-feature h3 { margin: 0 0 7px; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.cls-feature p  { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(190,198,218,0.72); }

/* ════════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════════ */
.cls-modal-scrim, .cls-drawer-scrim {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(13,2,33,0.42); backdrop-filter: blur(2px);
    animation: cls-fade 0.16s ease;
}
@keyframes cls-fade { from { opacity: 0; } }
.cls-modal {
    position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(480px, calc(100vw - 32px)); max-height: 88vh; overflow: hidden;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(13,2,33,0.5);
    animation: cls-pop 0.18s cubic-bezier(0.22,1,0.36,1);
}
@keyframes cls-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } }
.cls-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid #f0f2f6;
}
.cls-modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.cls-modal-x {
    width: 32px; height: 32px; border-radius: 8px; border: none; background: none; cursor: pointer;
    color: #8b93a3; display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s;
}
.cls-modal-x:hover { background: #f4f7fc; color: #181c1f; }
.cls-modal-body { padding: 20px; overflow-y: auto; }
.cls-modal-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 20px; border-top: 1px solid #f0f2f6;
}
.cls-modal-note { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: #6b7384; }

.cls-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cls-field > span { font-size: 12px; font-weight: 700; color: #404750; letter-spacing: 0.01em; }
.cls-field > span em { color: #9aa2b1; font-weight: 500; font-style: normal; }
.cls-field input {
    font: inherit; font-size: 14px; color: #181c1f; background: #fff;
    border: 1px solid #d9dee6; border-radius: 11px; padding: 11px 13px; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.cls-field input:focus { outline: none; border-color: #26408b; box-shadow: 0 0 0 3px rgba(38,64,139,0.1); }
.cls-email-row { display: flex; gap: 8px; }
.cls-email-row input { flex: 1; }
.cls-add-go { height: 44px; padding: 0 16px; flex-shrink: 0; }

.cls-modal-err {
    font-size: 13px; color: #ba1a1a; background: rgba(186,26,26,0.07);
    border: 1px solid rgba(186,26,26,0.18); border-radius: 9px; padding: 9px 11px; margin-top: 4px;
    line-height: 1.45;
}
.cls-modal-ok {
    font-size: 13px; color: #0f7a4f; background: rgba(15,122,79,0.08);
    border: 1px solid rgba(15,122,79,0.2); border-radius: 9px; padding: 9px 11px; margin-top: 4px;
}

/* Join code card */
.cls-joincode-card {
    background: linear-gradient(160deg, #0f084b, #0d0221); border-radius: 14px;
    padding: 16px 18px; text-align: center; margin-bottom: 18px;
}
.cls-joincode-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(194,231,217,0.7); margin-bottom: 10px;
}
.cls-joincode-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cls-joincode {
    font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 600;
    letter-spacing: 0.22em; color: #fff; padding-left: 0.22em;
}
.cls-copy-btn {
    width: 36px; height: 36px; border-radius: 9px; cursor: pointer;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); color: #c2e7d9;
    display: flex; align-items: center; justify-content: center; transition: background .14s;
}
.cls-copy-btn:hover { background: rgba(194,231,217,0.2); }
.cls-joincode-hint { font-size: 11.5px; color: rgba(190,198,218,0.6); margin-top: 9px; }
.cls-or {
    text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    color: #9aa2b1; margin: 4px 0 14px; position: relative;
}

/* Mini roster inside the add-students modal */
.cls-roster-mini { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.cls-roster-mini-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px;
    font-size: 13px; color: #2a3140;
}
.cls-roster-mini-row:hover { background: #f6f8fc; }
.cls-roster-mini .cls-avatar { width: 30px; height: 30px; font-size: 11px; }
.cls-roster-mini-name { flex: 1; font-weight: 600; }
.cls-roster-mini-remove {
    border: none; background: none; cursor: pointer; color: #b5bcc8; padding: 4px; border-radius: 6px;
    display: flex; transition: color .12s, background .12s;
}
.cls-roster-mini-remove:hover { color: #ba1a1a; background: rgba(186,26,26,0.08); }

/* Assign list */
.cls-assign-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
.cls-assign-item {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer;
    border: 1px solid transparent; transition: background .12s, border-color .12s;
}
.cls-assign-item:hover { background: #f6f8fc; }
.cls-assign-item.is-on { background: rgba(38,64,139,0.06); border-color: rgba(38,64,139,0.2); }
.cls-assign-check {
    width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c3ccdb; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff; transition: background .12s, border-color .12s;
}
.cls-assign-item.is-on .cls-assign-check { background: #26408b; border-color: #26408b; }
.cls-assign-check .material-symbols-outlined { font-size: 15px; opacity: 0; }
.cls-assign-item.is-on .cls-assign-check .material-symbols-outlined { opacity: 1; }
.cls-assign-info { flex: 1; min-width: 0; }
.cls-assign-name { font-size: 13.5px; font-weight: 700; color: #181c1f; }
.cls-assign-sub  { font-size: 11.5px; color: #8b93a3; margin-top: 1px; }
.cls-assign-topic {
    font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: #26408b; background: rgba(38,64,139,0.08); padding: 3px 7px; border-radius: 6px; flex-shrink: 0;
}
.cls-assign-group-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: #9aa2b1; padding: 12px 4px 6px;
}

/* ════════════════════════════════════════════════════════════════
   STUDENT DRILLDOWN DRAWER
   ════════════════════════════════════════════════════════════════ */
.cls-drawer {
    position: fixed; z-index: 90; top: 0; right: 0; bottom: 0;
    width: min(560px, 100vw); display: flex; flex-direction: column;
    background: #f7fafe; box-shadow: -16px 0 50px -20px rgba(13,2,33,0.4);
    animation: cls-slide 0.24s cubic-bezier(0.22,1,0.36,1);
}
@keyframes cls-slide { from { transform: translateX(40px); opacity: 0; } }
.cls-drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 22px 24px; background: linear-gradient(150deg, #161d3a, #0d0a28); color: #fff;
}
.cls-drawer-id { display: flex; align-items: center; gap: 14px; }
.cls-drawer-name { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.cls-drawer-sub  { font-size: 12.5px; color: rgba(190,198,218,0.7); margin-top: 2px; }
.cls-drawer-close {
    width: 36px; height: 36px; border-radius: 9px; border: none; cursor: pointer;
    background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center;
    transition: background .14s;
}
.cls-drawer-close:hover { background: rgba(255,255,255,0.2); }

.cls-drawer-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: #e8ecf3; border-bottom: 1px solid #e8ecf3;
}
.cls-drawer-stat { background: #fff; padding: 16px 18px; text-align: center; }
.cls-drawer-stat-num { font-size: 24px; font-weight: 800; color: #181c1f; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cls-drawer-stat-num.is-high { color: #0f9d58; }
.cls-drawer-stat-num.is-low  { color: #ba1a1a; }
.cls-drawer-stat-lbl {
    font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em;
    text-transform: uppercase; color: #9aa2b1; margin-top: 4px;
}

.cls-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.cls-quiz-block {
    background: #fff; border: 1px solid #eaedf3; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(13,2,33,0.04);
}
.cls-quiz-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cls-quiz-block-title { font-size: 14.5px; font-weight: 700; color: #181c1f; }
.cls-quiz-block-meta { font-size: 11.5px; color: #9aa2b1; margin-top: 2px; }
.cls-quiz-block-score { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cls-quiz-block-score.is-high { color: #0f9d58; }
.cls-quiz-block-score.is-low  { color: #ba1a1a; }
.cls-quiz-block-score.is-mid  { color: #404750; }
.cls-quiz-block-notdone {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: #b08400; background: rgba(212,131,10,0.1); padding: 4px 8px; border-radius: 6px;
}
.cls-wrong-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.cls-wrong {
    border-left: 3px solid #ef5350; background: #fdf6f6; border-radius: 0 9px 9px 0;
    padding: 10px 13px;
}
.cls-wrong-q { font-size: 13px; font-weight: 600; color: #2a3140; line-height: 1.4; }
.cls-wrong-ans { margin-top: 6px; font-size: 12px; line-height: 1.5; }
.cls-wrong-ans .picked { color: #ba1a1a; font-weight: 600; }
.cls-wrong-ans .correct { color: #0f9d58; font-weight: 600; }
.cls-wrong-teach { margin-top: 6px; font-size: 11.5px; color: #6b7384; font-style: italic; line-height: 1.45; }
.cls-allcorrect {
    margin-top: 12px; font-size: 12.5px; color: #0f9d58; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.cls-allcorrect .material-symbols-outlined { font-size: 16px; }

.cls-drawer-section-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: #9aa2b1; margin: 6px 0 12px;
}

/* Class-wide insight banner (weakest topic / most-missed) */
.cls-insights { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cls-insight {
    flex: 1 1 220px; display: flex; align-items: center; gap: 11px;
    background: #fff; border: 1px solid #e8ecf3; border-radius: 13px; padding: 13px 15px;
    box-shadow: 0 1px 2px rgba(13,2,33,0.04);
}
.cls-insight-icon {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.cls-insight-text small {
    display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9aa2b1;
}
.cls-insight-text b { font-size: 13.5px; font-weight: 700; color: #181c1f; }

@media (prefers-reduced-motion: reduce) {
    .cls-topic-fill, .cls-modal, .cls-drawer, .cls-modal-scrim, .cls-drawer-scrim { animation: none !important; transition: none !important; }
}
