.student-main h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.student-main h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.student-main [hidden] { display: none !important; }
.student-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.4rem; }
.student-card { background: #fffdf9; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1rem, 4vw, 2rem); min-width: 0; }
#access { max-width: 33rem; }
.student-main form { display: grid; gap: .6rem; margin-top: 1rem; }
.student-main label { font-weight: 700; }
.student-main input, .student-main textarea, .student-main select { width: 100%; min-height: 44px; min-width: 0; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.student-main .button { justify-self: start; margin-top: .5rem; }
.student-note { font-size: .9rem; color: var(--muted); }
.student-note a, .student-list a { text-decoration: underline; text-underline-offset: 3px; }
.student-list { margin-top: 1rem; padding-left: 1.25rem; overflow-wrap: anywhere; }
.student-list li + li { margin-top: .6rem; }
#admin, #admin-login, #answer:not(:empty), #new-code:not(:empty) { margin-top: 1.5rem; }
#admin > h2 { margin-bottom: 1rem; }
#answer p { white-space: pre-wrap; }
#portal-status { margin-block: .7rem 1rem; }
#new-code input { font-family: monospace; }
