/* Sticky-inspired shell for the teacher portal. */
.teacher-app {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
}

.teacher-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--bs-body-bg) 96%, transparent);
    border-bottom: 1px solid var(--bs-border-color-translucent);
    backdrop-filter: blur(14px);
}

.teacher-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.teacher-brand,
.teacher-login-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--bs-emphasis-color);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.teacher-brand__mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--bs-primary, #206bc4);
    font-size: 1.25rem;
    font-weight: 800;
}

.teacher-brand__text,
.teacher-login-brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.teacher-brand small,
.teacher-login-brand small {
    margin-top: .2rem;
    color: var(--bs-secondary-color);
    font-size: .7rem;
    font-weight: 500;
}

.teacher-sidebar-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
}

.teacher-sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

.teacher-sidebar {
    --bs-offcanvas-width: min(320px, 88vw);
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
}

.teacher-sidebar__header {
    min-height: 76px;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.teacher-sidebar__identity {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.teacher-sidebar__identity h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.teacher-sidebar__identity small {
    color: var(--bs-secondary-color);
}

.teacher-sidebar__label {
    margin: .5rem 0 .6rem;
    color: var(--bs-secondary-color);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.teacher-sidebar__nav {
    display: grid;
    gap: .35rem;
}

.teacher-sidebar__link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: .7rem .85rem;
    border-radius: 12px;
    color: var(--bs-body-color);
    text-decoration: none;
    font-weight: 600;
}

.teacher-sidebar__link.is-active {
    color: var(--bs-primary, #206bc4);
    background: var(--bs-primary-bg-subtle, #e8f1fb);
}

.teacher-sidebar__link.is-disabled {
    color: var(--bs-secondary-color);
    opacity: .55;
}

.teacher-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}

.teacher-header-user {
    max-width: 150px;
    overflow: hidden;
    color: var(--bs-secondary-color);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .875rem;
}

.teacher-theme-toggle,
.teacher-header-login,
.teacher-logout {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .45rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 11px;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
}

.teacher-theme-toggle {
    width: 40px;
    padding: 0;
    font-size: 1.1rem;
}

.teacher-logout svg {
    width: 17px;
    height: 17px;
}

.teacher-main {
    width: 100%;
    flex: 1 0 auto;
    padding: 1.25rem 0;
}

.teacher-main-container {
    min-height: inherit;
}

.teacher-main-dashboard {
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    padding-bottom: 108px;
}

.teacher-main-portal {
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    padding-bottom: 108px;
}

.teacher-schedule-page {
    display: grid;
    gap: 1.25rem;
}

.teacher-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: .25rem 0;
}

.teacher-page-heading h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 750;
    letter-spacing: -.035em;
}

.teacher-page-heading p:last-child {
    margin: 0;
    color: var(--bs-secondary-color);
}

.teacher-schedule-total {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    padding: .65rem .85rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 13px;
    background: var(--bs-body-bg);
    white-space: nowrap;
}

.teacher-schedule-total strong {
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.teacher-schedule-total span {
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.teacher-week-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.teacher-day-panel {
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 17px;
    background: var(--bs-body-bg);
}

.teacher-day-panel.is-today {
    border-color: color-mix(in srgb, var(--bs-primary) 42%, var(--bs-border-color));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bs-primary) 8%, transparent);
}

.teacher-day-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.teacher-day-heading > div {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.teacher-day-heading h2 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
}

.teacher-day-heading > div > span {
    padding: .22rem .45rem;
    border-radius: 8px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
    font-size: .65rem;
    font-weight: 700;
}

.teacher-day-count {
    color: var(--bs-secondary-color);
    font-size: .7rem;
}

.teacher-day-sessions {
    display: grid;
}

.teacher-session-card {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    gap: .8rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.teacher-session-card:last-child {
    padding-bottom: .15rem;
    border-bottom: 0;
}

.teacher-session-time strong,
.teacher-session-time span {
    display: block;
    font-variant-numeric: tabular-nums;
}

.teacher-session-time strong {
    font-size: .83rem;
}

.teacher-session-time span {
    margin-top: .15rem;
    color: var(--bs-secondary-color);
    font-size: .73rem;
}

.teacher-session-info h3 {
    margin: 0 0 .2rem;
    font-size: .84rem;
    font-weight: 700;
}

.teacher-session-info p {
    margin: 0 0 .25rem;
    color: var(--bs-secondary-color);
    font-size: .77rem;
}

.teacher-session-room,
.teacher-session-info small {
    display: block;
    color: var(--bs-tertiary-color);
    font-size: .7rem;
}

.teacher-session-info small {
    margin-top: .3rem;
}

.teacher-day-empty {
    margin: 0;
    padding: 1rem 0 .25rem;
    color: var(--bs-tertiary-color);
    font-size: .75rem;
}

.teacher-schedule-empty {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.teacher-schedule-empty > span {
    color: var(--bs-primary);
    font-size: 2rem;
}

.teacher-schedule-empty h2 {
    margin: .5rem 0 .35rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.teacher-schedule-empty p {
    max-width: 420px;
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: .85rem;
}

.teacher-attendance-page,
.teacher-attendance-detail {
    display: grid;
    gap: 1.25rem;
}

.teacher-attendance-create .teacher-panel-icon {
    font-size: 1.15rem;
    font-weight: 800;
}

.teacher-attendance-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(120px, 1fr)) auto;
    align-items: end;
    gap: .85rem;
}

.teacher-attendance-field label {
    display: block;
    margin-bottom: .4rem;
    font-size: .75rem;
    font-weight: 650;
}

.teacher-attendance-field label span {
    color: var(--bs-secondary-color);
    font-weight: 400;
}

.teacher-attendance-field .form-control,
.teacher-attendance-field .form-select {
    min-height: 43px;
    border-radius: 11px;
}

.teacher-attendance-submit .btn {
    min-height: 43px;
    white-space: nowrap;
}

.teacher-history-count {
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.teacher-attendance-list {
    display: grid;
}

.teacher-attendance-row {
    display: grid;
    grid-template-columns: 48px minmax(150px, 1fr) minmax(120px, 1.1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .85rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-attendance-date {
    width: 44px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
}

.teacher-attendance-date strong {
    font-size: 1rem;
    line-height: 1;
}

.teacher-attendance-date span {
    margin-top: .2rem;
    font-size: .62rem;
    text-transform: uppercase;
}

.teacher-attendance-session-info strong,
.teacher-attendance-session-info span {
    display: block;
}

.teacher-attendance-session-info strong {
    font-size: .82rem;
}

.teacher-attendance-session-info span {
    margin-top: .2rem;
    color: var(--bs-secondary-color);
    font-size: .72rem;
}

.teacher-attendance-progress-label {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .35rem;
    color: var(--bs-secondary-color);
    font-size: .67rem;
}

.teacher-attendance-progress-label strong {
    color: var(--bs-body-color);
}

.teacher-attendance-progress-wrap .progress {
    height: 6px;
    background: var(--bs-tertiary-bg);
}

.teacher-attendance-action {
    white-space: nowrap;
}

.teacher-history-note {
    margin: .5rem 0 0;
    color: var(--bs-secondary-color);
    font-size: .7rem;
}

.teacher-roster-panel form {
    display: grid;
    gap: 1rem;
}

.teacher-roster-list {
    display: grid;
}

.teacher-roster-row {
    display: grid;
    grid-template-columns: 40px minmax(130px, 1fr) minmax(150px, .65fr) minmax(170px, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .7rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-roster-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
    font-weight: 750;
}

.teacher-roster-student strong,
.teacher-roster-student small {
    display: block;
}

.teacher-roster-student strong {
    font-size: .8rem;
}

.teacher-roster-student small {
    margin-top: .18rem;
    color: var(--bs-secondary-color);
    font-size: .68rem;
}

.teacher-roster-status .form-select,
.teacher-roster-note .form-control {
    min-height: 40px;
    border-radius: 10px;
    font-size: .78rem;
}

.teacher-roster-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-roster-footer p {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: .72rem;
}

.teacher-grades-page,
.teacher-grade-entry-page {
    display: grid;
    gap: 1.25rem;
}

.teacher-grade-create .teacher-panel-icon,
.teacher-component-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

.teacher-grade-create-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: .85rem;
}

.teacher-grade-field label {
    display: block;
    margin-bottom: .4rem;
    font-size: .75rem;
    font-weight: 650;
}

.teacher-grade-field .form-control,
.teacher-grade-field .form-select {
    min-height: 43px;
    border-radius: 11px;
}

.teacher-grade-field--wide {
    grid-column: span 2;
}

.teacher-grade-submit .btn {
    min-height: 43px;
    white-space: nowrap;
}

.teacher-component-list,
.teacher-score-list {
    display: grid;
}

.teacher-component-row {
    display: grid;
    grid-template-columns: 40px minmax(180px, 1fr) minmax(130px, .65fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .85rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-component-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
}

.teacher-component-info {
    min-width: 0;
}

.teacher-component-info strong,
.teacher-component-info span,
.teacher-component-info small {
    display: block;
}

.teacher-component-info strong {
    font-size: .82rem;
}

.teacher-component-info span {
    margin-top: .15rem;
    color: var(--bs-body-color);
    font-size: .74rem;
}

.teacher-component-info small {
    margin-top: .18rem;
    color: var(--bs-secondary-color);
    font-size: .68rem;
}

.teacher-component-summary .progress {
    height: 6px;
    background: var(--bs-tertiary-bg);
}

.teacher-component-summary > small {
    display: block;
    margin-top: .3rem;
    color: var(--bs-secondary-color);
    font-size: .64rem;
}

.teacher-component-action {
    white-space: nowrap;
}

.teacher-grade-table {
    margin: 0;
    font-size: .75rem;
}

.teacher-grade-table thead th {
    padding: .65rem .7rem;
    border-bottom-color: var(--bs-border-color-translucent);
    color: var(--bs-secondary-color);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.teacher-grade-table tbody td {
    padding: .75rem .7rem;
}

.teacher-grade-table td strong,
.teacher-grade-table td small {
    display: block;
}

.teacher-grade-table td small {
    margin-top: .16rem;
    color: var(--bs-secondary-color);
    font-size: .66rem;
}

.teacher-grade-entry-panel form {
    display: grid;
    gap: 1rem;
}

.teacher-score-row {
    display: grid;
    grid-template-columns: 40px minmax(150px, 1fr) minmax(110px, .35fr) minmax(170px, .8fr);
    align-items: center;
    gap: .75rem;
    padding: .7rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-score-input .form-control,
.teacher-score-note .form-control {
    min-height: 40px;
    border-radius: 10px;
    font-size: .78rem;
}

.teacher-score-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-score-footer p {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: .72rem;
}

.teacher-account-page {
    display: grid;
    gap: 1.25rem;
}

.teacher-account-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 16%, var(--bs-border-color));
    border-radius: 20px;
    background: linear-gradient(110deg, color-mix(in srgb, var(--bs-primary) 9%, var(--bs-body-bg)), var(--bs-body-bg) 75%);
}

.teacher-account-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    color: #fff;
    background: var(--bs-primary);
    font-size: 1.45rem;
    font-weight: 750;
}

.teacher-account-identity {
    min-width: 0;
}

.teacher-account-identity .teacher-eyebrow {
    margin-bottom: .25rem;
}

.teacher-account-identity h2 {
    margin: 0 0 .2rem;
    font-size: 1.15rem;
    font-weight: 750;
}

.teacher-account-identity > p:last-child {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: .78rem;
}

.teacher-account-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
    padding: .4rem .65rem;
    border-radius: 999px;
    color: var(--bs-success-text-emphasis);
    background: var(--bs-success-bg-subtle);
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.teacher-account-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bs-success);
}

.teacher-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    align-items: start;
    gap: 1.25rem;
}

.teacher-profile-list,
.teacher-login-info-list {
    margin: 0;
}

.teacher-profile-item,
.teacher-login-info-list > div {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr);
    gap: 1rem;
    padding: .7rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-profile-item dt,
.teacher-login-info-list dt {
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 500;
}

.teacher-profile-item dd,
.teacher-login-info-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: .78rem;
    font-weight: 600;
}

.teacher-profile-hint {
    margin: .8rem 0 0;
    padding: .75rem;
    border-radius: 11px;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    font-size: .7rem;
}

.teacher-account-security-column {
    display: grid;
    gap: 1.25rem;
}

.teacher-password-intro {
    margin: -.35rem 0 1rem;
    color: var(--bs-secondary-color);
    font-size: .76rem;
    line-height: 1.5;
}

.teacher-password-form {
    display: grid;
    gap: .85rem;
}

.teacher-password-form .form-label {
    margin-bottom: .35rem;
    font-size: .74rem;
    font-weight: 650;
}

.teacher-password-form .form-control {
    min-height: 43px;
    border-radius: 11px;
}

.teacher-dashboard {
    min-height: 1px;
    display: grid;
    gap: 1.25rem;
    padding-top: .25rem;
}

.teacher-welcome-card {
    min-height: 156px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 14%, var(--bs-border-color));
    border-radius: 22px;
    background: linear-gradient(115deg, color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg)), var(--bs-body-bg) 72%);
}

.teacher-welcome-card h1 {
    margin: 0 0 .45rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 750;
    letter-spacing: -.035em;
}

.teacher-welcome-card p:last-child {
    margin: 0;
    color: var(--bs-secondary-color);
}

.teacher-welcome-separator {
    padding-inline: .35rem;
}

.teacher-welcome-badge {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 16%, transparent);
    border-radius: 24px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg));
    font-size: 2rem;
}

.teacher-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.teacher-stat-card,
.teacher-panel {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 18px;
    background: var(--bs-body-bg);
    box-shadow: 0 5px 20px rgba(26, 44, 74, .035);
}

.teacher-stat-card {
    min-height: 126px;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.1rem;
}

.teacher-stat-icon,
.teacher-panel-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
}

.teacher-stat-icon svg,
.teacher-panel-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.teacher-stat-card p {
    margin: .05rem 0 .35rem;
    color: var(--bs-secondary-color);
    font-size: .78rem;
    font-weight: 600;
}

.teacher-stat-card strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.05;
    font-weight: 750;
}

.teacher-stat-card small {
    display: block;
    margin-top: .3rem;
    color: var(--bs-tertiary-color);
    font-size: .7rem;
}

.teacher-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
    gap: 1.25rem;
    align-items: start;
}

.teacher-panel {
    padding: 1.25rem;
}

.teacher-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.teacher-panel-heading .teacher-eyebrow {
    margin-bottom: .3rem;
}

.teacher-panel-heading h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.teacher-panel-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.teacher-schedule-list,
.teacher-class-list,
.teacher-announcement-list {
    display: grid;
}

.teacher-schedule-row {
    min-height: 72px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-schedule-time strong,
.teacher-schedule-time span,
.teacher-schedule-details strong,
.teacher-schedule-details span {
    display: block;
}

.teacher-schedule-time strong {
    font-size: .84rem;
    font-variant-numeric: tabular-nums;
}

.teacher-schedule-time span,
.teacher-schedule-details span {
    margin-top: .15rem;
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.teacher-schedule-details strong {
    font-size: .86rem;
}

.teacher-day-pill {
    padding: .35rem .55rem;
    border-radius: 9px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 9%, var(--bs-body-bg));
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.teacher-class-row {
    min-height: 65px;
    display: flex;
    align-items: center;
    gap: .7rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.teacher-class-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
    font-weight: 750;
}

.teacher-class-row > div {
    min-width: 0;
}

.teacher-class-row strong,
.teacher-class-row small {
    display: block;
}

.teacher-class-row strong {
    font-size: .84rem;
}

.teacher-class-row small,
.teacher-class-count {
    color: var(--bs-secondary-color);
    font-size: .72rem;
}

.teacher-class-count {
    margin-left: auto;
    white-space: nowrap;
}

.teacher-empty-state {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
}

.teacher-empty-state > span {
    margin-bottom: .45rem;
    color: var(--bs-primary);
    font-size: 1.5rem;
}

.teacher-empty-state p {
    margin: 0 0 .2rem;
    font-size: .84rem;
    font-weight: 650;
}

.teacher-empty-state small {
    max-width: 300px;
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.teacher-empty-state--compact {
    min-height: 70px;
    align-items: flex-start;
    padding: .5rem 0;
    text-align: left;
}

.teacher-announcement-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.teacher-announcement {
    display: flex;
    gap: .7rem;
    padding: .9rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 14px;
    background: var(--bs-tertiary-bg);
}

.teacher-announcement-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: .35rem;
    border-radius: 50%;
    background: var(--bs-primary);
}

.teacher-announcement > div {
    min-width: 0;
    flex: 1;
}

.teacher-announcement h3 {
    margin: 0 0 .35rem;
    font-size: .82rem;
    font-weight: 700;
}

.teacher-announcement p {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: .74rem;
    line-height: 1.5;
}

.teacher-announcement time {
    color: var(--bs-tertiary-color);
    font-size: .68rem;
    white-space: nowrap;
}

.teacher-bottom-nav {
    position: fixed;
    right: 50%;
    bottom: 16px;
    z-index: 1040;
    display: flex;
    width: min(620px, calc(100% - 40px));
    min-height: 70px;
    justify-content: space-around;
    padding: .4rem .5rem;
    transform: translateX(50%);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--bs-body-bg) 97%, transparent);
    box-shadow: 0 8px 32px rgba(26, 44, 74, .12);
    backdrop-filter: blur(14px);
}

.teacher-bottom-nav__item {
    flex: 1 1 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    border-radius: 12px;
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-size: .68rem;
    font-weight: 600;
}

.teacher-bottom-nav__item svg {
    width: 21px;
    height: 21px;
}

.teacher-bottom-nav__item.active-nav {
    color: var(--bs-primary, #206bc4);
}

.teacher-bottom-nav__item.is-disabled {
    opacity: .45;
    cursor: default;
}

.teacher-login-page {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 12% 10%, rgba(32, 107, 196, .09), transparent 36%),
        var(--bs-tertiary-bg);
}

.teacher-main-login {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.teacher-login-container {
    width: min(100%, 460px);
    margin: 0 auto;
}

.teacher-login-shell {
    width: 100%;
}

.teacher-login-card {
    padding: clamp(1.5rem, 6vw, 2.5rem);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 24px;
    background: var(--bs-body-bg);
    box-shadow: 0 24px 70px rgba(26, 44, 74, .12);
}

.teacher-login-brand {
    margin-bottom: 2.2rem;
}

.teacher-eyebrow {
    margin-bottom: .45rem;
    color: var(--bs-primary, #206bc4);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.teacher-login-heading h1 {
    margin-bottom: .4rem;
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -.03em;
}

.teacher-login-heading > p:last-child,
.teacher-login-help {
    color: var(--bs-secondary-color);
    font-size: .9rem;
}

.teacher-login-heading {
    margin-bottom: 1.6rem;
}

.teacher-login-form .form-control {
    min-height: 48px;
    border-radius: 12px;
}

.teacher-login-form .form-check {
    margin-top: .15rem;
}

.teacher-login-button {
    min-height: 50px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--bs-primary, #206bc4);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(32, 107, 196, .2);
}

.teacher-login-button:hover,
.teacher-login-button:focus-visible {
    color: #fff;
    background: color-mix(in srgb, var(--bs-primary, #206bc4) 88%, #000);
}

.teacher-login-help {
    margin-top: 1.25rem;
    text-align: center;
    line-height: 1.55;
}

@media (max-height: 680px) {
    .teacher-main-login {
        align-items: flex-start;
        padding-block: 1rem;
    }
}

@media (max-width: 767.98px) {
    .teacher-header__inner {
        min-height: 60px;
        padding-inline: 1rem;
    }

    .teacher-brand__mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
    }

    .teacher-header-actions {
        gap: .45rem;
    }

    .teacher-logout {
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .teacher-main-dashboard {
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .teacher-main-portal {
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .teacher-bottom-nav {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: calc(62px + env(safe-area-inset-bottom));
        padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom));
        transform: none;
        border-width: 1px 0 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -5px 18px rgba(26, 44, 74, .06);
    }

    .teacher-login-card {
        border-radius: 20px;
        box-shadow: 0 16px 44px rgba(26, 44, 74, .1);
    }
}

@media (max-width: 991.98px) {
    .teacher-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .teacher-announcement-list {
        grid-template-columns: 1fr;
    }

    .teacher-week-grid {
        grid-template-columns: 1fr;
    }

    .teacher-account-grid {
        grid-template-columns: 1fr;
    }

    .teacher-attendance-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-attendance-field--assignment {
        grid-column: 1 / -1;
    }

    .teacher-attendance-submit {
        grid-column: 1 / -1;
    }

    .teacher-attendance-submit .btn {
        width: 100%;
    }

    .teacher-grade-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-grade-field--wide {
        grid-column: 1 / -1;
    }

    .teacher-grade-submit {
        grid-column: 1 / -1;
    }

    .teacher-grade-submit .btn {
        width: 100%;
    }

    .teacher-component-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .teacher-component-summary {
        grid-column: 2 / 4;
    }

    .teacher-component-action {
        grid-column: 3;
        grid-row: 1;
        padding-inline: .5rem;
        font-size: .68rem;
    }

    .teacher-score-row {
        grid-template-columns: 38px minmax(0, 1fr) minmax(95px, .55fr);
        gap: .55rem;
    }

    .teacher-score-input {
        grid-column: 3;
        grid-row: 1;
    }

    .teacher-score-note {
        grid-column: 2 / 4;
    }

    .teacher-score-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-score-footer .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .teacher-page-heading {
        align-items: flex-start;
    }

    .teacher-account-hero {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 1rem;
    }

    .teacher-account-avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 15px;
    }

    .teacher-account-status {
        margin-left: 64px;
    }

    .teacher-profile-item,
    .teacher-login-info-list > div {
        grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
        gap: .6rem;
    }

    .teacher-page-heading p:last-child {
        max-width: 250px;
        font-size: .8rem;
    }

    .teacher-schedule-total {
        flex-direction: column;
        gap: 0;
        align-items: center;
        padding: .5rem .65rem;
    }

    .teacher-welcome-card {
        min-height: 0;
        padding: 1.25rem;
        border-radius: 18px;
    }

    .teacher-welcome-badge {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
        font-size: 1.4rem;
    }

    .teacher-stat-grid {
        gap: .65rem;
    }

    .teacher-stat-card {
        min-height: 112px;
        gap: .55rem;
        padding: .8rem;
    }

    .teacher-stat-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
    }

    .teacher-stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .teacher-stat-card p {
        font-size: .68rem;
    }

    .teacher-stat-card strong {
        font-size: 1.3rem;
    }

    .teacher-panel {
        padding: 1rem;
    }

    .teacher-attendance-row {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: .65rem;
    }

    .teacher-attendance-progress-wrap {
        grid-column: 2 / 4;
        grid-row: 2;
    }

    .teacher-attendance-action {
        grid-column: 3;
        grid-row: 1;
        padding-inline: .5rem;
        font-size: .68rem;
    }

    .teacher-roster-row {
        grid-template-columns: 38px minmax(0, 1fr) minmax(130px, .9fr);
        gap: .55rem;
    }

    .teacher-roster-status {
        grid-column: 2 / 4;
    }

    .teacher-roster-note {
        grid-column: 2 / 4;
    }

    .teacher-roster-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-roster-footer .btn {
        width: 100%;
    }

    .teacher-schedule-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: .55rem;
        padding-block: .55rem;
    }

    .teacher-day-pill {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-app *,
    .teacher-app *::before,
    .teacher-app *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

#grade-source-task-field[hidden], #grade-evidence-hint[hidden] { display: none !important; }
.teacher-component-type { display: inline-flex; align-items: center; width: fit-content; margin-top: .25rem; padding: .15rem .42rem; border-radius: 999px; color: var(--bs-primary); background: var(--bs-primary-bg-subtle); font-size: .6rem; font-weight: 700; }
.teacher-linked-assignment-info > p { margin: 0; color: var(--bs-secondary-color); font-size: .78rem; }
.teacher-evidence-form { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(230px, 1fr) minmax(180px, .8fr) auto; align-items: end; gap: .65rem; }
.teacher-evidence-form > div { min-width: 0; }
.teacher-evidence-form label { display: block; margin-bottom: .3rem; font-size: .7rem; font-weight: 650; }
.teacher-evidence-form .form-control, .teacher-evidence-form .form-select, .teacher-evidence-form .btn { min-height: 40px; border-radius: 9px; font-size: .7rem; }
.teacher-evidence-list { display: grid; gap: .5rem; margin-top: 1rem; }
.teacher-evidence-list h3 { margin: 0; font-size: .82rem; }
.teacher-evidence-list article { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--bs-border-color-translucent); }
.teacher-evidence-list article > span { min-width: 0; }
.teacher-evidence-list article strong, .teacher-evidence-list article small { display: block; overflow-wrap: anywhere; }
.teacher-evidence-list article strong { font-size: .72rem; }
.teacher-evidence-list article small, .teacher-evidence-empty { margin: .15rem 0 0; color: var(--bs-secondary-color); font-size: .64rem; }
.teacher-linked-score { justify-self: end; color: var(--bs-primary); font-size: .78rem; font-weight: 700; }
@media (max-width: 767.98px) {
    .teacher-evidence-form { grid-template-columns: 1fr 1fr; }
    .teacher-evidence-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .teacher-evidence-form { grid-template-columns: 1fr; }
    .teacher-evidence-form .btn { grid-column: auto; }
}

[data-bs-theme="dark"] .teacher-login-page {
    background:
        radial-gradient(ellipse at 12% 10%, rgba(32, 107, 196, .18), transparent 36%),
        var(--bs-body-bg);
}

[data-bs-theme="dark"] .teacher-login-card {
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
