/* r18 approved additions only: existing history rows and beta controls unchanged. */
.self-profile{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px 8px;background:#fff;border:1px solid #dce8ef;border-radius:10px;color:#183c61;padding:4px 8px;margin:0 0 8px;font-size:14px;line-height:1.4}
.self-profile .self-profile-main{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:center;min-height:44px;min-width:0;overflow-wrap:anywhere}
.self-profile .self-profile-main strong{font-size:16px}
.self-profile .self-profile-school{color:#526579}
.self-profile details{display:contents}
.self-profile summary{display:flex;align-items:center;justify-content:center;list-style:none;width:44px;min-height:44px;font:700 24px/1 sans-serif;cursor:pointer;border-radius:8px}
.self-profile summary::-webkit-details-marker{display:none}
.self-profile summary:focus-visible{outline:3px solid #17699a;outline-offset:-3px}
.self-profile details[open]>summary{background:#f2f8ff}
.self-profile details>p{grid-column:1/-1;margin:2px 0;font-size:13px;line-height:1.4}
.flash-registration .registration-code{padding:12px;margin:12px 0;background:#fff;border:2px solid #17699a;border-radius:10px;color:#183c61;text-align:center}
.flash-registration .registration-code p{margin:0 0 4px}
.flash-registration .registration-code-value{display:block;font-family:ui-monospace,monospace;font-size:clamp(26px,7vw,36px);font-weight:800;letter-spacing:.08em;white-space:nowrap;user-select:all}
.flash-registration .quiz-question{margin:8px 0;padding:8px 10px}
.flash-registration .quiz-question legend{font-size:16px;line-height:1.5}
.flash-registration .quiz-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.flash-registration .quiz-choices label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;box-sizing:border-box;padding:8px;margin:0;border:1px solid #b5cbdc;border-radius:8px;background:#fff;color:#183c61;font-size:18px;font-weight:700;cursor:pointer}
.flash-registration .quiz-choices label:has(input:checked){border:2px solid #17699a;background:#eaf5fd}
.flash-registration .quiz-choices label:focus-within{outline:3px solid #17699a;outline-offset:2px}
.flash-registration .quiz-choices input[type=radio]{width:20px;height:20px;margin:0;flex:0 0 20px;accent-color:#17699a}

main[data-flash-practice]>.login-code-help{font-size:15px;line-height:1.7;margin:18px 0;max-width:42rem}main[data-flash-practice]>.login-code-help summary{min-height:44px;cursor:pointer;padding:8px 0}

/* Login controls must not inherit beta's inline horizontal label layout. */
.student-login-form{display:grid;gap:18px;width:100%;max-width:28rem;margin:20px 0;min-width:0}
.student-login-form label{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-content:stretch;gap:7px;min-width:0;text-align:left;font-weight:700}
.student-login-form input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:48px;padding:12px;border:1px solid #8dadc9;border-radius:10px;background:#fff;color:#183c61;font-size:18px}
.student-login-form button{justify-self:start;min-height:48px;max-width:100%}
.student-login-form [role=status]{margin:0;overflow-wrap:anywhere}
main[data-flash-practice] dialog:has(.student-login-form){box-sizing:border-box;width:min(32rem,calc(100vw - 28px));max-width:calc(100vw - 28px)}
