/* Figma profile system: calm list navigation and one source of account truth. */
body.student-app .profile-heading{display:flex;align-items:center;gap:13px;min-height:0;padding:6px 0 12px;margin:0}
body.student-app .profile-heading .ui13-profile-owl{position:static;width:48px;height:54px;object-fit:contain;flex-shrink:0;border:1px solid var(--review-line);border-radius:18px}
body.student-app .profile-heading h1{font:750 30px/1.08 Onest,sans-serif;margin:0;letter-spacing:-.02em}
.profile-identity{display:flex;align-items:center;gap:12px;width:100%;min-height:68px;padding:12px 0;margin:0 0 16px;border:0;border-bottom:1px solid var(--review-line);background:transparent;color:var(--review-ink);text-align:left}
.profile-identity[hidden]{display:none!important}
.profile-identity-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--review-line);border-radius:50%;font:750 13px/1 Onest,sans-serif;text-transform:uppercase}
.profile-identity-copy{min-width:0;flex:1}
.profile-identity-copy strong,.profile-identity-copy small{display:block;overflow-wrap:anywhere}
.profile-identity-copy strong{font:700 16px/1.25 Onest,sans-serif;color:var(--review-ink)}
.profile-identity-copy small{margin-top:3px;font:500 13px/1.35 Onest,sans-serif;color:var(--review-muted)}
.profile-identity>svg{width:18px;height:18px;color:var(--review-muted);flex:0 0 auto}
.profile-identity:hover{color:var(--review-accent)}
.profile-identity:focus-visible{outline:2px solid var(--review-accent);outline-offset:4px;border-radius:12px}
.profile-menu-grid{display:flex;flex-direction:column;padding:0;margin:0 0 24px;border:1px solid var(--review-line);border-radius:24px;overflow:hidden;background:var(--review-bg)}
body.student-app .profile-menu-item{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;min-height:64px;padding:14px 16px;border:0;border-bottom:1px solid var(--review-line);border-radius:0;background:transparent;color:var(--review-ink);text-decoration:none;text-align:left}
body.student-app .profile-menu-item:last-child{border-bottom:0}
.profile-menu-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:0;border-radius:0;background:transparent!important;color:var(--review-ink);box-shadow:none!important}
.profile-menu-icon svg,.profile-menu-icon i{width:28px;height:28px;stroke-width:1.65;fill:none;color:inherit}
.profile-menu-label{display:block;min-width:0;max-width:100%;font:650 15px/1.35 Onest,sans-serif;overflow-wrap:anywhere;color:var(--review-ink)}
.profile-menu-arrow{width:18px;height:18px;margin-left:auto;color:var(--review-muted);stroke-width:1.7;flex:0 0 auto}
.profile-menu-item:hover{background:color-mix(in srgb,var(--review-accent) 5%,transparent)}
.profile-menu-item:focus-visible{outline:2px solid var(--review-accent);outline-offset:-3px;border-radius:12px}
body.student-app .profile-layout{display:block;padding:0}
body.student-app .profile-view .pilot-profile-panel{padding:20px 16px;margin-top:0;border:1px solid var(--review-line);border-radius:20px;background:transparent;color:var(--review-ink)}
.profile-account-heading{padding-bottom:4px}
.profile-account-heading>p{margin:0 0 5px;color:var(--review-accent);font:650 12px/1.3 Onest,sans-serif}
.profile-account-heading>h2{margin:0;font:750 22px/1.25 Onest,sans-serif;letter-spacing:-.02em}
.profile-account-heading>span{display:block;margin-top:5px;color:var(--review-muted);font:500 13px/1.4 Onest,sans-serif;overflow-wrap:anywhere}
.profile-form fieldset{display:grid;gap:14px;padding:18px 0 0;margin:0;border:0}
.profile-form legend{width:100%;padding:0 0 12px;border-bottom:1px solid var(--review-line);font:700 16px/1.3 Onest,sans-serif}
.profile-email-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0;padding:0 0 14px;border-bottom:1px solid var(--review-line);font:500 13px/1.4 Onest,sans-serif}
.profile-email-row span{color:var(--review-muted)}
.profile-email-row strong{font-weight:650;text-align:right;overflow-wrap:anywhere}
.profile-name-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.profile-form label{display:grid;gap:7px}
.profile-form label>span{font:600 13px/1.3 Onest,sans-serif;color:var(--review-ink)}
.profile-form :is(input,select){width:100%;min-height:48px;padding:11px 12px;border:1px solid var(--review-line);border-radius:12px;background:var(--review-bg);color:var(--review-ink);font:500 15px/1.35 Onest,sans-serif}
.profile-form :is(input,select):focus-visible{outline:2px solid var(--review-accent);outline-offset:2px}
.profile-save{min-height:50px;margin-top:4px;border:0;border-radius:12px;background:var(--review-accent);color:#fff;font:700 15px/1.3 Onest,sans-serif}
.teacher-profile-facts{padding:18px 0 4px}
.teacher-profile-facts h3,.profile-account-actions h3{margin:0 0 8px;font:750 17px/1.3 Onest,sans-serif}
.teacher-profile-facts>p{margin:0 0 14px;color:var(--review-muted);font:500 13px/1.45 Onest,sans-serif}
.teacher-profile-facts dl{margin:0;border-block:1px solid var(--review-line)}
.teacher-profile-facts dl>div{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--review-line)}
.teacher-profile-facts dl>div:last-child{border-bottom:0}
.teacher-profile-facts dt{color:var(--review-muted);font:500 13px/1.4 Onest,sans-serif}
.teacher-profile-facts dd{margin:0;font:650 13px/1.4 Onest,sans-serif;overflow-wrap:anywhere}
#profileState{min-height:20px;margin:14px 0 0;color:var(--review-muted);font:500 12px/1.4 Onest,sans-serif}
#profileState[data-state=error]{color:#a1263a}
#profileState[data-state=success]{color:#2c6e63}
.profile-account-actions{padding:22px 0 4px;margin-top:18px;border-top:1px solid var(--review-line)}
.profile-account-actions>button{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:12px 0;border:0;border-bottom:1px solid var(--review-line);background:transparent;color:var(--review-ink);text-align:left}
.profile-account-actions>button>span{min-width:0;flex:1}
.profile-account-actions strong,.profile-account-actions small{display:block}
.profile-account-actions strong{font:650 14px/1.35 Onest,sans-serif}
.profile-account-actions small{margin-top:3px;color:var(--review-muted);font:500 12px/1.35 Onest,sans-serif}
.profile-account-actions svg{width:17px;height:17px;color:var(--review-muted)}
.profile-account-actions .danger strong{color:#a1263a}
.profile-security-dialog{width:min(100% - 24px,440px);max-height:min(720px,calc(100dvh - 24px));padding:0;border:1px solid var(--review-line);border-radius:24px;background:var(--review-bg);color:var(--review-ink)}
.profile-security-dialog::backdrop{background:rgba(25,16,21,.54)}
.profile-security-dialog form{display:grid;gap:16px;padding:20px}
.profile-security-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.profile-security-dialog header p{margin:0 0 4px;color:var(--review-accent);font:650 12px/1.3 Onest,sans-serif}
.profile-security-dialog h2{margin:0;font:750 22px/1.2 Onest,sans-serif}
.profile-security-dialog header button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--review-ink)}
.profile-security-dialog header svg{width:22px;height:22px}
.profile-security-dialog>form>p{margin:0;color:var(--review-muted);font:500 13px/1.5 Onest,sans-serif}
.profile-security-dialog label{display:grid;gap:7px;font:600 13px/1.3 Onest,sans-serif}
.profile-security-dialog input{min-height:48px;padding:11px 12px;border:1px solid var(--review-line);border-radius:12px;background:var(--review-bg);color:var(--review-ink);font:500 15px/1.35 Onest,sans-serif}
.profile-security-dialog .primary-command,.profile-security-dialog .danger-command{min-height:50px;border:0;border-radius:12px;color:#fff;font:700 15px/1.3 Onest,sans-serif}
.profile-security-dialog .primary-command{background:var(--review-accent)}
.profile-security-dialog .danger-command{background:#a1263a}
.profile-dialog-status{min-height:18px}
html[data-theme=dark] .profile-save,html[data-theme=dark] .profile-security-dialog .primary-command{color:#fff}
body.student-app[data-ui14-release] .profile-menu-item>[hidden]{display:none!important}
@media(max-width:420px){.profile-name-grid{grid-template-columns:1fr}.profile-menu-grid{border-radius:22px}.profile-security-dialog{margin:auto 12px 12px;width:calc(100% - 24px)}}
@media(min-width:720px){.ui13-settings-sheet:has(#profileForm){inset:50% auto auto 50%;width:min(520px,calc(100% - 48px));height:min(760px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);margin:0;transform:translate(-50%,-50%);border:1px solid var(--review-line);border-radius:20px}}
@media(prefers-reduced-motion:reduce){.profile-menu-item,.profile-identity{transition:none}}
