@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --ink: #120817;
    --wine: #6f0e35;
    --wine-bright: #b51e58;
    --gold: #dca52b;
    --gold-pale: #f9e6b1;
    --paper: #f4dfb0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--gold-pale);
    background: var(--ink);
    font-family: 'Libre Baskerville', Georgia, serif;
}
.login-page {
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 1.25rem;
    place-items: center;
    padding: clamp(.75rem, 3vh, 2rem) 1.25rem;
    background: radial-gradient(circle at center, #35132d 0%, var(--ink) 62%);
}
.login-version {
    color: var(--paper);
    font-size: .8rem;
    text-align: center;
}
.login-card {
    width: min(100%, 25rem);
    padding: clamp(1rem, 4vh, 2.5rem) 2rem clamp(1rem, 3vh, 2rem);
    border: 1px solid rgba(220, 165, 43, .5);
    background: rgba(18, 8, 23, .9);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35);
    text-align: center;
}
.login-logo {
    display: block;
    width: min(100%, clamp(8rem, 28vh, 14rem));
    aspect-ratio: 1;
    margin: 0 auto clamp(.75rem, 2vh, 1.5rem);
    object-fit: cover;
    border-radius: 50%;
}
.login-card h1 { margin: 0 0 clamp(.75rem, 2vh, 1.5rem); color: var(--gold-pale); font: 600 clamp(1.5rem, 4vh, 2rem) Cinzel, Georgia, serif; }
.login-form { display: grid; gap: .6rem; text-align: left; }
.login-form label { color: var(--paper); font-size: .9rem; }
.login-form input {
    width: 100%;
    margin-bottom: .7rem;
    padding: clamp(.65rem, 1.7vh, .9rem) 1rem;
    border: 1px solid rgba(220, 165, 43, .7);
    background: rgba(10, 3, 15, .8);
    color: white;
    font: inherit;
}
.login-form button {
    margin-top: .5rem;
    padding: clamp(.7rem, 1.8vh, 1rem);
    border: 1px solid var(--gold);
    background: var(--wine-bright);
    color: white;
    cursor: pointer;
    font: 700 1rem Cinzel, serif;
}
button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"],
.schedule-nav a, .period-nav a, .view-switch a { border-radius: 12px; }
.login-form button:hover { background: #cf2869; }
.login-error { margin: .5rem 0 0; color: #ffb3c7; font-size: .85rem; line-height: 1.4; }
.schedule-page { min-height: 100vh; padding: 3rem 1.25rem; background: radial-gradient(circle at top, #35132d 0%, var(--ink) 58%); }
.schedule-content { width: min(100%, 70rem); margin: 0 auto; }
.schedule-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.schedule-heading h1 { margin-bottom: .25rem; }
.schedule-heading p { margin: 0; color: var(--gold); }
.schedule-user { display: flex; align-items: center; gap: .9rem; }
.schedule-login { color: var(--gold-pale); font: 700 .9rem Cinzel, Georgia, serif; }
.schedule-logo { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; border: 1px solid rgba(220, 165, 43, .6); }
.schedule-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.schedule-nav { display: flex; gap: .75rem; flex-wrap: wrap; }
.schedule-nav a { padding: .8rem 1rem; border: 1px solid var(--gold); color: white; text-decoration: none; font: 700 .85rem Cinzel, serif; }
.schedule-nav a:hover { background: var(--wine-bright); }
.schedule-nav a.is-active { background: var(--wine-bright); box-shadow: inset 0 -3px var(--gold); }
.period-nav, .view-switch { display: flex; gap: .5rem; }
.period-nav a, .view-switch a { padding: .7rem .8rem; border: 1px solid rgba(220, 165, 43, .6); color: white; text-decoration: none; font: 700 .75rem Cinzel, serif; }
.period-nav a:hover, .view-switch a:hover, .view-switch .is-active { background: var(--wine-bright); }
.list-view { display: grid; gap: 1rem; }
.schedule-list-block { border: 1px solid rgba(220, 165, 43, .35); background: rgba(18, 8, 23, .88); }
.list-day-header { padding: .9rem 1.1rem; border-bottom: 1px solid rgba(220, 165, 43, .35); }
.list-day-header h2 { margin: 0; color: var(--gold-pale); font: 700 1.1rem Cinzel, Georgia, serif; }
.list-lessons { width: 100%; border-collapse: collapse; table-layout: fixed; }
.list-lessons th, .list-lessons td { padding: .9rem 1.1rem; border-bottom: 1px solid rgba(220, 165, 43, .16); text-align: left; vertical-align: middle; }
.list-lessons thead th { color: var(--gold); font: 700 .7rem Cinzel, Georgia, serif; letter-spacing: .02em; text-transform: uppercase; }
.list-lessons th:first-child { width: 25%; }
.list-lessons th:nth-child(2) { width: 43%; }
.list-lessons th:nth-child(3), .list-lessons th:nth-child(4) { width: 16%; }
.list-lesson:last-child th, .list-lesson:last-child td { border-bottom: 0; }
.list-lesson > th { color: var(--gold-pale); }
.list-lesson time, .list-lesson strong { display: block; }
.list-lesson time { margin-bottom: .25rem; color: var(--gold); font-weight: 700; }
.list-lesson strong { font: 700 .95rem Cinzel, Georgia, serif; }
.lesson-homework { color: var(--paper); font-size: .85rem; line-height: 1.45; }
.lesson-rating { text-align: center !important; }
.rating-number { display: block; color: var(--gold-pale); font: 700 1.8rem Cinzel, Georgia, serif; line-height: 1; }
.rating-stars { display: flex; justify-content: center; gap: .08rem; margin-top: .4rem; color: rgba(220, 165, 43, .25); font-size: .78rem; line-height: 1; }
.rating-empty { color: rgba(249, 230, 177, .45); font-size: 1.4rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .7rem; }
.month-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day-card { min-height: 18rem; border: 1px solid rgba(220, 165, 43, .35); background: rgba(18, 8, 23, .88); }
.day-header { padding: .9rem .75rem; border-bottom: 1px solid rgba(220, 165, 43, .35); }
.day-header h2 { margin: 0; color: var(--gold-pale); font-size: .95rem; }
.day-header time { display: block; margin-top: .35rem; color: var(--gold); font-size: .8rem; }
.day-lessons { display: grid; gap: .6rem; padding: .7rem; }
.lesson-card { display: grid; gap: .3rem; padding: .75rem; border-left: 3px solid var(--wine-bright); background: rgba(111, 14, 53, .35); }
.lesson-card strong { color: var(--gold-pale); font: 700 .9rem Cinzel, serif; }
.lesson-card time { color: var(--gold); font-weight: 700; }
.lesson-card span { color: var(--paper); font-size: .75rem; line-height: 1.4; }
.section-page { min-height: 100vh; padding: 3rem 1.25rem; background: radial-gradient(circle at top, #35132d 0%, var(--ink) 58%); }
.section-content { width: min(100%, 72rem); margin: 0 auto; }
.section-content h1 { margin: .5rem 0 2rem; }
.eyebrow { display: inline-block; margin-bottom: .5rem; color: var(--gold); font: 700 .8rem Cinzel, serif; text-transform: uppercase; letter-spacing: .08em; }
.section-back { display: inline-block; margin-bottom: 2rem; color: var(--gold); text-decoration: none; font: 700 .8rem Cinzel, serif; }
.student-summary { display: grid; justify-items: center; gap: .8rem; margin: 0 auto 2.5rem; padding: 1.5rem; border: 1px solid rgba(220, 165, 43, .35); background: rgba(18, 8, 23, .88); }
.student-login { color: var(--gold-pale); font: 700 1rem Cinzel, Georgia, serif; }
.student-photo { width: 24rem; height: 24rem; object-fit: cover; border: 2px solid var(--gold); border-radius: 50%; }
.student-rating { display: flex; gap: .15rem; color: rgba(220, 165, 43, .25); font-size: 2rem; line-height: 1; }
.rating-star { background: linear-gradient(90deg, var(--gold) var(--star-fill), rgba(220, 165, 43, .25) var(--star-fill)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.average-grade { color: var(--paper); font-size: .85rem; }
.data-list { display: grid; gap: .8rem; }
.data-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 1.25rem; border-left: 3px solid var(--wine-bright); background: rgba(18, 8, 23, .88); }
.data-item strong { color: var(--gold-pale); font-family: Cinzel, Georgia, serif; }
.data-item time { color: var(--gold); font-weight: 700; }
.data-item span { grid-column: 1 / -1; color: var(--paper); }
.teacher-section { margin-top: 2rem; padding: 1.25rem; border: 1px solid rgba(220, 165, 43, .3); background: rgba(18, 8, 23, .85); }
.teacher-section h2 { margin: 0 0 1rem; color: var(--gold-pale); font: 700 1.6rem Cinzel, serif; }
.teacher-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.teacher-form label, .grade-form label { display: grid; gap: .4rem; color: var(--paper); font-size: .85rem; }
.teacher-form input, .teacher-form select, .teacher-form textarea, .grade-form select {
    width: 100%; padding: .8rem .9rem; border: 1px solid rgba(220, 165, 43, .6); background: rgba(10, 3, 15, .8); color: white; font: inherit;
}
.star-rating-field { display: grid; gap: .4rem; min-width: 220px; margin: 0; padding: 0; border: 0; }
.star-rating-field legend { padding: 0; color: var(--paper); font-size: .85rem; }
.star-picker { display: flex; flex-direction: row; gap: .12rem; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { color: rgba(220, 165, 43, .3); cursor: pointer; font-size: 2.35rem; line-height: 1; transition: color .15s, transform .15s; }
.star-picker input:checked + label, .star-picker label:has(~ input:checked) { color: var(--gold); }
.star-picker:has(label:hover) label { color: rgba(220, 165, 43, .3); }
.star-picker:has(label:hover) label:hover, .star-picker:has(label:hover) label:has(~ label:hover) { color: var(--gold); }
.star-picker input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }
.star-picker label:hover { transform: scale(1.08); }
.star-rating-hint { color: rgba(249, 230, 177, .62); font-size: .72rem; }
.teacher-form textarea { resize: vertical; min-height: 110px; }
.teacher-form button, .grade-form button {
    padding: .85rem 1.15rem; border: 1px solid var(--gold); background: var(--wine-bright); color: white; cursor: pointer; font: 700 .85rem Cinzel, serif;
}
.schedule-bottom-menu { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: #180a1d; border-top: 1px solid var(--gold); }
.schedule-bottom-menu button { padding: .8rem 1.5rem; border: 1px solid var(--gold); background: var(--wine-bright); color: white; font: inherit; cursor: pointer; }
.section-content:has(.schedule-bottom-menu) { padding-bottom: 5rem; }
.filter-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.filter-actions a { color: var(--gold); }
.lesson-dialog { width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.25rem; border: 1px solid var(--gold); background: #180a1d; color: var(--paper); }
.lesson-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-heading h2 { margin: 0; color: var(--gold-pale); }
.dialog-heading button { border: 0; background: transparent; color: var(--gold); font-size: 2rem; cursor: pointer; }
.lesson-dialog .teacher-form { margin-bottom: 0; }
.teacher-form input[type="date"], .teacher-form input[type="time"] { color-scheme: dark; min-width: 0; }
body:has(.lesson-dialog[open]) { overflow: hidden; }
.wide-field { grid-column: 1 / -1; }
.teacher-list { display: grid; gap: 1rem; }
.teacher-card { display: grid; gap: .5rem; padding: 1rem 1.15rem; border-left: 3px solid var(--wine-bright); background: rgba(111, 14, 53, .22); }
.teacher-card strong { color: var(--gold-pale); font: 700 1.05rem Cinzel, serif; }
.teacher-card span, .teacher-card p, .teacher-card time { color: var(--paper); }
.teacher-card p { margin: 0; line-height: 1.5; }
.card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.lesson-subject { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.lesson-grade-number { color: var(--gold-pale); font: 700 1.8rem Cinzel, Georgia, serif; line-height: 1; }
.grade-form { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; }
.homework-card .grade-form { margin-top: .5rem; }
.lesson-card a { color: var(--gold); text-decoration: none; font-weight: 700; }
.lesson-card.is-past { background: rgba(90, 78, 86, .18); border-left-color: #74636d; }
.lesson-card.is-past, .lesson-card.is-past :is(strong, span, time, p, b, a),
.list-lesson.is-past :is(th, td, time, strong, span) { color: #aa9ba6; }
.list-lesson.is-past .rating-star { background: none; -webkit-text-fill-color: #aa9ba6; }
.lesson-card.is-past a:hover, .lesson-card.is-past a:focus-visible { color: var(--gold-pale); }
.student-card { position: relative; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.student-identity { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.student-identity span { overflow-wrap: anywhere; color: var(--gold-pale); font-size: 1rem; }
.student-avatar { width: 2.5rem; height: 2.5rem; flex-shrink: 0; object-fit: cover; border: 1px solid var(--gold); border-radius: 50%; }
.student-overall-grade { display: grid; justify-items: end; gap: .2rem; }
.student-overall-grade strong { font: 700 2.8rem Georgia, serif; line-height: 1; color: var(--gold-pale); text-shadow: 0 2px 12px rgba(220, 165, 43, .25); }
.student-overall-grade span { font-size: .65rem; }
.homework-card .card-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.homework-student { display: grid; gap: .35rem; overflow-wrap: anywhere; }
.homework-subject { display: grid; gap: .35rem; text-align: right; justify-items: end; overflow-wrap: anywhere; }
.homework-subject time { font-size: .85rem; }
.homework-rating-row { display: flex; align-items: center; gap: 1rem; }
.homework-grade-number { min-width: 1ch; color: var(--gold-pale); font: 700 2.6rem Cinzel, Georgia, serif; line-height: 1; }
.student-name, .student-schedule-link { color: var(--gold-pale); text-decoration: none; font-weight: 700; }
.student-schedule-link { color: var(--gold); }
.student-card form { margin: 0; }
.danger-button { padding: .6rem .9rem; border: 1px solid rgba(255, 120, 140, .65); background: rgba(120, 18, 50, .55); color: white; cursor: pointer; }
.empty-data { display: grid; place-items: center; min-height: 7rem; color: var(--paper); background: rgba(18, 8, 23, .88); border: 1px dashed rgba(220, 165, 43, .3); }
@media (max-width: 760px) {
    .login-card { padding: 2rem 1.25rem 1.5rem; }
    .schedule-page { padding: 2rem 1.25rem; }
    .schedule-header { align-items: start; }
    .schedule-user { flex-direction: column-reverse; align-items: end; gap: .45rem; }
    .schedule-toolbar { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .schedule-nav, .period-nav, .view-switch { justify-content: center; }
    .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .list-lessons th, .list-lessons td { padding: .75rem .55rem; }
    .list-lessons thead th { font-size: .58rem; }
    .list-lessons th:first-child { width: 24%; }
    .list-lessons th:nth-child(2) { width: 36%; }
    .list-lessons th:nth-child(3), .list-lessons th:nth-child(4) { width: 20%; }
    .rating-number { font-size: 1.4rem; }
    .rating-stars { font-size: .62rem; }
    .data-item { grid-template-columns: 1fr; }
    .teacher-form { grid-template-columns: 1fr; }
    .card-head { flex-direction: column; align-items: start; }
    .student-card { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
}

/* Shared button sizing across forms and navigation. */
body button, body input[type="submit"], body input[type="button"], body input[type="reset"], body [role="button"],
body .schedule-nav a, body .period-nav a, body .view-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-height: 56px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}
body .login-form button, body .teacher-form button, body .grade-form button,
body .schedule-bottom-menu button, body .dialog-heading button {
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.period-nav { flex-wrap: wrap; margin-bottom: 1rem; }
.schedule-week-row { align-items: center; justify-content: flex-start; }
.week-period-label { margin-left: auto; text-align: right; flex: 1; min-width: 8rem; }
.lesson-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.assign-homework { border: 1px solid var(--gold); background: var(--wine-bright); color: white; cursor: pointer; }

/* One typeface for every button and button-style navigation link. */
body button, body input[type="submit"], body input[type="button"], body input[type="reset"], body [role="button"],
body .login-form button, body .teacher-form button, body .grade-form button,
body .schedule-bottom-menu button, body .dialog-heading button,
body .schedule-nav a, body .period-nav a, body .view-switch a {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: .02em;
}

.schedule-list .schedule-lesson-heading { display: flex; flex-direction: row; justify-content: space-between; align-items: start; }
.schedule-lesson-heading .lesson-subject { text-align: right; }

/* Compact spacing around the teacher navigation. */
.section-content > .schedule-header { margin-bottom: .65rem; }
.section-content > .schedule-header h1 { margin-bottom: .5rem; }
.section-content > .schedule-toolbar { margin-top: 0; margin-bottom: .8rem; }

.schedule-controls { display: flex; align-items: end; gap: .65rem; margin-bottom: 1.25rem; }
.schedule-controls .schedule-week-row { flex: 1.2; flex-wrap: nowrap; gap: .3rem; margin: 0; min-width: 0; }
.schedule-controls .schedule-week-row a { padding: 0 .4rem; flex-shrink: 0; }
.schedule-controls .schedule-week-row a:nth-child(2) { flex: 1; min-width: 0; flex-shrink: 1; }
.schedule-controls .schedule-filters { flex: 1.5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; margin: 0; min-width: 0; }
.schedule-controls .schedule-filters label { min-width: 0; }
.schedule-controls .schedule-filters select { height: 56px; padding: .4rem; min-width: 0; }
.schedule-controls .filter-actions { height: 56px; }

.schedule-controls .schedule-week-row a:nth-child(2) { flex-direction: column; text-transform: none; letter-spacing: 0; }
.schedule-controls .schedule-week-row a:nth-child(2) span { white-space: nowrap; }

.schedule-day > summary { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-bottom: 1px solid rgba(220,165,43,.4); cursor: pointer; color: var(--gold-pale); font-weight: 700; list-style: none; }
.schedule-day > summary::-webkit-details-marker { display: none; }
.schedule-day > summary::before { content: '›'; font-size: 1.5rem; }
.schedule-day[open] > summary::before { transform: rotate(90deg); }
.day-lesson-count { margin-left: auto; font-size: .8rem; font-weight: 400; }
.day-lesson-list { padding-top: .75rem; }
.schedule-day > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lesson-ratings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lesson-ratings .star-rating-field { min-width: 0; width: 100%; }
.lesson-ratings .homework-rating-row { gap: .5rem; }
.lesson-ratings .star-picker { gap: 0; }
.lesson-ratings .star-picker label { font-size: clamp(1.3rem, 4.5vw, 2.35rem); }
.lesson-ratings .homework-grade-number { font-size: 2.2rem; }

.lesson-student-subject { display: grid; gap: .4rem; }
.schedule-list .lesson-card .lesson-student-subject > span { font: 700 1.05rem Cinzel, serif; color: var(--gold-pale); }
.schedule-list .lesson-card .lesson-student-subject > .lesson-time { color: var(--gold-pale); }

.homework-card .homework-description { text-align: center; font-size: 1.35rem; line-height: 1.5; margin: .85rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.schedule-student-identity { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; text-align: right; min-width: 0; }
.schedule-student-identity strong { overflow-wrap: anywhere; }

.homework-card .homework-description { color: #fff; }

.schedule-student-identity .student-avatar { width: 3.5rem; height: 3.5rem; }
.lesson-card .lesson-edit-link { justify-self: end; margin-top: .35rem; }
.lesson-card .lesson-time { font: 700 1.8rem/1.2 Georgia, serif; color: var(--gold-pale); }
.lesson-ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: .65rem; }
.lesson-ratings .lesson-edit-link { margin: 0; align-self: center; font-size: .85rem; }
.lesson-ratings .star-picker label { font-size: clamp(1rem, 3.2vw, 1.6rem); }
.lesson-ratings .homework-grade-number { font-size: 1.9rem; }
.lesson-ratings .homework-rating-row { gap: .3rem; }

input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), select, textarea { border-radius: 12px; }
.filter-actions .filter-reset-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 56px; border: 1px solid var(--gold); border-radius: 12px; background: var(--wine-bright); color: white; font: 700 24px/1 Georgia, serif; text-decoration: none; }
.filter-reset-button:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 3px; }

.section-content > .schedule-toolbar > .schedule-nav {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.3fr;
    width: 100%;
    gap: .4rem;
    margin: 0;
    padding: 0;
}
body .section-content > .schedule-toolbar > .schedule-nav a {
    min-width: 0;
    padding-left: .25rem;
    padding-right: .25rem;
    white-space: nowrap;
    font-size: clamp(12px, 3.1vw, 18px);
    letter-spacing: 0;
}

.lesson-dialog-actions { grid-column: 1 / -1; display: flex; gap: .75rem; }
.lesson-dialog-actions button[type=submit] { flex: 1; }
.lesson-dialog-actions #close-lesson-dialog { flex: 0 0 56px; padding: 0; background: transparent; color: var(--gold); }
.schedule-controls .schedule-filters select {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: .02em;
}
.lesson-timing-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; align-items: end; }
.lesson-timing-row label { min-width: 0; }
.lesson-timing-row input { min-width: 0; padding-left: .5rem; padding-right: .5rem; }
.homework-rating-row:not(:has(input[type="radio"]:checked)) .homework-grade-number {
    color: rgba(220, 165, 43, .3);
}

#lesson-dialog { width: min(42rem, calc(100vw - 1.5rem)); padding: 1rem; max-height: calc(100dvh - 1.5rem); }
#lesson-dialog .dialog-heading { margin-bottom: .65rem; }
#lesson-dialog .dialog-heading h2 { font-size: 1.5rem; }
#lesson-dialog .teacher-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
#lesson-dialog .teacher-form > label { min-width: 0; }
#lesson-dialog .teacher-form label { gap: .3rem; }
#lesson-dialog .teacher-form input:not([type=radio]):not([type=hidden]),
#lesson-dialog .teacher-form select { height: 44px; padding: .5rem; min-width: 0; }
#lesson-dialog .teacher-form textarea { min-height: 0; height: clamp(64px, 12vh, 100px); padding: .5rem; }
#lesson-dialog .edit-grade-field { min-width: 0; }
#lesson-dialog .homework-rating-row { gap: .35rem; }
#lesson-dialog .star-picker { gap: 0; }
#lesson-dialog .star-picker label { font-size: clamp(1.2rem, 4vw, 1.8rem); }
#lesson-dialog .homework-grade-number { font-size: 2rem; }
#lesson-dialog .clear-edit-grade { height: 36px; min-height: 36px; width: 32px; padding: 0; margin-left: auto; }
#lesson-dialog .lesson-dialog-actions button { height: 48px; min-height: 48px; }
@media (max-height: 600px) {
    #lesson-dialog { padding: .65rem; }
    #lesson-dialog .teacher-form { gap: .35rem; }
    #lesson-dialog .dialog-heading { margin-bottom: .35rem; }
    #lesson-dialog .teacher-form textarea { height: 54px; }
}
#lesson-dialog .star-picker { position: relative; }
#lesson-dialog .star-picker input[type="radio"] { width: 1px; height: 1px; padding: 0; margin: 0; border: 0; }

/* Responsive layout: let content wrap instead of compressing adjacent controls. */
.schedule-heading, .schedule-user, .teacher-card > *, .card-head > *,
.teacher-form > *, .grade-form, .data-item > * { min-width: 0; }
.schedule-heading, .schedule-login, .teacher-card, .data-item,
.section-content h1, .teacher-section h2, .empty-data { overflow-wrap: anywhere; }
.day-card, .day-lessons, .lesson-card, .lesson-card > * { min-width: 0; overflow-wrap: anywhere; }
.list-lessons th, .list-lessons td { overflow-wrap: anywhere; }
.student-photo { max-width: 100%; height: auto; aspect-ratio: 1; }
.star-rating-field { min-width: 0; max-width: 100%; }
.star-picker { position: relative; }
.star-picker input[type="radio"] { width: 1px; height: 1px; padding: 0; margin: 0; border: 0; }
.schedule-toolbar { flex-wrap: wrap; }
.empty-data { padding: 1rem; text-align: center; }

@media (max-width: 1000px) {
    .schedule-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
    .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .schedule-page, .section-page { padding: 1.25rem 1rem; }
    .schedule-header { gap: .75rem; }
    .schedule-heading { flex: 1; }
    .schedule-heading h1, .section-content h1 { font-size: 1.5rem; }
    .schedule-user { max-width: 32%; flex-shrink: 0; }
    .schedule-logo { width: 3.5rem; height: 3.5rem; }
    .schedule-login { text-align: right; }
    .schedule-header:has(.schedule-login) { flex-wrap: wrap; }
    .schedule-header:has(.schedule-login) .schedule-heading { flex-basis: 100%; }
    .schedule-header:has(.schedule-login) .schedule-user {
        max-width: 100%; width: 100%; flex-direction: row-reverse; justify-content: flex-end;
        align-items: center; gap: .75rem;
    }
    .schedule-header:has(.schedule-login) .schedule-login { text-align: left; }
    .schedule-header:has(.schedule-login) .schedule-logo { flex-shrink: 0; }
    .schedule-toolbar { gap: .75rem; margin-bottom: 1rem; }
    .schedule-nav, .period-nav, .view-switch { flex-wrap: wrap; gap: .5rem; }
    .schedule-nav a, .period-nav a, .view-switch a { flex: 1 1 auto; }
    .view-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body button, body input[type="submit"], body input[type="button"],
    body input[type="reset"], body [role="button"],
    body .schedule-nav a, body .period-nav a, body .view-switch a {
        height: auto; min-height: 48px; max-width: 100%;
        padding: .65rem .75rem; font-size: 1rem; white-space: normal;
        overflow-wrap: anywhere;
    }
    body .section-content > .schedule-toolbar > .schedule-nav a {
        white-space: normal; font-size: .875rem; padding: .6rem .35rem;
    }
    body .view-switch a { font-size: .875rem; padding: .65rem .25rem; }
    .section-content > .schedule-toolbar > .schedule-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .schedule-controls .schedule-week-row a { min-height: 56px; }
    .schedule-controls .schedule-week-row a:first-child,
    .schedule-controls .schedule-week-row a:last-child { flex: 0 0 48px; }
    .schedule-controls .schedule-week-row a:nth-child(2) span { white-space: normal; }
    .schedule-controls .schedule-filters select { font-size: 1rem; letter-spacing: 0; }
    .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .day-card { min-height: 0; }
    .lesson-card { overflow-wrap: anywhere; }
    .teacher-card { padding: 1rem; gap: .75rem; }
    .teacher-section { padding: 1rem; }
    .student-card { grid-template-columns: minmax(0, 1fr) auto; }
    .student-card > form { grid-column: 1 / -1; justify-self: end; }
    .student-overall-grade strong { font-size: 2.25rem; }
    .schedule-list .schedule-lesson-heading { flex-wrap: nowrap; align-items: flex-start; gap: .75rem; }
    .schedule-student-identity { flex: 0 1 45%; flex-direction: column; align-items: flex-end; }
    .lesson-student-subject { min-width: 0; }
    .lesson-card .lesson-time { white-space: nowrap; font-size: clamp(1rem, 4.5vw, 1.8rem); }
    .lesson-student-subject > span, .schedule-student-identity strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .lesson-ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .lesson-ratings .lesson-edit-link { grid-column: 1 / -1; justify-self: end; padding: .65rem 0; min-height: 44px; }
    .homework-rating-row, .lesson-ratings .homework-rating-row { gap: .5rem; flex-wrap: wrap; }
    .star-picker, .lesson-ratings .star-picker, #lesson-dialog .star-picker { gap: 0; flex-shrink: 0; }
    .star-picker label, .lesson-ratings .star-picker label, #lesson-dialog .star-picker label {
        display: grid; place-items: center; width: 36px; min-height: 44px; font-size: 1.9rem;
    }
    .lesson-ratings .grade-form { min-width: 0; }
    .lesson-ratings .homework-rating-row { flex-wrap: nowrap; gap: .25rem; }
    .lesson-ratings .star-picker { flex: 0 1 auto; min-width: 0; }
    .lesson-ratings .star-picker label { flex: 0 1 auto; min-width: 0; width: 1.1em; font-size: clamp(.9rem, 4.5vw, 1.8rem); }
    .lesson-ratings .homework-grade-number { font-size: clamp(1.2rem, 5vw, 1.9rem); }
    .lesson-ratings .star-rating-field legend { font-size: clamp(.65rem, 2.7vw, .85rem); white-space: nowrap; }
    .homework-card .homework-description { font-size: 1.1rem; }
    .schedule-day > summary { flex-wrap: wrap; gap: .5rem; padding: .75rem; }
    .schedule-day > summary time { flex: 1; min-width: 0; }
    .day-lesson-count { white-space: nowrap; }
    .teacher-form input, .teacher-form select, .teacher-form textarea,
    .grade-form select, .login-form input { min-width: 0; font-size: 16px; }
    .lesson-dialog, #lesson-dialog { width: calc(100% - 1.5rem); padding: 1rem; }
    .dialog-heading { align-items: flex-start; gap: .5rem; }
    .dialog-heading h2 { min-width: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
    .dialog-heading button { flex: 0 0 44px; padding: 0; }
    #lesson-dialog .teacher-form { grid-template-columns: minmax(0, 1fr); }
    .lesson-timing-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lesson-timing-row > label:first-child { grid-column: 1 / -1; }
    #lesson-dialog .clear-edit-grade { min-height: 44px; height: 44px; width: 44px; }
    .lesson-dialog-actions { gap: .5rem; }
    .lesson-dialog-actions button { min-width: 0; }
    .schedule-bottom-menu { padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); }
    .schedule-bottom-menu button { width: min(100%, 28rem); }
    .section-content:has(.schedule-bottom-menu) { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
    .student-summary { padding: 1rem; }
    .student-photo { width: min(100%, 18rem); }
    .list-lessons thead {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip-path: inset(50%); white-space: nowrap;
    }
    .list-lessons, .list-lessons tbody { display: block; }
    .list-lessons .list-lesson { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .75rem; border-bottom: 1px solid rgba(220,165,43,.3); }
    .list-lessons .list-lesson > th, .list-lessons .list-lesson > td { width: auto; padding: .5rem; border: 0; overflow-wrap: anywhere; }
    .list-lesson > th, .list-lesson > .lesson-homework { grid-column: 1 / -1; }
    .list-lesson td::before { display: block; margin-bottom: .5rem; color: var(--gold); font-size: .75rem; content: attr(data-label); }
    .list-lessons .rating-number { font-size: 1.5rem; }
    .rating-stars { font-size: .9rem; }
}

@media (max-width: 420px) {
    .week-grid { grid-template-columns: minmax(0, 1fr); }
    .login-page { padding: .75rem; }
    .login-card { padding: 1.25rem 1rem; }
    .homework-card .card-head { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .homework-subject { text-align: left; justify-items: start; }
}

/* Center portraits with the score over the lower-right corner. */
.teacher-card.student-card { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; grid-template-rows: auto auto; gap: .5rem; padding: 1rem; border-left: 0; }
.student-card .student-identity { display: contents; }
.student-card .student-identity > span { grid-column: 2; grid-row: 2; text-align: center; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.student-card .student-portrait { grid-column: 1 / -1; grid-row: 1; justify-self: center; position: relative; width: 11rem; max-width: 100%; }
.student-card .student-avatar { display: block; position: static; transform: none; width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; object-fit: cover; }
.student-card .student-overall-grade { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; min-width: 3.5rem; min-height: 3.5rem; padding: .35rem; border-radius: 0; background: transparent; border: 0; box-shadow: none; }
.student-card .student-overall-grade strong { font-size: 2rem; color: var(--gold-pale); text-shadow: 0 0 5px rgba(255, 215, 100, .95), 0 0 12px rgba(235, 180, 45, .8), 0 0 22px rgba(220, 165, 43, .55); }
.student-card > form { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; }
body .student-card .danger-button { width: auto; height: auto; min-height: 0; padding: .35rem 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #df9aaa; font: 400 .75rem/1.4 Georgia, serif; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: .2em; }
body .student-card .danger-button:hover { color: var(--gold-pale); }
body .student-card .danger-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Keep the student list in its own scroll area between the two menus. */
body:has(#student-dialog) { overflow: hidden; }
.section-page:has(#student-dialog) { height: 100dvh; min-height: 0; padding-bottom: 0; overflow: hidden; }
.section-content:has(#student-dialog) { height: 100%; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
.section-content:has(#student-dialog) > .schedule-header,
.section-content:has(#student-dialog) > .schedule-toolbar { flex-shrink: 0; }
.section-content:has(#student-dialog) > .teacher-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; align-content: start; padding-bottom: 1rem; }
.section-content:has(#student-dialog) > .schedule-bottom-menu { position: static; flex-shrink: 0; }
.teacher-card.student-card { background: transparent; }

.lesson-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lesson-footer .lesson-edit-link { margin: 0 0 0 auto; }
body .lesson-footer .assign-homework,
.lesson-footer .lesson-edit-link { width: auto; height: auto; min-height: 44px; display: inline-flex; align-items: center; padding: .5rem 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--gold); font: 700 .85rem Georgia, serif; text-transform: none; letter-spacing: 0; text-decoration: none; cursor: pointer; }
.lesson-card.is-past .lesson-footer .assign-homework { color: #aa9ba6; }
.lesson-footer .assign-homework:hover, .lesson-footer .lesson-edit-link:hover { color: var(--gold-pale); text-decoration: underline; }
.lesson-footer .assign-homework:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

body:has(.schedule-list) { overflow: hidden; }
.section-page:has(.schedule-list) { height: 100dvh; min-height: 0; padding-bottom: 0; overflow: hidden; }
.section-content:has(.schedule-list) { height: 100%; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
.section-content:has(.schedule-list) > .schedule-header,
.section-content:has(.schedule-list) > .schedule-toolbar,
.section-content:has(.schedule-list) > .schedule-controls { flex-shrink: 0; }
.section-content > .schedule-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; align-content: start; padding-bottom: 1rem; }
body .schedule-day > summary .add-day-lesson { flex: 0 0 36px; width: 36px; height: 36px; min-height: 36px; margin-right: .65rem; padding: 0; border: 1px solid var(--gold); border-radius: 10px; background: var(--wine-bright); color: white; font: 400 1.5rem/1 Georgia, serif; cursor: pointer; }
.schedule-list .lesson-card > p { color: #978b96; }
.add-day-lesson:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 760px) {
    .schedule-day > summary { flex-wrap: nowrap; padding: .75rem 0; }
    .schedule-day > summary time { font-size: .9rem; }
    .schedule-day > summary .day-lesson-count { font-size: .65rem; }
}

.lesson-rating-link {
    padding: .65rem 0;
    border: 0;
    background: transparent;
    color: var(--gold-pale);
    font: inherit;
    font-size: .85rem;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}
.lesson-rating-link:hover { color: var(--gold); }
#rating-dialog { width: min(24rem, calc(100% - 2rem)); }
#rating-dialog .star-rating-field { min-width: 0; }
#rating-status { font-size: .85rem; }
.student-card { position: relative; }
.student-schedule-link { color: inherit; text-decoration: none; }
.student-schedule-link::after { content: ""; position: absolute; inset: 0; }
.student-schedule-link:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 3px; }
.student-schedule-link:hover { color: var(--gold); }
.student-card > form { position: relative; z-index: 1; }
.teacher-header { align-items: flex-start; }
.teacher-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.teacher-brand-logo { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--gold); }
.teacher-brand-text { min-width: 0; }
.section-content > .teacher-header h1 { margin: 0; font-size: 1.4rem; }
.teacher-brand-text p { margin: .35rem 0 0; color: var(--paper); font-size: .75rem; }
.teacher-section-switch { display: flex; flex-shrink: 0; margin-left: auto; padding: .25rem; border: 1px solid var(--gold); border-radius: 14px; background: rgba(18, 8, 23, .9); }
.teacher-section-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .65rem; border-radius: 10px; color: var(--gold-pale); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.teacher-section-switch svg { display: block; flex-shrink: 0; }
.course-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.teacher-section-switch a:hover { background: var(--wine); }
.teacher-section-switch a.is-active { background: var(--wine-bright); color: white; }
.teacher-section-switch a:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 2px; }
@media (max-width: 520px) {
    .teacher-header { gap: .5rem; }
    .teacher-brand { gap: .4rem; }
    .teacher-brand-logo { width: 2.25rem; height: 2.25rem; }
    .section-content > .teacher-header h1 { font-size: 1rem; }
    .teacher-brand-text p { font-size: .65rem; }
    .teacher-section-switch { padding: .15rem; }
    .teacher-section-switch a { padding: .7rem .45rem; font-size: .75rem; }
}

/* Compact week selector; lesson details stay readable below the selected day. */
.schedule-day-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; flex-shrink: 0; margin-bottom: .8rem; max-height: 35dvh; overflow-y: auto; padding: 3px; }
.schedule-day-picker[hidden], .schedule-day[hidden] { display: none; }
body .schedule-day-button { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; padding: .65rem .2rem; border: 1px solid rgba(220,165,43,.35); border-radius: 12px; background: rgba(18,8,23,.7); color: var(--gold-pale); cursor: pointer; font-size: .95rem; letter-spacing: 0; }
.schedule-day-button time { font-size: .8rem; font-weight: 400; }
body .schedule-day-button[aria-pressed="true"] { border-color: var(--gold); background: var(--wine-bright); box-shadow: inset 0 0 0 1px var(--gold); }
.schedule-day-button:hover { border-color: var(--gold); }
.schedule-day-button:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 1px; }
.day-students { display: flex; align-items: center; justify-content: center; height: 26px; }
.day-students img, .day-more { width: 24px; height: 24px; border: 1px solid var(--gold); border-radius: 50%; object-fit: cover; background: #251325; }
.day-students > * + * { margin-left: -7px; }
.day-more { display: grid; place-items: center; font-size: .6rem; }
.day-empty { opacity: .45; font-weight: 400; }
.has-day-picker .schedule-day > summary { cursor: default; }
.has-day-picker .schedule-day > summary::before { display: none; }
.schedule-weekend { display: contents; }
@media (max-width: 600px) {
    .schedule-day-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
    body .schedule-day-button { padding: .4rem .2rem; gap: .2rem; }
    .schedule-weekend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-width: 0; border: 1px solid rgba(220,165,43,.35); border-radius: 12px; background: rgba(18,8,23,.7); }
    body .schedule-weekend .schedule-day-button { border: 0; border-radius: 11px 0 0 11px; background: transparent; }
    body .schedule-weekend .schedule-day-button + .schedule-day-button { border-left: 1px solid rgba(220,165,43,.35); border-radius: 0 11px 11px 0; }
    body .schedule-weekend .schedule-day-button[aria-pressed="true"] { background: var(--wine-bright); }
    .schedule-weekend .day-students img, .schedule-weekend .day-more { width: 18px; height: 18px; }
    .schedule-weekend .day-students > * + * { margin-left: -10px; }
    .has-day-picker .schedule-day > summary time { white-space: normal; }
}

/* Time and grades share a row; the portrait sits beside name and subject. */
.schedule-list .lesson-card { container-type: inline-size; --lesson-number-size: clamp(1.5rem, 8.5cqw, 4rem); }
.schedule-list .schedule-lesson-heading { gap: .5rem; align-items: center; }
.schedule-list .schedule-lesson-heading > .lesson-time { color: var(--gold-pale); white-space: nowrap; font: 700 var(--lesson-number-size)/1.1 Georgia, serif; }
.schedule-list .lesson-student-profile { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
.lesson-student-caption { display: grid; gap: .25rem; min-width: 0; }
.schedule-list .lesson-course-name { font: 700 1.05rem Cinzel, serif; color: var(--gold-pale); overflow-wrap: anywhere; }
.schedule-list .schedule-student-identity .student-avatar { flex: 0 0 3rem; width: 3rem; height: 3rem; }
.schedule-list .schedule-student-identity strong { white-space: normal; overflow: visible; }
.schedule-list .lesson-rating-numbers { display: flex; flex: 0 0 auto; align-items: baseline; align-self: center; gap: .1rem; white-space: nowrap; color: var(--wine-bright); }
body .schedule-list .lesson-rating-numbers .lesson-rating-link { width: auto; min-width: 28px; min-height: 44px; padding: .15rem; color: var(--wine-bright); font-size: var(--lesson-number-size); line-height: 1.1; text-decoration: none; text-align: center; text-shadow: none; }
.schedule-list .lesson-rating-numbers .rating-comma { color: var(--wine-bright); font-size: var(--lesson-number-size); line-height: 1.1; text-shadow: none; }
.schedule-list .lesson-footer { flex-wrap: nowrap; align-items: flex-end; gap: .25rem 1rem; }
.schedule-list .lesson-footer .lesson-edit-link { flex: 0 0 44px; justify-content: center; font-size: 1.5rem; }
body .schedule-list .lesson-footer .assign-homework { flex: 1 1 0; min-width: 0; justify-content: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; color: var(--gold-pale); text-shadow: none; }
body .schedule-list .lesson-footer .assign-homework:hover { color: white; }

body .teacher-card .delete-cross { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: #df9aaa; font: 400 1.7rem/1 Arial, sans-serif; text-decoration: none; cursor: pointer; }
body .teacher-card .delete-cross:hover { color: var(--gold-pale); background: rgba(120, 18, 50, .25); }
body .teacher-card .delete-cross:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
