:root {
    color-scheme: only light;
    --app-sidebar: #0f2137;
    --app-primary: #2563eb;
    --app-primary-hover: #1d4ed8;
    --app-background: #f5f7fb;
    --app-surface: #ffffff;
    --app-text: #0f172a;
    --app-text-muted: #475569;
    --app-success: #15803d;
    --app-warning: #f59e0b;
    --app-danger: #dc2626;
    --bs-body-color: var(--app-text);
    --bs-body-bg: var(--app-background);
    --bs-primary: var(--app-primary);
    --bs-primary-rgb: 37, 99, 235;
    --bs-success: var(--app-success);
    --bs-success-rgb: 21, 128, 61;
    --bs-warning: var(--app-warning);
    --bs-warning-rgb: 245, 158, 11;
    --bs-danger: var(--app-danger);
    --bs-danger-rgb: 220, 38, 38;
    --bs-secondary-color: var(--app-text-muted);
    --bs-link-color: var(--app-primary);
    --bs-link-color-rgb: 37, 99, 235;
}

select,
select option {
    color-scheme: only light;
}

select option {
    background-color: #ffffff;
    color: var(--app-text);
}

html, body {
    background: var(--app-background);
    color: var(--app-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a, .btn-link {
    color: var(--app-primary);
}

.btn-primary {
    color: #fff;
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--app-primary-hover);
    border-color: var(--app-primary-hover);
}

.btn-outline-primary { border-color: var(--app-primary); color: var(--app-primary); }
.btn-outline-primary:hover { background-color: var(--app-primary); border-color: var(--app-primary); }
.btn-success { background-color: var(--app-success); border-color: var(--app-success); }
.btn-danger { background-color: var(--app-danger); border-color: var(--app-danger); }

.text-bg-primary { background-color: var(--app-primary) !important; color: #fff !important; }
.text-bg-success { background-color: var(--app-success) !important; color: #fff !important; }
.text-bg-warning { background-color: var(--app-warning) !important; color: #422006 !important; }
.text-bg-danger { background-color: var(--app-danger) !important; color: #fff !important; }
.text-bg-info { background-color: #dbeafe !important; color: #1e3a8a !important; }

.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #713f12; }
.alert-success { background: #f0fdf4; border-color: #86efac; color: #14532d; }
.alert-danger { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.notification-banner {
    animation: notification-enter 220ms cubic-bezier(.22, 1, .36, 1) both;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    font-size: .9rem;
    line-height: 1.4;
    margin: 0;
    max-width: min(360px, calc(100vw - 2rem));
    min-width: min(280px, calc(100vw - 2rem));
    padding: .7rem 2.5rem .7rem .85rem;
    position: fixed;
    right: 1.25rem;
    top: 1.25rem;
    width: max-content;
    z-index: 1200;
}
.notification-banner .btn-close { opacity: .55; padding: .75rem; transform: scale(.72); }

@keyframes notification-enter {
    from { opacity: 0; transform: translate3d(10px, -6px, 0) scale(.98); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .notification-banner { animation: none; }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-bottom: 3rem;
    padding-top: 2rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--app-success);
}

.invalid {
    outline: 1px solid var(--app-danger);
}

.validation-message {
    color: var(--app-danger);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.dashboard-header, .page-heading {
    align-items: flex-end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.dashboard-header h1, .page-heading h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 750;
    letter-spacing: -.04em;
    margin: .35rem 0 .6rem;
    max-width: 760px;
}

.schedule-heading { align-items: center; }
.schedule-notice {
    background: #fff8e7;
    border: 1px solid #f4d58d;
    border-left: 4px solid #e2a32f;
    border-radius: 12px;
    color: #604b1c;
    flex: 0 1 600px;
    line-height: 1.45;
    padding: .9rem 1.1rem;
}
.schedule-notice p { margin: 0; }
.schedule-notice-title { display: block; margin-bottom: .35rem; }
.schedule-notice p + p { margin-top: .45rem; }
.schedule-notice-link { color: #075eb2; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.schedule-notice-link:hover { color: #03477f; }
.schedule-notice-link:focus-visible { outline: 3px solid #9bbcff; outline-offset: 3px; }
.entry-dialog-overlay { align-items: center; display: flex; inset: 0; justify-content: center; padding: 1rem; position: fixed; z-index: 1100; }
.entry-dialog-backdrop { background: rgba(16, 35, 63, .55); border: 0; inset: 0; position: absolute; width: 100%; }
.entry-dialog { background: #fff; border-radius: 18px; box-shadow: 0 24px 65px rgba(16, 35, 63, .25); max-height: min(85vh, 760px); overflow-y: auto; padding: 1.5rem; position: relative; width: min(760px, 100%); }
.entry-dialog.subject-teachers-dialog { padding: 1.25rem; width: min(440px, 100%); }
.subject-teachers-dialog .entry-dialog-heading { margin-bottom: .8rem; }
.subject-teacher-list .list-group-item { background: transparent; padding-bottom: .75rem; padding-top: .75rem; }
[data-lesson-requests-panel] .entry-dialog { width: min(960px, 100%); }
.entry-dialog-heading { align-items: start; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.25rem; }
.entry-dialog-heading h2 { font-size: 1.4rem; font-weight: 750; margin: 0; }
.dated-toolbar { align-items: center; display: flex; gap: 2rem; justify-content: space-between; padding: 1rem 1.25rem; }
.schedule-week-toolbar { justify-content: flex-start; }
.dated-week-nav, .dated-summary { align-items: center; display: flex; gap: .7rem; }
.dated-week-nav .btn { font-size: 1.3rem; line-height: 1; min-width: 2.4rem; }
.dated-week-label { display: grid; min-width: 205px; }
.dated-week-label .eyebrow, .dated-detail .eyebrow { margin-bottom: .15rem; }
.dated-week-label strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.dated-week-picker { margin-left: .7rem; max-width: 170px; }
.dated-summary { color: #526174; flex-wrap: wrap; }
.dated-summary span { background: #f5f7fb; border-radius: 8px; padding: .45rem .7rem; white-space: nowrap; }
.dated-summary strong { color: #253149; }
.dated-summary .has-pending { background: #fff5dc; color: #76551a; }
.dated-workspace { align-items: start; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) 390px; }
.dated-overview-column { display: grid; gap: 1.25rem; min-width: 0; }
.dated-overview { min-width: 0; }
.dated-overview-heading { align-items: start; display: flex; gap: 1.25rem; justify-content: space-between; }
.record-panel .dated-overview-heading h2 { margin-bottom: .2rem; }
.dated-overview-heading p { color: #667085; font-size: .9rem; margin: 0; }
.dated-filters { display: flex; gap: .5rem; }
.dated-filters input { min-width: 230px; }
.dated-filters select { min-width: 150px; }
.dated-day-tabs { display: grid; gap: .55rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.3rem 0 1rem; }
.dated-day-tab { background: #f8faff; border: 1px solid #dce5f1; border-radius: 10px; color: #344054; display: grid; gap: .15rem; padding: .7rem .8rem; text-align: left; }
.dated-day-tab:hover { background: #edf4ff; border-color: #95b5eb; }
.dated-day-tab.is-selected { background: #edf4ff; border-color: #3568c7; box-shadow: inset 0 0 0 1px #3568c7; color: #234a91; }
.dated-day-tab span { color: #667085; font-size: .82rem; font-variant-numeric: tabular-nums; }
.dated-lessons { display: grid; gap: .55rem; max-height: 65vh; overflow-y: auto; padding-right: .25rem; }
.teacher-request-card { margin: 0; }
.teacher-request-heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: .8rem; }
.teacher-request-heading h3 { font-size: 1.05rem; margin: .2rem 0 0; }
.teacher-request-list { display: grid; gap: .5rem; }
.teacher-request-item { align-items: center; background: #fff; border: 1px solid #dce5f1; border-radius: 10px; color: #253149; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; padding: .75rem; text-align: left; width: 100%; }
.teacher-request-item:hover { border-color: #95b5eb; }
.teacher-request-item.is-selected { background: #edf4ff; border-color: #3568c7; box-shadow: inset 0 0 0 1px #3568c7; }
.teacher-request-item span:not(.badge) { display: grid; }
.teacher-request-item small { color: #667085; }
.dated-lesson { align-items: center; background: #fff; border: 1px solid #dce5f1; border-radius: 10px; color: #253149; display: grid; gap: 1rem; grid-template-columns: 135px minmax(0, 1fr) auto; padding: .8rem 1rem; text-align: left; width: 100%; }
.dated-lesson[class*="subject-"] { border-left: 4px solid var(--subject-color); }
.dated-lesson:hover { background: #f8fbff; border-color: #95b5eb; }
.dated-lesson.is-selected { background: #edf4ff; border-color: #3568c7; box-shadow: inset 0 0 0 1px #3568c7; }
.dated-lesson-time { font-size: .88rem; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.dated-lesson-main { display: grid; min-width: 0; }
.dated-lesson-main strong, .dated-lesson-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dated-lesson-main small { color: #667085; font-size: .83rem; }
.dated-lesson-status { text-align: right; }
.dated-empty { color: #667085; margin: 1rem 0; }
.dated-detail { max-height: calc(100vh - 2rem); overflow-y: auto; position: sticky; top: 1rem; }
.record-panel.dated-detail h2 { margin: .35rem 0 .5rem; }
.dated-original, .dated-detail-empty p { color: #667085; font-size: .88rem; line-height: 1.45; }
.dated-detail-empty { padding: .25rem 0 1rem; }
.dated-detail-section { border-top: 1px solid #e6ebf2; padding: 1rem 0; }
.dated-detail-section h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .85rem; }
.dated-detail-section p { color: #475467; font-size: .9rem; margin: .4rem 0 0; }
.dated-detail-actions { display: grid; gap: .55rem; padding-bottom: 0; }
.dated-detail-actions .btn { text-align: center; }
.dated-detail .form-label { font-size: .88rem; font-weight: 650; margin-bottom: .3rem; }
.dated-day-tab:focus-visible, .dated-lesson:focus-visible { outline: 3px solid #9bbcff; outline-offset: 2px; }

@media (max-width: 1200px) {
    .dated-workspace { grid-template-columns: minmax(0, 1fr); }
    .dated-detail { max-height: none; position: static; }
    .dated-toolbar { align-items: start; flex-direction: column; }
}

@media (max-width: 800px) {
    .dated-overview-heading, .dated-filters { flex-direction: column; }
    .dated-day-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.schedule-workspace {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) 380px;
}
.schedule-overview { min-width: 0; }
.schedule-overview-heading {
    align-items: start;
    border-bottom: 1px solid #e6ebf2;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 1rem;
}
.record-panel .schedule-overview-heading h2 { margin-bottom: .3rem; }
.schedule-overview-heading p { color: #667085; margin: 0; }
.schedule-overview-meta { color: #667085; font-size: .85rem; text-align: right; }
.schedule-overview-actions { align-items: flex-end; display: flex; flex-direction: column; gap: .55rem; }
.schedule-export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.schedule-progress { display: flex; flex-wrap: wrap; gap: .55rem; padding: 1rem 0 .2rem; }
.schedule-progress span { background: #f4f7fb; border: 1px solid #e1e8f1; border-radius: 8px; color: #526174; font-size: .86rem; padding: .45rem .7rem; }
.schedule-progress strong { color: #253149; font-variant-numeric: tabular-nums; margin-left: .25rem; }
.schedule-progress .has-remaining { background: #fff7e8; border-color: #f2d7a5; color: #76551a; }
.schedule-progress .is-complete { background: #eaf7f1; border-color: #b8e1cc; color: #236647; }
.schedule-proposal-action { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; margin: .8rem 0 1rem; }
.schedule-proposal-action span { color: #667085; font-size: .86rem; }
.schedule-proposal-unplaced { margin: 0; padding-left: 1.25rem; }
.schedule-proposal-unplaced li + li { margin-top: .45rem; }
.schedule-grid { border-collapse: separate; border-spacing: .45rem; table-layout: fixed; width: 100%; }
.schedule-grid th { color: #344054; font-size: .9rem; font-weight: 700; padding: .65rem .35rem; text-align: left; }
.schedule-grid thead th:first-child { width: 110px; }
.schedule-grid tbody th { font-variant-numeric: tabular-nums; line-height: 1.35; vertical-align: top; white-space: nowrap; }
.schedule-grid td { padding: 0; vertical-align: top; }
.schedule-slot {
    background: #f8fbff;
    border: 1px solid #d9e3f0;
    border-radius: 12px;
    color: #253149;
    cursor: pointer;
    display: block;
    min-height: 112px;
    padding: .65rem;
    text-align: left;
    width: 100%;
}
.schedule-slot:hover { background: #eef5ff; border-color: #93b6ee; }
.schedule-slot.is-selected { background: #edf4ff; border: 2px solid #3568c7; padding: calc(.65rem - 1px); }
.schedule-slot:focus-visible, .schedule-teacher:focus-visible { outline: 3px solid #9bbcff; outline-offset: 2px; }
.schedule-cell-empty { color: #667b9b; display: block; font-size: .85rem; line-height: 1.4; }
.schedule-cell-teacher {
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    display: grid;
    gap: 0 .35rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .45rem .5rem;
}
.schedule-cell-teacher[class*="subject-"] { border-left: 4px solid var(--subject-color); }
.schedule-cell-teacher + .schedule-cell-teacher { margin-top: .35rem; }
.schedule-cell-more { color: #52688b; display: block; font-size: .8rem; font-weight: 650; margin: .4rem 0 0 .2rem; }
.schedule-cell-teacher strong, .schedule-cell-teacher small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-cell-teacher strong { font-size: .85rem; }
.schedule-cell-teacher small { color: #667085; grid-column: 1; }
.schedule-cell-count { color: #3159a1; font-size: .8rem; font-weight: 700; grid-column: 2; grid-row: 1 / 3; }
.schedule-cell-unavailable { color: #a4afbf; display: block; padding: .9rem; text-align: center; }
.schedule-detail { max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.25rem; position: sticky; top: 1rem; }
.schedule-detail-header { align-items: start; display: flex; gap: 1rem; justify-content: space-between; padding-bottom: 1rem; }
.record-panel.schedule-detail h2 { font-size: 1.25rem; margin: .3rem 0 0; }
.schedule-detail-count { background: #edf4ff; border: 1px solid #cadbfd; border-radius: 999px; color: #3159a1; font-size: .78rem; font-weight: 700; padding: .35rem .6rem; white-space: nowrap; }
.schedule-detail-section { border-top: 1px solid #e6ebf2; padding: 1.1rem 0; }
.schedule-detail-section:last-child { padding-bottom: 0; }
.schedule-detail-section h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
.schedule-detail-empty, .schedule-form-hint { color: #667085; font-size: .9rem; margin: .5rem 0; }
.schedule-section-heading { margin-bottom: .8rem; }
.schedule-section-heading h3 { margin-bottom: .2rem; }
.schedule-section-heading p { color: #667085; font-size: .84rem; line-height: 1.4; margin: 0; }
.schedule-teacher-list { display: grid; gap: .5rem; }
.schedule-teacher {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    color: #253149;
    cursor: pointer;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    padding: .7rem .8rem;
    text-align: left;
    width: 100%;
}
.schedule-teacher[class*="subject-"] { border-left: 4px solid var(--subject-color); }
.schedule-teacher:hover { background: #f5f8ff; border-color: #9ab6e8; }
.schedule-teacher.is-selected { background: #edf4ff; border-color: #3568c7; box-shadow: 0 0 0 1px #3568c7; }
.schedule-teacher small { color: #667085; display: block; }
.schedule-teacher-count { color: #3159a1; display: grid; line-height: 1.1; min-width: 48px; text-align: right; }
.schedule-teacher-count strong { font-size: 1rem; }
.schedule-teacher-count small { color: #60749a; font-size: .7rem; font-weight: 600; }
.schedule-extra-list { display: grid; gap: .65rem; }
.schedule-extra-card { background: #f8faff; border: 1px solid #d9e3f0; border-left: 4px solid #4569db; border-radius: 12px; padding: .8rem; }
.schedule-extra-card[class*="subject-"] { border-left-color: var(--subject-color); }
.schedule-extra-heading { align-items: start; display: flex; gap: .75rem; justify-content: space-between; }
.schedule-extra-heading strong, .schedule-extra-heading small { display: block; }
.schedule-extra-heading small { color: #667085; margin-top: .1rem; }
.schedule-extra-student { align-items: center; border-top: 1px solid #e6ebf2; display: flex; justify-content: space-between; margin-top: .65rem; padding-top: .65rem; }
.schedule-extra-student span, .schedule-extra-note span { color: #667085; font-size: .76rem; }
.schedule-extra-note { border-top: 1px solid #e6ebf2; margin-top: .65rem; padding-top: .65rem; }
.schedule-extra-note p { font-size: .88rem; margin: .15rem 0 0; }
.schedule-roster-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: .35rem; }
.schedule-roster-title { align-items: center; display: flex; gap: .5rem; }
.schedule-roster-heading h4 { font-size: .92rem; font-weight: 750; margin: 0; }
.schedule-roster-title span { background: #eef2f7; border-radius: 999px; color: #526174; font-size: .75rem; font-weight: 700; padding: .25rem .5rem; }
.schedule-remove-assignment { font-size: .8rem; padding: .3rem .55rem; }
.schedule-roster { list-style: none; margin: 0 0 1rem; padding: 0; }
.schedule-roster li { align-items: center; border-bottom: 1px solid #edf0f5; display: flex; gap: .5rem; justify-content: space-between; padding: .65rem 0; }
.schedule-roster small { color: #667085; display: block; }
.schedule-detail label { display: block; font-size: .9rem; font-weight: 650; margin-bottom: .35rem; }
.schedule-action-card { background: #f7f9ff; border: 1px solid #dce6fb; border-radius: 14px; padding: .9rem; }
.schedule-action-heading { align-items: start; display: flex; gap: .65rem; margin-bottom: .85rem; }
.schedule-action-heading > span { align-items: center; background: #e5edff; border-radius: 50%; color: #3159a1; display: flex; flex: 0 0 28px; font-size: 1.15rem; font-weight: 500; height: 28px; justify-content: center; }
.schedule-action-heading h3, .schedule-action-heading h4 { font-size: .98rem; font-weight: 750; margin: .05rem 0 .15rem; }
.schedule-action-heading p { color: #667085; font-size: .8rem; line-height: 1.35; margin: 0; }
.schedule-action-card .form-select { min-height: 44px; }
.schedule-action-card .btn { margin-top: .75rem; width: 100%; }
.schedule-action-card .schedule-form-hint { background: rgba(255, 255, 255, .72); border-radius: 8px; line-height: 1.4; padding: .55rem .65rem; }

@media (max-width: 1200px) {
    .schedule-workspace { grid-template-columns: minmax(0, 1fr); }
    .schedule-detail { max-height: none; position: static; }
}

.dashboard-header p {
    color: #667085;
    font-size: 1.05rem;
    max-width: 680px;
}

.eyebrow {
    color: var(--app-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.metric-card, .empty-state, .record-panel {
    background: var(--app-surface);
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(16, 35, 63, .05);
}

.metric-card {
    border-top: 4px solid #2f80ed;
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 1.25rem;
    color: #162033;
    text-decoration: none;
}

.metric-card:hover { border-color: #b7c9e4; color: #162033; transform: translateY(-2px); }
.metric-card:focus-visible { outline: 3px solid #9bbcff; outline-offset: 3px; }
.metric-card > span { color: #475467; font-weight: 650; }
.metric-card strong { font-size: 2.4rem; line-height: 1.2; margin: .7rem 0; }
.metric-card small { color: #667085; line-height: 1.4; }
.metric-card.accent-teal { border-top-color: var(--app-success); }
.metric-card.accent-orange { border-top-color: var(--app-warning); }

.subject-math { --subject-color: #3b82f6; --subject-soft: #eff6ff; }
.subject-science { --subject-color: #10b981; --subject-soft: #ecfdf5; }
.subject-turkish { --subject-color: #f43f5e; --subject-soft: #fff1f2; }
.subject-english { --subject-color: #8b5cf6; --subject-soft: #f5f3ff; }
.subject-social { --subject-color: #f59e0b; --subject-soft: #fffbeb; }
.subject-religion { --subject-color: #14b8a6; --subject-soft: #f0fdfa; }
.subject-other { --subject-color: #64748b; --subject-soft: #f8fafc; }

.subject-label {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
    font-weight: 650;
}

.subject-label::before {
    background: var(--subject-color);
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: .65rem;
    width: .65rem;
}
.dashboard-focus { display: flex; flex-direction: column; min-height: 215px; }
.dashboard-focus h2 { margin: .4rem 0 .75rem; }
.dashboard-focus p { color: #526174; line-height: 1.5; margin-bottom: 1.25rem; }
.dashboard-focus .btn { align-self: flex-start; margin-top: auto; }
.dashboard-work-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.dashboard-pending-alert { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 1px solid #f2d088; border-left: 4px solid #d99b23; border-radius: 12px; background: #fff9ed; color: #593e0b; }
.dashboard-pending-alert div { display: flex; flex-direction: column; gap: .2rem; }
.dashboard-pending-alert a { font-weight: 650; text-decoration: none; white-space: nowrap; }
.dashboard-pending-alert a:hover { text-decoration: underline; }
.dashboard-subject-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.dashboard-subject-list li + li { border-top: 1px solid #e6ebf2; }
.dashboard-subject-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .25rem; }
.dashboard-subject-list strong { color: #305ca2; white-space: nowrap; }
.empty-state p { color: #667085; margin: 0; }

.empty-state { padding: 3.5rem 2rem; text-align: center; }
.empty-state h2 { font-size: 1.35rem; font-weight: 700; }
.empty-state.compact-empty-state { padding: 1.5rem; }
.empty-state.compact-empty-state h3 { font-size: 1.1rem; font-weight: 700; }

.record-panel { padding: 1.5rem; }
.record-panel h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; }
.record-panel.table-responsive { padding: .75rem 1.25rem; }
.record-search { width: 250px; }
.page-loading { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 160px; color: #526174; }

@media (max-width: 960px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .notification-banner { left: auto; right: 1rem; top: 1rem; }
    .schedule-detail-header { align-items: flex-start; }
    .dashboard-header, .page-heading { align-items: flex-start; flex-direction: column; }
    .schedule-overview-heading { align-items: flex-start; flex-direction: column; }
    .schedule-overview-actions { align-items: flex-start; }
    .schedule-export-actions { justify-content: flex-start; }
    .schedule-overview-meta { text-align: left; }
    .schedule-notice { flex-basis: auto; width: 100%; }
    .metric-grid { grid-template-columns: 1fr; }
    .dashboard-pending-alert { align-items: flex-start; flex-direction: column; }
}
