/* v0.5 family account interface */
.account-gated{overflow:hidden}
#academy-account-root:empty{display:none}
#academy-account-root{position:fixed;inset:0;z-index:5000;font-family:'Avenir Next','Trebuchet MS',Arial,sans-serif}
.account-shade{position:absolute;inset:0;overflow-y:auto;background:linear-gradient(128deg,rgba(7,19,48,.80),rgba(11,32,81,.70)),url('assets/learning-landscape.webp') center/cover;display:flex;align-items:center;justify-content:center;padding:24px}
.account-shell{width:min(100%,510px);max-height:calc(100dvh - 32px);overflow:auto;background:#fffdfa;border:1px solid rgba(246,224,178,.8);border-radius:30px;padding:30px;box-shadow:0 30px 80px #09152b80;color:#142954}
.account-brand{display:flex;align-items:center;justify-content:center;gap:10px}.account-brand img{width:40px;height:47px}.account-brand strong{display:block;letter-spacing:1px;font-weight:950;font-size:17px}.account-brand span{font-size:9px;letter-spacing:5px;font-weight:900}.account-caption{text-align:center;color:#9b7b3b;font-size:11px;letter-spacing:1.2px;margin:8px 0 23px;text-transform:uppercase;font-weight:850}
.account-heading{text-align:center;margin-bottom:23px}.account-eyebrow{color:#b08a46;font-weight:900;font-size:10px;letter-spacing:2px}.account-heading h1{font-family:Georgia,serif;letter-spacing:-.6px;font-size:30px;color:#101f4a;margin:8px 0}.account-heading p{max-width:380px;margin:0 auto;font-size:13px;line-height:1.55;color:#6d788d}
.account-form{display:grid;gap:13px}.account-form label{display:grid;gap:6px;color:#293959;font-size:12px;font-weight:850}.account-form input:not([type=checkbox]),.account-form select{width:100%;padding:14px 13px;background:#f8faff;border:1px solid #dbe2ee;border-radius:13px;font:inherit;font-size:14px;color:#192d58;outline-color:#b68c44}.account-form .account-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:500;line-height:1.35;color:#5a6882}.account-check input{margin:3px 0 0}.account-primary{background:#0d2255;color:white;border:0;border-radius:13px;padding:14px 18px;font-size:13px;font-weight:900;cursor:pointer}.account-primary:hover{background:#152f6d}.account-primary:disabled{opacity:.45}.account-alt{text-align:center;margin:18px 0}.account-alt button,.account-text,.account-back{color:#8f692f;font-weight:850;font-size:12px;border:0;background:none;cursor:pointer}.account-secure-note{font-size:11px;color:#7b8596;text-align:center;line-height:1.5;margin:18px 0 0}.account-notice:not(:empty){background:#e9f5ec;border-radius:12px;padding:12px 14px;font-size:12px;color:#336e4c;text-align:center;line-height:1.5}.account-notice.is-error{background:#ffebea;color:#9c3333}
.account-choices{display:grid;gap:10px}.account-choice{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:1px solid #e6e9ed;border-radius:17px;padding:10px 13px;background:#fff;cursor:pointer}.account-choice:hover{border-color:#d1ac69;background:#fffaf0}.account-choice>span:nth-child(2){flex:1;min-width:0}.account-choice strong{display:block;font-weight:900;font-size:14px;color:#162d5b}.account-choice small{display:block;margin-top:4px;color:#7a8498;line-height:1.35;font-size:11px}.account-choice b{color:#b48a46;font-size:18px}.account-picture{flex:none;width:58px;height:58px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:#f0f5fa}.account-picture img{width:100%;height:100%;object-fit:cover}.account-initial{font:bold 23px Georgia,serif;color:#183467}.account-tip{margin-top:19px;font-size:11px;line-height:1.5;border-radius:14px;padding:13px;background:#f8edcf;color:#7d622f}.account-member{display:flex;justify-content:space-between;gap:10px;background:#eef3f9;padding:11px;border-radius:12px;align-items:center;font-size:11px;color:#6d7890;margin-bottom:16px}.account-member strong{color:#142c59}.account-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.account-outline{border:1px solid #c9d5e3;border-radius:13px;background:white;color:#19325e;font-weight:900;font-size:12px}.account-empty{text-align:center;color:#687a98;font-size:13px}.account-back{display:block;margin:17px auto 0}
.academy-family-entry{display:flex;gap:12px;align-items:center;justify-content:space-between;border:1px solid #e8e9ee;border-radius:17px;background:#faf9f6;padding:14px 18px;margin:8px 0 20px}.academy-family-entry b{display:block;font-size:14px;color:var(--navy)}.academy-family-entry small{display:block;color:#79859b;font-size:11px;margin-top:3px}.academy-family-entry button{background:#0c2556;color:#fff;border:0;border-radius:10px;padding:10px 12px;font-weight:800;font-size:11px}.academy-sync-status{font-size:11px;color:#6c7a91}
.academy-grade-shell{max-width:1090px;margin:0 auto}.academy-grade-banner{border-radius:26px;background:linear-gradient(110deg,#ddebf8,#fdf4e5);padding:50px 32px;margin:24px 0;color:#152b5b}.academy-grade-banner h2{font-family:Georgia,serif;font-size:35px;line-height:1.15;margin:9px 0}.academy-grade-banner p{max-width:570px;line-height:1.6;color:#62718a}.academy-grade-subjects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.academy-grade-subject{border:1px solid #e8e8ed;border-radius:18px;background:#fff;padding:22px;min-height:130px}.academy-grade-subject strong{display:block;font-size:17px;color:#122657;margin:8px 0}.academy-grade-subject small{color:#73839b;font-size:12px}
body[data-grade-stage="middle"] .academy-grade-banner{background:linear-gradient(120deg,#d9e1ec,#f4f7fa)}body[data-grade-stage="high"] .academy-grade-banner{background:linear-gradient(120deg,#e8e5dc,#eff4fa)}
@media(max-width:700px){.account-shell{padding:23px 17px}.account-shade{padding:10px}.account-heading h1{font-size:26px}.academy-grade-banner{padding:32px 21px}.academy-grade-banner h2{font-size:27px}.academy-grade-subjects{grid-template-columns:repeat(2,1fr)}.academy-family-entry{flex-direction:column;align-items:flex-start}}
@media(max-width:425px){.account-buttons{grid-template-columns:1fr}.academy-grade-subjects{grid-template-columns:1fr}}

.account-grade-choice{display:grid;gap:5px;margin:16px 2px 0}.account-grade-choice label{font-size:11px;color:#657490;font-weight:850}.account-grade-choice select{border:1px solid #d8e1ed;border-radius:12px;background:#f8fafd;padding:10px;color:#182e5a;font:inherit;font-size:12px;font-weight:700}

/* v0.7 family account refinements */
.account-choice-row{display:flex;gap:8px;align-items:stretch}.account-choice-row .account-choice{flex:1;min-width:0}
.account-edit{border:1px solid #e3d7bd;background:#fff8e9;color:#735522;border-radius:14px;padding:0 13px;font-size:12px;font-weight:800;cursor:pointer}
.account-edit:hover{background:#f7e9c8}.account-divider{color:#8794a6;margin:0 5px}
.academy-global-sync{font-size:10px;color:#416d63;border:1px solid #cde8dc;background:#f0faf5;padding:6px 9px;border-radius:99px;white-space:nowrap;max-width:170px;overflow:hidden;text-overflow:ellipsis}
.academy-global-sync[hidden]{display:none}
body[data-grade-stage="upper-elementary"] .academy-grade-banner{background:linear-gradient(120deg,#f0e6f4,#eaf4fc)}
body[data-grade-stage="elementary"] .academy-grade-banner{background:linear-gradient(120deg,#e5f2f8,#fff4dc)}
@media(max-width:950px){.academy-global-sync{display:none}}

/* v1.0 inclusive student portrait picker */
.account-shell{max-height:calc(100dvh - 22px);overflow-y:auto}.avatar-picker{margin:8px 0 14px}.account-picker-title{margin:6px 0 9px;color:#193564;font-size:14px;font-weight:900}.avatar-filter{display:flex;gap:7px;margin-bottom:12px}.avatar-filter button{border:1px solid #d8e2ef;background:#f5f8fb;color:#415877;padding:9px 13px;border-radius:99px;font-size:11px;font-weight:850}.avatar-filter button.on{background:#183368;color:#fff;border-color:#183368}.avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.avatar-tile{position:relative;cursor:pointer;border:2px solid #edf0f6;border-radius:14px;background:#fff;padding:5px;text-align:center;display:block;min-width:0}.avatar-tile[hidden]{display:none}.avatar-tile:has(input:checked){border-color:#d7a748;box-shadow:inset 0 0 0 1px #d7a748;background:#fff8e6}.avatar-tile input{position:absolute;opacity:0;left:5px;top:5px;width:1px;height:1px}.avatar-tile:focus-within{outline:3px solid #d7a748}.avatar-tile-art{display:grid;place-items:center;background:#f3f6f9;aspect-ratio:1;border-radius:10px;overflow:hidden}.avatar-tile-art img{width:100%;height:100%;object-fit:cover}.avatar-tile small{font-size:9px;font-weight:750;color:#4f607e;display:block;margin:5px auto;line-height:1.15}.avatar-tile-check{position:absolute;top:4px;right:4px;width:19px;height:19px;border-radius:50%;color:white;background:#1d9958;display:none;place-items:center;font-size:12px}.avatar-tile:has(input:checked) .avatar-tile-check{display:grid}
@media(max-width:410px){.avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 1.3.1: Cohesive 3D avatar collection and the established mascot duo. */
.account-guide-mascots{display:flex;align-items:center;gap:12px;margin:12px 0 8px;border-radius:13px;padding:9px 10px;background:#f5f8fc;border:1px solid #e4eaf3;text-align:left}
.account-guide-portraits{display:flex;align-items:center;flex:none;padding-left:2px}
.account-guide-portraits img{width:45px;height:45px;border-radius:12px;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 6px rgba(18,40,80,.12)}
.account-guide-portraits img+img{margin-left:-9px}
.account-guide-mascots>div:last-child{display:grid;gap:3px;min-width:0}
.account-guide-mascots strong{font-size:12px;color:#193564}
.account-guide-mascots span{font-size:10px;line-height:1.4;color:#536881}
