.student-space { display: grid; gap: 2rem; }
.student-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.student-room-header { display: flex; justify-content: space-between; gap: 2rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid #414b6a; }
.student-room-header h2 { margin-block: .25rem; }
.student-room-identity { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.student-avatar { width: clamp(4rem, 10vw, 6rem); aspect-ratio: 1; flex: 0 0 auto; border: 2px solid #9ce7ff; border-radius: 50%; object-fit: cover; background: #070b1d; box-shadow: 0 0 2rem rgba(109, 233, 255, .18); }
.student-avatar--empty { display: grid; place-items: center; color: #9ce7ff; font-size: 2rem; }
.student-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.student-overview article { display: grid; gap: .35rem; padding: 1.2rem; border: 1px solid #414b6a; border-radius: 1rem; background: linear-gradient(145deg, #121a33, #0a1024); }
.student-overview strong { color: #9ce7ff; font-size: clamp(1.4rem, 4vw, 2.2rem); }
.student-overview span { color: #bdc9e5; }
.student-classroom-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .8fr); gap: 2rem; align-items: start; }
.student-sidebar { display: grid; gap: 2rem; }
.student-panel { padding: clamp(1rem, 3vw, 2rem); margin-block: 1rem; border: 1px solid #414b6a; border-radius: 1.3rem; background: #10162b; overflow-wrap: anywhere; }
.student-form { display: grid; gap: 1rem; }
.student-form--single { width: min(100%, 38rem); margin-inline: auto; }
.student-form .field { display: grid; gap: .5rem; min-width: 0; }
.student-form input, .student-filter select, .student-profile-picture input[type="file"] { width: 100%; min-width: 0; box-sizing: border-box; padding: .8rem; border: 1px solid #7886aa; border-radius: .5rem; color: #f2f5ff; background: #070b1d; font: inherit; }
.student-notice { border-color: #65d6a6; background: linear-gradient(145deg, rgba(101, 214, 166, .14), #10162b); }
.student-auth-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.student-auth-links a { color: #9ce7ff; text-decoration: underline; text-underline-offset: .2em; }
.student-entry-note { display: grid; gap: .65rem; margin-top: .5rem; padding: 1rem; border: 1px solid #414b6a; border-radius: .8rem; background: #080e22; }
.student-entry-note p { margin: 0; color: #bdc9e5; }
.student-entry-note .button { justify-self: start; }
.student-profile-picture .field { display: grid; gap: .5rem; }
.student-panel h4 { margin-bottom: .5rem; color: #9ce7ff; }
.student-panel p { white-space: normal; }
.student-panel time { color: #bdc9e5; }
.student-panel form { margin-top: 1rem; }
.student-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.student-filter .field { display: grid; gap: .4rem; min-width: 0; }
.student-filter-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.student-agenda-grid { display: grid; gap: 1rem; }
.student-appointment { border-left: 4px solid #9ce7ff; }
.student-appointment--cancelled { border-left-color: #93a0c5; opacity: .85; }
.student-appointment header { display: flex; justify-content: space-between; gap: 1rem; }
.student-appointment details { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #414b6a; }
.student-appointment summary { color: #9ce7ff; cursor: pointer; font-weight: 700; }
.student-appointment input, .student-appointment textarea { width: 100%; box-sizing: border-box; padding: .8rem; border: 1px solid #7886aa; border-radius: .5rem; color: #f2f5ff; background: #070b1d; font: inherit; }
.student-rate { display: grid; gap: .25rem; }
.student-rate strong { color: #9ce7ff; font-size: 1.7rem; }
.student-rate span { color: #bdc9e5; }
.student-payment { margin-block: 1rem; padding: 1rem; border-left: 4px solid #f7c76d; border-radius: .5rem; background: #080e22; }
.student-payment--paid { border-left-color: #65d6a6; }
.student-payment--waived { border-left-color: #93a0c5; }
.student-payment header { display: flex; justify-content: space-between; gap: 1rem; }
.student-status { color: #9ce7ff; font-weight: 700; }
.student-payment-actions { display: grid; gap: .75rem; padding-top: 1rem; border-top: 1px solid #414b6a; }
.student-space :focus-visible { outline: 3px solid #9ce7ff; outline-offset: 4px; }
@media (max-width: 900px) { .student-classroom-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
    .student-grid, .student-overview, .student-filter { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .student-room-header { display: grid; gap: 1rem; }
    .student-payment header { display: grid; gap: .25rem; }
}
