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

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

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

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

.student-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);
    font-size: 1.2rem;
    font-weight: 800;
}

.student-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

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

.student-sidebar-toggle,
.student-theme-toggle,
.student-header-login,
.student-logout {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 650;
}

.student-sidebar-toggle {
    width: 42px;
    flex: 0 0 42px;
    padding: 0;
}

.student-sidebar-toggle svg,
.student-logout svg {
    width: 19px;
    height: 19px;
}

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

.student-header-login,
.student-logout {
    padding: .45rem .7rem;
}

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

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

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

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

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

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

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

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

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

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

.student-sidebar__link.is-active {
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

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

.student-bottom-nav {
    position: fixed;
    right: 50%;
    bottom: 16px;
    z-index: 1040;
    width: min(620px, calc(100% - 40px));
    min-height: 70px;
    display: flex;
    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);
}

.student-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: 650;
}

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

.student-bottom-nav__item.active-nav {
    color: var(--bs-primary);
}

.student-bottom-nav__item.is-disabled {
    opacity: .48;
    cursor: default;
}

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

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

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

.student-dashboard {
    display: grid;
    gap: 1.25rem;
}

.student-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%);
}

.student-eyebrow {
    margin: 0 0 .4rem;
    color: var(--bs-primary);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .11em;
}

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

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

.student-welcome-separator {
    padding-inline: .3rem;
}

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

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

.student-panel,
.student-stat-card {
    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);
}

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

.student-stat-icon,
.student-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));
}

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

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

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

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

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

.student-panel {
    min-width: 0;
    padding: 1.25rem;
}

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

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

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

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

.student-schedule-list,
.student-recent-grade-list,
.student-announcement-list {
    display: grid;
}

.student-schedule-row {
    min-height: 68px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: .65rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.student-schedule-time strong,
.student-schedule-time span,
.student-schedule-info strong,
.student-schedule-info span {
    display: block;
}

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

.student-schedule-time span,
.student-schedule-info span {
    margin-top: .15rem;
    color: var(--bs-secondary-color);
    font-size: .73rem;
}

.student-schedule-info strong {
    font-size: .83rem;
}

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

.student-schedule-row.is-today .student-schedule-time strong {
    color: var(--bs-primary);
}

.student-recent-grade {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.student-recent-grade > div strong,
.student-recent-grade > div span {
    display: block;
}

.student-recent-grade > div strong {
    font-size: .82rem;
}

.student-recent-grade > div span {
    margin-top: .18rem;
    color: var(--bs-secondary-color);
    font-size: .68rem;
}

.student-grade-score {
    color: var(--bs-primary);
    font-size: .9rem;
    white-space: nowrap;
}

.student-grade-score small {
    margin-left: .12rem;
    color: var(--bs-secondary-color);
    font-size: .65rem;
}

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

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

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

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

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

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

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

.student-empty-state {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
    text-align: center;
}

.student-empty-state > span {
    margin-bottom: .4rem;
    color: var(--bs-primary);
    font-size: 1.45rem;
}

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

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

.student-empty-state--compact {
    min-height: 65px;
    align-items: flex-start;
    padding: .35rem 0;
    text-align: left;
}

.student-enrollment-notice {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.15rem;
}

.student-enrollment-notice > div strong {
    font-size: .85rem;
}

.student-enrollment-notice p {
    margin: .2rem 0 0;
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.student-login-page {
    justify-content: center;
    background:
        radial-gradient(ellipse at 12% 10%, rgba(32, 107, 196, .09), transparent 36%),
        var(--bs-tertiary-bg);
}

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

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

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

.student-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);
}

.student-login-brand {
    margin-bottom: 2rem;
}

.student-login-heading {
    margin-bottom: 1.5rem;
}

.student-login-heading h1 {
    margin: 0 0 .4rem;
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: -.03em;
}

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

.student-login-form .form-label {
    margin-bottom: .4rem;
    font-size: .78rem;
    font-weight: 650;
}

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

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

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

.student-login-help {
    margin: 1.2rem 0 0;
    text-align: center;
    line-height: 1.55;
}

.student-schedule-page,
.student-attendance-page {
    display: grid;
    gap: 1.25rem;
}

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

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

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

.student-assignment-list { display: grid; gap: .85rem; }
.student-assignment-card { padding: 1rem; }
.student-assignment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.student-assignment-heading h2 { margin: .3rem 0 0; font-size: 1rem; font-weight: 750; }
.student-assignment-subject { color: var(--bs-primary); font-size: .68rem; font-weight: 650; }
.student-assignment-status { flex: 0 0 auto; padding: .3rem .55rem; border-radius: 999px; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); font-size: .62rem; font-weight: 700; }
.student-assignment-status.is-submitted { color: var(--bs-primary-text-emphasis); background: var(--bs-primary-bg-subtle); }
.student-assignment-status.is-done { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }
.student-assignment-status.is-late { color: var(--bs-danger-text-emphasis); background: var(--bs-danger-bg-subtle); }
.student-assignment-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .7rem; color: var(--bs-secondary-color); font-size: .65rem; }
.student-assignment-instructions { margin-top: .75rem; padding: .7rem .8rem; border-radius: 10px; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); font-size: .72rem; line-height: 1.55; white-space: normal; }
.student-assignment-submit { display: grid; justify-items: start; gap: .5rem; margin-top: .8rem; }
.student-assignment-submit label, .student-assignment-submitted > strong { font-size: .7rem; font-weight: 700; }
.student-assignment-submit .form-control { width: 100%; border-radius: 10px; font-size: .72rem; }
.student-assignment-submit .btn { border-radius: 9px; font-size: .7rem; font-weight: 700; }
.student-assignment-submit small { font-size: .62rem; }
.student-assignment-result { display: grid; gap: .25rem; margin-top: .8rem; padding: .7rem .8rem; border-radius: 10px; color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); font-size: .72rem; }
.student-assignment-result p, .student-assignment-submitted p { margin: 0; white-space: pre-wrap; font-size: .7rem; }
.student-assignment-submitted { display: grid; gap: .25rem; margin-top: .7rem; color: var(--bs-secondary-color); }

.student-page-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;
}

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

.student-page-total span,
.student-history-count {
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

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

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

.student-day-card.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);
}

.student-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);
}

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

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

.student-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;
}

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

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

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

.student-day-session:last-child {
    padding-bottom: .15rem;
    border-bottom: 0;
}

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

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

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

.student-session-info strong,
.student-session-info span,
.student-session-info small {
    display: block;
}

.student-session-info strong {
    font-size: .84rem;
}

.student-session-info span,
.student-session-info small,
.student-day-empty {
    margin-top: .2rem;
    color: var(--bs-secondary-color);
    font-size: .73rem;
}

.student-session-info small {
    color: var(--bs-tertiary-color);
}

.student-day-empty {
    margin-bottom: 0;
    padding: .9rem 0 .2rem;
}

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

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

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

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

.student-month-filter {
    display: flex;
    align-items: end;
    gap: .5rem;
}

.student-month-filter label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.student-month-filter .form-control,
.student-month-filter .btn {
    min-height: 42px;
    border-radius: 11px;
}

.student-attendance-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.student-attendance-stat {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 16px;
    background: var(--bs-body-bg);
}

.student-attendance-stat > span {
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 600;
}

.student-attendance-stat > strong {
    margin-top: .25rem;
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 750;
}

.student-attendance-stat > small {
    margin-top: .25rem;
    color: var(--bs-tertiary-color);
    font-size: .68rem;
}

.student-attendance-history .student-panel-heading {
    margin-bottom: .75rem;
}

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

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

.student-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));
}

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

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

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

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

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

.student-attendance-session-info small {
    margin-top: .15rem;
    color: var(--bs-tertiary-color);
    font-size: .67rem;
}

.student-attendance-status {
    padding: .38rem .62rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.student-attendance-status.is-present { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }
.student-attendance-status.is-late { color: var(--bs-warning-text-emphasis); background: var(--bs-warning-bg-subtle); }
.student-attendance-status.is-sick,
.student-attendance-status.is-dispensation { color: var(--bs-info-text-emphasis); background: var(--bs-info-bg-subtle); }
.student-attendance-status.is-permission { color: var(--bs-primary-text-emphasis); background: var(--bs-primary-bg-subtle); }
.student-attendance-status.is-absent { color: var(--bs-danger-text-emphasis); background: var(--bs-danger-bg-subtle); }
.student-attendance-status.is-unrecorded { color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); }

.student-attendance-note {
    grid-column: 2 / 4;
    margin: -.25rem 0 0;
    color: var(--bs-secondary-color);
    font-size: .7rem;
}

.student-pagination {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.student-grades-page,
.student-account-page {
    display: grid;
    gap: 1.25rem;
}

.student-grade-filter .form-select {
    min-height: 42px;
    min-width: 190px;
    border-radius: 11px;
}

.student-grade-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.student-grade-summary-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 16px;
    background: var(--bs-body-bg);
}

.student-grade-summary-card > span,
.student-grade-summary-card > small {
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.student-grade-summary-card > strong {
    margin-top: .2rem;
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 750;
}

.student-grade-summary-card > small { margin-top: .25rem; color: var(--bs-tertiary-color); font-size: .68rem; }

.student-grade-list { display: grid; }

.student-grade-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(130px, .9fr) auto;
    align-items: center;
    gap: .8rem;
    padding: .9rem 0;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.student-grade-subject strong,
.student-grade-subject span,
.student-grade-component strong,
.student-grade-component span,
.student-grade-result strong,
.student-grade-result span { display: block; }

.student-grade-subject strong,
.student-grade-component strong { font-size: .82rem; }

.student-grade-subject span,
.student-grade-component span,
.student-grade-result span { margin-top: .2rem; color: var(--bs-secondary-color); font-size: .68rem; }

.student-grade-result { text-align: right; }
.student-grade-result strong { color: var(--bs-primary); font-size: 1rem; white-space: nowrap; }
.student-grade-result strong small { color: var(--bs-secondary-color); font-size: .7rem; font-weight: 500; }
.student-grade-note { grid-column: 1 / -1; margin: -.25rem 0 0; color: var(--bs-secondary-color); font-size: .7rem; }

.student-account-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 24%, var(--bs-border-color));
    border-radius: 18px;
    background: color-mix(in srgb, var(--bs-primary) 5%, var(--bs-body-bg));
}

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

.student-account-identity { min-width: 0; flex: 1; }
.student-account-identity .student-eyebrow { margin-bottom: .25rem; }
.student-account-identity h2 { margin: 0; font-size: 1.1rem; font-weight: 750; }
.student-account-identity > p:last-child { margin: .2rem 0 0; color: var(--bs-secondary-color); font-size: .78rem; }
.student-account-status { display: inline-flex; align-items: center; gap: .4rem; color: var(--bs-success-text-emphasis); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.student-account-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--bs-success); }

.student-account-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: start; gap: 1rem; }
.student-profile-list,
.student-login-info-list { margin: 0; }
.student-profile-item,
.student-login-info-list > div { display: grid; grid-template-columns: minmax(125px, .7fr) minmax(0, 1.3fr); gap: .75rem; padding: .72rem 0; border-top: 1px solid var(--bs-border-color-translucent); }
.student-profile-item dt,
.student-login-info-list dt { color: var(--bs-secondary-color); font-size: .75rem; font-weight: 550; }
.student-profile-item dd,
.student-login-info-list dd { margin: 0; font-size: .78rem; font-weight: 600; overflow-wrap: anywhere; }
.student-profile-hint,
.student-password-intro { margin: .8rem 0 0; color: var(--bs-secondary-color); font-size: .72rem; line-height: 1.5; }
.student-account-security-column { display: grid; gap: 1rem; }
.student-password-form { display: grid; gap: .85rem; margin-top: .9rem; }
.student-password-form .form-label { margin-bottom: .35rem; font-size: .74rem; font-weight: 650; }
.student-password-form .form-control { min-height: 43px; border-radius: 11px; }
.student-password-form .btn { min-height: 44px; border-radius: 11px; font-size: .8rem; font-weight: 700; }

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

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

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

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

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

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

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

    .student-header-actions {
        gap: .4rem;
    }

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

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

    .student-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);
    }
}

@media (max-width: 575.98px) {
    .student-assignment-card { padding: .8rem; }
    .student-assignment-heading { flex-direction: column; }
    .student-assignment-meta { flex-direction: column; gap: .25rem; }
    .student-page-heading {
        align-items: flex-start;
    }

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

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

    .student-month-filter {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .student-month-filter .form-control {
        width: 150px;
    }

    .student-month-filter .btn {
        padding-inline: .55rem;
        font-size: .72rem;
    }

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

    .student-attendance-status {
        grid-column: 2 / 4;
        justify-self: start;
    }

    .student-attendance-note {
        grid-column: 2 / 4;
    }

    .student-grade-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .45rem .7rem;
    }

    .student-grade-component { grid-column: 1; }
    .student-grade-result { grid-column: 2; grid-row: 1 / span 2; }
    .student-grade-note { grid-column: 1 / -1; }
    .student-grade-filter { width: 100%; }
    .student-grade-filter .form-select { min-width: 0; flex: 1; }
    .student-account-hero { align-items: flex-start; flex-wrap: wrap; padding: 1rem; }
    .student-account-status { margin-left: 74px; }
    .student-account-grid { grid-template-columns: 1fr; }
    .student-profile-item,
    .student-login-info-list > div { grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr); }

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

    .student-welcome-card p:last-child {
        font-size: .8rem;
        line-height: 1.55;
    }

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

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

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

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

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

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

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

    .student-panel {
        padding: 1rem;
    }

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

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

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

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

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

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

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