[hidden] { display: none !important; }
.student-shell { padding-bottom: 32px; }
.portal-preferences { display: flex; justify-content: flex-end; gap: 12px; padding: 12px 0; align-items: center; }
.portal-preferences select { width: auto; min-width: 130px; }
.portal-preferences button, .student-shell .app-header button { width: auto; margin: 0; }
.portal-content { max-width: 680px; margin: 16px auto; }
.portal-card { margin: 16px 0; display: block; }
.portal-card h2 { margin: 0 0 12px; }
.portal-number { font-size: 48px; font-weight: 750; margin: 12px 0; }
.homework-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.portal-entry { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.portal-entry:last-child { border-bottom: 0; }
.portal-entry small { color: var(--muted); }
.portal-card summary { font-weight: 700; cursor: pointer; padding: 4px 0; min-height: 32px; }
#student-picker { display: grid; gap: 8px; }
#student-select { width: 100%; }
#code { letter-spacing: .3em; font-size: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.student-shell a.auth-switch-link { display: block; text-align: center; }
@media(max-width: 420px) { .portal-preferences { gap: 8px; } .portal-preferences button { padding: 12px; } }

.portal-join { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; margin-top: 12px; }
