:root {
    --bg: #f8f9ff;
    --surface: #ffffff;
    --surface-soft: #eff4ff;
    --surface-blue: #e5eeff;
    --text: #0b1c30;
    --muted: #64748b;
    --muted-2: #3e4947;
    --primary: #0f766e;
    --primary-dark: #005c55;
    --secondary: #0284c7;
    --secondary-soft: #dce9ff;
    --border: #bdc9c6;
    --border-soft: #e2e8f0;
    --success: #047857;
    --warning: #d97706;
    --danger: #be123c;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 24px rgba(15, 23, 42, 0.08);
    --sidebar-width: 280px;
    --topbar-height: 64px;
    --bottom-nav-height: 76px;
    --radius-card: 18px;
    --radius-btn: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Be Vietnam Pro", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 500,
        "GRAD" 0,
        "opsz" 24;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 9999;
    padding: 16px;
    border-radius: 14px;
    background: #fff1f2;
    color: #9f1239;
    box-shadow: var(--shadow-md);
}

.app-loading {
    min-height: 100vh;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #dce9ff, transparent 32%), var(--bg);
}

.app-loading-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow-md);
}

.app-loading-logo .material-symbols-outlined {
    font-size: 34px;
}

.app-loading-title {
    font-weight: 800;
    font-size: 24px;
}

.app-loading-subtitle {
    color: var(--muted);
    margin-top: 4px;
}

.lms-shell {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}

.lms-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    background: rgba(255, 255, 255, 0.92);
    border-inline-end: 1px solid var(--border-soft);
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.lms-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px 36px;
}

.lms-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.lms-brand-icon .material-symbols-outlined {
    font-size: 26px;
}

.lms-brand-name {
    font-weight: 800;
    font-size: 25px;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
    line-height: 1;
}

.lms-brand-subtitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 6px;
    color: var(--text);
}

.lms-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lms-nav-link {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-radius: 10px;
    position: relative;
    color: var(--muted-2);
    font-weight: 600;
    transition: 0.18s ease;
}

.lms-nav-link:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

.lms-nav-link.active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(2, 132, 199, 0.22));
    color: var(--primary-dark);
}

.lms-nav-link.active::before {
    content: "";
    position: absolute;
    inset-block: 8px;
    inset-inline-start: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.lms-nav-link .material-symbols-outlined {
    font-size: 24px;
}

.lms-sidebar-spacer {
    flex: 1;
}

.lms-upgrade {
    margin: 20px 0 24px;
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: var(--radius-btn);
    background: linear-gradient(135deg, var(--primary), #38a9f5);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.lms-content {
    width: 100%;
    min-width: 0;
    padding-inline-start: var(--sidebar-width);
}

.lms-page {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 40px 32px 56px;
}

.lms-topbar {
    height: var(--topbar-height);
    display: none;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(248, 249, 255, 0.84);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.lms-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    background: white;
    color: var(--primary-dark);
    cursor: pointer;
}

.lms-mobile-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary-dark);
}

.lms-topbar-space {
    flex: 1;
}

.lms-bottom-nav {
    display: none;
}

.page-title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin: 0;
    font-weight: 800;
    color: var(--text);
}

.page-subtitle {
    margin: 16px 0 0;
    color: #27343f;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.55;
}

.section-title-row {
    margin-top: 48px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-link {
    color: var(--primary-dark);
    font-weight: 700;
}

.dashboard-grid {
    margin-top: 54px;
    display: grid;
    grid-template-columns: 1fr 2.1fr;
    gap: 24px;
}

.stats-stack {
    display: grid;
    gap: 24px;
}

.stat-card {
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    background: var(--secondary-soft);
}

.stat-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 4px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.feature-card {
    min-height: 320px;
    display: grid;
    grid-template-columns: 40% 60%;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-art {
    position: relative;
    min-height: 300px;
    background:
        radial-gradient(circle at 40% 28%, rgba(128, 213, 203, 0.9), transparent 32%),
        linear-gradient(145deg, #b7d7d3, #0f766e);
}

.feature-art::before {
    content: "";
    position: absolute;
    inset: 68px 58px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 60% 35%, rgba(255, 255, 255, .26), transparent 18%),
        linear-gradient(135deg, rgba(0, 92, 85, .96), rgba(2, 132, 199, .60));
    transform: rotate(-8deg);
    box-shadow: var(--shadow-md);
}

.feature-art-badge {
    position: absolute;
    inset-inline: 32px;
    bottom: 28px;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.feature-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.kicker {
    font-size: 12px;
    color: var(--primary-dark);
    letter-spacing: 0.09em;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-title {
    margin: 12px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.feature-meta {
    color: #263442;
    line-height: 1.45;
}

.progress-area {
    margin-top: auto;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.progress-track {
    margin-top: 10px;
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #38a9f5);
}

.lms-btn {
    border: 0;
    cursor: pointer;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-btn);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lms-btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), #38a9f5);
    box-shadow: var(--shadow-sm);
}

.lms-btn-secondary {
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.course-card {
    overflow: hidden;
    border-radius: var(--radius-card);
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: .18s ease;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.course-thumb {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .86), transparent 18%),
        linear-gradient(135deg, #b7d7d3, #0f766e);
}

.course-thumb.dev {
    background:
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .30), transparent 20%),
        linear-gradient(135deg, #062f35, #38a9f5);
}

.course-thumb.biz {
    background:
        radial-gradient(circle at 70% 35%, rgba(91, 184, 254, .55), transparent 24%),
        linear-gradient(135deg, #0f172a, #006398);
}

.course-body {
    padding: 24px;
}

.course-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.28;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.course-teacher {
    margin-top: 10px;
    color: #263442;
    font-weight: 500;
}

.course-percent {
    margin-top: 20px;
    font-size: 13px;
    font-weight: 700;
}

.admin-stats {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.admin-stat-card {
    min-height: 180px;
    padding: 28px;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, #fff, #f2fbff);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.admin-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-blue);
    color: var(--primary-dark);
}

.admin-stat-label {
    margin-top: 24px;
    color: #263442;
    font-weight: 700;
}

.admin-stat-value {
    margin-top: 8px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: var(--surface-blue);
    color: var(--primary-dark);
}

.panel-card {
    margin-top: 48px;
    border-radius: var(--radius-card);
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
}

.panel-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.panel-subtitle {
    margin-top: 4px;
    color: #263442;
}

.table-wrap {
    overflow-x: auto;
}

.lms-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.lms-table th {
    text-align: left;
    padding: 14px 24px;
    background: var(--surface-blue);
    color: #263442;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lms-table td {
    padding: 18px 24px;
    border-top: 1px solid var(--border-soft);
}

.table-course {
    display: flex;
    align-items: center;
    gap: 16px;
}

.table-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dce9ff, var(--primary));
}

.table-title {
    font-weight: 800;
    font-size: 18px;
}

.table-subtitle {
    margin-top: 4px;
    color: #263442;
    font-size: 13px;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.status-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
}

.status-dot.draft::before {
    background: var(--muted);
}

.course-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    align-items: start;
}

.course-hero {
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.course-detail-title {
    margin: 28px 0 18px;
    max-width: 800px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.course-detail-desc {
    max-width: 780px;
    color: #263442;
    font-size: 18px;
    line-height: 1.7;
}

.meta-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
}

.tabs {
    margin-top: 30px;
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 0 0 14px;
    font-weight: 800;
    color: var(--muted);
}

.tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.module-list {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.module-card {
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.module-head {
    padding: 22px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.module-title {
    font-size: 20px;
    font-weight: 800;
}

.lesson-list {
    padding: 8px 24px 22px;
    display: grid;
    gap: 14px;
}

.lesson-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    color: #263442;
}

.lesson-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-card {
    border-radius: var(--radius-card);
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.video-box {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    color: white;
    background:
        radial-gradient(circle, rgba(128, 213, 203, .92), transparent 28%),
        linear-gradient(135deg, #001d31, #005c55);
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: white;
}

.side-body {
    padding: 24px;
}

.price {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.side-list {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.side-list-item {
    display: flex;
    gap: 12px;
    color: #263442;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        grid-template-columns: 1fr;
    }

    .feature-art {
        min-height: 240px;
    }

    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .course-detail-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .lms-shell {
        display: block;
    }

    .lms-sidebar {
        display: none;
    }

    .lms-content {
        padding-inline-start: 0;
    }

    .lms-topbar {
        display: flex;
    }

    .lms-page {
        padding: 26px 16px calc(var(--bottom-nav-height) + 28px);
    }

    .lms-bottom-nav {
        position: fixed;
        inset-inline: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        min-height: 64px;
        padding: 8px;
        border-radius: 24px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        z-index: 60;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid var(--border-soft);
        backdrop-filter: blur(14px);
        box-shadow: var(--shadow-md);
    }

    .lms-bottom-link {
        display: grid;
        place-items: center;
        gap: 2px;
        border-radius: 18px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        padding: 6px 2px;
    }

    .lms-bottom-link.active {
        color: var(--primary);
        background: var(--surface-blue);
    }

    .lms-bottom-link .material-symbols-outlined {
        font-size: 23px;
    }

    .page-title {
        margin-top: 6px;
    }

    .dashboard-grid {
        margin-top: 32px;
    }

    .stat-card {
        min-height: 96px;
        padding: 18px;
    }

    .stat-value {
        font-size: 28px;
    }

    .feature-title {
        font-size: 24px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        margin-top: 34px;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .course-detail-title {
        margin-top: 20px;
    }

    .meta-row {
        gap: 12px;
        font-size: 13px;
    }

    .tabs {
        overflow-x: auto;
    }

    .module-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .lesson-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 18%, rgba(128, 213, 203, 0.45), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(56, 169, 245, 0.24), transparent 24%),
        var(--bg);
}

.login-card {
    width: min(100%, 440px);
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
}

.login-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.login-heading {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.login-text {
    margin: 10px 0 24px;
    color: var(--muted);
}

.form-stack {
    display: grid;
    gap: 16px;
}

.form-label {
    display: grid;
    gap: 8px;
    font-weight: 800;
    color: var(--text);
}

.form-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: white;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.login-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff1f2;
    color: #be123c;
    font-weight: 700;
}

@media (max-width: 520px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 24px;
        border-radius: 24px;
    }

    .login-heading {
        font-size: 30px;
    }
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.lms-alert-warning {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-weight: 700;
    margin-bottom: 18px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary);
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    margin-bottom: 18px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
}

.card-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.lms-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

.course-list,
.recommend-list {
    display: grid;
    gap: 12px;
}

.course-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.course-row:hover {
    border-color: rgba(20, 184, 166, 0.35);
    background: #ffffff;
}

.course-title {
    font-weight: 900;
    color: var(--text);
}

.course-meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.course-progress {
    min-width: 120px;
    text-align: right;
}

.progress-number {
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.mini-progress {
    width: 120px;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.mini-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #14b8a6, #38bdf8);
}

.recommend-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}

.recommend-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.14);
    color: #0284c7;
}

.recommend-title {
    font-weight: 900;
    color: var(--text);
}

.recommend-meta {
    margin-top: 3px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.recommend-reason {
    margin-top: 7px;
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.skill-card {
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
    color: var(--text);
}

.skill-code {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.skill-level {
    display: inline-flex;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 900;
}

.empty-state {
    padding: 24px;
    border-radius: 18px;
    background: #f8fafc;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1100px) {

    .dashboard-stat-grid,
    .skill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .page-head,
    .card-head,
    .course-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-stat-grid,
    .skill-grid {
        grid-template-columns: 1fr;
    }

    .course-progress {
        text-align: left;
        width: 100%;
    }

    .mini-progress {
        width: 100%;
    }
}

.overview-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.overview-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.overview-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary);
    flex: 0 0 auto;
}

.overview-stat-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 950;
    color: var(--text);
}

.overview-stat-label {
    margin-top: 6px;
    font-weight: 900;
    color: var(--text);
}

.overview-stat-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.overview-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 18px;
    margin-bottom: 18px;
}

.metric-bars {
    display: grid;
    gap: 18px;
}

.metric-bar-row {
    display: grid;
    gap: 8px;
}

.metric-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-weight: 900;
    color: var(--text);
}

.metric-bar-track {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.metric-bar-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #14b8a6, #38bdf8);
}

.system-status-list {
    display: grid;
    gap: 14px;
}

.system-status-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}

.system-status-item>span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.14);
    color: #0284c7;
}

.system-status-item strong {
    color: var(--text);
    font-weight: 900;
}

.system-status-item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.overview-table-wrap {
    overflow-x: auto;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.overview-table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.overview-table td {
    padding: 14px;
    border-bottom: 1px solid #eef2f7;
    color: var(--text);
    vertical-align: middle;
}

.text-right {
    text-align: right !important;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-active {
    background: #ecfdf5;
    color: #047857;
}

.status-inactive {
    background: #f1f5f9;
    color: #64748b;
}

.muted-small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .overview-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .overview-stat-grid {
        grid-template-columns: 1fr;
    }

    .overview-stat-card {
        align-items: flex-start;
    }
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lms-alert-success {
    padding: 14px 16px;
    border-radius: 18px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 800;
    margin-bottom: 18px;
}

.school-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
    gap: 18px;
    align-items: start;
}

.school-list-card,
.school-form-card {
    min-width: 0;
}

.search-box {
    min-width: 280px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.search-box span {
    color: var(--muted);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-weight: 700;
}

.school-table-wrap {
    overflow-x: auto;
}

.school-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.school-table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.school-table td {
    padding: 14px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.school-table tr.selected-row {
    background: #f0fdfa;
}

.school-name {
    font-weight: 900;
    color: var(--text);
}

.school-meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    background: #f1f5f9;
    color: #334155;
}

.icon-btn:hover {
    background: #e2e8f0;
}

.icon-btn.success {
    background: #ecfdf5;
    color: #047857;
}

.icon-btn.danger {
    background: #fff1f2;
    color: #be123c;
}

.form-input.textarea {
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--text);
    padding: 12px 0;
}

.switch-row input {
    width: 18px;
    height: 18px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

@media (max-width: 1120px) {
    .school-admin-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        min-width: 220px;
    }
}

@media (max-width: 640px) {

    .toolbar-actions,
    .form-actions {
        width: 100%;
    }

    .toolbar-actions .lms-btn,
    .form-actions .lms-btn {
        width: 100%;
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }
}

.lms-nav-section {
    margin: 12px 12px 8px;
    font-size: 12px;
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filter-row {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.form-label.compact {
    min-width: 260px;
    margin: 0;
}

.reset-panel {
    margin-top: 24px;
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.reset-panel h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.reset-panel p {
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 640px) {
    .filter-row {
        align-items: stretch;
    }

    .form-label.compact {
        min-width: 0;
        width: 100%;
    }
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .form-two-columns {
        grid-template-columns: 1fr;
    }
}

.info-box {
    padding: 12px 14px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.import-step-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
    gap: 18px;
    margin-bottom: 18px;
}

.import-info-list {
    display: grid;
    gap: 14px;
}

.import-info-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}

.import-info-item>span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary);
}

.import-info-item strong {
    color: var(--text);
    font-weight: 900;
}

.import-info-item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.upload-box {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 2px dashed #cbd5e1;
    border-radius: 22px;
    background: #f8fafc;
}

.upload-box input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.selected-file {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.selected-file>span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
}

.selected-file strong {
    display: block;
    color: var(--text);
    font-weight: 900;
    word-break: break-word;
}

.selected-file p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.selected-file.muted {
    opacity: 0.75;
}

.import-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.success-icon {
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.danger-icon {
    background: #fff1f2 !important;
    color: #be123c !important;
}

.import-table code {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.import-row-valid {
    background: #ffffff;
}

.import-row-invalid {
    background: #fff7ed;
}

.error-list {
    color: #c2410c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .import-step-grid {
        grid-template-columns: 1fr;
    }

    .import-summary-grid {
        grid-template-columns: 1fr;
    }
}

.login-card-modern {
    max-width: 460px;
}

.login-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 6px;
    margin: 18px 0;
    border-radius: 18px;
    background: #f1f5f9;
}

.login-mode-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 10px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.18s ease;
}

.login-mode-btn .material-symbols-outlined {
    font-size: 20px;
}

.login-mode-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.login-mode-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.login-help-box {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.login-help-box>span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #dbeafe;
}

.login-help-box strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
}

.login-help-box p {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .login-mode-switch {
        grid-template-columns: 1fr;
    }
}

.course-manage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.side-stack {
    display: grid;
    gap: 18px;
}

.content-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.subject-mini-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.subject-mini-item {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    display: grid;
    gap: 2px;
}

.subject-mini-item:hover {
    background: #f8fafc;
}

.subject-mini-item strong {
    color: var(--text);
    font-weight: 900;
    font-size: 13px;
}

.subject-mini-item span {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.subject-mini-item em {
    color: #dc2626;
    font-style: normal;
    font-weight: 800;
    font-size: 11px;
}

.empty-cell {
    padding: 28px !important;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 1100px) {
    .course-manage-grid {
        grid-template-columns: 1fr;
    }
}

.course-cover-upload-box {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
}

.course-cover-upload-box input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.course-cover-preview {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.course-cover-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    background: #e2e8f0;
}

.course-cover-preview-actions {
    display: grid;
    gap: 8px;
}

.course-cover-preview-actions span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    word-break: break-all;
}

.lms-tab-bar {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    margin: 0 0 18px;
    border-radius: 18px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.lms-tab-btn {
    border: 0;
    border-radius: 14px;
    padding: 11px 14px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.18s ease;
}

.lms-tab-btn .material-symbols-outlined {
    font-size: 20px;
}

.lms-tab-btn em {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lms-tab-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.lms-tab-btn.active em {
    background: #dbeafe;
    color: #1d4ed8;
}

.lms-tab-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.subject-manage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
    gap: 18px;
    align-items: start;
}

@media (max-width: 1100px) {
    .subject-manage-grid {
        grid-template-columns: 1fr;
    }

    .lms-tab-bar {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .lms-tab-btn {
        justify-content: center;
    }
}

.course-builder-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.builder-course-title {
    color: var(--text);
    font-size: 24px;
    font-weight: 1000;
    line-height: 1.25;
}

.builder-course-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.builder-course-desc {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.builder-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 10px;
}

.builder-stat {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.builder-stat strong {
    display: block;
    color: var(--primary);
    font-size: 20px;
    font-weight: 1000;
}

.builder-stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.course-builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.builder-left,
.builder-right {
    display: grid;
    gap: 18px;
}

.unit-list,
.lesson-list,
.builder-file-list {
    display: grid;
    gap: 10px;
}

.unit-item,
.lesson-item {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: 0.18s ease;
}

.unit-item:hover,
.lesson-item:hover {
    background: #f8fafc;
    border-color: #bfdbfe;
}

.unit-item.active,
.lesson-item.active {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.unit-item-head,
.lesson-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.unit-item strong,
.lesson-item strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 1000;
}

.unit-item span {
    white-space: nowrap;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
}

.unit-item p,
.lesson-item p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.lesson-summary {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.lesson-file-count {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.lesson-file-count .material-symbols-outlined {
    font-size: 16px;
}

.builder-empty-box {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.builder-html-area {
    font-family: inherit;
    line-height: 1.6;
}

.builder-check-line {
    align-self: end;
    min-height: 42px;
}

.builder-file-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
}

.builder-file-item:hover {
    background: #f8fafc;
}

.builder-file-item>span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
}

.builder-file-item strong {
    display: block;
    color: var(--text);
    font-weight: 900;
}

.builder-file-item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .course-builder-header {
        grid-template-columns: 1fr;
    }

    .builder-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .course-builder-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .builder-stat-grid {
        grid-template-columns: 1fr;
    }

    .unit-item-head,
    .lesson-item-main {
        align-items: flex-start;
        flex-direction: column;
    }
}

.lesson-file-upload-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
}

.lesson-file-upload-box input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.pending-lesson-file {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.pending-lesson-file>span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
}

.pending-lesson-file strong {
    display: block;
    color: var(--text);
    font-weight: 900;
    word-break: break-word;
}

.pending-lesson-file p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.modern-alert {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    animation: modernAlertIn 0.18s ease-out;
}

.modern-alert-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
}

.modern-alert-icon .material-symbols-outlined {
    font-size: 26px;
}

.modern-alert-content strong {
    display: block;
    font-size: 14px;
    font-weight: 1000;
    margin-bottom: 4px;
}

.modern-alert-content p {
    margin: 0;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.modern-alert-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    color: inherit;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.modern-alert-close:hover {
    background: rgba(255, 255, 255, 1);
}

.modern-alert-close .material-symbols-outlined {
    font-size: 20px;
}

.modern-alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border-color: #a7f3d0;
    color: #047857;
}

.modern-alert-success .modern-alert-icon {
    background: #d1fae5;
    color: #047857;
}

.modern-alert-error {
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
    border-color: #fecdd3;
    color: #be123c;
}

.modern-alert-error .modern-alert-icon {
    background: #ffe4e6;
    color: #be123c;
}

@keyframes modernAlertIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .modern-alert {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .modern-alert-close {
        grid-column: 2;
        justify-self: end;
    }
}

.course-enrollment-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.course-enrollment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.enrolled-row {
    background: #f0fdf4;
}

.enrolled-row:hover {
    background: #ecfdf5;
}

.school-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

@media (max-width: 900px) {
    .course-enrollment-header {
        grid-template-columns: 1fr;
    }

    .course-enrollment-actions .lms-btn {
        width: 100%;
        justify-content: center;
    }
}

.student-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.student-course-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 16px;
}

.student-course-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.student-course-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eff6ff;
    color: #1d4ed8;
}

.student-course-icon .material-symbols-outlined {
    font-size: 30px;
}

.student-course-subject {
    color: var(--primary);
    font-size: 13px;
    font-weight: 1000;
}

.student-course-body h2 {
    margin: 6px 0 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 1000;
    line-height: 1.35;
}

.student-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.student-progress-wrap {
    display: grid;
    gap: 8px;
}

.student-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.student-progress-head strong {
    color: var(--primary);
}

.student-progress-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.student-progress-bar>div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.student-course-btn {
    width: 100%;
    justify-content: center;
}

.student-learning-empty {
    min-height: 340px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 38px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
}

.student-learning-empty.compact {
    min-height: 260px;
}

.student-learning-empty-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 28px;
    background: #eff6ff;
    color: #1d4ed8;
}

.student-learning-empty-icon .material-symbols-outlined {
    font-size: 42px;
}

.student-learning-empty h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 1000;
}

.student-learning-empty p {
    max-width: 560px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.student-viewer-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 110px;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.student-viewer-subject {
    color: var(--primary);
    font-size: 13px;
    font-weight: 1000;
}

.student-viewer-header h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 1000;
}

.student-viewer-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

.student-viewer-stat {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.student-viewer-stat strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    font-weight: 1000;
}

.student-viewer-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.student-viewer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.student-unit-list {
    display: grid;
    gap: 14px;
}

.student-unit-group {
    display: grid;
    gap: 8px;
}

.student-unit-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 1000;
}

.student-lesson-menu {
    display: grid;
    gap: 8px;
}

.student-lesson-menu-item {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    text-align: left;
    cursor: pointer;
}

.student-lesson-menu-item:hover {
    background: #f8fafc;
}

.student-lesson-menu-item.active {
    background: #eff6ff;
    border-color: #93c5fd;
}

.student-lesson-menu-item>span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f1f5f9;
    color: #334155;
}

.student-lesson-menu-item.active>span {
    background: #dbeafe;
    color: #1d4ed8;
}

.student-lesson-menu-item strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 1000;
}

.student-lesson-menu-item em {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.lesson-reader-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.lesson-reader-head h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 1000;
}

.lesson-reader-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

.lesson-reader-body {
    padding-top: 18px;
}

.lesson-html-content {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 650;
}

.lesson-html-content p {
    margin: 0 0 12px;
}

.lesson-link-box {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.lesson-link-box>span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 30px;
}

.lesson-link-box strong {
    display: block;
    color: var(--text);
    font-weight: 1000;
}

.lesson-link-box a {
    display: inline-flex;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
}

.student-file-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.student-file-section h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 1000;
}

@media (max-width: 1100px) {
    .student-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-viewer-header {
        grid-template-columns: 1fr;
    }

    .student-viewer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .student-course-grid {
        grid-template-columns: 1fr;
    }

    .lesson-reader-head {
        flex-direction: column;
    }

    .lesson-reader-head .lms-btn {
        width: 100%;
        justify-content: center;
    }
}

.student-inline-file-list {
    display: grid;
    gap: 16px;
}

.student-inline-file-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.student-inline-file-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.student-inline-file-head strong {
    display: block;
    color: var(--text);
    font-weight: 1000;
}

.student-inline-file-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.lesson-media-frame {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
    border: 1px solid #e2e8f0;
}

.lesson-video-frame {
    aspect-ratio: 16 / 9;
}

.lesson-video-frame iframe,
.lesson-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #0f172a;
}

.lesson-pdf-frame {
    height: 680px;
    background: #f8fafc;
}

.lesson-pdf-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #ffffff;
}

.lesson-image-preview {
    overflow: hidden;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.lesson-image-preview img {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
}

.lesson-audio-player {
    width: 100%;
}

.lesson-media-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 720px) {
    .student-inline-file-head {
        align-items: stretch;
        flex-direction: column;
    }

    .student-inline-file-head .lms-btn {
        width: 100%;
        justify-content: center;
    }

    .lesson-pdf-frame {
        height: 520px;
    }
}

.lesson-completed-btn {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    cursor: default !important;
}

.lesson-completed-btn .material-symbols-outlined {
    color: #059669;
}

.course-progress-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.course-progress-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.progress-summary-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.progress-summary-card>span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
}

.progress-summary-card strong {
    display: block;
    color: var(--text);
    font-size: 24px;
    font-weight: 1000;
}

.progress-summary-card p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.progress-summary-card.success>span {
    background: #ecfdf5;
    color: #047857;
}

.progress-summary-card.warning>span {
    background: #fffbeb;
    color: #b45309;
}

.progress-summary-card.muted>span {
    background: #f1f5f9;
    color: #475569;
}

.course-progress-cell {
    min-width: 180px;
}

.status-warning {
    background: #fffbeb !important;
    color: #b45309 !important;
}

@media (max-width: 900px) {
    .course-progress-header {
        grid-template-columns: 1fr;
    }

    .course-progress-summary-grid {
        grid-template-columns: 1fr;
    }
}

.student-progress-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.student-progress-profile {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.student-progress-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: #eff6ff;
    color: #1d4ed8;
}

.student-progress-avatar .material-symbols-outlined {
    font-size: 42px;
}

.student-progress-unit-list {
    display: grid;
    gap: 18px;
}

.student-progress-unit-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.student-progress-unit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.student-progress-unit-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 1000;
}

.student-progress-unit-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.unit-progress-pill {
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 1000;
}

.student-progress-lesson-list {
    display: grid;
    gap: 10px;
}

.student-progress-lesson-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.student-progress-lesson-card.completed {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.student-progress-lesson-card.in-progress {
    background: #fffbeb;
    border-color: #fde68a;
}

.student-progress-lesson-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #f1f5f9;
    color: #475569;
}

.student-progress-lesson-card.completed .student-progress-lesson-icon {
    background: #d1fae5;
    color: #047857;
}

.student-progress-lesson-card.in-progress .student-progress-lesson-icon {
    background: #fef3c7;
    color: #b45309;
}

.student-progress-lesson-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.student-progress-lesson-title-row strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 1000;
}

.student-progress-lesson-body p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.student-progress-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.student-progress-mini-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    margin-top: 10px;
}

.student-progress-mini-bar>div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
}

@media (max-width: 900px) {
    .student-progress-detail-header {
        grid-template-columns: 1fr;
    }

    .student-progress-unit-head,
    .student-progress-lesson-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .student-progress-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .student-progress-avatar {
        margin: 0 auto;
    }

    .student-progress-lesson-card {
        grid-template-columns: 1fr;
    }
}

.exam-form-card {
    margin-bottom: 18px;
}

.exam-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.exam-form-full {
    grid-column: 1 / -1;
}

.scope-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.scope-pill .material-symbols-outlined {
    font-size: 16px;
}

.scope-pill.district {
    background: #eef2ff;
    color: #4338ca;
}

.scope-pill.school {
    background: #ecfdf5;
    color: #047857;
}

.status-info {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

@media (max-width: 800px) {
    .exam-form-grid {
        grid-template-columns: 1fr;
    }
}

.exam-question-form {
    display: grid;
    gap: 16px;
}

.exam-choice-section,
.exam-skill-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.section-mini-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.section-mini-head strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 1000;
}

.section-mini-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.exam-choice-row {
    display: grid;
    grid-template-columns: 34px 34px minmax(0, 1.2fr) minmax(180px, 0.9fr);
    gap: 10px;
    align-items: start;
}

.exam-choice-correct {
    display: grid;
    place-items: center;
}

.exam-choice-label {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 1000;
}

.exam-skill-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) 42px;
    gap: 10px;
    align-items: end;
}

.exam-skill-remove {
    display: flex;
    align-items: end;
    justify-content: center;
}

.exam-question-list {
    display: grid;
    gap: 14px;
}

.exam-question-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.exam-question-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.exam-question-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 1000;
    line-height: 1.55;
}

.exam-question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.exam-question-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.exam-question-image-url {
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    word-break: break-all;
}

.exam-choice-display-list {
    display: grid;
    gap: 8px;
}

.exam-choice-display {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.exam-choice-display.correct {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.exam-choice-display span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 1000;
}

.exam-choice-display.correct span {
    background: #bbf7d0;
    color: #047857;
}

.exam-choice-display strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

.exam-choice-display em {
    font-style: normal;
    color: #047857;
    font-size: 12px;
    font-weight: 1000;
}

.exam-skill-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exam-skill-tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 900;
}

.exam-explanation-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    font-weight: 750;
}

.exam-explanation-box strong {
    font-weight: 1000;
}

@media (max-width: 900px) {

    .exam-choice-row,
    .exam-skill-row {
        grid-template-columns: 1fr;
    }

    .exam-choice-label {
        width: auto;
    }

    .exam-question-card-head {
        flex-direction: column;
    }
}

.exam-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.exam-check-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.exam-check-card input {
    margin-top: 4px;
}

.exam-check-card strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 1000;
}

.exam-check-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.exam-picker-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-top: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.exam-bank-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
    align-items: end;
}

.exam-selected-summary {
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #eef2ff;
    color: #4338ca;
    min-height: 58px;
}

.exam-selected-summary strong {
    font-size: 24px;
    font-weight: 1000;
    line-height: 1;
}

.exam-selected-summary span {
    font-size: 12px;
    font-weight: 900;
}

.exam-question-picker-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.exam-question-picker-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.exam-question-picker-card.selected {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.exam-question-picker-card input {
    margin-top: 4px;
}

.exam-question-picker-card strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .exam-options-grid {
        grid-template-columns: 1fr;
    }

    .exam-bank-picker {
        grid-template-columns: 1fr;
    }
}

.student-exam-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 16px;
    margin-bottom: 18px;
}

.student-exam-hero-main {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
    border: 1px solid #dbeafe;
}

.student-exam-hero-main .hero-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #4f46e5;
    color: #ffffff;
    flex: 0 0 auto;
}

.student-exam-hero-main .hero-icon .material-symbols-outlined {
    font-size: 34px;
}

.student-exam-hero-main h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 1000;
}

.student-exam-hero-main p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.student-exam-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.student-exam-stat {
    display: grid;
    place-items: center;
    padding: 16px 10px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.student-exam-stat strong {
    color: #4f46e5;
    font-size: 28px;
    font-weight: 1000;
    line-height: 1;
}

.student-exam-stat span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

.student-exam-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.student-exam-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.student-exam-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.student-exam-type {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 1000;
}

.student-exam-card h3 {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 1000;
    line-height: 1.45;
}

.student-exam-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.student-exam-status {
    flex: 0 0 auto;
}

.student-exam-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.student-exam-info-grid div {
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.student-exam-info-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.student-exam-info-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 14px;
    font-weight: 1000;
}

.student-exam-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 980px) {
    .student-exam-hero {
        grid-template-columns: 1fr;
    }

    .student-exam-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {

    .student-exam-stat-grid,
    .student-exam-info-grid {
        grid-template-columns: 1fr;
    }

    .student-exam-card-head {
        flex-direction: column;
    }
}

.take-exam-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.take-exam-sidebar {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 14px;
}

.take-exam-summary-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.take-exam-summary-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.take-exam-summary-head>.material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 30px;
}

.take-exam-summary-head strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 1000;
    line-height: 1.4;
}

.take-exam-summary-head small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.take-exam-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.take-exam-mini-stats div {
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.take-exam-mini-stats span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.take-exam-mini-stats strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 16px;
    font-weight: 1000;
}

.take-exam-timer {
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 16px;
    border-radius: 20px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
}

.take-exam-timer.danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.take-exam-timer .material-symbols-outlined {
    font-size: 28px;
}

.take-exam-timer strong {
    font-size: 28px;
    font-weight: 1000;
    line-height: 1;
}

.take-exam-timer small {
    font-size: 12px;
    font-weight: 900;
}

.take-exam-progress {
    display: grid;
    gap: 7px;
}

.take-exam-progress-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.take-exam-progress-bar div {
    height: 100%;
    border-radius: 999px;
    background: #4f46e5;
    transition: width .2s ease;
}

.take-exam-progress small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.take-submit-btn {
    width: 100%;
    justify-content: center;
}

.take-warning {
    margin: 0;
    color: #b45309;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.take-question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.take-question-nav-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 1000;
    cursor: pointer;
}

.take-question-nav-btn.answered {
    background: #dcfce7;
    color: #047857;
}

.take-exam-main {
    display: grid;
    gap: 16px;
}

.take-question-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.take-question-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.take-question-number,
.take-question-score {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
}

.take-question-number {
    background: #eef2ff;
    color: #4338ca;
}

.take-question-score {
    background: #ecfdf5;
    color: #047857;
}

.take-question-text {
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.65;
    white-space: pre-wrap;
}

.take-question-image-wrap {
    overflow: hidden;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.take-question-image {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    margin: 0 auto;
}

.take-choice-list {
    display: grid;
    gap: 10px;
}

.take-choice-card {
    display: grid;
    grid-template-columns: 24px 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 13px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.take-choice-card:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
}

.take-choice-card.selected {
    background: #eef2ff;
    border-color: #818cf8;
}

.take-choice-card input {
    margin-top: 11px;
}

.take-choice-bullet {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 15px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 1000;
}

.take-choice-card.selected .take-choice-bullet {
    background: #4f46e5;
    color: #ffffff;
}

.take-choice-content {
    display: grid;
    gap: 8px;
}

.take-choice-content strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.5;
}

.take-choice-image {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.take-bottom-submit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.student-exam-result-card {
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ecfdf5, #eef2ff);
    border: 1px solid #bbf7d0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.student-exam-result-card .result-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 24px;
    background: #22c55e;
    color: #ffffff;
}

.student-exam-result-card .result-icon .material-symbols-outlined {
    font-size: 40px;
}

.student-exam-result-card h2 {
    margin: 0;
    color: var(--text);
    font-size: 28px;
    font-weight: 1000;
}

.result-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.result-score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.result-score-grid div {
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbeafe;
}

.result-score-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.result-score-grid strong {
    display: block;
    margin-top: 6px;
    color: #4338ca;
    font-size: 24px;
    font-weight: 1000;
}

@media (max-width: 1000px) {
    .take-exam-shell {
        grid-template-columns: 1fr;
    }

    .take-exam-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {

    .take-exam-mini-stats,
    .result-score-grid {
        grid-template-columns: 1fr;
    }

    .take-choice-card {
        grid-template-columns: 22px 38px minmax(0, 1fr);
    }

    .take-question-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.exam-upload-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.exam-upload-box small,
.exam-choice-upload small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.exam-upload-preview {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.exam-upload-preview img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.exam-upload-preview .icon-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff;
}

.exam-choice-upload {
    display: grid;
    gap: 7px;
    padding: 9px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
}

.exam-choice-preview {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.exam-choice-preview img {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.exam-choice-preview .icon-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ffffff;
}

.uploading-text {
    color: #4f46e5 !important;
    font-weight: 900 !important;
}

.exam-skill-picker-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.exam-new-skill-box {
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbeafe;
}

.exam-selected-skill-list {
    display: grid;
    gap: 10px;
}

.exam-selected-skill-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.exam-selected-skill-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 1000;
}

.exam-selected-skill-card span {
    display: block;
    margin-top: 4px;
    color: #4338ca;
    font-size: 13px;
    font-weight: 900;
}

.exam-selected-skill-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 760px) {
    .exam-skill-picker-row {
        grid-template-columns: 1fr;
    }
}

.ai-recommend-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
    gap: 16px;
    margin-bottom: 18px;
}

.ai-recommend-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
    border: 1px solid #dbeafe;
}

.ai-recommend-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: #4f46e5;
    color: #fff;
    flex: 0 0 auto;
}

.ai-recommend-icon .material-symbols-outlined {
    font-size: 38px;
}

.ai-recommend-hero-main h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 1000;
}

.ai-recommend-hero-main p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.ai-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ai-impact-grid div {
    display: grid;
    place-items: center;
    padding: 16px 10px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .04);
}

.ai-impact-grid strong {
    color: #4f46e5;
    font-size: 26px;
    font-weight: 1000;
    line-height: 1;
}

.ai-impact-grid span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

.ai-review-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.ai-recommend-list {
    display: grid;
    gap: 14px;
}

.ai-recommend-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .04);
}

.ai-recommend-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ai-recommend-skill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 1000;
}

.ai-recommend-card h3 {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 1000;
    line-height: 1.45;
}

.ai-recommend-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.ai-priority-badge {
    flex: 0 0 auto;
    align-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 1000;
}

.ai-recommend-reason {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 750;
}

.ai-recommend-reason strong {
    color: var(--text);
    font-weight: 1000;
}

.ai-recommend-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ai-recommend-metrics div {
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ai-recommend-metrics span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ai-recommend-metrics strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 14px;
    font-weight: 1000;
}

.ai-impact-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-impact-box span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 980px) {
    .ai-recommend-hero {
        grid-template-columns: 1fr;
    }

    .ai-recommend-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {

    .ai-impact-grid,
    .ai-recommend-metrics {
        grid-template-columns: 1fr;
    }

    .ai-recommend-card-head {
        flex-direction: column;
    }
}

.exam-result-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 16px;
    margin-bottom: 18px;
}

.exam-result-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
    border: 1px solid #dbeafe;
}

.exam-result-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    color: #ffffff;
    background: #4f46e5;
    flex: 0 0 auto;
}

.exam-result-icon .material-symbols-outlined {
    font-size: 38px;
}

.exam-result-icon.urgent {
    background: #dc2626;
}

.exam-result-icon.review {
    background: #d97706;
}

.exam-result-icon.good {
    background: #2563eb;
}

.exam-result-icon.excellent {
    background: #16a34a;
}

.exam-result-main h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 1000;
}

.exam-result-main p:not(.eyebrow) {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.exam-result-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.exam-result-score-grid div {
    display: grid;
    place-items: center;
    padding: 16px 10px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .04);
}

.exam-result-score-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.exam-result-score-grid strong {
    margin-top: 6px;
    color: #4f46e5;
    font-size: 22px;
    font-weight: 1000;
}

.skill-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.skill-result-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.skill-result-card.urgent {
    background: #fef2f2;
    border-color: #fecaca;
}

.skill-result-card.review {
    background: #fffbeb;
    border-color: #fde68a;
}

.skill-result-card.good {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.skill-result-card.excellent {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.skill-result-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.skill-result-head strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 1000;
}

.skill-result-head span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.skill-result-percent {
    color: #4338ca;
    font-size: 24px;
    font-weight: 1000;
    white-space: nowrap;
}

.skill-result-bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.skill-result-bar div {
    height: 100%;
    border-radius: 999px;
    background: #4f46e5;
}

.skill-result-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.skill-wrong-list {
    padding: 9px 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .75);
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

.exam-review-list {
    display: grid;
    gap: 14px;
}

.exam-review-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.exam-review-card.correct {
    border-color: #bbf7d0;
}

.exam-review-card.wrong {
    border-color: #fecaca;
    background: #fffafa;
}

.exam-review-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.exam-review-no,
.exam-review-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
}

.exam-review-no {
    background: #eef2ff;
    color: #4338ca;
}

.exam-review-status {
    background: #f1f5f9;
    color: #475569;
}

.exam-review-card.correct .exam-review-status {
    background: #dcfce7;
    color: #047857;
}

.exam-review-card.wrong .exam-review-status {
    background: #fee2e2;
    color: #b91c1c;
}

.exam-review-question {
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.65;
    white-space: pre-wrap;
}

.exam-review-choices {
    display: grid;
    gap: 9px;
}

.exam-review-choice {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.exam-review-choice.correct {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.exam-review-choice.wrong-selected {
    background: #fef2f2;
    border-color: #fecaca;
}

.exam-review-choice>span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 1000;
}

.exam-review-choice.correct>span {
    background: #bbf7d0;
    color: #047857;
}

.exam-review-choice.wrong-selected>span {
    background: #fecaca;
    color: #b91c1c;
}

.exam-review-choice strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.exam-review-choice small {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

@media (max-width: 980px) {
    .exam-result-hero {
        grid-template-columns: 1fr;
    }

    .skill-result-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .exam-result-score-grid {
        grid-template-columns: 1fr;
    }

    .skill-result-head,
    .skill-result-meta,
    .exam-review-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
.status-info {
    background: #e0f2fe;
    color: #0369a1;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}
.district-question-list {
    display: grid;
    gap: 14px;
}

.district-question-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .04);
}

.district-question-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.district-question-text {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.65;
    white-space: pre-wrap;
}

.district-question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.district-question-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}
.exam-question-picker {
    margin-top: 18px;
    padding: 16px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.question-pick-summary {
    margin: 12px 0;
    color: #475569;
    font-size: 13px;
    font-weight: 850;
}

.question-pick-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.question-pick-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.question-pick-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.question-pick-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.question-pick-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
    white-space: pre-wrap;
}

.question-pick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.question-pick-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}
.school-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-school {
    background: #ecfdf5;
    color: #047857;
}

.status-district {
    background: #eef2ff;
    color: #4338ca;
}

.status-copied {
    background: #fff7ed;
    color: #c2410c;
}
.lms-btn-sm {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.lms-btn-sm .material-symbols-outlined {
    font-size: 17px;
}