.profile-icon{width:45px;height:45px;display:grid;place-items:center;border:0;background:none;box-shadow:none;overflow:visible}
#profile-avatar{display:grid;place-items:center;width:45px;height:45px}
#profile-avatar img{width:67px;height:67px;max-width:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-53%);pointer-events:none}
.academy-panel[data-kind=perfil]{background:radial-gradient(ellipse at 52% 24%,#6946c4,#4d2b93 60%,#362068);border-color:#a788e9;color:#fff}
.academy-panel[data-kind=perfil] .panel-toolbar{margin-bottom:0}
.academy-panel[data-kind=perfil] .panel-toolbar button{background:#e9dcff;color:#3d236e;border-radius:50%}
.profile-identity{text-align:center;margin:-7px 0 14px}
.profile-display-name{color:#fff;font-size:1.28rem;font-weight:950;overflow-wrap:anywhere;line-height:1.2}
.profile-edit{margin-top:5px;background:#ffffff18;border:1px solid #d2bdf775;color:#f7eaff;font-size:.8rem;font-weight:850;border-radius:999px;min-height:31px;padding:3px 13px}
#profile-name-form{display:grid;gap:7px;text-align:left;margin-top:10px}
#profile-name-form[hidden],.profile-edit[hidden]{display:none}
#profile-name-form label{font-weight:900;font-size:.84rem}
#profile-name-form>div{display:flex;flex-wrap:wrap;gap:7px}
#profile-name-form input{min-width:0;width:100%;padding:9px 13px;border:1px solid #ceafff;border-radius:999px;color:#301b61;background:#fcf9ff}
.profile-audio{border-radius:999px}
#profile-name-form .button{min-height:36px;border-radius:999px;padding:5px 13px;font-size:.78rem}
#profile-name-status{line-height:1.3;color:#f2e6ff;font-size:.8rem;margin-top:3px}
.academy-panel[data-kind=perfil] :focus-visible{outline-color:#eedfff}
.academy-panel[data-kind=perfil] .reset-progress{color:#ffd4d9;font-size:.86rem}
.academy-panel[data-kind=perfil] #feedback-test-status{color:#f0e4fd}
.profile-audio{margin-top:9px}

.study-scene{position:relative;height:170px;max-width:350px;margin:auto;display:grid;place-items:center;isolation:isolate}
.study-scene::before,.mascot-stage::before{content:"";position:absolute;border-radius:50%;background:radial-gradient(circle at 35% 30%,#b583ff,#8051dd 68%,#7041cb);box-shadow:0 0 21px #bd8cf66b}
.study-scene::before{width:100px;height:100px;top:52%;left:50%;transform:translate(-50%,-50%);z-index:-1}
.study-scene .study-mascot{display:block;width:190px;height:170px}
.study-scene .study-mascot img{display:block;width:190px;height:190px;margin-top:-4px}
.mascot-stage picture{display:block;width:100%;height:100%}
.mascot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 5px;margin:3px 0 5px}
.mascot-tile{display:grid;justify-items:center;align-content:start;padding:3px 1px 8px;border:0;border-radius:19px;background:transparent;color:#fff;min-width:0;line-height:1.18}
.mascot-tile > strong{font-size:.72rem;overflow-wrap:anywhere;min-height:2.36em}
.mascot-tile[aria-pressed=true] > strong{text-decoration:underline;text-underline-offset:3px;color:#ffe198}
.mascot-stage{position:relative;display:grid;place-items:center;width:min(100%,104px);height:auto;aspect-ratio:1;isolation:isolate}
.mascot-stage::before{width:52%;height:52%;inset:24% auto auto 24%;z-index:-1}
.mascot-tile[aria-pressed=true] .mascot-stage::before{background:#9960f2;box-shadow:0 0 0 2px #ffe29a,0 0 18px #c88aff90}
.mascot-stage img{width:100%;height:100%;display:block}
.mascot-greeting{position:absolute;top:4%;right:0;background:#fff2d7;border-radius:8px;color:#422367;padding:2px 5px;font-size:.59rem;font-weight:950;opacity:0;animation:greeting 3.15s var(--entrance) infinite}
.mascot-stage.greet-now .mascot-greeting{animation:greeting-once 3.15s both}
@keyframes greeting{0%,8%,80%,100%{opacity:0;transform:translateY(2px) scale(.88)}21%,67%{opacity:1;transform:none}}
@keyframes greeting-once{0%,100%{opacity:0;transform:translateY(2px) scale(.88)}12%,77%{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .mascot-greeting,.mascot-stage.greet-now .mascot-greeting{animation:none}
}
.profile-account-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.profile-account-actions .button{min-height:36px;border-radius:999px;padding:5px 11px;font-size:.78rem}

.profile-auth{margin:12px 0;text-align:left}
.profile-auth summary{cursor:pointer;color:white;font-weight:900}
.profile-auth form{display:grid;gap:7px;padding:10px 0;color:#f7efff}
.profile-auth input{min-width:0;width:100%;padding:9px 12px;border:1px solid #cebbed;border-radius:12px;background:#fff;color:#211b40}
.profile-auth form p:empty{display:none}

.password-field{display:flex;gap:7px;align-items:stretch}
.password-field input{flex:1;width:0;min-width:0}
.password-field button{flex:none;min-height:40px;padding:5px 10px;border:1px solid #c8c4ed;border-radius:12px;background:#f4eeff;color:#46317a;font:inherit;font-weight:850;cursor:pointer}

.academy-panel[data-kind=perfil][open]{
  max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px);display:flex;flex-direction:column;
  overflow:hidden;margin:auto;
}
.academy-panel[data-kind=perfil] .panel-toolbar{flex:none;padding:0 0 10px}
.academy-panel[data-kind=perfil] #panel-content{
  flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:12px;
  padding:3px 3px 8px;scrollbar-width:thin;
}
.study-scene:has(.study-mascot){
  grid-template-columns:minmax(0,1fr) minmax(0,1.22fr);min-height:127px;height:auto;gap:5px;
  align-items:center;justify-items:stretch;margin:5px auto 12px;padding:2px 0 4px;
}
.study-scene:has(.study-mascot)::before{left:72%;width:79px;height:79px}
.study-scene .study-mascot{width:min(100%,168px);height:auto;justify-self:center;aspect-ratio:1}
.study-scene .study-mascot img{width:100%;height:auto;margin:0}
.study-scene:has(.study-mascot)>.mascot-bubble{
  align-self:start;justify-self:end;margin:clamp(13px,5vw,24px) 3px 0 0;
  max-width:100%;padding:7px 8px;font-size:.77rem;line-height:1.25;text-align:left;overflow:visible;
}
.study-scene>.mascot-bubble::after{
  inset:calc(50% - 5px) -12px auto auto;width:14px;height:13px;transform:none;
  clip-path:polygon(0 0,100% 65%,0 100%);border:0;border-radius:0;background:#c5a8f6;box-shadow:none;z-index:0;
}
.study-scene>.mascot-bubble::before{
  content:"";position:absolute;top:calc(50% - 4px);right:-9px;width:12px;height:11px;
  clip-path:polygon(0 0,100% 65%,0 100%);background:#512d81;z-index:1;
}
.mascot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px;margin:10px 0}
.mascot-tile{
  width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto;
  align-content:start;justify-items:stretch;padding:4px 1px 8px;border:0;background:none;box-shadow:none;
}
.mascot-tile>.mascot-stage{grid-area:2/1/3/3;justify-self:end;margin:-6px 0 0}
.mascot-tile>strong{grid-area:3/1/4/3;justify-self:end;text-align:center;width:min(100%,104px);min-height:0;margin:2px 0 0}
.profile-identity{margin:0 0 13px}

