
/* HTD v13.7.9 — regra FINAL, carregada depois de todos os estilos antigos */
@media (min-width:761px){
  .side .htd-brand::before,
  .side .htd-brand::after,
  .side .brand::before,
  .side .brand::after{content:none!important;display:none!important;width:0!important;height:0!important;background:none!important;border:0!important;box-shadow:none!important;opacity:0!important}
  .side .htd-brand{border:0!important;border-top:0!important;border-right:0!important;border-bottom:0!important;border-left:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;padding-bottom:6px!important;margin-bottom:8px!important}
  .side .nav::before{content:none!important;display:none!important;background:none!important;border:0!important;box-shadow:none!important}
  .side .htd-brand-divider{display:block!important;width:calc(100% - 20px)!important;height:1px!important;margin:0 10px 18px!important;background:rgba(121,227,61,.72)!important;border:0!important;border-radius:999px!important;box-shadow:0 0 10px rgba(121,227,61,.07)!important;opacity:1!important;position:relative!important;z-index:5!important}
  .side .app-brand-logo{width:168px!important;max-width:100%!important;max-height:168px!important}
}


/* HTD v13.8.7 — ajuste REAL da home web; mobile/tablet preservados */
.dashboard-goal-desktop{display:none!important}
@media (min-width:1101px){
  /* remove o objetivo do topo ao lado do sino */
  .dashboard-top-actions .dashboard-goal-top{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    overflow:hidden!important;
    opacity:0!important;
  }
  /* cria a faixa útil entre a descrição e os atalhos */
  .user-dashboard-primary .hero-main{
    position:relative!important;
    align-items:flex-start!important;
    min-height:156px!important;
    padding-bottom:62px!important;
  }
  .user-dashboard-primary .hero-copy{
    max-width:calc(100% - 250px)!important;
  }
  /* posiciona o objetivo exatamente no espaço interno à esquerda */
  .user-dashboard-primary .dashboard-goal-desktop{
    display:inline-flex!important;
    position:absolute!important;
    left:0!important;
    bottom:18px!important;
    width:max-content!important;
    max-width:calc(100% - 280px)!important;
    margin:0!important;
    padding:7px 12px!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    align-items:center!important;
    z-index:5!important;
  }
  .user-dashboard-primary .user-dashboard-smart-actions{
    margin-top:10px!important;
  }
}


/* HTD v13.8.12 — tela de conclusão mobile-first + card compartilhável */
.htd-completion-screen{width:min(100%,430px);margin:0 auto;padding:6px 0 24px;text-transform:uppercase}
.htd-completion-card{position:relative;overflow:hidden;background:radial-gradient(circle at 50% 8%,rgba(121,227,61,.105),transparent 24%),linear-gradient(160deg,#0b1720 0%,#071019 53%,#050b10 100%);border:1px solid #293847;border-radius:25px;padding:22px 18px 20px;text-align:center;box-shadow:0 18px 48px rgba(0,0,0,.2)}
.htd-completion-card:before{content:"";position:absolute;left:24px;right:24px;top:137px;height:1px;background:linear-gradient(90deg,transparent,rgba(121,227,61,.48),transparent)}
.htd-completion-logo-wrap{height:90px;display:flex;align-items:center;justify-content:center;position:relative;z-index:1}
.htd-completion-logo{display:block;width:auto;max-width:150px;max-height:88px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.3))}
.htd-completion-headline{position:relative;z-index:1;margin-top:4px;color:var(--brand);font-size:10px;font-weight:950;letter-spacing:.17em;line-height:1.2}
.htd-completion-workout{margin-top:30px;color:#f7f9fa;font-size:20px;line-height:1;font-weight:900;letter-spacing:-.025em}
.htd-completion-duration{margin-top:24px;color:#fff;font-size:38px;line-height:1;font-weight:950;letter-spacing:-.045em;white-space:nowrap}
.htd-completion-duration-label{margin-top:8px;color:#8b9aa6;font-size:8px;font-weight:850;letter-spacing:.13em}
.htd-completion-time{margin-top:15px;color:#a8b4bc;font-size:10px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.htd-completion-streak{width:max-content;max-width:100%;margin:21px auto 0;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 13px;border-radius:999px;border:1px solid rgba(121,227,61,.28);background:rgba(121,227,61,.065);color:var(--brand)}
.htd-completion-streak svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.htd-completion-streak b{font-size:10px;font-weight:900;letter-spacing:.03em;white-space:nowrap}
.htd-completion-week{width:100%;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:20px}
.htd-completion-day{min-width:0;text-align:center}
.htd-completion-day span{display:block;margin-bottom:6px;color:#72838e;font-size:8px;font-weight:900;letter-spacing:.02em}
.htd-completion-day i{width:27px;height:27px;margin:auto;border-radius:8px;border:1px solid #2c3d49;display:grid;place-items:center;color:#657580;font-size:10px;font-style:normal;font-weight:950}
.htd-completion-day.done i{background:var(--brand);border-color:var(--brand);color:#071008}
.htd-completion-day.done span{color:#d8e1d5}
.htd-completion-day.rest i{border-style:dashed;color:#52616b;font-size:9px}
.htd-completion-day.rest span{color:#56656f}
.htd-completion-day.planned i{color:#7c8d99}
.htd-completion-brandline{margin-top:28px;color:#5d6e79;font-size:7px;font-weight:850;letter-spacing:.12em;line-height:1.3}
.htd-completion-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}
.htd-completion-action{min-height:54px;border-radius:16px;border:1px solid #293847;background:#111d27;color:#f4f7f8;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.16s}
.htd-completion-action.share{background:var(--brand);border-color:var(--brand);color:#071008}
.htd-completion-action svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.htd-completion-action:hover{transform:translateY(-1px);border-color:rgba(121,227,61,.48)}
.htd-completion-action.share:hover{background:#8bef4e}
.htd-completion-action.busy{opacity:.65;pointer-events:none}
@media(max-width:560px){
 .htd-completion-screen{width:100%;padding:0 0 16px}
 .htd-completion-card{border-radius:22px;padding:18px 14px 18px}
 .htd-completion-card:before{top:129px;left:20px;right:20px}
 .htd-completion-logo-wrap{height:84px}
 .htd-completion-logo{max-width:138px;max-height:82px}
 .htd-completion-workout{margin-top:28px;font-size:19px}
 .htd-completion-duration{font-size:34px}
 .htd-completion-time{font-size:9px}
 .htd-completion-week{gap:4px}
 .htd-completion-day i{width:25px;height:25px}
 .htd-completion-actions{gap:9px}
}
@media(max-width:350px){
 .htd-completion-card{padding-left:10px;padding-right:10px}
 .htd-completion-duration{font-size:31px}
 .htd-completion-streak{padding-left:10px;padding-right:10px}
 .htd-completion-streak b{font-size:9px}
 .htd-completion-day span{font-size:7px}
 .htd-completion-day i{width:23px;height:23px;border-radius:7px}
}


/* HTD v13.8.22 — ajuste real do perfil mobile/tablet */
@media(max-width:1024px){
  .profile-page-top{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto!important;
    column-gap:10px!important;
    row-gap:5px!important;
    align-items:start!important;
    padding-right:0!important;
    margin-bottom:15px!important;
  }
  .profile-page-top>.title{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  .profile-page-top>.title .profile-page-title-text,
  .profile-page-top>.title>h1{
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.02!important;
    margin:4px 0 0!important;
    font-size:clamp(28px,7vw,40px)!important;
  }
  .profile-page-top>.profile-page-actions{
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    width:auto!important;
    min-width:0!important;
    margin:25px 0 0!important;
    padding:0!important;
    position:static!important;
    inset:auto!important;
    align-self:start!important;
  }
  .profile-page-top>.profile-page-actions>*{
    position:static!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    margin:0!important;
    transform:none!important;
  }
  .profile-page-top>.profile-page-actions>*:first-child{order:1!important}
  .profile-page-top>.profile-page-actions>.profile-security-btn{
    order:2!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    padding:0!important;
    border-radius:13px!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 44px!important;
  }
  .profile-page-actions .profile-security-label{display:none!important}
  .profile-page-actions .security-btn-icon{
    width:22px!important;
    height:22px!important;
    border:0!important;
    font-size:21px!important;
    line-height:1!important;
  }
  .profile-page-subtitle{margin-top:7px!important;max-width:100%!important}

  #studentProfessionalHub .htd-prof-unlink-inline-row{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:7px 0 0!important;
    padding:0!important;
  }
  #studentProfessionalHub .htd-prof-unlink-inline-btn{
    position:static!important;
    inset:auto!important;
    float:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:158px!important;
    max-width:100%!important;
    margin:0 auto!important;
    padding:8px 13px!important;
    line-height:1.15!important;
    text-align:center!important;
    flex:0 0 auto!important;
  }
}
@media(max-width:760px){
  .profile-page-top{column-gap:8px!important;margin-bottom:14px!important}
  .profile-page-top>.title .profile-page-title-text,
  .profile-page-top>.title>h1{font-size:clamp(27px,8.1vw,35px)!important}
  .profile-page-top>.profile-page-actions{margin-top:23px!important;gap:6px!important}
  .profile-page-subtitle{font-size:12px!important;line-height:1.35!important}
  #studentProfessionalHub .htd-prof-unlink-inline-row{margin-top:6px!important}
  #studentProfessionalHub .htd-prof-unlink-inline-btn{min-width:150px!important;padding:7px 12px!important;font-size:10px!important}
}

/* HTD v13.9.11 — barra de navegação estável no tablet */
@media (min-width:761px) and (max-width:1100px){
  body{padding-bottom:96px!important}
  .app{display:block!important;min-height:100vh!important}
  .side{
    position:fixed!important;
    inset:auto 0 0 0!important;
    width:100%!important;
    height:78px!important;
    min-height:78px!important;
    margin:0!important;
    padding:8px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 48px!important;
    align-items:center!important;
    gap:5px!important;
    overflow:hidden!important;
    border-right:0!important;
    border-top:1px solid rgba(151,169,184,.14)!important;
    z-index:5000!important;
  }
  .side > .brand,.side > .htd-brand-divider,.side > .side-utils{display:none!important}
  .side .nav{
    display:grid!important;
    grid-template-columns:repeat(8,minmax(0,1fr))!important;
    align-items:stretch!important;
    width:100%!important;
    height:60px!important;
    min-width:0!important;
    gap:2px!important;
    margin:0!important;
    overflow:hidden!important;
  }
  .side .nav button,.side .nav button:nth-child(n){
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    height:60px!important;
    min-height:60px!important;
    margin:0!important;
    padding:5px 2px!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    overflow:hidden!important;
  }
  .side .nav button > span:last-child{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:9px!important;
    line-height:1.05!important;
  }
  .side .htd-mobile-logout-btn{
    position:static!important;
    inset:auto!important;
    display:grid!important;
    place-items:center!important;
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    transform:none!important;
    background:transparent!important;
    border:0!important;
    border-radius:12px!important;
    box-shadow:none!important;
    color:#9eabba!important;
  }
  .side .htd-mobile-logout-btn > span:last-child{display:none!important}
  .side .htd-mobile-logout-btn .ico{
    display:grid!important;
    place-items:center!important;
    width:24px!important;
    height:24px!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
  }
  .side .htd-mobile-logout-btn .ico svg{display:block!important;width:23px!important;height:23px!important}
  .main{padding-bottom:112px!important}
}

/* HTD v13.10 — recuperação de senha */
.auth-forgot-password{
 display:block;width:100%;margin:0;padding:1px 8px 5px;border:0;background:transparent;
 color:#aebbc7;font:inherit;font-size:11px;font-weight:800;cursor:pointer;text-align:center;
}
.auth-forgot-password:hover{color:var(--brand)}
.auth-card>#authSwitch{padding-bottom:1px!important}
.password-recovery-panel{margin-top:4px}
.password-recovery-panel h2{margin:2px 0 8px;font-size:25px;letter-spacing:-.035em}
.password-recovery-panel>.muted{display:block;font-size:13px;line-height:1.5}
.password-recovery-panel .auth-form{margin:18px 0 14px}
body.auth-signup-mode .auth-forgot-password{display:none!important}

/* HTD v13.10.2 — contador de notificações preso ao respectivo sino */
.pro-home-bell,.student-notification-bell{
 position:relative!important;
 overflow:visible!important;
 isolation:isolate!important;
 contain:layout style!important;
}
.pro-home-bell .pro-home-badge,
.student-notification-bell .student-notification-badge{
 display:none!important;
}
.pro-home-bell[data-unread]::after,
.student-notification-bell[data-unread]::after{
 content:attr(data-unread);position:absolute!important;top:-7px!important;right:-7px!important;
 min-width:20px;height:20px;padding:0 5px;border:2px solid var(--bg,#071016);border-radius:999px;
 display:grid!important;place-items:center;box-sizing:border-box;z-index:21!important;pointer-events:none;
 background:var(--brand,#7CFF1E);color:#071016;font-size:10px;font-weight:900;line-height:1;
 transform:none!important;margin:0!important;inset:-7px -7px auto auto!important;
}
@media(max-width:760px){
 .top.pro-bell-top>.pro-global-bell,
 #studentNotificationBell{
  position:relative!important;
  inset:auto!important;
  flex:0 0 44px!important;
  justify-self:end!important;
  align-self:start!important;
 }
 .profile-page-actions #studentNotificationBell{position:relative!important;inset:auto!important}
}

/* Link de recuperação sempre visível na tela de entrada. */
body:not(.auth-signup-mode) #authForgotPassword{
 display:block!important;
 visibility:visible!important;
 opacity:1!important;
 min-height:30px!important;
}
#authForgotPassword.hidden{display:none!important;visibility:hidden!important}
