.family-account-hub .family-account-head{grid-template-columns:auto minmax(0,1fr)}
.family-account-hub .family-account-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}
.family-account-hub .family-account-actions .tab{flex:1 1 210px;white-space:normal;min-height:46px}
#family-account-status{overflow-wrap:anywhere;font-size:.85rem;line-height:1.55}
.family-microphone{grid-column:1/-1}
.family-microphone>p{color:#b8dbe5;font-size:.85rem;line-height:1.55}
.family-microphone>.tab{min-height:46px;white-space:normal}
#family-mic-feedback:empty{display:none}
@media(max-width:480px){.family-account-hub .family-account-actions .tab{flex-basis:100%}}
.main.cloud-screen{justify-content:flex-start}
.main.entry-choice-screen{justify-content:center;gap:32px;overflow-y:auto;padding:30px 20px;box-sizing:border-box}
.entry-choice-screen>.logo{font-size:clamp(2rem,6vw,4.3rem);margin:0;flex:none}
.entry-choice-panel{width:min(760px,100%);box-sizing:border-box;text-align:center}
.entry-choice-panel>h2{font-size:clamp(1rem,3vw,1.5rem);color:#fff0a4;letter-spacing:1px;margin:0 0 24px;text-shadow:0 2px 3px #00101f}
.entry-choice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.entry-choice-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:244px;padding:26px 22px 32px;box-sizing:border-box;border:2px solid #54e1f6;border-radius:26px;background:linear-gradient(150deg,rgba(15,66,92,.97),rgba(2,20,43,.98));color:#effcff;font:inherit;text-align:center;text-decoration:none;cursor:pointer;box-shadow:inset 0 1px 0 #c5ffff44,0 7px 0 #001b32,0 12px 24px #0005;transition:transform .15s,box-shadow .15s}
.entry-choice-personal{border-color:#ffd56a;background:linear-gradient(150deg,rgba(61,54,42,.97),rgba(16,26,43,.98))}
.entry-choice-option strong{font-size:clamp(.9rem,2.8vw,1.1rem);line-height:1.4;letter-spacing:.8px;color:#8cecff}
.entry-choice-personal strong{color:#ffe184}
.entry-choice-option small{font-weight:600;font-size:.94rem;line-height:1.5;color:#d1e3ee}
.entry-choice-icon{display:grid;place-items:center;width:80px;height:80px;font-size:3rem}
.entry-choice-icon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 12px #43dfff44)}
.entry-choice-arrow{position:absolute;right:18px;bottom:12px;font-size:1.4rem;color:#ffe184}
.entry-choice-option:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 #c5ffff44,0 10px 0 #001b32,0 15px 28px #0007}
.entry-choice-option:focus-visible,.entry-choice-back:focus-visible{outline:3px solid #fff7b8;outline-offset:5px}
.entry-choice-option:active{transform:translateY(3px);box-shadow:0 3px 0 #001b32}
.entry-choice-back{margin:30px auto 0;min-height:46px}
.public-entry-button{min-height:42px;padding:8px 12px;font-size:.7rem;letter-spacing:.7px}
@media(max-width:600px){.main.entry-choice-screen{gap:24px;padding:30px 22px}.entry-choice-options{grid-template-columns:1fr;gap:20px}.entry-choice-option{min-height:188px;padding:20px 18px 26px;gap:10px}.entry-choice-icon{width:64px;height:64px}.entry-choice-option small{font-size:.85rem}.entry-choice-panel>h2{margin-bottom:22px}.public-entry-button{position:absolute;right:0;top:calc(100% + 10px);z-index:10;background:#052a40;border:2px solid #38c6df}}
@media(max-height:640px){.main.entry-choice-screen{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.entry-choice-option{transition:none}}

/* Personal to pupil switch keeps the game design. */
.family-school-entry{grid-column:1/-1}
.family-school-entry .family-section-heading p{font-size:.85rem;line-height:1.5}
.family-school-entry>.tab{min-height:48px;white-space:normal}
.family-school-dialog{display:grid;gap:16px;text-align:center;padding:24px;max-height:calc(100dvh - 32px);overflow-y:auto}
.family-school-icon{font-size:3rem;line-height:1.1}
.family-school-dialog h2{margin:0;color:#ffe184;font-size:clamp(20px,5vw,28px)}
.family-school-dialog>p{margin:0;color:#d7f5fa;line-height:1.5;font-size:16px}
.family-school-backup{padding:16px;border:2px solid #ffd166;border-radius:16px;background:#3a2b16;color:#fff1c4;line-height:1.55;font-size:15px;text-align:left}
.family-school-backup.confirmed{border-color:#71e6b4;background:#10382f;color:#d4ffeb}
.family-school-actions{display:grid;gap:12px}
.family-school-actions>button{width:100%;min-width:0;min-height:52px;white-space:normal;line-height:1.3;font-size:14px}
.family-school-actions>button[hidden]{display:none}
.family-school-actions>button:disabled{opacity:.55;cursor:wait}
.family-school-actions>button:focus-visible{outline:3px solid #ffe184;outline-offset:3px}
