/* main.css */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#mainPage {
    min-height: 100vh;
    background:
        radial-gradient(circle at 4% 12%, rgba(255, 231, 171, 0.45), transparent 24%),
        radial-gradient(circle at 95% 2%, rgba(196, 176, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #fff8ec 0%, #fffbf4 45%, #ffffff 100%);
    color: #243047;
}

body {
    --teacher-sidebar-width: 300px;
    --teacher-shell-gap: 24px;
}

body.teacher-shell-active .container {
    max-width: none;
    margin: 0;
    padding: var(--teacher-shell-gap) var(--teacher-shell-gap) var(--teacher-shell-gap) calc(var(--teacher-sidebar-width) + (var(--teacher-shell-gap) * 2));
    transition: padding-left 0.22s ease;
}

body.teacher-shell-active .page:not(#loginPage) {
    min-height: calc(100vh - (var(--teacher-shell-gap) * 2));
}

body.teacher-shell-collapsed {
    --teacher-sidebar-width: 74px;
}

.teacher-dashboard-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
}

.teacher-sidebar {
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(236, 222, 199, 0.78);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 246, 0.88)),
        radial-gradient(circle at 20% 12%, rgba(255, 223, 132, 0.24), transparent 26%);
    box-shadow: 0 24px 70px rgba(111, 87, 52, 0.10);
}

.teacher-sidebar.app-sidebar {
    position: fixed;
    top: var(--teacher-shell-gap);
    left: var(--teacher-shell-gap);
    z-index: 30;
    width: var(--teacher-sidebar-width);
    min-height: calc(100vh - (var(--teacher-shell-gap) * 2));
    max-height: calc(100vh - (var(--teacher-shell-gap) * 2));
    transition: width 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

body.teacher-shell-active .teacher-sidebar.app-sidebar {
    display: flex;
}

.teacher-sidebar-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: #6f7890;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(111, 87, 52, 0.08);
}

.teacher-sidebar-toggle:hover {
    color: #12b8a2;
    transform: translateY(-1px);
}

.teacher-sidebar-logo {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 34px 26px 22px;
    text-align: center;
}

body.teacher-shell-collapsed .teacher-sidebar-logo {
    padding: 62px 8px 18px;
}

.teacher-sidebar-logo img {
    width: min(150px, 68%);
    filter: drop-shadow(0 18px 28px rgba(120, 96, 255, 0.16));
}

body.teacher-shell-collapsed .teacher-sidebar-logo img {
    width: 44px;
}

.teacher-sidebar-logo strong {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #17233b;
}

body.teacher-shell-collapsed .teacher-sidebar-logo strong,
body.teacher-shell-collapsed .teacher-nav-item span,
body.teacher-shell-collapsed .teacher-sidebar-art {
    display: none;
}

.teacher-sidebar-menu {
    display: grid;
    gap: 12px;
    padding: 14px 22px;
}

body.teacher-shell-collapsed .teacher-sidebar-menu {
    padding: 10px 8px;
}

.teacher-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 0 22px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #667087;
    font-size: 1.05rem;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

body.teacher-shell-collapsed .teacher-nav-item {
    justify-content: center;
    min-height: 54px;
    padding: 0;
    border-radius: 16px;
}

.teacher-nav-item i {
    width: 26px;
    font-size: 1.22rem;
    text-align: center;
}

body.teacher-shell-collapsed .teacher-nav-item i {
    width: auto;
}

.teacher-nav-item:hover,
.teacher-nav-item:focus-visible {
    color: #16a889;
    background: rgba(22, 199, 162, 0.10);
    transform: translateX(4px);
    outline: none;
}

.teacher-nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, #22d891 0%, #12b8a2 100%);
    box-shadow: 0 18px 36px rgba(19, 184, 162, 0.30);
}

.teacher-nav-admin {
    border: 1px dashed rgba(135, 112, 255, 0.24);
}

.teacher-record-nav {
    display: flex;
}

.teacher-sidebar-art {
    min-height: 250px;
    margin-top: auto;
    background:
        url('../../media/generated/ui-asset-kit-2026-05-02/curated/ornament-sidebar-bottom.png') center bottom 16px / min(230px, 82%) no-repeat,
        radial-gradient(circle at 50% 86%, rgba(255, 231, 171, 0.46), transparent 34%);
}

.teacher-dashboard-main {
    display: grid;
    gap: 22px;
    overflow: hidden;
    border: 1px solid rgba(236, 222, 199, 0.78);
    border-radius: 28px;
    padding: clamp(22px, 3vw, 42px);
    background:
        radial-gradient(circle at 86% -4%, rgba(255, 232, 175, 0.46), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 251, 244, 0.72));
    box-shadow: 0 24px 70px rgba(111, 87, 52, 0.10);
}

.teacher-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.teacher-kicker {
    margin: 0 0 4px;
    color: #8878ff;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.teacher-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    color: #17233b;
}

.teacher-hero p:not(.teacher-kicker) {
    margin: 8px 0 0;
    color: #8791a5;
    font-size: 1.05rem;
    font-weight: 800;
}

.teacher-account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: min(330px, 100%);
    padding: 14px 18px;
    border: 1px solid rgba(236, 222, 199, 0.78);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 44px rgba(111, 87, 52, 0.08);
}

.teacher-education-panel {
    display: grid;
    gap: 16px;
    padding: clamp(18px, 2vw, 26px);
}

.teacher-education-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.teacher-education-chip {
    display: grid;
    gap: 8px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 255, 0.9));
    box-shadow: 0 14px 28px rgba(78, 71, 62, 0.06);
}

.teacher-education-chip span {
    color: #7b63ff;
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.teacher-education-chip strong {
    color: #16223b;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1;
    font-weight: 900;
}

.teacher-education-chip small {
    color: #7f899c;
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 700;
}

.teacher-avatar {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        url('../../media/generated/ui-asset-kit-2026-05-02/curated/avatar-teacher-badge.png') center / cover no-repeat,
        linear-gradient(135deg, #fff3d5, #ffffff);
    box-shadow: inset 0 0 0 4px rgba(255, 229, 184, 0.62);
    font-size: 2rem;
}

.teacher-avatar.is-student {
    background-image:
        var(--teacher-avatar-image),
        linear-gradient(135deg, #fff3d5, #ffffff);
}

.teacher-user-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.teacher-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 48px rgba(78, 71, 62, 0.08);
}

.teacher-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teacher-panel-title i {
    color: #8a66ff;
    font-size: 1.35rem;
}

.teacher-panel-title h2 {
    margin: 0;
    color: #1f2a40;
    font-size: 1.28rem;
    font-weight: 900;
}

.teacher-overview-panel,
.teacher-progress-panel,
.teacher-chart-card,
.teacher-todo-card {
    padding: clamp(18px, 2vw, 26px);
}

.teacher-overview-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
}

.teacher-filter-pill,
.teacher-link-btn {
    align-self: start;
    border: 1px solid rgba(226, 232, 240, 0.90);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    color: #7b8497;
    font-weight: 900;
    padding: 10px 15px;
    cursor: pointer;
}

body.student-dashboard .teacher-class-filter {
    display: none;
}

.teacher-link-btn {
    position: absolute;
    top: 22px;
    right: 24px;
    border: 0;
    background: transparent;
}

.teacher-account-card .guide-btn {
    border: 1px solid rgba(13, 148, 136, 0.28);
    background: linear-gradient(135deg, #14b8a6, #0f8fa0);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 143, 160, 0.20);
}

.teacher-account-card .guide-btn:hover {
    background: linear-gradient(135deg, #0fae9d, #087f91);
    box-shadow: 0 11px 22px rgba(15, 143, 160, 0.28);
}

.teacher-account-card .guide-btn:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.25);
    outline-offset: 2px;
}

body.student-dashboard .teacher-link-btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7043, #ff9f43);
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 112, 67, 0.28);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

body.student-dashboard .teacher-link-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 112, 67, 0.34);
}

body.student-dashboard .teacher-link-btn--primary:focus-visible {
    outline: 3px solid rgba(123, 85, 255, 0.28);
    outline-offset: 3px;
}

body.student-dashboard .teacher-progress-panel {
    background:
        radial-gradient(circle at 88% 16%, rgba(34, 216, 145, 0.12), transparent 25%),
        rgba(255, 255, 255, 0.88);
}

body.student-dashboard .teacher-student-progress {
    grid-template-columns: minmax(260px, 460px);
}

.teacher-stats-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
}

.teacher-stat-card {
    position: relative;
    min-height: 142px;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 20px;
}

.teacher-stat-card span {
    display: block;
    color: #727b8f;
    font-weight: 900;
}

.teacher-stat-card strong {
    display: block;
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5vw, 3.55rem);
    line-height: 0.95;
    font-weight: 900;
}

.teacher-stat-card i {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 4.4rem;
    filter: drop-shadow(0 16px 22px rgba(70, 58, 110, 0.14));
}

.teacher-stat-card--green {
    background: linear-gradient(135deg, #f1fff8, #e9fbf2);
}

.teacher-stat-card--green strong { color: #19b889; }

.teacher-stat-card--purple {
    background: linear-gradient(135deg, #fbf8ff, #f2edff);
}

.teacher-stat-card--purple strong { color: #7b55ff; }

.teacher-stat-card--orange {
    background: linear-gradient(135deg, #fff9ef, #fff0de);
}

.teacher-stat-card--orange strong { color: #ff7b28; }

.teacher-stat-card--blue {
    background: linear-gradient(135deg, #f5faff, #edf6ff);
}

.teacher-stat-card--blue strong { color: #4386ff; }

.teacher-student-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.teacher-student-card {
    position: relative;
    min-height: 172px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
}

.teacher-student-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.teacher-student-face {
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 16%, transparent 17%),
        linear-gradient(135deg, #d9fff4, #f2e9ff);
    color: #4d5a72;
    font-size: 1.28rem;
    font-weight: 1000;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.70), 0 10px 22px rgba(112, 94, 185, 0.13);
}

.teacher-student-face--asset {
    overflow: hidden;
    background: #fff8ef;
    color: transparent;
}

.teacher-student-face--asset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teacher-student-face--1 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0 16%, transparent 17%), linear-gradient(135deg, #ffe6ef, #e9f9ff); }
.teacher-student-face--2 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0 16%, transparent 17%), linear-gradient(135deg, #e9fff6, #fff3d7); }
.teacher-student-face--3 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0 16%, transparent 17%), linear-gradient(135deg, #edf3ff, #f3e8ff); }
.teacher-student-face--4 { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0 16%, transparent 17%), linear-gradient(135deg, #fff5df, #e5fff5); }

.teacher-student-name {
    margin: 0;
    color: #243047;
    font-size: 1.02rem;
    font-weight: 900;
}

.teacher-student-meta {
    margin: 4px 0 0;
    color: #8a94aa;
    font-size: 0.86rem;
    font-weight: 800;
}

.teacher-status-pill {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbfff0;
    color: #18ad80;
    font-size: 0.78rem;
    font-weight: 900;
}

.teacher-status-pill--pending {
    background: #f1ecff;
    color: #8b63ff;
}

.teacher-student-plan {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 24px;
    color: #8a94aa;
    font-weight: 900;
}

.teacher-student-plan strong {
    color: #20c48f;
    font-size: 1.28rem;
}

.teacher-progress-track {
    height: 10px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f4;
}

.teacher-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d891, #12b8a2);
}

.teacher-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) minmax(260px, 1fr) minmax(250px, 0.85fr);
    gap: 20px;
}

.teacher-chart-card {
    min-height: 300px;
}

.teacher-record-trend {
    min-height: 214px;
    margin-top: 18px;
}

.teacher-record-trend svg {
    width: 100%;
    height: 220px;
    overflow: visible;
}

.teacher-record-trend text {
    fill: #8892a6;
    font-size: 12px;
    font-weight: 800;
}

.teacher-word-mastery {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 22px;
    align-items: center;
    min-height: 220px;
    margin-top: 20px;
}

.teacher-donut {
    width: 154px;
    height: 154px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #ffffff 0 52%, transparent 53%),
        conic-gradient(#20cf91 var(--teacher-mastered, 45%), #6575ff 0 var(--teacher-learning, 80%), #ff8732 0);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.66), 0 18px 32px rgba(105, 117, 255, 0.13);
    text-align: center;
}

.teacher-donut span,
.teacher-donut strong {
    grid-column: 1;
    grid-row: 1;
}

.teacher-donut span {
    margin-top: -18px;
    color: #8a94aa;
    font-size: 0.78rem;
    font-weight: 900;
}

.teacher-donut strong {
    margin-top: 20px;
    color: #243047;
    font-size: 1.6rem;
    font-weight: 900;
}

.teacher-donut-legend {
    display: grid;
    gap: 14px;
}

.teacher-legend-item {
    display: grid;
    grid-template-columns: 10px 1fr;
    column-gap: 10px;
    color: #6c768b;
    font-weight: 900;
}

.teacher-legend-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
}

.teacher-legend-sub {
    color: #8b95aa;
    font-size: 0.86rem;
}

.teacher-todo-list {
    display: grid;
    gap: 4px;
    margin-top: 18px;
}

.teacher-todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    border-bottom: 1px solid #eef1f6;
    color: #69758c;
    font-weight: 900;
}

.teacher-todo-item i {
    color: #8792a7;
}

.teacher-todo-item strong {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f2edff;
    color: #8b63ff;
}

.teacher-operations-panel {
    display: grid;
    gap: 18px;
}

.teacher-operations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.student-learning-engine-panel {
    display: none;
}

body.student-dashboard .student-learning-engine-panel {
    display: block;
}

body.student-dashboard .teacher-overview-panel {
    display: none;
}

body.student-dashboard .teacher-operations-panel {
    display: none;
}

.student-engine-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(280px, 0.95fr);
    gap: 28px;
    align-items: center;
}

.student-lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.teacher-student-card--action {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(53, 70, 110, 0.07);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.teacher-student-card--action:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 201, 139, 0.55);
    box-shadow: 0 18px 38px rgba(34, 201, 139, 0.16);
}

.teacher-student-card--action:focus-visible {
    outline: 3px solid rgba(34, 201, 139, 0.25);
    outline-offset: 3px;
}

.teacher-student-card--loading {
    display: grid;
    place-items: center;
    color: #8a94aa;
    font-weight: 800;
}

.teacher-student-card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(34, 201, 139, 0.16);
    color: #12a87c;
    font-weight: 900;
}

.teacher-student-card-cta .fa-arrow-right {
    margin-left: auto;
}

.lifecycle-cell {
    min-height: 112px;
    border: 0;
    border-radius: 24px;
    padding: 16px 10px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #17213a;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.64), 0 12px 24px rgba(30,43,67,.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.lifecycle-cell:hover, .lifecycle-cell:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(30,43,67,.14); outline: none; }
.lifecycle-cell span { font-weight: 900; font-size: .9rem; }
.lifecycle-cell strong { font-size: 2rem; line-height: 1; }
.lifecycle-cell--known { background: #22c98b; color: #fff; }
.lifecycle-cell--review1 { background: #ffd166; }
.lifecycle-cell--review2 { background: #ffb347; }
.lifecycle-cell--review3 { background: #ff8a5b; }
.lifecycle-cell--review4 { background: #46c7c1; }
.lifecycle-cell--review5 { background: #4d96ff; color: #fff; }
.lifecycle-cell--review6 { background: #6f73e8; color: #fff; }
.lifecycle-cell--review7 { background: #a467e8; color: #fff; }
.lifecycle-cell--relearn { background: #ff5c5c; color: #fff; }
.student-lifecycle-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 14px; }
.lifecycle-start, .lifecycle-mastered-total { min-height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; }
.lifecycle-start { border: 0; color: #fff; cursor: pointer; background: linear-gradient(135deg,#ff7b37,#ff4f2f); box-shadow: 0 14px 30px rgba(255,101,47,.28); }
.lifecycle-mastered-total { min-width: 160px; padding: 10px 18px; flex-direction: column; background: #f3f0ff; color: #6f4fd8; }
.lifecycle-mastered-total strong { font-size: 1.8rem; }

.student-engine-caption {
    margin: 16px 0 0;
    text-align: center;
    color: #71809a;
    font-weight: 700;
}

.student-task-rail {
    display: grid;
    gap: 14px;
}

.student-task-card {
    border: 1px solid rgba(229, 220, 207, 0.92);
    border-radius: 22px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 26px rgba(31, 43, 67, 0.06);
    color: #1d2a44;
    cursor: pointer;
    text-align: left;
}

.student-task-card--deferred strong { color: #0f9f8f; }

.student-task-bucket-modal {
    width: min(720px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 40px));
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(180px, 1fr) auto;
}

.student-task-bucket-summary {
    margin: 0;
    padding: 2px 4px 14px;
    color: #71809a;
    font-weight: 700;
}

.student-task-bucket-list {
    min-height: 220px;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 10px;
    padding-right: 4px;
}

.student-task-bucket-row {
    border: 1px solid #e8e5ee;
    border-radius: 16px;
    background: #fffdf9;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.student-task-bucket-row strong,
.student-task-bucket-row span {
    display: block;
}

.student-task-bucket-row span {
    color: #71809a;
    margin-top: 4px;
}

.student-task-bucket-stage {
    color: #7654f6;
    font-weight: 800;
    white-space: nowrap;
}

.student-task-bucket-empty,
.student-task-bucket-error,
.student-task-bucket-loading {
    padding: 42px 20px;
    text-align: center;
    border-radius: 18px;
    background: #faf8ff;
    color: #71809a;
}

.student-task-bucket-error { color: #d94a3a; }

.student-task-bucket-footer {
    padding-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.teacher-education-chip.is-loading {
    opacity: 0.72;
}

.teacher-education-load-error {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 118px;
    border: 1px solid rgba(239, 86, 71, 0.3);
    border-radius: 20px;
    background: rgba(255, 245, 243, 0.92);
    color: #b63a2f;
}

.student-task-card span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.student-task-card strong {
    font-size: 2.2rem;
}

.student-task-card--due strong,
.student-task-card--relearn strong { color: #ff6048; }
.student-task-card--new strong { color: #4c73ff; }
.student-task-card--review strong { color: #f5a80f; }
.student-task-card--mastered strong { color: #20b874; }

.teacher-control-matrix {
    display: block;
}

body.student-dashboard .teacher-control-matrix {
    display: none;
}

.teacher-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.teacher-control-card {
    border: 1px solid rgba(229, 220, 207, 0.78);
    border-radius: 22px;
    padding: 20px 22px;
    min-height: 128px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 239, 0.82));
    box-shadow: 0 14px 30px rgba(33, 46, 72, 0.05);
}

.teacher-control-card span {
    display: block;
    color: #78859b;
    font-weight: 800;
}

.teacher-control-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 2.2rem;
    color: #ff6b35;
}

.teacher-control-card small {
    color: #8693aa;
    font-weight: 700;
}

.teacher-control-card--green strong { color: #20b874; }
.teacher-control-card--orange strong { color: #ff7a2d; }
.teacher-control-card--purple strong { color: #7c5cff; }

.teacher-operation-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(232, 220, 199, 0.8);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 244, 0.95));
    box-shadow: 0 18px 44px rgba(111, 87, 52, 0.06);
}

.teacher-operation-card--warning {
    border-color: rgba(255, 147, 89, 0.24);
}

.teacher-operation-card--execution {
    border-color: rgba(26, 202, 164, 0.24);
}

.teacher-operation-card--report {
    border-color: rgba(139, 99, 255, 0.24);
}

.teacher-operation-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.teacher-operation-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teacher-operation-card-title h3 {
    margin: 0;
    color: #17233b;
    font-size: 1.02rem;
    font-weight: 900;
}

.teacher-operation-card-title p {
    margin: 4px 0 0;
    color: #8a95a8;
    font-size: 0.88rem;
    font-weight: 700;
}

.teacher-operation-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(139, 99, 255, 0.12);
    color: #8b63ff;
    flex: 0 0 auto;
}

.teacher-operation-card--warning .teacher-operation-icon {
    background: rgba(255, 147, 89, 0.14);
    color: #ff8e3f;
}

.teacher-operation-card--execution .teacher-operation-icon {
    background: rgba(22, 184, 162, 0.14);
    color: #16b8a2;
}

.teacher-operation-card--report .teacher-operation-icon {
    background: rgba(105, 117, 255, 0.14);
    color: #6975ff;
}

.teacher-operation-card strong {
    font-size: 1.4rem;
    font-weight: 900;
    color: #17233b;
}

.teacher-operation-list {
    display: grid;
    gap: 10px;
}

.teacher-operation-item,
.teacher-operation-empty {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(247, 249, 253, 0.96);
}

.teacher-operation-item {
    display: grid;
    gap: 4px;
}

.teacher-operation-item strong {
    font-size: 0.98rem;
    color: #243047;
}

.teacher-operation-item span,
.teacher-operation-empty {
    color: #7c879a;
    font-size: 0.9rem;
    font-weight: 700;
}

.teacher-all-records {
    width: 100%;
    margin-top: 18px;
    border: 0;
    background: transparent;
    color: #8b63ff;
    font-weight: 900;
    cursor: pointer;
}

.teacher-empty-state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 150px;
    border: 1px dashed rgba(151, 162, 181, 0.45);
    border-radius: 18px;
    color: #8892a6;
    font-weight: 900;
}

.teacher-empty-state[hidden] {
    display: none;
}

.teacher-empty-state {
    --teacher-empty-art: url('../../media/generated/ui-asset-kit-2026-05-02/curated/illustration-empty-state-no-data.png');
}

.teacher-empty-state img {
    width: min(190px, 88%);
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.teacher-dashboard-quote {
    margin: 6px 0 0;
    color: #7d879b;
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 1180px) {
    body.teacher-shell-active .container {
        padding: 12px;
    }

    .teacher-sidebar.app-sidebar {
        position: static;
        width: auto;
        min-height: auto;
        max-height: none;
        margin-bottom: 12px;
    }

    .teacher-sidebar-menu {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .teacher-sidebar-art {
        display: none;
    }

    .teacher-dashboard-grid,
    .teacher-control-grid,
    .student-engine-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .teacher-hero,
    .teacher-overview-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .teacher-account-card {
        width: 100%;
    }

    .teacher-education-summary,
    .teacher-stats-grid,
    .teacher-student-progress,
    .teacher-control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-sidebar-menu {
        grid-template-columns: 1fr 1fr;
    }

    body.teacher-shell-collapsed .teacher-sidebar-menu {
        grid-template-columns: repeat(6, minmax(44px, 1fr));
    }
}

@media (max-width: 760px) {
    body.teacher-shell-active {
        --teacher-sidebar-width: 0px;
        --teacher-shell-gap: 8px;
    }

    body.teacher-shell-active .container {
        padding: 8px;
        padding-top: 64px;
    }

    body.teacher-shell-active:not(.teacher-shell-collapsed) .teacher-sidebar.app-sidebar {
        position: fixed;
        top: 8px;
        left: 8px;
        z-index: 60;
        width: min(300px, calc(100vw - 16px));
        min-height: auto;
        max-height: calc(100dvh - 16px);
        margin: 0;
        overflow-y: auto;
        border-radius: 22px;
        box-shadow: 0 24px 70px rgba(36, 48, 71, 0.2);
    }

    body.teacher-shell-active:not(.teacher-shell-collapsed) .teacher-sidebar-menu {
        grid-template-columns: 1fr;
    }

    body.teacher-shell-active.teacher-shell-collapsed .teacher-sidebar.app-sidebar {
        position: fixed;
        top: 8px;
        left: 8px;
        z-index: 60;
        width: 48px;
        min-height: 48px;
        max-height: 48px;
        margin: 0;
        overflow: hidden;
        border-radius: 14px;
    }

    body.teacher-shell-active.teacher-shell-collapsed .teacher-sidebar-toggle {
        position: static;
        display: grid;
        margin: 5px;
    }

    body.teacher-shell-active.teacher-shell-collapsed .teacher-sidebar-logo,
    body.teacher-shell-active.teacher-shell-collapsed .teacher-sidebar-menu,
    body.teacher-shell-active.teacher-shell-collapsed .teacher-sidebar-art {
        display: none;
    }
}

@media (max-width: 560px) {
    .teacher-dashboard-shell,
    .teacher-dashboard-main {
        padding: 12px;
    }

    .teacher-sidebar,
    .teacher-dashboard-main {
        border-radius: 22px;
    }

    .teacher-education-summary,
    .teacher-stats-grid,
    .teacher-student-progress,
    .teacher-sidebar-menu,
    .teacher-word-mastery,
    .teacher-operations-grid,
    .teacher-control-grid {
        grid-template-columns: 1fr;
    }

    .student-lifecycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-lifecycle-actions { grid-template-columns: 1fr; }

    .teacher-link-btn {
        position: static;
        margin-top: 12px;
    }
}
