:root {
    --primary: #1f6f78;
    --primary-dark: #12444a;
    --accent: #f2a65a;
    --bg: #f3f6f6;
    --card: #ffffff;
    --text: #152127;
    --muted: #5f717a;
    --border: #dbe5e8;
}

/* Isolated experimental parent registration */
.test-registration-entry {
    display: grid;
    gap: 9px;
    margin-top: 22px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.test-registration-entry__button,
.test-registration-entry a {
    display: inline-flex;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #c3dadd;
    border-radius: 12px;
    color: var(--primary-dark);
    background: #f3f9fa;
    font-weight: 800;
    text-decoration: none;
}

.test-registration-entry__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.test-registration-entry__button--secondary {
    border-color: var(--border) !important;
    background: #fff !important;
    color: var(--muted) !important;
}

@media (max-width: 560px) {
    .test-registration-entry__actions {
        grid-template-columns: 1fr;
    }
}

.test-registration-page {
    max-width: 940px;
    margin: 0 auto;
}

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

.test-registration-hero h1 {
    margin: 12px 0 8px;
}

.test-registration-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
}

.test-mode-pill {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid #efc897;
    border-radius: 999px;
    background: #fff4e7;
    color: #8a4d18;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.test-registration-form {
    padding: 0;
    overflow: hidden;
}

.test-form-section {
    padding: 25px 28px;
    border-bottom: 1px solid var(--border);
}

.test-form-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.test-form-section__heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.test-form-section__heading h2,
.test-form-section__heading p {
    margin: 0;
}

.test-form-section__heading h2 {
    color: var(--primary-dark);
    font-size: 1.16rem;
}

.test-form-section__heading p {
    margin-top: 4px;
}

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

.test-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.test-registration-form .form-field label {
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 750;
}

.test-registration-form input,
.test-registration-form select {
    width: 100%;
}

.test-registration-form small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.test-registration-form .errorlist,
.test-auth-card .errorlist {
    margin: 7px 0 0;
    padding-left: 18px;
    color: #a0442f;
    font-size: 0.86rem;
}

.test-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 20px 28px;
}

.test-secondary-link,
.test-back-link {
    color: var(--primary-dark);
    font-weight: 750;
    text-decoration: none;
}

.test-submit-button {
    padding: 12px 20px;
}

.test-existing-account-notice {
    margin: 24px 28px 0;
    padding: 18px;
    border: 1px solid #efcfaa;
    border-radius: 14px;
    background: #fff9f1;
}

.test-existing-account-notice h2 {
    margin: 0 0 7px;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.test-existing-account-notice p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.5;
}

.test-existing-account-notice .button {
    display: inline-flex;
    text-decoration: none;
}

.test-result-page {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.test-result-card {
    width: min(680px, 100%);
    padding: 34px;
    text-align: center;
}

.test-result-card h1 {
    margin: 12px 0 8px;
}

.test-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #e1f3e6;
    color: #1f7a3f;
    font-size: 1.6rem;
    font-weight: 900;
}

.test-result-details,
.test-detail-list {
    margin: 24px 0;
    text-align: left;
}

.test-result-details > div,
.test-detail-list > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.test-result-details dt,
.test-detail-list dt {
    color: var(--muted);
    font-weight: 750;
}

.test-result-details dd,
.test-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.test-result-note {
    padding: 12px;
    border-radius: 12px;
    background: #f3f9fa;
    color: #315f65;
}

.test-activation-preview {
    margin: 26px 0 6px;
    padding: 22px;
    border: 1px solid #efcfaa;
    border-radius: 16px;
    background: #fff9f1;
    text-align: left;
}

.test-activation-preview h2 {
    margin: 12px 0 7px;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.test-activation-preview p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.55;
}

.test-activation-preview small {
    display: block;
    margin-top: 10px;
    color: #805323;
    line-height: 1.45;
}

.test-activation-link {
    display: inline-flex;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.test-link-box--public-preview {
    margin-top: 14px;
    background: #fff;
    color: #495b63;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.76rem;
}

.test-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 22px 24px;
    border: 1px solid #efc8c2;
    border-radius: 16px;
    background: #fff8f7;
}

.test-danger-zone h2,
.test-danger-zone p {
    margin: 0;
}

.test-danger-zone h2 {
    color: #8e3429;
    font-size: 1.05rem;
}

.test-danger-zone p {
    margin-top: 5px;
    color: var(--muted);
}

.test-delete-button,
.test-cancel-button {
    display: inline-flex;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.test-delete-button {
    flex: 0 0 auto;
    border: 1px solid #b84435;
    background: #b84435;
    color: #fff;
}

.test-cancel-button {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
}

.test-delete-confirmation {
    width: min(680px, 100%);
    padding: 34px;
}

.test-delete-confirmation h1 {
    margin: 13px 0 8px;
    color: #8e3429;
}

.test-delete-note {
    padding: 13px;
    border-radius: 12px;
    background: #f7fafb;
    color: var(--muted);
}

.test-delete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.test-auth-card {
    width: min(430px, 100%);
}

.test-auth-card h1 {
    margin-bottom: 8px;
}

.parent-password-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parent-password-heading {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.parent-password-heading label {
    margin: 0;
}

.parent-password-heading a {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.test-portal-header,
.test-admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.test-portal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-portal-actions .button {
    text-decoration: none;
}

.test-portal-header h1,
.test-admin-header h1 {
    margin: 10px 0 4px;
}

.test-submission-card h2 {
    color: var(--primary-dark);
}

.test-admin-count,
.test-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff2e3;
    color: #8c4d16;
    font-size: 0.8rem;
    font-weight: 800;
}

.test-status--success {
    background: #e1f3e6;
    color: #1f7a3f;
}

.test-admin-table-card {
    padding: 0;
    overflow: hidden;
}

.test-admin-table-wrap {
    overflow-x: auto;
}

.test-admin-table {
    min-width: 1050px;
}

.test-admin-table a {
    color: var(--primary-dark);
    font-weight: 800;
}

.test-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.test-detail-grid h2 {
    margin-top: 0;
    color: var(--primary-dark);
}

.test-download-button {
    display: inline-flex;
    text-decoration: none;
}

.test-link-box,
.test-email-preview {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f7fafb;
    overflow-wrap: anywhere;
}

.test-email-preview {
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
}

@media (max-width: 760px) {
    .test-form-grid,
    .test-form-grid--three,
    .test-detail-grid {
        grid-template-columns: 1fr;
    }

    .test-danger-zone,
    .test-delete-actions,
    .test-portal-header,
    .test-portal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .test-form-actions,
    .test-portal-header,
    .test-admin-header {
        align-items: stretch;
        flex-direction: column;
    }

    .test-result-details > div,
    .test-detail-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

* {
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 88px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    position: relative;
    min-height: 56px;
    padding-left: 192px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-logo {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain;
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.brand-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.76rem;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.role-chip {
    background: rgba(31, 111, 120, 0.12);
    color: #0f5057;
    padding: 6px 8px 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-manage-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-dark);
    border: 1px solid rgba(31, 111, 120, 0.2);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
}

.role-manage-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.change-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.change-summary-card {
    padding: 18px 20px;
}

.change-summary-card--warm {
    background: #fff8ef;
    border-color: #f1d3b2;
}

.change-history-card {
    padding: 0;
    overflow: hidden;
}

.change-table-wrap {
    overflow-x: auto;
}

.change-history-table {
    min-width: 960px;
}

.change-history-table tbody tr:hover {
    background: #f8fbfb;
}

.change-date {
    white-space: nowrap;
    color: var(--text);
    font-weight: 700;
}

.change-date span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.change-student-link {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.change-student-link:hover {
    text-decoration: underline;
}

.change-kind {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.change-kind--profile {
    background: #e5f1f3;
    color: #0f5057;
}

.change-kind--schedule {
    background: #fff0df;
    color: #8c4d16;
}

.change-value {
    max-width: 220px;
    overflow-wrap: anywhere;
}

.change-value--old {
    color: #8f493b;
}

.change-value--new {
    color: #176b39;
    font-weight: 700;
}

.change-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid var(--border);
}

.change-pagination a {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 720px) {
    .change-summary-grid {
        grid-template-columns: 1fr;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 4px 0;
    border-radius: 0;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link--outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
    padding: 4px 10px;
    border-radius: 999px;
}

.page {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.message-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.message {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d5e3e6;
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 700;
}

.message--success {
    background: #f3fbf5;
    border-color: #c9e6d0;
    color: #1f7a3f;
}

.message--error {
    background: #fff2ef;
    border-color: #f0c6bb;
    color: #a0442f;
}

.site-footer {
    padding: 24px 40px;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.auth {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    width: 380px;
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 26px rgba(10, 32, 42, 0.08);
}

.login-gateway {
    width: min(980px, 100%);
    margin: 32px auto 48px;
}

.login-gateway__intro {
    margin-bottom: 28px;
    text-align: center;
}

.login-gateway__eyebrow,
.gateway-card__label {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-gateway__intro h1 {
    margin: 7px 0 5px;
    color: var(--primary-dark);
    font-size: clamp(2rem, 5vw, 3rem);
}

.login-gateway__intro p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.login-gateway__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.gateway-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(10, 32, 42, 0.09);
}

.gateway-card--parent {
    border-color: #efd8b8;
    background: linear-gradient(155deg, #fffaf3 0%, #fff 58%);
}

.gateway-card__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gateway-card__heading h2 {
    margin: 6px 0 8px;
    color: var(--primary-dark);
    font-size: 1.55rem;
}

.gateway-card__title-row h2 {
    flex: 0 1 auto;
}

.gateway-card__title-row .test-mode-pill {
    flex: 0 0 auto;
}

.gateway-card__heading p {
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.gateway-card__form {
    margin-top: 25px;
}

.gateway-card__error {
    margin: 14px 0 0;
}

.gateway-card__parent-actions {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.gateway-action {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px 17px;
    border: 1px solid #e6d6c0;
    border-radius: 14px;
    background: #fff;
    color: var(--primary-dark);
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.gateway-action:hover {
    transform: translateY(-2px);
    border-color: #d1ae7c;
    box-shadow: 0 10px 20px rgba(84, 57, 24, 0.09);
}

.gateway-action--primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.gateway-action span {
    font-weight: 800;
}

.gateway-action small {
    color: inherit;
    opacity: 0.78;
}

.gateway-card__note {
    margin: auto 0 0;
    padding-top: 24px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .login-gateway {
        margin-top: 12px;
    }

    .login-gateway__grid {
        grid-template-columns: 1fr;
    }

    .gateway-card {
        padding: 25px;
    }

    .gateway-card__heading p {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .gateway-card__title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

select,
textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
}

.button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.dashboard-header, .content-header {
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(10, 32, 42, 0.05);
}

.stat {
    font-size: 2rem;
    font-weight: 700;
    margin: 12px 0 0 0;
    color: var(--primary-dark);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: #f8fafc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.table-sort {
    color: inherit;
    text-decoration: none;
}

.table-sort:hover {
    color: var(--primary-dark);
}

.deposit-badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.deposit-badge--paid {
    background: #dff3e5;
    color: #1f7a3f;
    border: 1px solid #bfe2ca;
}

.deposit-badge--pending {
    background: #f0f3f4;
    color: #7b8a91;
    border: 1px solid #d7e0e3;
}

.deposit-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.deposit-pill--paid {
    background: #dff3e5;
    color: #1f7a3f;
}

.deposit-pill--pending {
    background: #f4ebe3;
    color: #9b5b1f;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.schedule-filter-card {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f7fbfb 0%, #eef6f7 100%);
}

.schedule-filter-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.schedule-filter-control {
    display: inline-flex;
}

.schedule-filter-label {
    font-weight: 600;
    color: var(--text);
}

.schedule-day-select {
    min-width: 220px;
    width: auto;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
}

.schedule-session-list {
    display: grid;
    gap: 18px;
}

.language-analysis-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.language-analysis-heading h1,
.language-analysis-heading p {
    margin-bottom: 0;
}

.language-experiment-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff2e3;
    border: 1px solid #f0cda7;
    color: #8c4d16;
    font-size: 0.8rem;
    font-weight: 800;
}

.language-analysis-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.language-summary-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 4px 9px;
    padding: 18px 20px;
}

.language-summary-item .focus-label {
    grid-column: 1 / -1;
}

.language-summary-item strong {
    color: var(--primary-dark);
    font-size: 1.8rem;
    line-height: 1;
}

.language-summary-item--warm {
    background: linear-gradient(180deg, #fffaf3 0%, #fff3e5 100%);
    border-color: #efd6b8;
}

.language-analysis-note {
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid #cfe0e3;
    border-radius: 14px;
    background: #f3f9fa;
    color: #315f65;
    font-size: 0.9rem;
    font-weight: 650;
}

.language-session-card--mandarin {
    --schedule-accent: #c36b27;
}

.language-session-card--spanish {
    --schedule-accent: #5876a3;
}

.language-session-empty,
.language-no-classes p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 720px) {
    .language-analysis-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .language-analysis-summary {
        grid-template-columns: 1fr;
    }
}

.schedule-session-card {
    --schedule-accent: var(--primary);
    display: grid;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    border-left: 6px solid var(--schedule-accent);
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
}

.schedule-session-card:nth-child(even) {
    --schedule-accent: #d86b3d;
}

.schedule-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.schedule-session-mainrow {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.schedule-session-name {
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.schedule-session-time {
    font-weight: 800;
    color: #8c4d16;
    background: #fff2e3;
    border: 1px solid #f4d1aa;
    padding: 7px 12px;
    border-radius: 999px;
}

.schedule-session-inline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.schedule-inline-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.09);
    color: #0f5057;
    font-weight: 700;
    font-size: 0.86rem;
}

.schedule-session-count {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 90px;
}

.schedule-count-number {
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    color: var(--primary-dark);
}

.schedule-grade-groups {
    display: grid;
    gap: 16px;
}

.schedule-grade-group {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    margin-top: 2px;
}

.schedule-grade-group--odd {
    background: linear-gradient(180deg, #eef7f8 0%, #e5f1f3 100%);
    border-color: #cfe2e7;
}

.schedule-grade-group--even {
    background: linear-gradient(180deg, #fff5eb 0%, #fdebd8 100%);
    border-color: #f1d3b2;
}

.schedule-grade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.schedule-grade-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(21, 33, 39, 0.08);
}

.schedule-student-list {
    display: grid;
    gap: 6px;
    padding-left: 4px;
}

.schedule-student {
    font-weight: 600;
    color: var(--primary-dark);
}

.schedule-student-list--rows {
    gap: 10px;
    padding-left: 0;
}

.schedule-student-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(21, 33, 39, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.schedule-student-name {
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
}

.schedule-student-name:hover {
    text-decoration: underline;
}

.schedule-roster-wrap {
    overflow-x: auto;
    padding-top: 2px;
}

.schedule-roster-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 7px;
    table-layout: fixed;
}

.schedule-roster-table th {
    padding: 0 10px 4px;
    text-align: left;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.schedule-roster-table td {
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(21, 33, 39, 0.08);
    border-bottom: 1px solid rgba(21, 33, 39, 0.08);
    vertical-align: middle;
}

.schedule-roster-table th:first-child {
    width: 58%;
}

.schedule-roster-table th:nth-child(2) {
    width: 18%;
}

.schedule-roster-table th:last-child {
    width: 24%;
}

.schedule-roster-table td:first-child {
    border-left: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 12px 0 0 12px;
}

.schedule-roster-table td:last-child {
    border-right: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 0 12px 12px 0;
}

.schedule-roster-table tbody tr:hover td {
    background: #f3fafb;
    border-color: #c9dee3;
}

.schedule-roster-grade,
.schedule-roster-room {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    border: 1px solid #d1e4e7;
}

.schedule-roster-grade {
    background: #eef7f8;
    color: #0f5057;
}

.schedule-roster-room {
    background: #fff2e3;
    color: #8c4d16;
    border-color: #f4d1aa;
}

.room-section-list {
    display: grid;
    gap: 18px;
}

.room-section-card {
    --room-accent: #2d7d89;
    --room-soft: #eef7f8;
    padding: 18px 18px 18px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    border-left: 8px solid var(--room-accent);
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
    min-width: 0;
    overflow: hidden;
}

.room-section-card--fire {
    --room-accent: #d86b3d;
    --room-soft: #fff1e6;
    border-color: #f1d3b2;
}

.room-section-card--water {
    --room-accent: #2d82b7;
    --room-soft: #eaf6fc;
    border-color: #cfe2e7;
}

.room-section-card--earth {
    --room-accent: #6f8f43;
    --room-soft: #f0f5e8;
    border-color: #d8e0c8;
}

.room-section-card--space {
    --room-accent: #6b63a8;
    --room-soft: #f0eefb;
    border-color: #d9d8ea;
}

.room-section-card--air {
    --room-accent: #3d9a9b;
    --room-soft: #e9f7f7;
    border-color: #cfe2e7;
}

.room-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.room-section-header h2 {
    margin: 0;
    color: var(--room-accent);
    font-size: 1.42rem;
    line-height: 1;
}

.room-section-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--room-soft);
    color: var(--room-accent);
    font-size: 0.8rem;
    font-weight: 800;
}

.room-day-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.room-day-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d3e2e5;
    background: #ffffff;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 8px 18px rgba(10, 32, 42, 0.04);
}

.room-day-button:hover,
.room-day-button--active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.bus-overview-card {
    --room-accent: var(--primary);
    --room-soft: #eef7f8;
    padding: 18px 18px 20px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    border-left: 8px solid var(--primary);
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
}

.bus-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.bus-overview-header h2 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.42rem;
    line-height: 1;
}

.bus-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.bus-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    table-layout: fixed;
}

.bus-table th {
    padding: 0 10px 4px;
    text-align: left;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.bus-day-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bus-day-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.1);
    color: var(--primary-dark);
    border: 1px solid #cbdfe4;
    font-size: 0.78rem;
    font-weight: 900;
}

.bus-table td {
    padding: 10px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(21, 33, 39, 0.08);
    border-bottom: 1px solid rgba(21, 33, 39, 0.08);
    vertical-align: top;
}

.bus-table td:first-child {
    border-left: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 10px 0 0 10px;
}

.bus-table td:last-child {
    border-right: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 0 10px 10px 0;
}

.bus-student-list {
    display: grid;
    gap: 8px;
}

.bus-student-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, #eef7f8 0%, #ffffff 100%);
    border: 1px solid #cbdfe4;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none;
}

.bus-student-name {
    min-width: 0;
}

.bus-grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff2e3;
    border: 1px solid #f4d1aa;
    color: #8c4d16;
    font-size: 0.78rem;
    font-weight: 900;
    flex-shrink: 0;
}

.bus-student-link:hover {
    background: #e6f2f4;
    border-color: #b7d4d9;
    text-decoration: underline;
}

.bus-empty-cell {
    display: block;
    min-height: 34px;
}

.room-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.room-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    table-layout: fixed;
}

.room-table th {
    padding: 0 8px 8px;
    text-align: left;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 800;
}

.room-table th:first-child {
    width: 210px;
}

.room-table th:last-child {
    width: 112px;
}

.room-block-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.room-block-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--room-accent);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(10, 32, 42, 0.08);
}

.room-block-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--room-soft);
    color: var(--room-accent);
    border: 1px solid rgba(21, 33, 39, 0.12);
    font-size: 0.86rem;
    font-weight: 900;
}

.room-table td {
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(21, 33, 39, 0.08);
    border-bottom: 1px solid rgba(21, 33, 39, 0.08);
    vertical-align: middle;
}

.room-table td:first-child {
    border-left: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 10px 0 0 10px;
}

.room-table td:last-child {
    border-right: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 0 10px 10px 0;
}

.room-table tbody tr:hover td {
    background: #f3fafb;
    border-color: #c9dee3;
}

.room-student-cell {
    min-width: 0;
}

.room-student-name {
    display: block;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
}

.room-student-name:hover {
    text-decoration: underline;
}

.room-class-list {
    display: grid;
    gap: 5px;
}

.room-class-chip {
    min-height: 46px;
    padding: 7px 8px 7px 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--room-soft) 0%, #ffffff 100%);
    border: 1px solid #cbdfe4;
    border-left: 4px solid var(--room-accent);
    display: grid;
    align-content: center;
    gap: 4px;
}

.room-class-name {
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.15;
}

.room-class-meta {
    color: #476168;
    font-size: 0.72rem;
    line-height: 1.35;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.room-class-meta span {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(21, 33, 39, 0.08);
}

.room-empty-cell {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    background: rgba(248, 251, 251, 0.5);
    border: 1px dashed #d8e4e7;
    color: #809097;
    font-size: 0.78rem;
    font-weight: 800;
}

.room-empty-cell--blank {
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.room-pickup-cell {
    font-weight: 800;
    text-align: center;
    font-size: 0.9rem;
}

.room-pickup-cell--five {
    color: #1f7a3f;
    background: linear-gradient(180deg, #f3fbf5 0%, #e1f3e7 100%) !important;
}

.room-pickup-cell--six {
    color: #8c4d16;
    background: linear-gradient(180deg, #fff9f2 0%, #fff3e0 100%) !important;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.dashboard-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-focus-card,
.dashboard-next-card,
.dashboard-activity-card,
.dashboard-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
}

.dashboard-focus-card {
    padding: 24px;
    border-radius: 18px;
}

.dashboard-next-card {
    padding: 22px;
    border-radius: 18px;
    display: grid;
    align-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #fff8ef 0%, #f9ecd9 100%);
    border-color: #ecd0ad;
}

.dashboard-next-card p {
    margin: 0;
    color: #7a4a1f;
    font-weight: 650;
    line-height: 1.45;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(21, 33, 39, 0.08);
}

.dashboard-card-header h2,
.dashboard-card-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.dashboard-card-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.09);
    color: #0f5057;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-card-chip--warm {
    background: #fff1dc;
    color: #8c4d16;
}

.dashboard-focus-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-focus-item {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #eff8f9 0%, #e2eff2 100%);
    border: 1px solid #cfe2e7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dashboard-focus-item--warm {
    background: linear-gradient(180deg, #fff5eb 0%, #fdebd8 100%);
    border-color: #f1d3b2;
}

.dashboard-focus-item p {
    margin: 8px 0 0;
    color: #40575e;
    font-weight: 600;
    line-height: 1.42;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

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

.dashboard-stat-card {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px;
}

.dashboard-stat-card--warm {
    background: linear-gradient(180deg, #fff8ef 0%, #f9ecd9 100%);
    border-color: #ecd0ad;
}

.dashboard-stat-card .stat {
    margin: 0;
}

.dashboard-stat-card p {
    margin-top: 0;
}

.dashboard-stat-copy {
    margin: 0;
    color: #40575e;
    font-weight: 650;
    line-height: 1.45;
}

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

.dashboard-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.dashboard-activity-row,
.dashboard-empty-row {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbfb 0%, #eef5f6 100%);
    border: 1px solid #d9e6e8;
}

.dashboard-activity-row--warm {
    background: linear-gradient(180deg, #fff8ef 0%, #f7ead8 100%);
    border-color: #ecd2b1;
}

.dashboard-activity-main {
    color: var(--primary-dark);
    font-weight: 800;
}

.dashboard-activity-meta,
.dashboard-empty-row {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.enrichment-only-card {
    margin-top: 26px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cfe0e3;
    box-shadow: 0 16px 34px rgba(10, 32, 42, 0.08);
}

.enrichment-only-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(120deg, #edf7f8 0%, #ffffff 72%);
    border-bottom: 1px solid var(--border);
}

.enrichment-only-header h2 {
    margin: 5px 0 6px;
    color: var(--primary-dark);
    font-size: 1.45rem;
}

.enrichment-only-header p {
    margin: 0;
}

.enrichment-date-form {
    min-width: 270px;
}

.enrichment-date-form label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.enrichment-date-control {
    display: flex;
    gap: 8px;
    margin-top: 7px;
}

.enrichment-date-control input {
    flex: 1;
    min-width: 0;
    background: #ffffff;
}

.enrichment-date-button {
    padding: 10px 16px;
}

.enrichment-today-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #b8cfd3;
    border-radius: 12px;
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.enrichment-today-button:hover {
    border-color: var(--primary);
    background: #edf7f8;
}

.enrichment-selected-day {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fbfcfc;
    border-bottom: 1px solid var(--border);
}

.enrichment-selected-day strong {
    color: var(--primary-dark);
}

.enrichment-selected-day > span {
    color: var(--muted);
}

.enrichment-result-count {
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.1);
    color: var(--primary-dark) !important;
    font-size: 0.8rem;
    font-weight: 800;
}

.enrichment-table-wrap {
    overflow-x: auto;
    padding: 8px 18px 18px;
}

.enrichment-only-table td {
    vertical-align: middle;
}

.enrichment-student-link {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.enrichment-student-link:hover {
    text-decoration: underline;
}

.enrichment-time {
    display: inline-flex;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff2e3;
    color: #8c4d16;
    font-size: 0.84rem;
    font-weight: 800;
}

.enrichment-empty-state {
    padding: 34px 24px;
    text-align: center;
}

.enrichment-empty-state p {
    margin: 7px 0 0;
}

@media (max-width: 720px) {
    .enrichment-only-header {
        align-items: stretch;
        flex-direction: column;
    }

    .enrichment-date-form {
        min-width: 0;
    }

    .enrichment-selected-day {
        align-items: flex-start;
        flex-direction: column;
    }

    .enrichment-result-count {
        margin-left: 0;
    }
}

.class-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.class-list-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.class-list-summary__item {
    min-width: 108px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 10px 20px rgba(10, 32, 42, 0.05);
}

.class-list-summary__item--warm {
    background: linear-gradient(180deg, #fff8ef 0%, #f9ecd9 100%);
    border-color: #ecd0ad;
}

.class-list-summary__number {
    display: block;
    color: var(--primary-dark);
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 800;
}

.class-list-summary__label {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.class-list-card {
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
}

.class-day-list {
    display: grid;
    gap: 26px;
}

.class-day-section {
    --day-color: #1f6f78;
    --day-soft: #edf7f8;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5e3e6;
    border-left: 6px solid var(--day-color);
    box-shadow: 0 12px 28px rgba(10, 32, 42, 0.07);
}

.class-day-section--tue {
    --day-color: #d57b31;
    --day-soft: #fff5e9;
}

.class-day-section--wed {
    --day-color: #5876a3;
    --day-soft: #f0f4fb;
}

.class-day-section--thu {
    --day-color: #7a6599;
    --day-soft: #f6f1fb;
}

.class-day-section--fri {
    --day-color: #4d8a62;
    --day-soft: #eff8f2;
}

.class-day-header {
    padding: 20px 24px 17px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(110deg, var(--day-soft) 0%, #ffffff 72%);
}

.class-day-header h2,
.class-day-header p {
    margin: 0;
}

.class-day-header p {
    margin-top: 6px;
    font-size: 0.86rem;
    font-weight: 650;
}

.class-day-header h2 {
    color: var(--day-color);
    font-size: 1.42rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.class-day-empty {
    padding: 24px 22px;
    color: var(--muted);
}

.class-list-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.class-list-card__header h2 {
    margin: 0 0 4px;
    color: var(--primary-dark);
    font-size: 1.22rem;
}

.class-list-card__header p {
    margin: 0;
}

.class-list-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.09);
    color: #0f5057;
    font-size: 0.8rem;
    font-weight: 700;
}

.class-list-table-wrap {
    overflow-x: auto;
}

.class-day-section .class-list-table-wrap {
    padding: 6px 18px 14px;
    background: #fbfcfc;
}

.class-day-section .class-list-table th {
    padding-top: 8px;
    color: #6c7b82;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.class-day-section .class-list-table th:first-child {
    width: 36%;
}

.class-day-section .class-list-table td {
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(10, 32, 42, 0.025);
}

.class-day-section .class-list-table td.class-list-name-cell {
    border-bottom-color: rgba(21, 33, 39, 0.08);
}

.class-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.class-list-table th {
    padding: 0 12px 4px;
    text-align: left;
}

.class-list-table td {
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(21, 33, 39, 0.08);
    border-bottom: 1px solid rgba(21, 33, 39, 0.08);
    vertical-align: middle;
}

.class-list-table td:first-child {
    border-left: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 14px 0 0 14px;
}

.class-list-table td.class-list-name-cell {
    border-bottom-color: transparent;
}

.class-list-table td:last-child {
    border-right: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 0 14px 14px 0;
}

.class-list-table tbody tr:hover td {
    background: #f3fafb;
    border-color: #c9dee3;
}

.class-list-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.class-list-sort:hover,
.class-list-sort--active {
    color: var(--primary-dark);
}

.class-list-name {
    display: block;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
}

.class-list-table a.class-list-name--link,
.class-list-table a.class-list-name--link:link,
.class-list-table a.class-list-name--link:visited,
.class-list-table a.class-list-name--link:focus,
.class-list-table a.class-list-name--link:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.class-list-table a.class-list-name--link:hover {
    text-decoration: underline !important;
    text-decoration-line: underline !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.class-list-room {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.class-list-day,
.class-list-grade,
.class-list-teacher {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef7f8;
    color: #0f5057;
    border: 1px solid #d1e4e7;
    font-weight: 700;
    font-size: 0.84rem;
}

.class-list-grade {
    background: #f7fbfb;
    color: var(--primary-dark);
}

.class-list-time {
    color: #8c4d16;
    background: #fff2e3;
    border: 1px solid #f4d1aa;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
}

.class-list-teacher--pending {
    background: #fff2e3;
    color: #8c4d16;
    border-color: #f4d1aa;
}

.student-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.student-list-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.student-list-summary__item {
    min-width: 108px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 10px 20px rgba(10, 32, 42, 0.05);
}

.student-list-summary__item--paid {
    background: linear-gradient(180deg, #f3fbf5 0%, #e4f5e9 100%);
    border-color: #c9e6d0;
}

.student-list-summary__item--pending {
    background: linear-gradient(180deg, #fff8ef 0%, #f9ecd9 100%);
    border-color: #ecd0ad;
}

.student-list-summary__number {
    display: block;
    color: var(--primary-dark);
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 800;
}

.student-list-summary__label {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.student-list-card {
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
}

.student-list-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.student-list-card__header h2 {
    margin: 0 0 4px;
    color: var(--primary-dark);
    font-size: 1.22rem;
}

.student-list-card__header p {
    margin: 0;
}

.student-list-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.09);
    color: #0f5057;
    font-size: 0.8rem;
    font-weight: 700;
}

.student-list-table-wrap {
    overflow-x: auto;
}

.student-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.student-list-table th {
    padding: 0 12px 4px;
    text-align: left;
}

.student-list-table td {
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(21, 33, 39, 0.08);
    border-bottom: 1px solid rgba(21, 33, 39, 0.08);
    vertical-align: middle;
}

.student-list-table td:first-child {
    border-left: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 14px 0 0 14px;
}

.student-list-table td:last-child {
    border-right: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 0 14px 14px 0;
}

.student-list-table tbody tr:hover td {
    background: #f3fafb;
    border-color: #c9dee3;
}

.student-list-sort,
.student-list-column-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.student-list-sort:hover,
.student-list-sort--active {
    color: var(--primary-dark);
}

.student-list-name {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
}

.student-list-name:hover {
    text-decoration: underline;
}

.student-list-grade {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef7f8;
    color: #0f5057;
    border: 1px solid #d1e4e7;
    font-weight: 700;
    font-size: 0.84rem;
}

.student-list-school {
    color: #40575e;
    font-weight: 600;
}

.student-list-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
}

.student-list-action:hover {
    border-color: #b8d5db;
    background: #eef7f8;
}

.user-management-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.user-management-grid {
    grid-template-columns: minmax(260px, 0.35fr) minmax(0, 1fr);
    align-items: start;
}

.user-management-card {
    display: grid;
    gap: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
}

.user-create-form {
    display: grid;
    gap: 14px;
}

.user-create-button {
    margin-top: 4px;
}

.user-table-wrap {
    overflow-x: auto;
}

.user-role-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.user-role-table th {
    padding: 0 12px 4px;
    text-align: left;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.user-role-table td {
    padding: 12px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(21, 33, 39, 0.08);
    border-bottom: 1px solid rgba(21, 33, 39, 0.08);
    vertical-align: middle;
}

.user-role-table td:first-child {
    border-left: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 14px 0 0 14px;
}

.user-role-table td:last-child {
    border-right: 1px solid rgba(21, 33, 39, 0.08);
    border-radius: 0 14px 14px 0;
}

.user-role-name {
    color: var(--primary-dark);
    font-weight: 800;
}

.user-role-meta,
.user-role-muted,
.user-management-footnote {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.user-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    background: #eef7f8;
    color: #0f5057;
    border: 1px solid #d1e4e7;
}

.user-role-pill--admin {
    background: #fff1dc;
    color: #8c4d16;
    border-color: #f1d3b2;
}

.user-role-pill--staff {
    background: #eef7f8;
    color: #0f5057;
}

.user-role-pill--teacher {
    background: #f0eefb;
    color: #5a5192;
    border-color: #d9d8ea;
}

.user-role-pill--parent {
    background: #f3fbf5;
    color: #1f7a3f;
    border-color: #c9e6d0;
}

.user-role-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-delete-form {
    display: inline-flex;
}

.user-role-form select {
    width: auto;
    min-width: 126px;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--primary-dark);
}

.user-role-save {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.user-role-save:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.user-delete-button {
    border: 1px solid #f0c6bb;
    background: #fff7f5;
    color: #a0442f;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.user-delete-button:hover {
    background: #a0442f;
    border-color: #a0442f;
    color: #ffffff;
}

.user-management-footnote {
    margin: 0;
}

@media (max-width: 900px) {
    .schedule-session-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-session-count {
        justify-items: start;
    }

    .dashboard-hero,
    .dashboard-overview,
    .dashboard-card-header,
    .room-section-header,
    .class-list-header,
    .class-list-card__header,
    .student-list-header,
    .student-list-card__header,
    .user-management-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-overview,
    .dashboard-stat-grid,
    .dashboard-stat-grid--two,
    .dashboard-activity-grid,
    .dashboard-focus-list,
    .user-management-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-actions,
    .class-list-summary,
    .student-list-summary {
        justify-content: flex-start;
        width: 100%;
    }

    .class-list-summary__item,
    .student-list-summary__item {
        flex: 1;
    }

    .room-table,
    .bus-table {
        min-width: 860px;
    }
}

.focus-panel {
    background: #eef4f6;
    color: var(--text);
    padding: 22px;
    border-radius: 18px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.focus-panel h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.focus-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.focus-item p {
    margin: 8px 0 0;
}

.focus-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.student-detail-grid--top,
.student-detail-grid--bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.student-detail-actions,
.student-inline-action,
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.student-card {
    display: grid;
    gap: 16px;
    align-self: start;
}

.student-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(21, 33, 39, 0.08);
}

.student-card h3 {
    margin: 0;
    color: var(--primary-dark);
}

.student-card-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.09);
    color: #0f5057;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.student-data-list {
    display: grid;
    gap: 12px;
}

.student-data-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fbfb 0%, #eef5f6 100%);
    border: 1px solid #d9e6e8;
}

.student-data-row:last-child {
    margin-bottom: 0;
}

.student-data-row--stacked {
    flex-direction: column;
    gap: 6px;
}

.student-data-label {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    flex: 0 0 120px;
}

.student-data-value {
    color: var(--primary-dark);
    font-weight: 600;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.student-data-row--stacked .student-data-value {
    text-align: left;
}

.student-parent-block {
    display: grid;
    gap: 12px;
}

.student-parent-card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #eff8f9 0%, #e2eff2 100%);
    border: 1px solid #cfe2e7;
    display: grid;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    align-content: start;
}

.student-parent-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4f6970;
    font-weight: 800;
}

.student-parent-name {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1rem;
}

.student-parent-meta {
    color: #4a5d63;
    font-weight: 600;
}

.student-weekly-schedule {
    margin: 12px 0 28px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f7fbfb 0%, #eef5f6 100%);
    border: 1px solid #d8e5e7;
}

.student-weekly-schedule__header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.student-weekly-schedule__header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.student-weekly-board {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
    overflow: hidden;
}

.student-weekly-homeroom-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef7f8;
    color: var(--primary-dark);
    border: 1px solid #cfe2e7;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(10, 32, 42, 0.08);
    margin-right: 14px;
}

.student-weekly-homeroom-chip--fire {
    background: #fff1e6;
    color: #d86b3d;
    border-color: #f1d3b2;
}

.student-weekly-homeroom-chip--water {
    background: #eaf6fc;
    color: #2d82b7;
    border-color: #cfe2e7;
}

.student-weekly-homeroom-chip--earth {
    background: #f0f5e8;
    color: #6f8f43;
    border-color: #d8e0c8;
}

.student-weekly-homeroom-chip--space {
    background: #f0eefb;
    color: #6b63a8;
    border-color: #d9d8ea;
}

.student-weekly-homeroom-chip--air {
    background: #e9f7f7;
    color: #3d9a9b;
    border-color: #cfe2e7;
}

.student-weekly-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.student-weekly-table th,
.student-weekly-table td {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    vertical-align: top;
}

.student-weekly-table th:last-child,
.student-weekly-table td:last-child {
    border-right: none;
}

.student-weekly-table thead th {
    background: linear-gradient(180deg, #eaf5f6 0%, #dfedf0 100%);
    color: var(--primary-dark);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 12px;
    text-align: center;
}

.student-weekly-slot {
    width: 110px;
    padding: 16px 12px;
    background: linear-gradient(180deg, #f6fafb 0%, #edf5f7 100%);
    font-weight: 800;
    color: var(--primary-dark);
    text-align: left;
}

.student-weekly-table tbody td {
    padding: 10px;
    background: white;
}

.student-weekly-table tbody tr:nth-child(odd) td:not(.student-weekly-slot):not(.student-weekly-pickup) {
    background: #fcfefe;
}

.student-weekly-table tbody td:nth-child(2) {
    background: #fbfefe;
}

.student-weekly-table tbody td:nth-child(3) {
    background: #f8fcfd;
}

.student-weekly-table tbody td:nth-child(4) {
    background: #fbfcff;
}

.student-weekly-table tbody td:nth-child(5) {
    background: #fffdfb;
}

.student-weekly-cell-list {
    display: grid;
    gap: 5px;
    min-height: 48px;
}

.student-weekly-class-chip {
    background: linear-gradient(180deg, #eef7f8 0%, #e1eef1 100%);
    border: 1px solid #cbdfe4;
    border-left: 5px solid #2d7d89;
    border-radius: 11px;
    padding: 7px 9px 7px 11px;
    min-height: 48px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student-weekly-class-name {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 3px;
    font-size: 0.86rem;
    line-height: 1.15;
}

.student-weekly-class-meta {
    color: #476168;
    font-size: 0.74rem;
    line-height: 1.35;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.student-weekly-class-meta span {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(21, 33, 39, 0.08);
}

.student-weekly-pickup {
    width: 130px;
    background: linear-gradient(180deg, #fff9f2 0%, #fff3e0 100%) !important;
    vertical-align: middle !important;
}

.student-weekly-pickup--five {
    background: linear-gradient(180deg, #f3fbf5 0%, #e1f3e7 100%) !important;
}

.student-weekly-pickup--five .student-weekly-pickup-time {
    color: #1f7a3f;
}

.student-weekly-pickup--six {
    background: linear-gradient(180deg, #fff9f2 0%, #fff3e0 100%) !important;
}

.student-weekly-pickup-card {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 100%;
    text-align: center;
}

.student-weekly-pickup-time {
    font-size: 1.08rem;
    font-weight: 800;
    color: #8c4d16;
}

.student-weekly-empty {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border-radius: 11px;
    background: rgba(248, 251, 251, 0.65);
    border: 1px dashed #d8e4e7;
    color: #a3b0b5;
    font-weight: 700;
    font-size: 0.8rem;
}

.student-weekly-empty--blank {
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.student-schedule-text-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 12px 24px rgba(10, 32, 42, 0.06);
}

.student-schedule-text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.student-schedule-text-header h4 {
    margin: 0 0 3px;
    color: var(--primary-dark);
    font-size: 1rem;
}

.student-schedule-text-header p {
    margin: 0;
}

.student-schedule-copy-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.student-schedule-copy-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.student-schedule-textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    border-radius: 14px;
    border: 1px solid #d5e3e6;
    background: #fbfefe;
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.55;
    padding: 12px 14px;
}

.deposit-update-form {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.deposit-status-select {
    width: auto;
    min-width: 152px;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--primary-dark);
}

.deposit-update-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.deposit-update-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.student-weekly-table td {
    position: relative;
}

.student-empty-copy {
    color: var(--muted);
    font-weight: 500;
}

.student-empty-state {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbfb 0%, #eff5f6 100%);
    border: 1px dashed #d1e0e4;
    display: grid;
    gap: 6px;
}

.student-empty-state__title {
    color: var(--primary-dark);
    font-weight: 800;
}

.student-edit-card {
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
}

.student-edit-form {
    display: grid;
    gap: 18px;
}

.student-schedule-edit-card {
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #d5e3e6;
    box-shadow: 0 14px 30px rgba(10, 32, 42, 0.07);
}

.student-schedule-edit-form {
    display: grid;
    gap: 18px;
}

.schedule-edit-day-list {
    display: grid;
    gap: 18px;
}

.schedule-edit-day-section {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbfb 0%, #eef5f6 100%);
    border: 1px solid #d9e6e8;
}

.schedule-edit-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.schedule-edit-day-header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.schedule-edit-day-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.09);
    color: #0f5057;
    font-size: 0.78rem;
    font-weight: 800;
}

.schedule-edit-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.schedule-edit-class-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 82px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(21, 33, 39, 0.08);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.schedule-edit-class-card:hover {
    background: #f3fafb;
    border-color: #c9dee3;
}

.schedule-edit-class-card--selected {
    background: linear-gradient(180deg, #eef7f8 0%, #e1eef1 100%);
    border-color: #9bc9d2;
    box-shadow: inset 4px 0 0 #2d7d89;
}

.schedule-edit-class-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.schedule-edit-class-body {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.schedule-edit-class-name {
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.schedule-edit-class-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.schedule-edit-class-meta span {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(21, 33, 39, 0.08);
    color: #476168;
    font-size: 0.74rem;
    font-weight: 700;
}

.form-section + .form-section {
    margin-top: 0;
}

.student-edit-section {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbfb 0%, #eef5f6 100%);
    border: 1px solid #d9e6e8;
}

.form-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.form-section-header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.form-section-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.09);
    color: #0f5057;
    font-size: 0.78rem;
    font-weight: 800;
}

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

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.88rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #cfdde1;
    background: #ffffff;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(31, 111, 120, 0.14);
    border-color: var(--primary);
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding-top: 26px;
}

.form-field--checkbox label {
    margin: 0;
}

.form-field--checkbox input[type="checkbox"] {
    width: auto;
}

.form-submit {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    cursor: pointer;
}

.form-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-cancel {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
}

.form-cancel:hover {
    background: rgba(31, 111, 120, 0.08);
}

.form-primary-action,
.form-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.form-primary-action {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.form-primary-action:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-secondary-action {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--primary-dark);
}

.form-secondary-action:hover {
    border-color: #b8d5db;
    background: #eef7f8;
}

@media (max-width: 1000px) {
    .student-detail-grid--top,
    .student-detail-grid--bottom {
        grid-template-columns: 1fr;
    }

    .student-weekly-schedule__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-weekly-board {
        overflow-x: auto;
    }

    .student-weekly-table {
        min-width: 860px;
    }
}

.muted {
    color: var(--muted);
}

.error {
    color: #c0392b;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .brand {
        padding-left: 0;
        min-height: auto;
    }

    .brand-logo {
        position: static;
        transform: none;
        width: 72px !important;
        height: 72px !important;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .page {
        padding: 24px;
    }

    .header-meta .muted {
        display: none;
    }

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

    .student-data-row {
        flex-direction: column;
        gap: 6px;
    }

    .student-data-value {
        text-align: left;
    }

    .student-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-list-card {
        padding: 18px;
    }

    .class-list-card {
        padding: 18px;
    }

    .class-list-table {
        border-spacing: 0 12px;
    }

    .class-list-table thead {
        display: none;
    }

    .class-list-table,
    .class-list-table tbody,
    .class-list-table tr,
    .class-list-table td {
        display: block;
        width: 100%;
    }

    .class-list-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border-left: 1px solid rgba(21, 33, 39, 0.08);
        border-right: 1px solid rgba(21, 33, 39, 0.08);
        border-bottom: none;
    }

    .class-list-table td:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        border-radius: 16px 16px 0 0;
    }

    .class-list-table td:last-child {
        border-bottom: 1px solid rgba(21, 33, 39, 0.08);
        border-radius: 0 0 16px 16px;
    }

    .class-list-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .class-list-table td:first-child::before {
        display: none;
    }

    .student-list-table {
        border-spacing: 0 12px;
    }

    .student-list-table thead {
        display: none;
    }

    .student-list-table,
    .student-list-table tbody,
    .student-list-table tr,
    .student-list-table td {
        display: block;
        width: 100%;
    }

    .student-list-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border-left: 1px solid rgba(21, 33, 39, 0.08);
        border-right: 1px solid rgba(21, 33, 39, 0.08);
        border-bottom: none;
    }

    .student-list-table td:first-child {
        border-radius: 16px 16px 0 0;
    }

    .student-list-table td:last-child {
        border-bottom: 1px solid rgba(21, 33, 39, 0.08);
        border-radius: 0 0 16px 16px;
    }

    .student-list-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .student-list-table td:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .student-list-table td:first-child::before {
        display: none;
    }
}


/* School navigation: one row with distinct colors for each group. */
.site-header:has(> .site-nav) {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) max-content minmax(max-content, 1fr);
    align-items: center;
    overflow-x: auto;
    gap: 14px;
    height: auto;
    min-height: 88px;
    padding: 12px 20px;
}
.site-header:has(> .site-nav) > .brand {
    padding-left: 0;
    min-width: 0;
    min-height: 48px;
}
.site-header:has(> .site-nav) .brand-logo {
    position: static;
    transform: none;
    width: 130px !important;
    height: 48px !important;
}
.site-header:has(> .site-nav) > .header-meta {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-self: end;
    white-space: nowrap;
    gap: 4px;
    margin-left: 0;
}
.site-header:has(> .site-nav) .role-chip {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
    border-radius: 14px;
    padding: 4px;
    background: #f5efe6;
    color: #76542d;
}
.site-header:has(> .site-nav) .account-identity {
    padding: 8px;
    font-size: 16px;
    white-space: nowrap;
}
.site-header:has(> .site-nav) .role-manage-link {
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #76542d;
    font-size: 16px;
    font-weight: 650;
}
.site-header:has(> .site-nav) .role-manage-link:hover { background: #ffffffb3; }
.site-header:has(> .site-nav) .role-manage-link:focus-visible { outline: 3px solid #d79147; outline-offset: 2px; }
.site-header:has(> .site-nav) > .site-nav {
    min-width: 0;
    width: auto;
    justify-content: center;
    justify-self: center;
    flex-wrap: nowrap;
    gap: 10px;
}
.site-nav-clusters {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: visible;
    padding: 4px;
    scrollbar-width: thin;
    scroll-padding-inline: 8px;
}
.site-nav-group {
    --nav-bg: #edf2f7;
    --nav-ink: #405873;
    --nav-active: #405873;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 14px;
    background: var(--nav-bg);
}
.site-nav-group[aria-label="Student operations"] {
    --nav-bg: #e8f4ef;
    --nav-ink: #28664f;
    --nav-active: #28664f;
}
.site-nav-group[aria-label="Course operations"] {
    --nav-bg: #f0ecf8;
    --nav-ink: #69508c;
    --nav-active: #69508c;
}
.site-nav .site-nav-link,
.header-meta .site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--nav-ink, #60717a);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 650;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.site-nav .site-nav-link:hover { background: #ffffffb3; }
.site-nav .site-nav-link.is-active {
    background: var(--nav-active);
    color: white;
    box-shadow: 0 2px 5px #123c4314;
}
.site-nav .site-nav-link:focus-visible, .header-meta .site-nav-link:focus-visible { outline: 3px solid #d79147; outline-offset: 2px; }
.site-nav-icon { flex-shrink: 0; }
.header-meta .site-nav-logout { flex-shrink: 0; background: white; border-color: #dbe5e8; }
@media (max-width: 1800px) {
    .site-header:has(> .site-nav) .brand-text { display: none; }
}
@media (max-width: 1100px) {
    .site-header:has(> .site-nav) { gap: 8px; padding: 10px 12px; }
    .site-header:has(> .site-nav) .brand-logo { width: 100px !important; }
}
/* Keep branding and account actions on the same baseline as navigation. */
.site-header:has(> .site-nav) .brand-text { flex-direction: row; white-space: nowrap; }
.site-header:has(> .site-nav) .brand-subtitle { display: none; }
.header-meta .site-nav-logout:hover { background: #f3f6f7; }
