@font-face {
    font-family: "tabler-icons";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/vendor/tabler-icons/fonts/tabler-icons.woff2?v3.36.0") format("woff2");
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f4f6f8;
}

.auth-shell,
.student-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-shell {
    background:
        linear-gradient(135deg, rgba(32, 107, 196, .08), transparent 38%),
        #f3f6fb;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    min-height: 100vh;
    overflow-y: auto;
    background: #182433;
    color: #d8e2ef;
    z-index: 1030;
    transition: transform .18s ease;
}

.admin-sidebar .container-fluid {
    display: block;
    padding: 0;
}

.admin-sidebar .navbar-brand {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 16px 18px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(77, 171, 247, .16);
    color: #74c0fc;
    font-size: 22px;
}

.brand-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    display: block;
    margin-top: 3px;
    color: #9fb0c4;
    font-size: 12px;
    font-weight: 400;
}

.admin-sidebar .navbar-nav {
    display: block;
    padding: 6px 0 20px;
}

.admin-nav-section {
    padding: 18px 20px 7px;
    color: #7f92aa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    min-height: 40px;
    margin: 1px 10px;
    padding: 9px 14px;
    color: #d8e2ef;
    border-left: 3px solid transparent;
    border-radius: 8px;
    text-align: left;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: #223349;
    border-left-color: #4dabf7;
}

.admin-sidebar .nav-link-icon {
    width: 24px;
    min-width: 24px;
    margin: 0;
    text-align: center;
    opacity: .86;
}

.admin-sidebar .nav-link-title {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-main {
    min-width: 0;
    margin-left: 240px;
    transition: margin-left .18s ease;
}

.admin-main > .page-body > .container-xl {
    opacity: 1;
}

.admin-shell.admin-page-leaving .admin-main > .page-body > .container-xl {
    transform: translateY(4px);
    opacity: 0;
    transition: opacity .11s ease, transform .11s ease;
}

.admin-shell.admin-page-entering .admin-main > .page-body > .container-xl {
    animation: adminPageIn .18s ease-out both;
}

.admin-main .page-body {
    margin-top: 0;
    padding-top: 28px;
    padding-bottom: 32px;
}

.admin-shell.sidebar-collapsed .admin-sidebar {
    transform: translateX(-240px);
}

.admin-shell.sidebar-collapsed .admin-main {
    margin-left: 0;
}

.admin-sidebar-toggle {
    flex: 0 0 auto;
}

.admin-mobile-context {
    min-width: 0;
    flex: 1 1 auto;
    padding-left: 2px;
}

.admin-mobile-kicker,
.admin-mobile-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-mobile-kicker {
    color: #667085;
    font-size: 12px;
    line-height: 1.1;
}

.admin-mobile-title {
    color: #172033;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.admin-sidebar-overlay {
    display: none;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1010;
    min-height: 60px;
    border-bottom: 1px solid #e6ebf1;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.admin-topbar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #206bc4, transparent);
    opacity: 0;
    transform: translateX(-55%);
}

.admin-shell.admin-pjax-loading .admin-topbar::after {
    opacity: 1;
    animation: adminLoadingBar .85s ease-in-out infinite;
}

@keyframes adminLoadingBar {
    from {
        transform: translateX(-65%);
    }

    to {
        transform: translateX(65%);
    }
}

@keyframes adminPageIn {
    from {
        transform: translateY(6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.admin-topbar .btn-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
}

.admin-topbar .admin-logout-button {
    border-radius: 8px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-shell .form-control,
.admin-shell .form-select {
    border-color: #c6d0dc;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}

.admin-shell .form-control:hover,
.admin-shell .form-select:hover {
    border-color: #aebbcc;
}

.admin-shell .form-control:focus,
.admin-shell .form-select:focus {
    border-color: #6ea8e8;
    box-shadow: 0 0 0 .25rem rgba(32, 107, 196, .14);
}

.admin-shell .ts-wrapper {
    position: relative;
    min-width: 0;
}

.admin-shell .ts-wrapper.form-select,
.admin-shell .ts-wrapper.form-control {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-shell .ts-control,
.admin-shell .ts-wrapper.form-select .ts-control,
.admin-shell .ts-wrapper.form-control .ts-control,
.admin-shell .ts-wrapper.form-select.single.input-active .ts-control,
.admin-shell .ts-wrapper.form-control.single.input-active .ts-control {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #b8c4d2 !important;
    border-radius: 8px !important;
    color: #172033;
    background: #fff !important;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.admin-shell .ts-wrapper.single .ts-control {
    padding-right: 34px;
}

.admin-shell .ts-wrapper.single::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 2;
    width: 14px;
    height: 10px;
    pointer-events: none;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") center / 14px 10px no-repeat;
    transform: translateY(-50%);
}

.admin-shell .ts-wrapper.focus .ts-control,
.admin-shell .ts-wrapper.plugin-dropdown_input.focus.dropdown-active .ts-control {
    border-color: #6ea8e8 !important;
    box-shadow: 0 0 0 .25rem rgba(32, 107, 196, .14) !important;
}

.admin-shell .ts-wrapper.disabled .ts-control {
    background: #f6f8fb;
    opacity: .72;
}

.admin-shell .ts-control input {
    color: #172033;
    font-family: inherit;
}

.admin-shell .ts-wrapper.single.has-items .ts-control > input {
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
}

.admin-shell .ts-control .item {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-shell .ts-control .item[data-value=""] {
    color: #98a2b3;
}

.admin-shell .ts-dropdown {
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid #c6d0dc !important;
    border-radius: 8px !important;
    color: #172033;
    background: #fff !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .18) !important;
    z-index: 1080;
}

.admin-shell .ts-dropdown-content {
    background: #fff !important;
}

.admin-shell .ts-dropdown .dropdown-input {
    margin: 8px;
    width: calc(100% - 16px);
    border: 1px solid #c6d0dc !important;
    border-radius: 7px !important;
    background: #fff !important;
}

.admin-shell .ts-dropdown .option,
.admin-shell .ts-dropdown .no-results {
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
}

.admin-shell .ts-dropdown .active {
    color: #0f3b66;
    background: #eaf3ff !important;
}

.page-header.admin-page-header {
    margin-top: 0;
    margin-bottom: 14px;
}

.admin-page-header .page-title {
    line-height: 1.25;
}

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-card .card-body {
    min-height: 132px;
}

.dashboard-metrics {
    --tblr-gutter-x: 12px;
    --tblr-gutter-y: 12px;
}

.metric-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 21px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.workflow-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: flex-start;
    min-height: 148px;
    padding: 16px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    color: inherit;
    text-decoration: none !important;
    background: #fff;
}

.workflow-step:hover {
    border-color: #8bb9ee;
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(32, 107, 196, .09);
}

.workflow-step *,
.workflow-step:hover * {
    text-decoration: none !important;
}

.workflow-step.is-done {
    background: #f7fbf8;
}

.workflow-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: #206bc4;
    font-size: 22px;
}

.workflow-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.workflow-title {
    font-size: 16px;
    font-weight: 700;
}

.workflow-desc {
    color: #667085;
    line-height: 1.55;
}

.workflow-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #206bc4;
    font-weight: 600;
}

.readiness-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.readiness-meter-bar {
    width: var(--value);
    height: 100%;
    border-radius: inherit;
    background: #2fb344;
}

.dashboard-todo-list {
    display: grid;
    gap: 10px;
}

.dashboard-todo-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 11px 12px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    color: inherit;
    text-decoration: none !important;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dashboard-todo-item:hover {
    color: inherit;
    border-color: #8bb9ee;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.dashboard-todo-item *,
.dashboard-todo-item:hover * {
    text-decoration: none !important;
}

.dashboard-todo-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #206bc4;
    background: #eaf3ff;
    font-size: 18px;
}

.dashboard-todo-body {
    min-width: 0;
}

.dashboard-todo-title,
.dashboard-todo-text {
    display: block;
    min-width: 0;
}

.dashboard-todo-title {
    font-weight: 700;
    line-height: 1.35;
}

.dashboard-todo-text {
    margin-top: 3px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-todo-arrow {
    color: #98a2b3;
}

.quick-link-card {
    color: inherit;
    text-decoration: none;
}

.quick-link-card:hover {
    color: inherit;
    border-color: #8bb9ee;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.quick-link-card .card-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-height: 110px;
}

.quick-link-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #206bc4;
}

.quick-link-icon i {
    font-size: 26px;
}

.quick-link-card p {
    margin: 6px 0 0;
    color: #667085;
}

.management-grid {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.admin-card-header-main {
    min-width: 0;
}

.admin-card-header .metric-icon {
    flex: 0 0 auto;
    margin-left: auto;
}

.table .btn-list {
    gap: 6px;
}

.table .btn-list form {
    margin: 0;
}

.dropdown-table-responsive {
    overflow: visible;
}

.dropdown-table-responsive .dropdown-menu {
    z-index: 1090;
}

.form-panel,
.list-panel,
.wizard-panel {
    border-radius: 8px;
}

.wizard-panel > .card-body {
    padding-top: 24px;
}

.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #2fb344;
}

.settings-panel {
    min-height: 120px;
    padding: 14px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #f8fafc;
}

.settings-inline-card .card-body {
    display: grid;
    grid-template-columns: 42px minmax(220px, 1fr) auto minmax(180px, .7fr) auto;
    gap: 16px;
    align-items: center;
}

.settings-inline-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #206bc4;
    font-size: 22px;
}

.settings-inline-main,
.settings-inline-note {
    min-width: 0;
}

.settings-inline-switch {
    margin: 0;
    white-space: nowrap;
}

.settings-inline-action {
    justify-self: end;
}

.admin-shell textarea.form-control.json-editor {
    min-height: 560px;
    height: 62vh;
    max-height: 760px;
    padding: 16px 18px;
    border-color: #b8c4d2;
    border-radius: 8px;
    color: #172033;
    background: #fff;
    font-family: Consolas, "Microsoft YaHei", monospace;
    font-size: 14px;
    line-height: 1.65;
    tab-size: 4;
    white-space: pre;
    resize: vertical;
}

.admin-shell textarea.form-control.json-editor:focus {
    border-color: #206bc4;
    box-shadow: 0 0 0 .25rem rgba(32, 107, 196, .12);
}

.json-sample {
    max-height: 430px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    color: #344054;
    background: #fbfcfe;
    font-family: Consolas, "Microsoft YaHei", monospace;
    font-size: 12px;
    line-height: 1.5;
}

.teaching-tree-editor {
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.teaching-tree-toolbar {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.teaching-tree-toolbar::-webkit-details-marker {
    display: none;
}

.teaching-tree-editor[open] > .teaching-tree-toolbar {
    border-bottom: 1px solid #edf1f5;
}

.teaching-tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 34px;
    color: #667085;
}

.teaching-tree-toggle i {
    transition: transform .16s ease;
}

.teaching-tree-editor[open] .teaching-tree-toggle i {
    transform: rotate(90deg);
}

.teaching-tree-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.teaching-tree-summary {
    margin-top: 2px;
    color: #667085;
    font-size: .875rem;
}

.teaching-tree-alert {
    margin: 0;
    padding: 8px 10px;
    font-size: .875rem;
}

.teaching-tree-list {
    display: grid;
    gap: 10px;
}

.teaching-tree-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    border: 1px dashed #b8c4d2;
    border-radius: 8px;
    color: #667085;
    background: #fff;
}

.teaching-class-node {
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.teaching-class-node > summary {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
    background: #fff;
}

.teaching-class-node > summary::-webkit-details-marker {
    display: none;
}

.teaching-class-node[open] > summary {
    border-bottom: 1px solid #edf1f5;
}

.teaching-class-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 34px;
    color: #667085;
}

.teaching-class-node[open] .teaching-class-toggle i {
    transform: rotate(90deg);
}

.teaching-class-toggle i {
    transition: transform .16s ease;
}

.teaching-class-title {
    min-width: 0;
    overflow: hidden;
    color: #172033;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teaching-class-name,
.teaching-field {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

.teaching-class-name span,
.teaching-field span {
    color: #667085;
    font-size: .75rem;
    font-weight: 700;
}

.teaching-lesson-list {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.teaching-lesson-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 34px;
    align-items: end;
    gap: 8px;
}

.teaching-class-node .btn-icon,
.teaching-lesson-row .btn-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.teaching-add-lesson {
    justify-self: start;
}

.live-log-page {
    display: grid;
    gap: 14px;
}

.live-log-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.live-log-hero h3 {
    margin: 3px 0 5px;
    color: #172033;
    font-size: 22px;
    font-weight: 850;
}

.live-log-hero p {
    margin: 0;
    color: #667085;
}

.live-log-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #cfe8d8;
    border-radius: 8px;
    color: #1f7a3f;
    background: #f0fbf4;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.live-log-status.is-error {
    border-color: #f3c4c4;
    color: #b42318;
    background: #fff1f1;
}

.live-log-status.is-error .status-dot {
    background: #d63939;
}

.live-log-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
}

.live-log-summary > div {
    min-width: 0;
    padding: 16px;
    border-left: 1px solid #eef2f6;
}

.live-log-summary > div:first-child {
    border-left: 0;
}

.live-log-summary span,
.live-log-summary strong {
    display: block;
}

.live-log-summary span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.live-log-summary strong {
    margin-top: 6px;
    overflow: hidden;
    color: #172033;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-log-card {
    overflow: hidden;
}

.live-log-row {
    cursor: pointer;
    transition: background-color .16s ease;
}

.live-log-row:hover,
.live-log-row:focus {
    outline: none;
    background: #f8fbff;
}

.live-log-row.is-active {
    background: #eaf3ff;
}

.live-log-student-button {
    text-decoration: none;
}

.live-log-detail {
    overflow: hidden;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.live-log-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #edf1f5;
}

.live-log-detail-header h4 {
    margin: 2px 0 4px;
    color: #172033;
    font-size: 18px;
    font-weight: 850;
}

.live-log-detail-header p {
    margin: 0;
    color: #667085;
}

.live-log-detail-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    color: #667085;
    font-weight: 700;
}

.live-log-detail-table {
    background: #fff;
}

.live-log-card .card-header {
    min-height: 56px;
}

.live-log-table td,
.live-log-table th {
    white-space: nowrap;
}

.compact-filter {
    padding: 12px 14px;
    background: #fbfcfe;
}

.report-dashboard,
.report-panel {
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.report-dashboard {
    padding: 20px;
}

.report-dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.report-dashboard-head h3 {
    margin: 4px 0 6px;
    color: #172033;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.report-dashboard-head p {
    max-width: 640px;
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.report-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.report-kpi-card {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    border: 1px solid #e5ebf2;
    border-radius: 8px;
    background: #fbfdff;
}

.report-kpi-card.is-primary {
    border-color: #b8d6fb;
    background: #eef6ff;
}

.report-kpi-card span,
.report-kpi-card small {
    color: #667085;
}

.report-kpi-card span {
    font-size: 12px;
    font-weight: 800;
}

.report-kpi-card strong {
    margin: 7px 0 5px;
    color: #172033;
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
}

.report-analysis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 16px;
    margin-top: 16px;
    align-items: stretch;
}

.report-panel {
    min-width: 0;
    padding: 18px;
}

.report-panel--wide {
    min-height: 400px;
}

.report-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.report-panel-head h3 {
    margin: 2px 0 0;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
}

.report-panel-number {
    color: #206bc4;
    font-size: 26px;
    line-height: 1;
}

.report-side-stack {
    display: grid;
    gap: 16px;
}

.report-chart--large {
    min-height: 330px;
}

.report-chart--compact {
    min-height: 210px;
}

.report-current-project {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
}

.report-current-project span,
.report-current-project strong,
.report-current-project small {
    display: block;
}

.report-current-project span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.report-current-project strong {
    margin-top: 4px;
    color: #172033;
    font-size: 15px;
}

.report-current-project small {
    margin-top: 3px;
    color: #667085;
}

.report-workbench-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 16px;
    margin-top: 16px;
}

.report-entry-grid.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.report-entry-grid.is-compact .report-entry-card {
    min-height: 118px;
    padding: 14px;
}

.report-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.report-insight-list {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5ebf2;
    border-radius: 8px;
    background: #fbfdff;
}

.report-insight-list > strong {
    color: #172033;
    font-size: 13px;
}

.report-insight-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: #667085;
    font-size: 12px;
}

.report-insight-list em {
    overflow: hidden;
    color: #344054;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-insight-list b {
    color: #206bc4;
}

.report-project-list-panel {
    margin-top: 16px;
}

.report-project-list-panel .table {
    margin-bottom: 0;
}

.report-progress--table {
    min-width: 130px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.report-main-card .card-header {
    align-items: flex-start;
}

.report-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.report-project-table td {
    vertical-align: middle;
}

.report-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 220px minmax(260px, .9fr);
    gap: 16px;
    align-items: stretch;
}

.report-hero-main,
.report-hero-score,
.report-hero-kpis,
.report-focus-card,
.report-project-card {
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.report-hero-main {
    padding: 24px;
}

.report-hero-main h3 {
    margin: 4px 0 8px;
    color: #172033;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}

.report-hero-main p {
    max-width: 620px;
    margin: 0;
    color: #667085;
}

.report-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.report-hero-score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.report-hero-score strong {
    margin: 6px 0;
    color: #172033;
    font-size: 54px;
    line-height: 1;
    font-weight: 800;
}

.report-hero-score > span:last-child {
    color: #667085;
}

.report-hero-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.report-hero-kpis > div {
    min-width: 0;
    padding: 18px;
    border-top: 1px solid #eef2f6;
    border-left: 1px solid #eef2f6;
}

.report-hero-kpis > div:nth-child(-n + 2) {
    border-top: 0;
}

.report-hero-kpis > div:nth-child(odd) {
    border-left: 0;
}

.report-hero-kpis span,
.report-hero-kpis strong,
.report-hero-kpis small {
    display: block;
}

.report-hero-kpis span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.report-hero-kpis strong {
    margin-top: 6px;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
}

.report-hero-kpis small {
    margin-top: 5px;
    color: #667085;
}

.report-focus-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
    padding: 16px 18px;
}

.report-focus-card strong,
.report-focus-card span {
    display: block;
}

.report-focus-card strong {
    color: #172033;
    font-size: 18px;
}

.report-focus-card span:not(.subheader) {
    color: #667085;
}

.report-focus-progress {
    min-width: 220px;
}

.report-chart-board {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: 16px;
    align-items: stretch;
}

.report-chart-card {
    min-width: 0;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.report-chart-card--wide {
    grid-column: span 1;
}

.report-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.report-chart-head h3 {
    margin: 2px 0 0;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
}

.report-chart-head strong {
    color: #206bc4;
    font-size: 28px;
    line-height: 1;
}

.report-chart {
    min-height: 250px;
    flex: 1 1 auto;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 20px;
    font-weight: 800;
}

.section-heading p {
    margin: 4px 0 0;
    color: #667085;
}

.report-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.report-entry-card {
    min-height: 132px;
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 18px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    color: inherit;
    background: #fff;
    text-decoration: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.report-entry-card:hover {
    color: inherit;
    border-color: #8bb9ee;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.report-entry-card span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #206bc4;
    background: #eaf3ff;
    font-size: 20px;
}

.report-entry-card strong {
    color: #172033;
    font-size: 16px;
}

.report-entry-card small {
    color: #667085;
    line-height: 1.5;
}

.report-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}

.report-project-card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.report-project-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.report-project-top h4 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
}

.report-project-top p {
    margin: 5px 0 0;
    color: #667085;
}

.report-project-score {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
}

.report-project-score span,
.report-project-score small {
    color: #667085;
}

.report-project-score strong {
    color: #172033;
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
}

.report-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-project-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #475467;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.report-project-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.report-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.report-rank-card .card-body {
    display: grid;
    gap: 8px;
}

.report-rank-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f6;
}

.report-rank-row:last-child {
    border-bottom: 0;
}

.report-rank-index {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #206bc4;
    background: #eaf3ff;
    font-size: 12px;
    font-weight: 800;
}

.report-rank-name {
    overflow: hidden;
    color: #172033;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-rank-score {
    color: #172033;
    font-weight: 800;
}

.report-rank-meta {
    color: #667085;
    font-size: 12px;
}

.report-empty-line {
    padding: 16px 0;
    color: #667085;
    text-align: center;
}

.report-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.report-snapshot-grid .card {
    min-width: 0;
}

.report-workspace .nav-tabs {
    border-bottom: 0;
}

.score-detail-page {
    display: grid;
    gap: 16px;
}

.score-filter-card,
.score-result-card,
.score-empty-card {
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.score-filter-card {
    padding: 18px;
    background:
        linear-gradient(180deg, #ffffff 0, #fbfdff 100%);
}

.score-filter-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.detail-kicker {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.score-filter-head h3,
.score-result-head h3,
.score-empty-card h3 {
    margin: 0;
    color: #172033;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
}

.score-filter-head p,
.score-empty-card p,
.score-section-title p {
    margin: 6px 0 0;
    color: #667085;
    line-height: 1.55;
}

.score-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.score-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
}

.score-empty-card {
    padding: 40px 24px;
    text-align: center;
}

.score-empty-card p {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.score-empty-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #206bc4;
    background: #eaf3ff;
    font-size: 26px;
}

.score-result-card {
    overflow: hidden;
}

.score-result-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eef2f6;
    background: #fbfdff;
}

.detail-scope-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.score-section {
    border-bottom: 1px solid #eef2f6;
}

.score-section-title {
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
}

.score-section-title h4 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
}

.detail-table td,
.detail-table th {
    vertical-align: middle;
}

.detail-table thead th {
    color: #667085;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
}

.detail-table tbody tr:hover {
    background: #fbfdff;
}

.detail-score-badge {
    display: inline-flex;
    min-width: 52px;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: #174f92;
    background: #eaf3ff;
    font-weight: 800;
}

.score-bottom-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: #fbfdff;
}

.score-bottom-summary > div {
    min-width: 0;
    padding: 18px;
    border-left: 1px solid #eef2f6;
}

.score-bottom-summary > div:first-child {
    border-left: 0;
    background: #f3f8ff;
}

.score-bottom-summary span,
.score-bottom-summary strong,
.score-bottom-summary small {
    display: block;
}

.score-bottom-summary span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.score-bottom-summary strong {
    margin-top: 6px;
    color: #172033;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 850;
}

.score-summary-primary strong {
    color: #206bc4;
    font-size: 32px;
}

.score-bottom-summary small {
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
}

.report-progress {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 180px;
}

.report-progress .progress {
    min-width: 88px;
    background: #edf1f5;
}

.report-drill-page {
    display: grid;
    gap: 16px;
}

.report-subnav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.report-subnav-item {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    color: #344054;
    background: #fff;
    text-decoration: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}

.report-subnav-item:hover,
.report-subnav-item.active {
    color: #174f92;
    border-color: #8bb9ee;
    background: #f3f8ff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.report-subnav-item i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #206bc4;
    background: #eaf3ff;
    font-size: 17px;
}

.report-subnav-item span {
    font-weight: 800;
}

.report-toolbar-card,
.report-detail-hero {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.report-toolbar-card h3,
.report-detail-hero h3 {
    margin: 0;
    color: #172033;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 850;
}

.report-toolbar-card p,
.report-detail-hero p {
    margin: 6px 0 0;
    color: #667085;
}

.report-toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 760px;
}

.report-toolbar-controls .form-select,
.report-toolbar-controls .form-control {
    min-width: 190px;
}

.report-list-card {
    overflow: hidden;
}

.report-name-link {
    color: #172033;
    font-weight: 800;
    text-decoration: none !important;
}

.report-name-link:hover {
    color: #206bc4;
}

.report-stat-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
}

.report-stat-strip > div {
    min-width: 0;
    padding: 18px;
    border-left: 1px solid #eef2f6;
}

.report-stat-strip > div:first-child {
    border-left: 0;
}

.report-stat-strip > div.is-primary {
    background: #f3f8ff;
}

.report-stat-strip span,
.report-stat-strip strong,
.report-stat-strip small {
    display: block;
}

.report-stat-strip span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.report-stat-strip strong {
    margin-top: 6px;
    color: #172033;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 850;
}

.report-stat-strip .is-primary strong {
    color: #206bc4;
    font-size: 32px;
}

.report-stat-strip small {
    margin-top: 5px;
    color: #667085;
}

.report-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.report-break-card .card-body {
    display: grid;
    gap: 8px;
}

.report-break-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    color: inherit;
    text-decoration: none !important;
}

.report-break-row:last-child {
    border-bottom: 0;
}

.report-break-row:hover strong {
    color: #206bc4;
}

.report-break-row strong,
.report-break-row small {
    display: block;
}

.report-break-row strong {
    color: #172033;
    font-weight: 800;
}

.report-break-row small {
    margin-top: 3px;
    color: #667085;
}

.student-shell {
    align-items: flex-start;
    background:
        linear-gradient(180deg, #eef6ff 0, #f7fafc 48%, #ffffff 100%);
}

.student-mobile-shell {
    width: 100%;
    max-width: 780px;
    padding: 28px 0;
}

.survey-card {
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.survey-card h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.3;
}

.student-hero {
    text-align: center;
    margin-bottom: 22px;
}

.student-hero-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #eaf3ff;
    color: #206bc4;
    font-size: 28px;
}

.student-hero-icon--entry {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #eaf3ff;
    color: #206bc4;
    box-shadow: inset 0 0 0 1px rgba(32, 107, 196, .08);
}

.student-hero-icon .bi {
    font-size: 30px;
    line-height: 1;
}

.student-login-card .alert .bi {
    color: #206bc4;
    font-size: 18px;
    line-height: 1;
    vertical-align: -2px;
}

.student-login-card .student-class-select,
.student-login-card .form-control-lg {
    min-height: 46px;
}

.student-login-card select.student-class-select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 38px 11px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    color: #374151;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 12px;
    box-shadow: 0 1px 1px rgba(31, 41, 55, .06);
    font-size: 16px;
    line-height: 20px;
    appearance: none;
}

.student-login-card .ts-wrapper.student-class-select {
    position: relative;
    display: block;
    height: auto;
    min-height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
}

.student-login-card .ts-control,
.student-login-card .ts-wrapper.student-class-select.single.input-active .ts-control,
.student-login-card .ts-wrapper.single.input-active .ts-control {
    min-height: 46px;
    padding: 11px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    color: #374151;
    background-color: #fff !important;
    box-shadow: 0 1px 1px rgba(31, 41, 55, .06);
    font-size: 16px;
    line-height: 20px;
    width: 100%;
}

.student-login-card .ts-wrapper.single .ts-control {
    padding-right: 38px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 12px !important;
}

.student-login-card .ts-wrapper.focus .ts-control {
    border-color: #8bb9ee;
    box-shadow: 0 0 0 .25rem rgba(32, 107, 196, .14);
}

.student-login-card .ts-dropdown,
.student-login-card .ts-dropdown-content {
    background: #fff !important;
}

.student-login-card .ts-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: auto !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #dce3ea;
    border-radius: 8px !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .14);
    transform-origin: top center;
    animation: studentDropdownIn .16s ease-out;
    z-index: 1050;
}

.student-login-card .ts-dropdown.student-dropdown-leaving {
    display: block !important;
    pointer-events: none;
    animation: studentDropdownOut .14s ease-in forwards;
}

.student-login-card .ts-dropdown .dropdown-input {
    width: calc(100% - 16px);
    margin: 8px;
    border: 1px solid #dce3ea;
    border-radius: 8px !important;
    background: #fff !important;
}

.student-login-card .ts-dropdown .option,
.student-login-card .ts-dropdown .no-results {
    padding: 10px 14px;
    font-size: 15px;
}

.student-login-card .ts-dropdown .active {
    color: #0f3b66;
    background: #eaf3ff;
}

@keyframes studentDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes studentDropdownOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.student-login-card .btn-lg {
    min-height: 48px;
    font-weight: 700;
}

.student-task-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.student-task-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.student-task-actions form {
    margin: 0;
}

.student-empty-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 50%;
    color: #2fb344;
    background: #eaf8ee;
}

.student-empty-success-icon::before {
    content: "";
    width: 16px;
    height: 28px;
    border: solid #2fb344;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg) translate(-1px, -2px);
}

.task-card {
    display: block;
    padding: 16px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.task-card + .task-card {
    margin-top: 10px;
}

.task-card:hover {
    color: inherit;
    border-color: #8bb9ee;
    text-decoration: none !important;
}

.task-card:hover * {
    text-decoration: none !important;
}

.class-score-list {
    display: grid;
    gap: 10px;
}

.class-score-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
}

.class-score-teacher {
    min-width: 0;
}

.class-score-teacher strong,
.class-score-teacher small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.class-score-teacher small {
    margin-top: 4px;
    color: #667085;
}

.class-score-input .form-control,
.class-score-input .form-select {
    min-height: 46px;
    border-radius: 8px;
}

.class-score-input .form-control.is-invalid {
    border-color: #d63939;
    box-shadow: 0 0 0 .25rem rgba(214, 57, 57, .12);
}

.class-score-input .form-control.is-invalid ~ .invalid-feedback {
    display: block;
    margin-top: 6px;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.rating-grid .form-selectgroup-item {
    min-width: 0;
}

.rating-grid .form-selectgroup-label {
    min-height: 58px;
    justify-content: center;
    text-align: center;
    touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
    .admin-main {
        transition: margin-left .01ms linear;
    }

    .admin-main > .page-body > .container-xl,
    .admin-shell .ts-control,
    .student-login-card .ts-dropdown,
    .admin-shell.admin-pjax-loading .admin-topbar::after,
    .admin-shell.admin-page-leaving .admin-main > .page-body > .container-xl,
    .admin-shell.admin-page-entering .admin-main > .page-body > .container-xl {
        animation: none;
        transition: none;
    }

    .admin-shell.admin-page-leaving .admin-main > .page-body > .container-xl,
    .admin-shell.admin-page-entering .admin-main > .page-body > .container-xl {
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .management-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-inline-card .card-body {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .settings-inline-switch,
    .settings-inline-note,
    .settings-inline-action {
        grid-column: 2;
        justify-self: start;
    }

    .score-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-summary-grid,
    .report-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-home-hero {
        grid-template-columns: 1fr;
    }

    .report-dashboard-head,
    .report-panel-head {
        flex-direction: column;
    }

    .report-dashboard-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .report-kpi-grid,
    .report-analysis-grid,
    .report-workbench-grid {
        grid-template-columns: 1fr;
    }

    .report-entry-grid.is-compact,
    .report-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-chart-board {
        grid-template-columns: 1fr;
    }

    .report-focus-card {
        grid-template-columns: 1fr;
    }

    .report-entry-grid,
    .report-project-grid,
    .report-rank-grid,
    .report-subnav,
    .report-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .report-toolbar-card,
    .report-detail-hero {
        flex-direction: column;
    }

    .report-toolbar-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .report-toolbar-controls .form-select,
    .report-toolbar-controls .form-control {
        flex: 1 1 220px;
    }

    .report-stat-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-log-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-log-summary > div:nth-child(2n + 1) {
        border-left: 0;
    }

    .score-bottom-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .score-bottom-summary > div:nth-child(3n + 1) {
        border-left: 0;
    }

    .teaching-lesson-row {
        grid-template-columns: 1fr;
    }

    .teaching-lesson-row .btn-icon {
        justify-self: end;
    }

}

@media (max-width: 767.98px) {
    .auth-shell,
    .student-shell {
        padding: 12px;
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 280px;
        min-height: 100vh;
        max-height: none;
        overflow-y: auto;
        transform: translateX(-280px);
    }

    .admin-sidebar .navbar-brand {
        padding: 14px 16px 8px;
    }

    .admin-sidebar .navbar-nav {
        display: block;
        gap: 4px;
        overflow-x: visible;
        padding: 8px 0 20px;
    }

    .admin-sidebar .nav-link {
        border-left: 3px solid transparent;
        border-radius: 8px;
        padding: 10px 12px;
    }

    .admin-sidebar .nav-link-icon {
        display: inline-block !important;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar {
        transform: translateX(-280px);
    }

    .admin-shell.sidebar-collapsed .admin-main {
        margin-left: 0;
    }

    .teaching-tree-toolbar {
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: center;
    }

    .teaching-tree-toolbar .btn {
        grid-column: 2;
        align-self: flex-start;
    }

    .teaching-class-node > summary {
        grid-template-columns: 24px minmax(0, 1fr) 34px;
    }

    .teaching-class-node > summary .badge {
        grid-column: 2;
        justify-self: start;
    }

    .admin-shell.sidebar-open:not(.sidebar-collapsed) .admin-sidebar {
        transform: translateX(0) !important;
    }

    .admin-shell.sidebar-open .admin-sidebar-overlay {
        display: block;
    }

    .admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .38);
        z-index: 1020;
    }

    .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 1010;
        min-height: 56px;
        box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
    }

    .admin-topbar .container-xl {
        min-height: 56px;
        padding-right: 12px;
        padding-left: 12px;
        gap: 9px;
    }

    .admin-topbar .ms-auto {
        flex: 0 0 auto;
        margin-left: 0 !important;
        gap: 6px !important;
    }

    .admin-user .avatar {
        width: 32px;
        height: 32px;
    }

    .admin-main .page-body {
        margin-top: 0;
        padding-top: 10px;
        padding-bottom: 24px;
    }

    .page-header.admin-page-header {
        margin: 0;
        padding-bottom: 10px;
    }

    .admin-page-header--no-actions {
        display: none;
    }

    .admin-page-header .row {
        flex-direction: column;
        align-items: stretch !important;
    }

    .admin-page-header .col,
    .admin-page-actions {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .admin-page-header .page-pretitle,
    .admin-page-header .page-title {
        display: none;
    }

    .admin-page-header .page-title {
        word-break: keep-all;
    }

    .admin-page-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .live-log-hero {
        flex-direction: column;
    }

    .live-log-status {
        align-self: flex-start;
    }

    .live-log-detail-header {
        flex-direction: column;
    }

    .live-log-summary {
        grid-template-columns: 1fr;
    }

    .live-log-summary > div,
    .live-log-summary > div:nth-child(2n + 1) {
        border-top: 1px solid #eef2f6;
        border-left: 0;
    }

    .live-log-summary > div:first-child {
        border-top: 0;
    }

    .admin-page-actions .btn {
        justify-content: center;
        min-width: 0;
        min-height: 38px;
        padding-right: 10px;
        padding-left: 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
    }

    .report-subnav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .report-subnav-item {
        min-height: 46px;
        padding: 10px;
    }

    .report-toolbar-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-toolbar-controls .form-select,
    .report-toolbar-controls .form-control,
    .report-toolbar-controls .btn {
        width: 100%;
        min-width: 0;
    }

    .report-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-stat-strip > div:nth-child(odd) {
        border-left: 0;
    }

    .metric-card .card-body {
        min-height: 118px;
        padding: 14px;
    }

    .metric-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 9px;
        font-size: 18px;
    }

    .dashboard-metrics {
        --tblr-gutter-x: 10px;
        --tblr-gutter-y: 10px;
    }

    .dashboard-metrics > [class*="col-"] {
        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;
    }

    .dashboard-metrics .h2 {
        font-size: 20px;
        line-height: 1.2;
    }

    .dashboard-metrics .subheader {
        font-size: 12px;
        line-height: 1.4;
    }

    .dashboard-metrics .text-secondary {
        font-size: 11px;
        line-height: 1.35;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        min-height: 0;
        grid-template-columns: 40px 1fr;
    }

    .workflow-step .badge {
        grid-column: 2;
        justify-self: flex-start;
    }

    .student-mobile-shell {
        padding: 10px 0;
    }

    .survey-card {
        padding: 20px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    }

    .survey-card h1 {
        font-size: 22px;
    }

    .student-task-header {
        flex-direction: column;
        gap: 12px;
    }

    .student-task-actions {
        width: 100%;
        justify-content: space-between;
    }

    .rating-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .rating-grid .form-selectgroup-label {
        min-height: 52px;
        padding: 10px 6px !important;
    }

    .class-score-item {
        grid-template-columns: 1fr;
    }

    .class-score-input .form-control {
        width: 100%;
    }

    .report-summary-grid,
    .report-snapshot-grid {
        grid-template-columns: 1fr;
    }

    .report-hero-kpis {
        grid-template-columns: 1fr;
    }

    .report-dashboard {
        padding: 16px;
    }

    .report-dashboard-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .report-kpi-grid,
    .report-entry-grid.is-compact,
    .report-insight-grid {
        grid-template-columns: 1fr;
    }

    .report-panel {
        padding: 14px;
    }

    .report-chart--large,
    .report-chart--compact {
        min-height: 240px;
    }

    .report-chart-card {
        min-height: 300px;
        padding: 14px;
    }

    .report-chart {
        min-height: 230px;
    }

    .report-hero-kpis > div,
    .report-hero-kpis > div:nth-child(-n + 2),
    .report-hero-kpis > div:nth-child(odd) {
        border-top: 1px solid #eef2f6;
        border-left: 0;
    }

    .report-hero-kpis > div:first-child {
        border-top: 0;
    }

    .report-hero-actions,
    .report-project-actions,
    .report-focus-actions {
        width: 100%;
    }

    .report-hero-actions .btn,
    .report-project-actions .btn,
    .report-focus-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .report-card-actions {
        width: 100%;
        justify-content: stretch;
    }

    .report-card-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .score-filter-card,
    .score-result-head,
    .score-section-title {
        padding: 16px;
    }

    .score-filter-head,
    .score-result-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .score-filter-actions {
        justify-content: stretch;
    }

    .score-filter-actions .btn,
    .score-result-head .btn {
        width: 100%;
        justify-content: center;
    }

    .score-filter-grid,
    .score-bottom-summary {
        grid-template-columns: 1fr;
    }

    .score-bottom-summary > div,
    .score-bottom-summary > div:nth-child(3n + 1) {
        border-top: 1px solid #eef2f6;
        border-left: 0;
    }

    .score-bottom-summary > div:first-child {
        border-top: 0;
    }

}
