/* Loading screen visible while the right local account is restored. */
#edrLaunch{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 34%,#e7f6ef 0,#f5f9fb 42%,#dce9f5 100%);color:#17334b;font-family:system-ui,sans-serif;transition:opacity .38s ease,visibility .38s ease}
#edrLaunch.edr-launch-hidden{opacity:0;visibility:hidden;pointer-events:none}
.edr-launch-panel{text-align:center;width:min(420px,100%);padding:30px 26px;border:1px solid #ffffffcb;border-radius:28px;background:#ffffffbc;box-shadow:0 20px 70px #163d5b23;backdrop-filter:blur(18px)}
.edr-launch-emblem{position:relative;width:116px;height:116px;display:grid;place-items:center;margin:0 auto 14px;animation:edr-launch-rise 1.6s ease-in-out infinite}
.edr-launch-emblem::before,.edr-launch-emblem::after{content:"";position:absolute;inset:0;border:2px solid #2a927d55;border-radius:31px;animation:edr-launch-ring 2s ease-in-out infinite}
.edr-launch-emblem::after{inset:9px;border-color:#2e70b43b;animation-delay:.35s}
.edr-launch-emblem img{position:relative;z-index:1;width:75px;height:75px;object-fit:contain;filter:drop-shadow(0 7px 8px #184c4960)}
.edr-launch-panel h1{font-size:1.35rem;margin:2px 0 7px;letter-spacing:-.02em}.edr-launch-panel p{font-size:.9rem;color:#526d7c;margin:0 0 20px;line-height:1.5}
.edr-launch-track{height:6px;width:100%;border-radius:999px;background:#dbe8ec;overflow:hidden}.edr-launch-track span{display:block;width:36%;height:100%;border-radius:999px;background:linear-gradient(90deg,#0c8275,#3c7dcc);animation:edr-launch-progress 1.25s ease-in-out infinite}
.edr-launch-actions{display:none;gap:9px;justify-content:center;flex-wrap:wrap;margin-top:18px}.edr-launch-error .edr-launch-actions{display:flex}.edr-launch-error .edr-launch-track{display:none}.edr-launch-error .edr-launch-emblem{animation:none}
.edr-launch-actions button{border:1px solid #9bb6c2;border-radius:10px;background:#fff;color:#173b55;font:700 .85rem system-ui;padding:10px 14px}.edr-launch-actions button:first-child{background:#187d74;color:#fff;border-color:#187d74}
@keyframes edr-launch-rise{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes edr-launch-ring{0%,100%{transform:scale(.92);opacity:.55}50%{transform:scale(1.07);opacity:1}}
@keyframes edr-launch-progress{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}
@media(prefers-reduced-motion:reduce){.edr-launch-emblem,.edr-launch-emblem::before,.edr-launch-emblem::after,.edr-launch-track span{animation:none!important}}

/* The profile dialog lives outside .portal, so it needs the same theme variables. */
.edit-dialog.teacher-view-dialog{width:min(560px,calc(100vw - 26px));max-height:min(90vh,800px);overflow:auto;padding:20px;background:var(--pn-card,#fff)!important;color:var(--pn-text,#213450)!important;border:1px solid var(--pn-line,#dce5ef)!important;border-radius:18px!important;box-shadow:0 24px 65px #0005!important}
.teacher-view-dialog .dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px;border-color:var(--pn-line)!important}
.teacher-view-dialog .dialog-heading h2{color:var(--pn-text)!important;font-size:1.35rem!important;line-height:1.2;margin:2px 0 0!important}
.teacher-view-dialog .dialog-heading .eyebrow{color:var(--pn-accent)!important}
.teacher-view-dialog .dialog-heading [data-close]{flex:none;display:grid;place-items:center;width:40px;height:40px;background:var(--pn-soft)!important;color:var(--pn-text)!important;border:1px solid var(--pn-line)!important;border-radius:10px}
.teacher-view-dialog .teacher-profile-hero{background:var(--pn-soft)!important;border-color:var(--pn-line)!important;color:var(--pn-text)!important}
.teacher-view-dialog .teacher-profile-hero strong,.teacher-view-dialog .teacher-profile-grid strong{color:var(--pn-text)!important}
.teacher-view-dialog .teacher-profile-hero small,.teacher-view-dialog .teacher-profile-grid span{color:var(--pn-muted)!important}
.teacher-view-dialog .teacher-profile-grid>div{background:var(--pn-card)!important;border-color:var(--pn-line)!important;color:var(--pn-text)!important}
.teacher-view-dialog .teacher-avatar{background:var(--pn-accent)!important;color:#fff!important}
.teacher-view-dialog .dialog-actions{display:flex;justify-content:flex-end;margin-top:16px}
.teacher-view-dialog .dialog-actions button{background:var(--pn-accent)!important;color:#fff!important;border-color:var(--pn-accent)!important}
@media(max-width:600px){.edit-dialog.teacher-view-dialog{padding:16px}.teacher-view-dialog .teacher-profile-grid{grid-template-columns:1fr}}
