/* =====================================================================
   Athletic Science — camada de tema (Fase 1 de design).
   Escopo: a UI real do app (#athletic-auth-root). Carrega DEPOIS de
   auth.css, entao sobrescreve tokens e superficies sem tocar no template
   legado (inerte) nem nas paginas do /baseline/.

   - Escuro por padrao; claro automatico via prefers-color-scheme; e um
     override manual por html[data-theme="light"|"dark"] (toggle persistido).
   - Glassmorphism (estilo iOS) com fallback @supports e respeito a
     prefers-reduced-transparency / prefers-reduced-motion.
   ===================================================================== */

/* ---- Tokens: ESCURO (padrao) ---------------------------------------- */
:root {
  --as-radius: 18px;
  --as-radius-sm: 12px;
  --as-ease: cubic-bezier(.22, .61, .36, 1);
  --as-glass-blur: 22px;
  --as-glass-saturate: 140%;

  --as-page: #08090c;
  --as-surface-solid: #15161b;
  --as-glass-bg: rgba(20, 22, 28, .62);
  --as-glass-edge: rgba(255, 255, 255, .08);
  --as-input-bg: #0d0e12;
  --as-text: #f7f7f8;
  --as-muted: #9a9db0;
  --as-line: rgba(255, 255, 255, .10);
  --as-shadow: 0 24px 60px rgba(0, 0, 0, .45);

  /* tokens legados (auth.css / .btn) — antes vinham do template v14 no index.html */
  --bg: #08090c;
  --panel: #15161b;
  --panel2: #111217;
  --line: #292b33;
  --muted: #989ba6;
  --text: #f7f7f8;
  --red: #ef233c;
  --red2: #b90f27;
  --green: #35d07f;
  --yellow: #f4c542;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

/* ---- Tokens: CLARO -------------------------------------------------- */
/* Aplica quando o sistema pede claro E o usuario nao forcou escuro... */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --as-page: #f4f5f7;
    --as-surface-solid: #ffffff;
    --as-glass-bg: rgba(255, 255, 255, .68);
    --as-glass-edge: rgba(15, 20, 35, .10);
    --as-input-bg: #ffffff;
    --as-text: #10121a;
    --as-muted: #5b6070;
    --as-line: rgba(15, 20, 35, .12);
    --as-shadow: 0 20px 50px rgba(20, 25, 40, .12);

    /* tokens legados (usados pela folha v14 e por auth.css) */
    --bg: #f4f5f7;
    --panel: #ffffff;
    --panel2: #eef0f3;
    --line: #dfe2e8;
    --muted: #5b6070;
    --text: #10121a;
    --shadow: 0 20px 50px rgba(20, 25, 40, .12);
  }
}
/* ...ou quando o usuario forca claro pelo toggle. */
:root[data-theme="light"] {
  --as-page: #f4f5f7;
  --as-surface-solid: #ffffff;
  --as-glass-bg: rgba(255, 255, 255, .68);
  --as-glass-edge: rgba(15, 20, 35, .10);
  --as-input-bg: #ffffff;
  --as-text: #10121a;
  --as-muted: #5b6070;
  --as-line: rgba(15, 20, 35, .12);
  --as-shadow: 0 20px 50px rgba(20, 25, 40, .12);

  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel2: #eef0f3;
  --line: #dfe2e8;
  --muted: #5b6070;
  --text: #10121a;
  --shadow: 0 20px 50px rgba(20, 25, 40, .12);
}

/* Fundo + tipografia (o template legado não carrega mais no index). */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--as-page);
  color: var(--as-text);
  font: 16px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* Botões padrão da UI (antes no <style> do legado v14) */
.btn {
  box-sizing: border-box;
  border: 0;
  border-radius: 11px;
  padding: 12px 17px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--red, #ef233c), var(--red2, #b90f27));
  position: relative;
  z-index: 1;
}
.btn.ghost {
  background: #202127;
  border: 1px solid #353741;
  color: var(--as-text);
}
.btn.small { min-height: 36px; padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: .65; cursor: not-allowed; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn.ghost {
    background: #eef0f3; border-color: #dfe2e8; color: var(--as-text);
  }
}
:root[data-theme="light"] .btn.ghost {
  background: #eef0f3; border-color: #dfe2e8; color: var(--as-text);
}

/* ---- Largura: login estreito, app em largura total ----------------- */
#athletic-auth-root { grid-template-columns: minmax(0, 1fr); }
.auth-card { width: min(100%, 460px); }
.auth-card.auth-card--app { width: min(100%, 1180px); }

/* Logo sem fundo preto: placa segue o tema; variantes dark/light pela legibilidade. */
.as-brand {
  box-sizing: border-box; display: grid; justify-items: center; position: relative;
  padding: 10px 14px; border-radius: 14px;
  background: var(--as-surface-solid); border: 1px solid var(--as-line);
}
.as-brand-oficial { width: min(100%, 280px); height: auto; }
.auth-card--app .auth-brand {
  width: fit-content; max-width: 100%; padding: 6px 10px; border-radius: var(--as-radius-sm);
}
.auth-card--app .auth-brand .as-brand-oficial { width: 168px; }

/* ---- Login imersivo (glass + atmosfera) ---------------------------- */
#athletic-auth-root[data-login="true"] {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: stretch;
  place-content: stretch;
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
           max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  overflow: hidden;
}
.as-login-atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.as-login-orb {
  position: absolute; border-radius: 50%;
  filter: blur(48px); opacity: .55;
  will-change: transform, opacity;
}
.as-login-orb--a {
  width: min(78vw, 420px); height: min(78vw, 420px);
  top: -12%; left: -18%;
  background: radial-gradient(circle at 35% 35%, rgba(239, 35, 60, .62), transparent 68%);
}
.as-login-orb--b {
  width: min(70vw, 380px); height: min(70vw, 380px);
  right: -22%; top: 28%;
  background: radial-gradient(circle at 60% 40%, rgba(185, 15, 39, .48), transparent 70%);
}
.as-login-orb--c {
  width: min(90vw, 520px); height: min(90vw, 520px);
  left: 10%; bottom: -28%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .12), transparent 65%);
}
.as-login-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, var(--as-page) 92%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.025) 22px 23px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  opacity: .55;
  will-change: opacity, transform;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .as-login-orb--c {
    background: radial-gradient(circle at 50% 40%, rgba(15, 20, 35, .08), transparent 65%);
  }
  :root:not([data-theme="dark"]) .as-login-grid {
    background:
      linear-gradient(180deg, transparent 0%, var(--as-page) 92%),
      repeating-linear-gradient(0deg, transparent 0 22px, rgba(15,20,35,.04) 22px 23px),
      repeating-linear-gradient(90deg, transparent 0 22px, rgba(15,20,35,.03) 22px 23px);
  }
}
:root[data-theme="light"] .as-login-orb--c {
  background: radial-gradient(circle at 50% 40%, rgba(15, 20, 35, .08), transparent 65%);
}
:root[data-theme="light"] .as-login-grid {
  background:
    linear-gradient(180deg, transparent 0%, var(--as-page) 92%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(15,20,35,.04) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(15,20,35,.03) 22px 23px);
}

#athletic-auth-root[data-login="true"] > .auth-card--login {
  position: relative; z-index: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  padding: clamp(20px, 4.5vw, 36px) clamp(16px, 4vw, 28px);
  border-radius: clamp(20px, 3.5vw, 28px);
  background:
    linear-gradient(155deg, rgba(255,255,255,.10) 0%, transparent 42%),
    var(--as-glass-bg);
  border: 1px solid var(--as-glass-edge);
  box-shadow:
    var(--as-shadow),
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 1px rgba(239, 35, 60, .08);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}
#athletic-auth-root[data-login="true"] > .auth-card--login > .auth-brand {
  background: transparent; border: 0; padding: 0; margin: 0 auto 8px; box-shadow: none;
  width: min(100%, 320px);
}
#athletic-auth-root[data-login="true"] > .auth-card--login > .auth-brand .as-brand-oficial {
  width: min(100%, 300px); filter: drop-shadow(0 10px 28px rgba(0,0,0,.28));
}
#athletic-auth-root[data-login="true"] > .auth-card--login > h1 {
  margin: 10px 0 4px; font-size: clamp(1.45rem, 4.6vw, 1.85rem); letter-spacing: -.02em;
  text-align: center; font-weight: 800;
}
#athletic-auth-root[data-login="true"] > .auth-card--login > .auth-message {
  margin: 0 0 16px; text-align: center; font-size: .95rem;
}
#athletic-auth-root[data-login="true"] .as-login-panel { margin-top: 2px; }
#athletic-auth-root[data-login="true"] .as-login-legal { margin-top: 18px; }

@media (min-width: 720px) {
  #athletic-auth-root[data-login="true"] {
    place-content: center; place-items: center;
  }
  #athletic-auth-root[data-login="true"] > .auth-card--login {
    width: min(100%, 480px);
    height: auto;
    min-height: min(680px, calc(100dvh - 48px));
    max-width: 480px;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .as-login-orb--a {
    animation:
      as-orb-drift 11s ease-in-out infinite alternate,
      as-orb-pulse 5.5s ease-in-out infinite;
  }
  .as-login-orb--b {
    animation:
      as-orb-drift-b 15s ease-in-out infinite alternate,
      as-orb-pulse 7s ease-in-out infinite .8s;
  }
  .as-login-orb--c {
    animation:
      as-orb-drift-c 19s ease-in-out infinite alternate,
      as-orb-pulse 9s ease-in-out infinite 1.4s;
  }
  .as-login-grid {
    animation: as-grid-breathe 12s ease-in-out infinite;
  }

  #athletic-auth-root[data-login="true"] > .auth-card--login {
    animation: as-login-rise .7s cubic-bezier(.16, 1, .3, 1) both;
  }
  #athletic-auth-root[data-login="true"] > .auth-card--login::before {
    content: '';
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(
      115deg,
      transparent 0%,
      transparent 40%,
      rgba(255,255,255,.08) 50%,
      transparent 60%,
      transparent 100%
    );
    background-size: 220% 100%;
    animation: as-login-sheen 7s ease-in-out infinite;
    opacity: .7;
  }

  #athletic-auth-root[data-login="true"] > .auth-card--login > .auth-brand,
  #athletic-auth-root[data-login="true"] > .auth-card--login > h1,
  #athletic-auth-root[data-login="true"] > .auth-card--login > .auth-message,
  #athletic-auth-root[data-login="true"] > .auth-card--login > .as-login-abas,
  #athletic-auth-root[data-login="true"] > .auth-card--login > .as-login-panel,
  #athletic-auth-root[data-login="true"] > .auth-card--login > .as-login-legal {
    animation: as-login-cascade .65s cubic-bezier(.16, 1, .3, 1) both;
  }
  #athletic-auth-root[data-login="true"] > .auth-card--login > .auth-brand { animation-delay: .05s; }
  #athletic-auth-root[data-login="true"] > .auth-card--login > h1 { animation-delay: .14s; }
  #athletic-auth-root[data-login="true"] > .auth-card--login > .auth-message { animation-delay: .22s; }
  #athletic-auth-root[data-login="true"] > .auth-card--login > .as-login-abas { animation-delay: .3s; }
  #athletic-auth-root[data-login="true"] > .auth-card--login > .as-login-panel { animation-delay: .4s; }
  #athletic-auth-root[data-login="true"] > .auth-card--login > .as-login-legal { animation-delay: .52s; }

  #athletic-auth-root[data-login="true"] > .auth-card--login > .auth-brand .as-brand-oficial {
    animation: as-logo-float 5.5s ease-in-out infinite;
  }

  #athletic-auth-root[data-login="true"] .as-login-panel .auth-field {
    animation: as-login-cascade .55s cubic-bezier(.16, 1, .3, 1) both;
  }
  #athletic-auth-root[data-login="true"] .as-login-panel .auth-field:nth-child(1) { animation-delay: .46s; }
  #athletic-auth-root[data-login="true"] .as-login-panel .auth-field:nth-child(2) { animation-delay: .54s; }
  #athletic-auth-root[data-login="true"] .as-login-panel .as-captcha { animation: as-login-cascade .55s cubic-bezier(.16, 1, .3, 1) .6s both; }
  #athletic-auth-root[data-login="true"] .as-login-panel form > .btn,
  #athletic-auth-root[data-login="true"] .as-login-panel > .btn {
    animation: as-login-cascade .55s cubic-bezier(.16, 1, .3, 1) both;
  }
  #athletic-auth-root[data-login="true"] .as-login-panel form > .btn[type="submit"] { animation-delay: .66s; }
  #athletic-auth-root[data-login="true"] .as-login-panel form > .btn.ghost { animation-delay: .74s; }
  #athletic-auth-root[data-login="true"] .as-login-panel > .btn.ghost { animation-delay: .82s; }

  #athletic-auth-root[data-login="true"] .as-login-panel form > .btn[type="submit"] {
    transition: transform .18s var(--as-ease), box-shadow .25s var(--as-ease), filter .25s var(--as-ease);
  }
  #athletic-auth-root[data-login="true"] .as-login-panel form > .btn[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 36px rgba(239, 35, 60, .42);
    filter: brightness(1.05);
  }
  #athletic-auth-root[data-login="true"] .auth-field input {
    transition: border-color .22s var(--as-ease), box-shadow .22s var(--as-ease),
                background-color .22s var(--as-ease), transform .18s var(--as-ease);
  }
  #athletic-auth-root[data-login="true"] .auth-field input:focus {
    transform: translateY(-1px);
  }

  @keyframes as-orb-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(8%, 10%, 0) scale(1.14); }
  }
  @keyframes as-orb-drift-b {
    from { transform: translate3d(0, 0, 0) scale(1.05); }
    to   { transform: translate3d(-10%, 8%, 0) scale(1.18); }
  }
  @keyframes as-orb-drift-c {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6%, -8%, 0) scale(1.12); }
  }
  @keyframes as-orb-pulse {
    0%, 100% { opacity: .42; }
    50% { opacity: .78; }
  }
  @keyframes as-grid-breathe {
    0%, 100% { opacity: .4; transform: scale(1); }
    50% { opacity: .65; transform: scale(1.03); }
  }
  @keyframes as-login-rise {
    from { opacity: 0; transform: translateY(28px) scale(.96); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes as-login-cascade {
    from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
    to   { opacity: 1; transform: none; filter: none; }
  }
  @keyframes as-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  @keyframes as-login-sheen {
    0% { background-position: 140% 0; }
    45%, 100% { background-position: -40% 0; }
  }
}
@media (prefers-reduced-transparency: reduce) {
  #athletic-auth-root[data-login="true"] > .auth-card--login {
    background: var(--as-surface-solid);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .as-login-atmosphere { display: none; }
}

/* ---- Superficie de vidro ------------------------------------------- */
.auth-card {
  background: var(--as-glass-bg);
  border: 1px solid var(--as-glass-edge);
  border-radius: var(--as-radius);
  box-shadow: var(--as-shadow);
  -webkit-backdrop-filter: blur(var(--as-glass-blur)) saturate(var(--as-glass-saturate));
  backdrop-filter: blur(var(--as-glass-blur)) saturate(var(--as-glass-saturate));
  color: var(--as-text);
}
.auth-card h1 { color: var(--as-text); }
.auth-message, .auth-hint { color: var(--as-muted); }

/* Inputs e superficies internas seguem o tema (antes eram #0d0e12 fixo) */
.auth-field input {
  background: var(--as-input-bg);
  color: var(--as-text);
  border-color: var(--as-line);
}
.auth-field select, .auth-field textarea {
  box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px;
  border-radius: 11px; border: 1px solid var(--as-line);
  background: var(--as-input-bg); color: var(--as-text); font: inherit;
}
.auth-field textarea { min-height: 88px; resize: vertical; }

/* Escolhas em botões grandes (rádio ou checkbox), pensadas para o toque */
.as-chips-caption { font-size: 14px; color: var(--as-text); }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chip { position: relative; display: inline-flex; cursor: pointer; }
.as-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.as-chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--as-line); background: var(--as-input-bg);
  color: var(--as-text); font-size: 14px; line-height: 1.25;
  transition: background-color .15s var(--as-ease), border-color .15s var(--as-ease);
}
.as-chip input:checked + span { background: var(--red, #ef233c); border-color: var(--red, #ef233c); color: #fff; font-weight: 600; }
.as-chip input:focus-visible + span { outline: 2px solid var(--red, #ef233c); outline-offset: 2px; }
.auth-painel-dieta-item,
.auth-painel-dieta-summary,
.auth-dieta-aluno-meal,
.auth-painel-dieta-day,
.auth-painel-dieta-meal { background: var(--as-input-bg); }

/* Fallback: navegadores sem backdrop-filter recebem superficie solida */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card { background: var(--as-surface-solid); }
}
/* Acessibilidade: quem pede menos transparencia recebe solido */
@media (prefers-reduced-transparency: reduce) {
  .auth-card {
    background: var(--as-surface-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---- Motion sutil (respeitando prefers-reduced-motion) ------------- */
@media (prefers-reduced-motion: no-preference) {
  .auth-card { animation: as-rise .32s var(--as-ease) both; }
  .auth-card .btn,
  .auth-field input,
  .auth-card nav a {
    transition: background-color .2s var(--as-ease), border-color .2s var(--as-ease),
                color .2s var(--as-ease), transform .12s var(--as-ease), box-shadow .2s var(--as-ease);
  }
  .auth-card .btn:hover:not(:disabled) { transform: translateY(-1px); }
  .auth-card .btn:active:not(:disabled) { transform: translateY(0); }
  @keyframes as-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---- Treino: ilustração dos exercícios ------------------------------ */
.as-ex-media {
  position: relative; flex: none; overflow: hidden;
  width: 72px; aspect-ratio: 1; border-radius: 10px;
  background: #fff; border: 1px solid var(--as-line);
}
.as-ex-media--md { width: 120px; }
.as-ex-media--lg { width: min(100%, 260px); }
.as-ex-media img, .as-ex-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.as-ex-media:has(video) { background: #08090a; }
.as-ex-media--empty {
  display: grid; place-items: center; text-align: center;
  font-size: 11px; color: var(--as-muted); background: var(--as-input-bg);
}
.as-ex-frame-b { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .as-ex-frame-b { animation: as-ex-flip 1.6s steps(1, end) infinite; }
  @keyframes as-ex-flip { 0% { opacity: 0; } 50% { opacity: 1; } }
}
.as-ex-clip { margin: 6px 0; }
.as-ex-clip summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; font-weight: 600; }
.as-ex-clip video { display: block; width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #08090a; border: 1px solid var(--as-line); }
.as-ex-clip small { display: block; margin-top: 4px; font-size: 10px; color: var(--as-muted); }
.as-ex-videos { margin: 6px 0; }
.as-ex-videos summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.as-ex-videos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.as-ex-videos figure { margin: 0; }
.as-ex-videos video {
  display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 70vh;
  border-radius: 12px; background: #000; object-fit: contain;
}
.as-ex-videos video { cursor: pointer; }
.as-ex-videos video.is-paused { opacity: .6; }
.as-ex-videos figcaption { margin-top: 4px; font-size: 12px; color: var(--as-muted); }
.as-ex-videos figcaption b { color: var(--as-text); }
.as-treino-ex { display: flex; gap: 12px; align-items: flex-start; }
.as-treino-ex-body { flex: 1; min-width: 0; }
.as-treino-obs { min-height: 4.5em; resize: vertical; width: 100%; }
.as-treino-obs-view { white-space: pre-wrap; overflow-wrap: anywhere; }
.as-sessoes-lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.as-sessao-item { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--as-border, #333); border-radius: 10px; }
.as-sessao-item .btn { justify-self: start; margin-top: 4px; }
.as-treino-ex-title { margin: 0 0 4px; font-weight: 700; }
.as-treino-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.as-treino-row .auth-field { flex: 1 1 110px; margin: 0; }
.as-treino-row select, .as-treino-step select, .as-treino-option + select,
.auth-painel-dieta-add select, .auth-painel-dieta-summary select {
  width: 100%; min-height: 44px; padding: 0 10px; border-radius: 12px;
  background: var(--as-input-bg); color: var(--as-text); border: 1px solid var(--as-line);
}
.auth-card .as-treino-row > .btn,
.auth-card .as-treino-sets .btn { width: auto; min-height: 40px; margin-top: 0; padding: 0 14px; }
.auth-card .as-treino-row > .btn[hidden] { display: none; }
.as-treino-sets { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.as-treino-sets th, .as-treino-sets td { padding: 4px; text-align: left; border-bottom: 1px solid var(--as-line); }
.as-treino-sets input, .as-treino-sets select {
  width: 100%; min-width: 52px; padding: 6px; border-radius: 8px;
  background: var(--as-input-bg); color: var(--as-text); border: 1px solid var(--as-line);
}
.as-set-list { display: grid; gap: 8px; margin: 8px 0; }
.as-set-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--as-line); border-radius: 14px; background: var(--as-input-bg); transition: border-color .2s; }
.as-set-card.is-done { border-color: #2fbf71; }
.as-set-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.as-set-head strong { font-size: 14px; }
.as-set-head small { flex-basis: 100%; color: var(--as-muted); font-size: 12px; }
.as-set-steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.as-stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch; border: 1px solid var(--as-line); border-radius: 12px; overflow: hidden; background: var(--as-surface-solid); }
.as-stepper-btn { min-height: 44px; margin: 0; padding: 0; border: 0; background: rgba(127, 127, 127, .12); color: var(--as-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.as-stepper-btn:active { background: var(--red, #ef233c); color: #fff; }
.as-stepper-campo { display: grid; place-items: center; align-content: center; padding: 2px 0; }
#athletic-auth-root .as-stepper-campo input { width: 100%; min-height: 0; padding: 2px 0; border: 0; border-radius: 0; background: transparent; color: var(--as-text); text-align: center; font-size: 17px; font-weight: 700; -moz-appearance: textfield; }
.as-stepper-campo input::-webkit-outer-spin-button, .as-stepper-campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.as-stepper-campo small { font-size: 10.5px; color: var(--as-muted); line-height: 1; }
.auth-card .as-set-card > .btn { width: 100%; min-height: 42px; margin: 0; }
@media (max-width: 360px) { .as-set-steppers { grid-template-columns: 1fr; } }
.as-treino-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; margin: 8px 0; }
.as-treino-pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px;
  border-radius: 10px; border: 1px solid var(--as-line); background: var(--as-input-bg);
  color: var(--as-text); font: inherit; font-size: 12px; text-align: center; cursor: pointer;
}
.as-treino-pick[aria-pressed="true"] { outline: 2px solid var(--red, #ef233c); }
.as-treino-ex--aluno { flex-wrap: wrap; }
.as-treino-ex--aluno .as-treino-ex-body { flex: 1 1 280px; overflow-x: auto; }
.as-treino-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.auth-card .as-treino-tabs .btn { width: auto; margin-top: 0; padding: 0 16px; }
.as-treino-tabs [aria-selected="true"] { border-color: var(--red, #ef233c); color: var(--as-text); box-shadow: inset 0 -3px 0 var(--red, #ef233c); }
.as-rest-timer {
  position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin-top: 12px; padding: 10px 14px; border-radius: 14px; font-weight: 700;
  background: var(--as-glass-bg); border: 1px solid var(--as-glass-edge); box-shadow: var(--as-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.as-rest-timer[hidden] { display: none; }
.auth-card .as-rest-timer .btn { width: auto; margin-top: 0; padding: 0 14px; }
.as-treino-step { border: 1px solid var(--as-line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.as-treino-step legend { font-weight: 700; padding: 0 6px; }
.as-treino-option { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.as-treino-option small { display: block; color: var(--as-muted); }
.as-treino-split { display: grid; gap: 10px; margin: 8px 0; }
.as-treino-split[hidden] { display: none; }
.as-treino-option + .as-treino-split { margin: 4px 0 12px 26px; }
.as-treino-split select { max-width: 100%; text-overflow: ellipsis; }
.as-treino-split-why { margin: 0; padding: 10px 12px; border-left: 3px solid var(--as-accent, #e5383b); border-radius: 8px; background: var(--as-input-bg); line-height: 1.45; }
.as-treino-split-why:empty { display: none; }
.as-treino-split-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.as-treino-split-days li { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--as-line); border-radius: 10px; line-height: 1.35; }
.as-treino-split-days strong { flex: 0 0 auto; min-width: 72px; }
.as-treino-check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; cursor: pointer; }
.as-treino-check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.auth-card .as-treino-split > .btn { width: 100%; min-height: 46px; }
@media (min-width: 600px) { .auth-card .as-treino-split > .btn { width: auto; justify-self: start; padding: 0 22px; } }

/* ---- Início do aluno ------------------------------------------------ */
.as-home-flash:empty { display: none; }
.as-home-flash { padding: 10px 14px; border-radius: 12px; font-weight: 700; background: rgba(53, 208, 127, .12); color: var(--green, #35d07f); }
.as-home-hero {
  padding: 20px; border-radius: var(--as-radius); color: #fff; margin: 12px 0;
  background: linear-gradient(135deg, var(--red, #ef233c), var(--red2, #b90f27) 60%, #5b0613);
  box-shadow: 0 16px 40px rgba(239, 35, 60, .25);
}
.as-home-hello { margin: 0 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.as-home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.as-home-stat { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.as-home-stat strong { display: block; font-size: 24px; }
.as-home-stat span { font-size: 13px; opacity: .9; }
.as-home-stat-btn { display: block; width: 100%; text-align: left; border: 1px solid transparent; color: inherit; font: inherit; cursor: pointer; }
.as-home-stat-btn small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; opacity: .85; }
.as-home-stat-btn.is-pending { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .14); }
.as-home-stat-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.as-checkin-dialog h3 { margin: 0 0 6px; }
.as-checkin-dialog p { margin: 0; }
.as-home-week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 0; padding: 0; }
.as-home-day { display: grid; place-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; background: rgba(0, 0, 0, .18); font-size: 12px; }
.as-home-day b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 13px; }
.as-home-day.is-done b { background: #fff; color: var(--red2, #b90f27); }
.as-home-day.is-today { outline: 2px solid rgba(255, 255, 255, .85); }
.as-home-day.is-future { opacity: .55; }
.as-home-flash-share { margin-left: 6px; }
.auth-card .as-home-flash .btn { display: inline-flex; width: auto; margin-top: 0; min-height: 36px; padding: 0 12px; align-items: center; }
.as-home-today { border-left: 4px solid var(--red, #ef233c); }
.as-home-today.is-done { border-left-color: var(--green, #35d07f); }
.as-home-today-done { margin: 0 0 8px; font-weight: 700; color: var(--green, #35d07f); }
.as-home-today-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.as-home-today-list { margin: 4px 0 0; }
.auth-card .as-home-today .btn { display: inline-flex; width: auto; align-items: center; justify-content: center; padding: 0 22px; text-decoration: none; }

/* ---- Início (Dashboard) ---------------------------------------------- */
.as-home-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.as-home-hero-head .as-home-hello { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-home-streak {
  display: inline-flex; align-items: baseline; gap: 2px; flex: none; padding: 5px 11px; border-radius: 99px;
  background: rgba(0, 0, 0, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); font-size: 15px; font-weight: 800; white-space: nowrap;
}
.as-home-streak small { font-size: 11px; font-weight: 600; opacity: .85; }
.as-home-hero .as-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-home-hero .as-home-stat strong { font-size: 20px; }
.as-home-day.is-today { padding: 0; outline: 2px solid #fff; }
.as-home-day-btn {
  display: grid; place-items: center; gap: 4px; width: 100%; padding: 8px 0; border: 0; border-radius: 12px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.as-home-day-btn.is-pending b { background: #fff; color: var(--red2, #b90f27); }
.as-home-day-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.as-home-day.has-checkin b { box-shadow: 0 0 0 2px rgba(53, 208, 127, .95); }
.as-home-week-hint { margin: 10px 0 0; font-size: 13px; font-weight: 600; text-align: center; opacity: .9; }
.as-home-week-hint.is-pending { opacity: 1; }

.as-home-meal-days { margin-bottom: 10px; }
.as-home-meal-progress { display: grid; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--as-muted); }
.as-home-bar--meal { height: 8px; }
.as-home-bar--meal span { background: linear-gradient(90deg, #1fa463, #35d07f); }
.as-home-meal-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; font-size: 18px; }
.as-home-meal-items { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.as-home-meal-items li {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--as-line); background: rgba(255, 255, 255, .03);
}
.as-home-meal-items li b { flex: none; font-weight: 600; color: var(--as-muted); }
.as-home-meal-items li.is-supplement span::before { content: "💊 "; }
.as-home-meal-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.as-adherence-option, .as-home-meal-option { display: grid; gap: 6px; justify-items: center; }
.as-adherence-option > span, .as-home-meal-option > span {
  font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--as-muted);
}
.as-home-meal-btn {
  display: grid; place-items: center; width: 100%; min-height: 48px; padding: 8px; border-radius: 12px;
  border: 1px solid var(--as-line); background: transparent; color: var(--as-text); font: inherit; cursor: pointer;
}
.as-home-meal-btn .as-adherence-ico { font-size: 20px; font-weight: 700; }
.as-home-meal-btn.is-cumprida { border-color: rgba(53, 208, 127, .55); }
.as-home-meal-btn.is-parcial { border-color: rgba(244, 197, 66, .55); }
.as-home-meal-btn.is-nao_realizada { border-color: rgba(239, 35, 60, .55); }
.as-home-meal-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .06); }
.as-home-meal-btn:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: 2px; }
.as-home-meal-btn:disabled { opacity: .6; cursor: progress; }
.as-adherence-partial { display: grid; gap: 6px; margin: 8px 0 0; }
.as-adherence-partial textarea {
  min-height: 64px; resize: vertical; margin: 0; border-radius: 10px;
  border: 1px solid var(--as-line); background: var(--as-input-bg); color: var(--as-text); font: inherit; padding: 8px 10px;
}
.as-home-meal-done { margin: 4px 0 0; font-weight: 700; color: var(--green, #35d07f); }
.auth-card .as-home-meal > .btn { display: inline-flex; width: auto; align-items: center; margin-top: 10px; padding: 0 16px; text-decoration: none; }

.as-home-workout { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--as-line); }
.as-home-workout > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; }
.as-home-workout > summary::-webkit-details-marker { display: none; }
.as-home-workout > summary::after { content: "▾"; font-size: 14px; transition: transform .25s var(--as-ease); }
.as-home-workout[open] > summary::after { transform: rotate(180deg); }
.as-home-workout-list { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 22px; }
.as-home-workout-list li::marker { color: var(--red, #ef233c); font-weight: 800; }
.as-home-workout-top { display: flex; justify-content: space-between; gap: 10px; }
.as-home-workout-list small { display: block; margin-top: 2px; }
.as-checkin-dialog .as-home-form { margin-top: 6px; }
.as-checkin-dialog .as-home-field { margin: 10px 0; }
.as-checkin-dialog .as-home-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.as-checkin-dialog .as-home-choice { min-width: 0; padding: 0 4px; }
.as-checkin-dialog .as-treino-row .auth-field { min-width: 0; }
.as-checkin-dialog .as-share-actions > .as-share-btn { flex: 1 1 0; white-space: nowrap; }
.as-checkin-dialog .as-treino-row :is(select, input) { width: 100%; height: 44px; box-sizing: border-box; }
.as-home-card { border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 16px; margin: 12px 0; background: var(--as-input-bg); }
.as-home-card h3 { margin: 0 0 8px; font-size: 17px; }
.as-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.as-home-grid .as-home-card { margin: 0; }
.as-home-checkin summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 800; font-size: 17px; }
.as-home-field { margin: 12px 0; }
.as-home-label { display: block; font-size: 14px; margin-bottom: 6px; }
.as-home-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.as-home-choice {
  min-width: 52px; min-height: 44px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 18px; cursor: pointer;
  background: var(--as-surface-solid); color: var(--as-text); border: 1px solid var(--as-line);
}
.as-home-choice[aria-pressed="true"] { border-color: var(--red, #ef233c); background: rgba(239, 35, 60, .14); box-shadow: inset 0 0 0 1px var(--red, #ef233c); }
.as-home-water-amount { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.as-home-bar { height: 12px; border-radius: 99px; background: var(--as-line); overflow: hidden; }
.as-home-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2d9cdb, #56ccf2); transition: width .3s var(--as-ease); }
.as-home-water-actions { display: flex; gap: 8px; margin-top: 8px; }
.auth-card .as-home-water-actions .btn { flex: 1; width: auto; margin-top: 0; }
.as-home-renewal { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.as-home-renewal.is-soon { color: var(--yellow, #f4c542); }
.as-home-renewal.is-late { color: var(--red, #ef233c); }
.as-home-next { margin: 4px 0 10px; font-weight: 600; }
.as-home-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.as-home-badges li { display: grid; }
.as-home-badge { display: grid; justify-items: center; align-content: start; text-align: center; gap: 2px; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-surface-solid); color: var(--as-text); font: inherit; }
button.as-home-badge { cursor: pointer; }
button.as-home-badge:hover { border-color: var(--red, #ef233c); }
.as-home-badge-icon { font-size: 30px; line-height: 1.2; }
.as-home-badge b { font-size: 13px; }
.as-home-badge small { font-size: 11px; color: var(--as-muted); }
.as-home-badge.is-locked { opacity: .45; filter: grayscale(1); }
.as-home-slots { display: grid; gap: 6px; margin: 10px 0; }
.as-home-slot { display: grid; grid-template-columns: 1fr minmax(110px, 130px); align-items: center; gap: 8px; min-height: 44px; }
.as-home-slot-switch { margin: 0; min-width: 0; }
.as-home-slot input[type="time"], .as-home-card select, .as-treino-row input[type="time"] {
  min-height: 40px; padding: 0 8px; border-radius: 10px; background: var(--as-surface-solid); color: var(--as-text); border: 1px solid var(--as-line); font: inherit;
}
.as-home-slot select:disabled, .as-home-slot input:disabled { opacity: .4; }
.as-home-opts { display: grid; gap: 6px; margin: 10px 0; }
.as-home-opt { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.as-home-opts h4 { margin: 4px 0; font-size: 15px; }
.as-home-opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.as-home-opt-row select {
  min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--as-line);
  background: var(--as-input-bg); color: var(--as-text); font: inherit;
}
.as-home-opt-row select:disabled { opacity: .5; }
.as-home-push { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--as-line); }
.as-home-pro { padding: 10px 0; border-top: 1px solid var(--as-line); }
.as-home-pro:first-of-type { border-top: 0; }
.as-home-pro p { margin: 2px 0; }
.auth-card .as-home-pro .btn { width: auto; display: inline-flex; align-items: center; text-decoration: none; padding: 0 14px; }

/* ---- Painel profissional: lista de alunos + um aluno por vez -------- */
.as-painel-layout { display: grid; gap: 20px; align-items: start; }
.as-painel-side { padding: 14px; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); background: var(--as-input-bg); }
.as-painel-side h2 { margin: 0 0 8px; font-size: 18px; }
.as-painel-side .auth-field { margin: 0 0 6px; }
.as-painel-side-title { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--as-muted); }
.as-painel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.as-painel-item {
  width: 100%; min-height: 44px; padding: 8px 12px; text-align: left; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--as-text); font: inherit; font-weight: 600;
}
.as-painel-item:hover { background: var(--as-surface-solid); }
.as-painel-item[aria-current="true"] { background: rgba(239, 35, 60, .14); border-color: var(--red, #ef233c); }
.as-painel-item:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: 2px; }
.as-painel-main { min-width: 0; }
.as-painel-main > h3, .as-painel-main > .auth-painel-student > h3 { margin: 0 0 10px; font-size: 22px; }
.as-painel-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--as-line); }
.auth-card .as-painel-tabs .btn { width: auto; flex: none; margin-top: 0; padding: 0 16px; white-space: nowrap; }
.as-painel-tabs [aria-selected="true"] { border-color: var(--red, #ef233c); color: var(--as-text); box-shadow: inset 0 -3px 0 var(--red, #ef233c); }
@media (min-width: 900px) {
  .as-painel-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .as-painel-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
}
@media (max-width: 899px) {
  .as-painel-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .as-painel-tabs { flex-wrap: nowrap; overflow-x: auto; }
}

/* ---- Cartão de conquista (compartilhar medalha) --------------------- */
.as-share-dialog {
  width: min(92vw, 420px); padding: 16px; border: 1px solid var(--as-glass-edge); border-radius: var(--as-radius);
  background: var(--as-surface-solid); color: var(--as-text); box-shadow: var(--as-shadow);
}
.as-share-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.as-share-dialog img { display: block; width: 100%; height: auto; border-radius: 12px; }
.as-home-badges-title { margin: 18px 0 8px; font-size: 15px; letter-spacing: -.01em; }
.as-anamnese-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.as-anamnese-edicao { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .as-anamnese-edicao { animation: as-rise .28s var(--as-ease) both; }
}
.as-share-dialog--stories img { width: auto; max-width: 100%; max-height: min(66vh, 640px); margin: 0 auto; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.as-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.as-share-btn {
  flex: 1 1 120px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--as-line); background: transparent; color: var(--as-text);
  font: 600 15px/1 Inter, ui-sans-serif, system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.as-share-btn.is-primary { background: var(--red, #ef233c); border-color: var(--red, #ef233c); color: #fff; }
.as-share-btn:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: 2px; }
.as-share-status:empty { display: none; }
.as-share-status { margin: 8px 0 0; font-size: 13px; color: var(--as-muted); }

/* ---- Perfil do aluno (foto e contatos) ------------------------------- */
.as-avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red, #ef233c), #7a0f1d); color: #fff; font: 700 22px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  border: 2px solid var(--as-glass-edge);
}
.as-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-perfil-top, .as-perfil-header { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.as-perfil-info { display: grid; gap: 4px; min-width: 0; flex: 1 1 200px; }
.as-perfil-info b { font-size: 18px; }
.as-perfil-info .auth-hint { margin: 0; overflow-wrap: anywhere; }
.auth-card .as-perfil-top .btn { width: auto; flex: none; margin: 0; }
.as-perfil-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.as-perfil-grid .auth-field { margin: 10px 0; }
.as-perfil-header { margin: 0 0 12px; }
.as-perfil-header h3 { margin: 0; font-size: 22px; }
.as-perfil-contatos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--as-muted); font-size: 14px; }
.as-perfil-contatos a { color: var(--as-text); }
.as-perfil-contatos li { min-width: 0; overflow-wrap: anywhere; }

/* ---- Resumo da Anamnese (aluno) --------------------------------------- */
.auth-anamnese-resumo { margin-top: 20px; display: grid; gap: 12px; }
.auth-anamnese-resumo h3 { margin: 0; }
.auth-anamnese-resumo-grupo { padding: 12px 14px; border: 1px solid var(--as-line); border-radius: 14px; background: var(--as-surface-solid); }
.auth-anamnese-resumo-grupo h4 { margin: 0 0 6px; font-size: 15px; color: var(--red, #ef233c); }
.auth-anamnese-resumo-grupo ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }

/* ---- App do aluno: layout de celular em qualquer tela (coluna de 480px) */
.as-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#athletic-auth-root[data-top-bar="true"] {
  place-items: start center;
  padding-top: calc(88px + max(10px, env(safe-area-inset-top, 0px)));
}
.auth-card.auth-card--aluno { width: min(100%, 480px); }
.auth-card--aluno > section > h2:first-child { margin-top: 0; }
body:has(#athletic-auth-root[data-top-bar="true"]) .as-theme-toggle { display: none; }
.as-home-stack { display: grid; gap: 12px; }
.as-home-stack > .as-home-card { margin: 0; }

.as-top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 45; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: calc(92px + env(safe-area-inset-top));
  height: auto;
  padding: calc(8px + env(safe-area-inset-top)) max(10px, calc((100vw - 480px) / 2)) 8px;
  background: var(--as-glass-bg); border-bottom: 1px solid var(--as-glass-edge); box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.as-top-bar-logo {
  display: flex; align-items: center; justify-content: center; flex: none;
  min-width: 0; max-width: min(148px, 34vw); padding: 2px 4px; border-radius: 10px;
  background: transparent; text-decoration: none;
}
.as-top-bar-oficial { width: 100%; height: auto; max-height: 72px; object-fit: contain; }
/* Variantes da logo conforme tema (fundo transparente; tagline clara/escura). */
img.as-logo-on-dark { display: block; }
img.as-logo-on-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) img.as-logo-on-dark { display: none; }
  :root:not([data-theme="dark"]) img.as-logo-on-light { display: block; }
}
:root[data-theme="light"] img.as-logo-on-dark { display: none; }
:root[data-theme="light"] img.as-logo-on-light { display: block; }
.as-top-bar-actions {
  --as-top-hit: 44px;
  --as-top-icon: 22px;
  --as-top-avatar: 48px;
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; justify-content: flex-end;
  flex: 1; min-width: 0;
}
.as-top-bar-btn, .as-top-bar-avatar {
  position: relative; display: grid; place-items: center; flex: none;
  width: var(--as-top-hit) !important; height: var(--as-top-hit) !important; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--as-text); cursor: pointer;
}
.as-top-bar-btn .as-icon {
  width: var(--as-top-icon) !important; height: var(--as-top-icon) !important;
}
.as-top-bar-avatar {
  width: var(--as-top-avatar) !important; height: var(--as-top-avatar) !important;
  margin-left: 4px; /* afasta o sino da foto */
}
.as-avatar.as-avatar--top {
  width: var(--as-top-avatar); height: var(--as-top-avatar); font-size: 16px;
}
@media (max-width: 420px) {
  .as-top-bar-logo { max-width: min(112px, 28vw); }
  .as-top-bar-oficial { max-height: 60px; }
  .as-top-bar-actions {
    --as-top-hit: 40px;
    --as-top-icon: 22px;
    --as-top-avatar: 44px;
    gap: 4px;
  }
  .as-top-bar-avatar { margin-left: 4px; }
}
.as-modo-chip {
  min-height: 32px; padding: 0 12px; border: 1px solid var(--as-line); border-radius: 999px; background: transparent;
  color: var(--as-muted); font: 700 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer;
}
.as-modo-chip.is-admin { border-color: rgba(239, 35, 60, .5); color: var(--red, #ef233c); background: rgba(239, 35, 60, .10); }
.as-modo-chip:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: 2px; }
.as-top-bar-btn:hover { background: var(--as-input-bg); }
.as-top-bar-btn[aria-expanded="true"] { color: var(--red, #ef233c); }
.as-top-bar-btn:focus-visible, .as-top-bar-avatar:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: 2px; }
.as-avatar.as-avatar--sm { width: 38px; height: 38px; font-size: 14px; }
.as-top-bar-avatar.is-current .as-avatar, .as-top-bar-avatar[aria-expanded="true"] .as-avatar { border-color: var(--red, #ef233c); }
.as-badge-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: var(--red, #ef233c); color: #fff; font: 700 11px/18px Inter, ui-sans-serif, system-ui, sans-serif; text-align: center;
}
.as-icon { width: 24px; height: 24px; }

.as-popover {
  position: absolute; top: calc(100% + 8px); right: max(12px, calc((100vw - 480px) / 2));
  width: min(360px, calc(100vw - 24px)); max-height: min(70vh, 540px); overflow: auto; box-sizing: border-box;
  padding: 14px; border-radius: 16px; border: 1px solid var(--as-line);
  background: var(--as-surface-solid); color: var(--as-text); box-shadow: var(--as-shadow);
}
.as-notif-head h2 { margin: 0; font-size: 18px; }
.as-notif-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.as-popover .btn { width: auto; margin: 0; min-height: 36px; padding: 0 12px; font-size: 13px; }
.as-notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.as-notif-item > button {
  display: grid; gap: 2px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--as-line);
  color: var(--as-text); background: transparent; font: inherit; text-align: left; cursor: pointer;
}
.as-notif-item > button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-notif-item.is-unread > button { border-color: var(--red, #ef233c); background: rgba(239, 35, 60, .08); }
.as-notif-item span { font-size: 14px; color: var(--as-muted); }
.as-notif-item small { color: var(--as-muted); font-size: 11px; }
.as-notif-vazio { color: var(--as-muted); font-size: 14px; padding: 8px 2px; }
.as-account-head { padding: 2px 4px 10px; border-bottom: 1px solid var(--as-line); margin-bottom: 6px; }
.as-account-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.as-account-menu a, .as-account-sair {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 10px; box-sizing: border-box;
  border: 0; border-radius: 10px; background: transparent; color: var(--as-text); font: 500 15px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none; cursor: pointer; text-align: left;
}
.as-account-menu a:hover, .as-account-sair:hover { background: var(--as-input-bg); }
.as-account-sair { color: var(--red, #ef233c); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .as-top-bar { background: var(--as-surface-solid); }
}

/* ---- Navegação inferior do aluno (todas as telas) -------------------- */
#athletic-auth-root[data-bottom-nav="true"] { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.auth-card nav.as-top-nav { display: none; }
.as-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  padding: 8px max(8px, env(safe-area-inset-right), calc((100vw - 480px) / 2)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left), calc((100vw - 480px) / 2));
  background: var(--as-glass-bg); border-top: 1px solid var(--as-glass-edge); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.as-bottom-nav a {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 56px; border-radius: 12px;
  color: var(--as-muted); text-decoration: none; font: 600 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  transition: color .15s ease;
}
.as-bottom-nav a:hover { color: var(--as-text); }
.as-bottom-nav-icon { width: 24px; height: 24px; }
.as-bottom-nav a[aria-current="page"] { color: var(--red, #ef233c); }
.as-bottom-nav a[aria-current="page"]::before {
  content: ""; position: absolute; top: -8px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red, #ef233c);
}
.as-bottom-nav a:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: -3px; }
#athletic-auth-root[data-bottom-nav="true"] .as-rest-timer { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 680px) {
  #athletic-auth-root[data-bottom-nav="true"] { padding-left: 8px; padding-right: 8px; }
  #athletic-auth-root[data-bottom-nav="true"] .auth-card { padding: 16px 12px; }
  .as-treino-ex--aluno.auth-painel-dieta-item { margin-left: 0; padding: 10px 8px; }
  .as-treino-ex--aluno .as-treino-sets { font-size: 12px; }
  .as-treino-ex--aluno .as-treino-sets th, .as-treino-ex--aluno .as-treino-sets td { padding: 4px 2px; }
  .as-treino-ex--aluno .as-treino-sets input { min-width: 0; width: 46px; padding: 6px 4px; font-size: 16px; }
  .auth-card .as-treino-ex--aluno .as-treino-sets .btn { min-height: 40px; padding: 0 8px; font-size: 12px; }
  /* Editor do profissional: mídia acima do texto e tabela de séries que cabe na tela (rola por dentro se precisar). */
  .as-treino-ex:not(.as-treino-ex--aluno) { flex-direction: column; }
  .as-treino-ex:not(.as-treino-ex--aluno) > .as-treino-ex-body { width: 100%; }
  .auth-painel-dieta-item.as-treino-ex { margin-left: 0; padding: 10px 8px; }
  .as-treino-sets { display: block; max-width: 100%; overflow-x: auto; font-size: 12px; }
  .as-treino-sets th, .as-treino-sets td { padding: 4px 2px; }
  .as-treino-sets input { min-width: 0; width: 46px; padding: 6px 4px; font-size: 16px; }
  .as-treino-sets select { min-width: 0; width: 66px; padding: 6px 2px; font-size: 13px; }
  .auth-card .as-treino-sets .btn { min-height: 38px; padding: 0 8px; font-size: 12px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .as-bottom-nav { background: var(--as-surface-solid); }
}

/* ---- Toggle de tema ------------------------------------------------- */
.as-theme-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font: 600 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--as-text);
  background: var(--as-glass-bg);
  border: 1px solid var(--as-glass-edge);
  border-radius: 999px;
  box-shadow: var(--as-shadow);
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.as-theme-toggle:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: 3px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .as-theme-toggle { background: var(--as-surface-solid); }
}

/* =====================================================================
   Vidro estilo iOS: fundo com luzes difusas + painéis translúcidos.
   Sem as luzes, o blur não aparece (o fundo era preto liso).
   ===================================================================== */
:root {
  --as-spring: cubic-bezier(.34, 1.56, .64, 1);
  --as-glass-panel: rgba(255, 255, 255, .055);
  --as-glass-strong: rgba(24, 26, 34, .62);
  --as-glass-border: rgba(255, 255, 255, .12);
  --as-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .10);
  --as-glass-filter: blur(24px) saturate(180%);
  --as-ambient-1: rgba(239, 35, 60, .55);
  --as-ambient-2: rgba(170, 20, 80, .45);
  --as-ambient-3: rgba(80, 90, 190, .32);
  --as-option-bg: #15161b;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --as-glass-panel: rgba(255, 255, 255, .58);
    --as-glass-strong: rgba(255, 255, 255, .74);
    --as-glass-border: rgba(255, 255, 255, .75);
    --as-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .9);
    --as-ambient-1: rgba(239, 35, 60, .20);
    --as-ambient-2: rgba(255, 140, 110, .24);
    --as-ambient-3: rgba(110, 140, 255, .18);
    --as-option-bg: #ffffff;
  }
}
:root[data-theme="light"] {
  --as-glass-panel: rgba(255, 255, 255, .58);
  --as-glass-strong: rgba(255, 255, 255, .74);
  --as-glass-border: rgba(255, 255, 255, .75);
  --as-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .9);
  --as-ambient-1: rgba(239, 35, 60, .20);
  --as-ambient-2: rgba(255, 140, 110, .24);
  --as-ambient-3: rgba(110, 140, 255, .18);
  --as-option-bg: #ffffff;
}

body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 18% 12%, var(--as-ambient-1), transparent 62%),
    radial-gradient(42vmax 42vmax at 88% 34%, var(--as-ambient-2), transparent 62%),
    radial-gradient(48vmax 48vmax at 38% 96%, var(--as-ambient-3), transparent 62%);
}

/* O cartão do aluno vira só um contêiner: cada bloco é um painel de vidro. */
.auth-card.auth-card--aluno {
  background: transparent; border-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  --as-input-bg: var(--as-glass-panel);
  --as-surface-solid: var(--as-glass-panel);
}
.auth-card--aluno select option { background: var(--as-option-bg); color: var(--as-text); }
.auth-card--aluno :is(.as-home-card, .auth-anamnese-resumo-grupo, .auth-dieta-aluno-meal, .auth-painel-dieta-item, .auth-painel-dieta-day) {
  background: var(--as-glass-panel); border-color: var(--as-glass-border); box-shadow: var(--as-glass-highlight), 0 10px 30px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: var(--as-glass-filter); backdrop-filter: var(--as-glass-filter);
}
.auth-card--aluno .as-home-card { border-radius: var(--as-radius); }
.auth-card--aluno .as-home-hero {
  background: linear-gradient(135deg, rgba(239, 35, 60, .86), rgba(185, 15, 39, .80) 60%, rgba(91, 6, 19, .84));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 40px rgba(239, 35, 60, .28);
  -webkit-backdrop-filter: var(--as-glass-filter); backdrop-filter: var(--as-glass-filter);
}
.auth-card--aluno .as-home-stat, .auth-card--aluno .as-home-day { background: rgba(255, 255, 255, .10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }

/* Barra do topo: o blur fica numa camada própria para os menus abertos
   (filhos da barra) conseguirem desfocar a página de verdade. */
.as-top-bar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.as-top-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--as-glass-strong); -webkit-backdrop-filter: var(--as-glass-filter); backdrop-filter: var(--as-glass-filter);
}
.as-popover {
  background: var(--as-glass-strong); border-color: var(--as-glass-border);
  box-shadow: var(--as-glass-highlight), 0 24px 60px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
}

/* Barra de baixo flutuante, como a tab bar do iOS. */
.as-bottom-nav {
  left: 50%; right: auto; bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 460px); box-sizing: border-box; transform: translateX(-50%);
  padding: 6px; border-radius: 26px; border: 1px solid var(--as-glass-border);
  background: var(--as-glass-strong); box-shadow: var(--as-glass-highlight), 0 14px 40px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: var(--as-glass-filter); backdrop-filter: var(--as-glass-filter);
}
.as-bottom-nav a { min-height: 52px; border-radius: 20px; transition: color .2s var(--as-ease), background-color .2s var(--as-ease), transform .25s var(--as-spring); }
.as-bottom-nav a[aria-current="page"] { background: rgba(239, 35, 60, .14); }
.as-bottom-nav a[aria-current="page"]::before { content: none; }
#athletic-auth-root[data-bottom-nav="true"] { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

.as-share-dialog {
  background: var(--as-glass-strong); border-color: var(--as-glass-border);
  box-shadow: var(--as-glass-highlight), 0 30px 80px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
}
.as-share-dialog::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Medalhas: disco de vidro com o selo da Athletic Science. */
.as-home-badge-medal {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 6px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06) 62%);
  border: 1px solid var(--as-glass-border); box-shadow: var(--as-glass-highlight);
}
button.as-home-badge .as-home-badge-medal { border-color: rgba(244, 197, 66, .65); box-shadow: 0 0 0 3px rgba(244, 197, 66, .18), var(--as-glass-highlight); }
.as-home-badge-seal { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card--aluno { --as-input-bg: #15161b; --as-surface-solid: #15161b; }
  .as-top-bar::before, .as-popover, .as-bottom-nav, .as-share-dialog { background: var(--as-option-bg); }
}
@media (prefers-reduced-transparency: reduce) {
  .auth-card--aluno { --as-input-bg: var(--as-option-bg); --as-surface-solid: var(--as-option-bg); }
  .auth-card--aluno :is(.as-home-card, .auth-anamnese-resumo-grupo, .auth-dieta-aluno-meal, .auth-painel-dieta-item, .auth-painel-dieta-day),
  .as-top-bar::before, .as-popover, .as-bottom-nav, .as-share-dialog {
    background: var(--as-option-bg); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* ---- Animações e transições (desligadas com prefers-reduced-motion) - */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  body { transition: background-color .35s var(--as-ease); }
  body::before { animation: as-ambient 26s ease-in-out infinite alternate; }

  /* Troca de tela: o conteúdo entra em cascata. */
  /* Sem animar o cartão inteiro: opacidade no ancestral desliga o blur dos painéis. */
  .auth-card.auth-card--aluno { animation: none; }
  .auth-card--aluno > section > h2:first-child { animation: as-fade .3s var(--as-ease) both; }
  .auth-card--aluno :is(.as-home-hero, .as-home-card, .auth-anamnese-resumo-grupo, .auth-dieta-aluno-meal, .as-home-flash:not(:empty)) {
    animation: as-rise .45s var(--as-ease) both;
  }
  .auth-card--aluno :is(.as-home-hero, .as-home-card):nth-child(2) { animation-delay: .05s; }
  .auth-card--aluno :is(.as-home-hero, .as-home-card):nth-child(3) { animation-delay: .10s; }
  .auth-card--aluno :is(.as-home-hero, .as-home-card):nth-child(4) { animation-delay: .15s; }
  .auth-card--aluno :is(.as-home-hero, .as-home-card):nth-child(n+5) { animation-delay: .20s; }
  .as-home-badges li { animation: as-rise .4s var(--as-ease) both; }
  .as-home-badges li:nth-child(2n) { animation-delay: .04s; }
  .as-home-badges li:nth-child(n+3) { animation-delay: .08s; }
  .as-home-badges li:nth-child(n+5) { animation-delay: .12s; }
  details[open] > :not(summary) { animation: as-rise .28s var(--as-ease) both; }

  /* Menus, janelas e contador. */
  .as-popover:not([hidden]) { transform-origin: top right; animation: as-pop .26s var(--as-spring) both; }
  .as-share-dialog[open] { animation: as-pop-center .32s var(--as-spring) both; }
  .as-share-dialog[open]::backdrop { animation: as-fade .25s ease both; }
  .as-badge-count:not([hidden]) { animation: as-pop-center .35s var(--as-spring) both; }
  .as-bottom-nav a[aria-current="page"] .as-bottom-nav-icon { animation: as-tab .45s var(--as-spring) both; }

  /* Resposta ao toque. */
  .auth-card--aluno :is(.btn, .as-home-choice, .as-home-badge, .as-home-stat-btn, .as-share-btn),
  .as-chip span, .as-top-bar-btn, .as-top-bar-avatar, .as-account-menu a, .as-account-sair {
    transition: transform .22s var(--as-spring), background-color .2s var(--as-ease), border-color .2s var(--as-ease), color .2s var(--as-ease), box-shadow .2s var(--as-ease);
  }
  .auth-card--aluno :is(.btn, .as-home-choice, .as-home-badge, .as-home-stat-btn):active:not(:disabled),
  .as-share-btn:active, .as-chip:active span, .as-top-bar-btn:active, .as-top-bar-avatar:active, .as-bottom-nav a:active { transform: scale(.95); }
  .as-chip input:checked + span, .as-home-choice[aria-pressed="true"] { animation: as-pop-center .3s var(--as-spring); }
  button.as-home-badge:hover .as-home-badge-medal { transform: rotate(-6deg) scale(1.06); }
  .as-home-badge-medal { transition: transform .3s var(--as-spring); }
  .as-home-stat-btn.is-pending { animation: as-pulse 2.4s ease-in-out infinite; }
  .as-home-bar span { transition: width .6s var(--as-spring); }
  .as-home-day-btn.is-pending { animation: as-pulse 2.4s ease-in-out infinite; }
  .as-home-day-btn { transition: transform .22s var(--as-spring); }
  .as-home-day-btn:active { transform: scale(.92); }
  .as-home-meal-body.is-swap { animation: as-rise .38s var(--as-ease) both; }
  .as-home-meal-btn { transition: transform .22s var(--as-spring), background-color .2s var(--as-ease); }
  .as-home-meal-btn:active:not(:disabled) { transform: scale(.95); }
  .as-home-workout[open] .as-home-workout-list li { animation: as-rise .3s var(--as-ease) both; }
  .as-home-workout[open] .as-home-workout-list li:nth-child(2) { animation-delay: .03s; }
  .as-home-workout[open] .as-home-workout-list li:nth-child(3) { animation-delay: .06s; }
  .as-home-workout[open] .as-home-workout-list li:nth-child(n+4) { animation-delay: .09s; }
  .as-home-streak { animation: as-pop-center .45s var(--as-spring) .15s both; }

  @keyframes as-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes as-pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes as-pop-center { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
  @keyframes as-tab { 0% { transform: translateY(0); } 40% { transform: translateY(-4px) scale(1.12); } 100% { transform: none; } }
  @keyframes as-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
  @keyframes as-ambient { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-3vmax, 2vmax, 0) rotate(8deg); } }
}

/* ---- Abas segmentadas, fotos de acompanhamento e exames ---------------- */
.as-seg { display: flex; gap: 4px; padding: 4px; margin: 4px 0 14px; border-radius: 14px; border: 1px solid var(--as-glass-border, var(--as-line)); background: var(--as-glass-panel, var(--as-surface-solid)); }
.as-seg-tab { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--as-muted); font: inherit; font-weight: 600; cursor: pointer; }
.as-seg-tab[aria-selected="true"] { background: var(--red, #ef233c); color: #fff; box-shadow: 0 6px 16px rgba(239, 35, 60, .3); }
.as-seg-tab:focus-visible { outline: 2px solid var(--red, #ef233c); outline-offset: 2px; }
.as-seg-panel[hidden] { display: none !important; }
.as-arquivos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.as-arquivos > * { min-width: 0; }
.as-arquivos .as-home-card { padding: 16px; border: 1px solid var(--as-line); border-radius: var(--as-radius); }
.as-arquivos h3 { margin: 0 0 6px; font-size: 16px; }
.as-arquivos .btn { width: 100%; }
.as-foto-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.as-foto-slot { position: relative; display: grid; gap: 4px; justify-items: center; padding: 5px; border: 1.5px dashed var(--as-line); border-radius: 12px; cursor: pointer; text-align: center; }
.as-foto-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.as-foto-slot input:disabled { cursor: not-allowed; }
.as-foto-slot-prev { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; background: rgba(127, 127, 127, .10); font-size: 26px; color: var(--as-muted); overflow: hidden; }
.as-foto-slot-prev img { width: 100%; height: 100%; object-fit: cover; }
.as-foto-slot-nome { font-size: 11px; font-weight: 600; line-height: 1.2; }
.as-foto-slot.is-filled { border-style: solid; border-color: var(--red, #ef233c); }
.as-foto-slot.is-taken { opacity: .55; }
.as-foto-slot.is-taken .as-foto-slot-prev { color: #2fbf71; }
.as-foto-slot:focus-within { outline: 2px solid var(--red, #ef233c); outline-offset: 2px; }
.as-foto-grade, .as-foto-lado { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.as-foto-lado { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; max-width: 520px; }
.as-foto-thumb { margin: 0; display: grid; gap: 4px; }
.as-foto-thumb figcaption { font-size: 12px; color: var(--as-muted); text-align: center; }
.as-foto-open { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.as-foto-open img, .as-foto-vazia { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.as-foto-vazia { display: grid; place-items: center; background: rgba(127, 127, 127, .10); color: var(--as-muted); }
.as-foto-remover { border: 0; background: none; color: var(--as-muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.as-foto-cmp-datas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 10px; }
.as-foto-cmp-datas label { display: grid; gap: 4px; font-size: 13px; color: var(--as-muted); }
.as-foto-dialog { max-width: min(92vw, 560px); }
.as-foto-dialog img { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 12px; }
.as-foto-legenda { margin: 0 0 8px; font-weight: 600; }
.as-exame-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.as-exame-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--as-line); }
.as-exame-item:first-child { border-top: 0; }
.as-exame-info { flex: 1 1 200px; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.as-exame-info small, .as-exame-info span { color: var(--as-muted); font-size: 13px; }
.as-exame-acoes { display: flex; gap: 6px; }
.as-exame-acoes .btn { width: auto; }
.as-icon-acoes { gap: 8px; }
.as-icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; cursor: pointer;
  border: 1px solid var(--as-line); border-radius: 12px; background: var(--as-input-bg); color: var(--as-text);
  transition: background .2s, border-color .2s, transform .15s var(--as-ease);
}
.as-icon-btn .as-icon { width: 21px; height: 21px; }
.as-icon-btn:hover:not(:disabled) { border-color: var(--as-muted); }
.as-icon-btn:active:not(:disabled) { transform: scale(.94); }
.as-icon-btn:disabled { opacity: .5; cursor: not-allowed; }
.as-icon-btn.is-primary { background: var(--red, #ef233c); border-color: var(--red, #ef233c); color: #fff; }
.as-icon-btn.is-danger { color: var(--red, #ef233c); }
.as-icon-btn.is-danger:hover:not(:disabled) { border-color: var(--red, #ef233c); }
.as-bio-paciente { margin: 0 0 4px; font-size: 17px; }
.as-exame-info.as-bio-info { gap: 4px; }
.as-bio-titulo { font-size: 16px; }
.as-exame-info .as-bio-situacao { justify-self: start; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.as-exame-info .as-bio-situacao.is-pendente { background: rgba(244, 197, 66, .14); color: var(--yellow, #e5b400); }
.as-exame-info .as-bio-situacao.is-publicado { background: rgba(47, 191, 113, .14); color: #2fbf71; }
.as-bio-resumo { font-size: 19px; font-weight: 800; color: var(--as-text); }
.as-exame-info .as-bio-balanca { font-size: 14px; color: var(--as-text); opacity: .85; }
.as-bio-indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.as-bio-ind { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--as-line); border-radius: 12px; background: var(--as-input-bg); }
.as-bio-ind small { font-size: 12px; color: var(--as-muted); }
.as-bio-ind strong { font-size: 20px; }
.as-bio-delta { font-size: 11.5px; color: var(--as-muted); }
.as-bio-pdf { display: inline-flex; align-items: center; gap: 6px; }
.as-bio-pdf .as-icon { width: 18px; height: 18px; }

/* ---- Saúde e hormônios (profissional) ----------------------------------- */
.as-saude { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.as-saude-aviso { margin: 0; }
.as-saude-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.as-saude-topo .btn { width: auto; }
.as-saude-uso { display: grid; gap: 4px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--as-line); border-radius: 14px; background: var(--as-surface-solid); }
.as-saude-uso p { margin: 0; }
.as-saude-uso-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.as-saude-alerta { color: var(--lab-warn); }
.as-saude-fases { display: grid; gap: 2px; margin: 6px 0; font-size: 13px; }
.as-saude-fase.is-ok b { color: var(--lab-ok); }
.as-saude-fase.is-pendente b { color: var(--lab-warn); }
.as-saude-timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--as-line); display: grid; gap: 8px; }
.as-saude-timeline li { display: grid; gap: 2px; position: relative; }
.as-saude-timeline li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--lab-line); }
.as-saude-timeline li.is-inicio::before { background: var(--red, #ef233c); }
.as-saude-timeline li.is-coleta::before { background: var(--lab-ok); }
.as-saude-timeline li.is-fora::before { background: var(--lab-warn); }
.as-saude-timeline time { font-size: 12px; color: var(--as-muted); }
.as-saude-timeline small { color: var(--lab-warn); }

/* ---- Painel de exames (profissional) ------------------------------------ */
.as-lab, .as-lab-dialog { --lab-ok: #1fa971; --lab-bad: #ef233c; --lab-warn: #e5b400; --lab-line: #8b95a1; }
.as-lab-dash h3 { margin: 0 0 4px; }
.as-lab-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.as-lab-stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-surface-solid); }
.as-lab-stat strong { font-size: 20px; line-height: 1.1; }
.as-lab-stat span { font-size: 12px; color: var(--as-muted); }
.as-lab-filters { display: grid; gap: 10px; margin-bottom: 12px; }
.as-lab-filters .as-chip span { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.as-lab-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.as-lab-panel { margin-top: 16px; }
.as-lab-panel h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--as-muted); }
.as-lab-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.as-lab .as-lab-card {
  display: grid; gap: 4px; align-content: start; width: 100%; padding: 12px; text-align: left; font: inherit; color: var(--as-text); cursor: pointer;
  border: 1px solid var(--as-line); border-left: 4px solid var(--lab-line); border-radius: 14px; background: var(--as-surface-solid);
  transition: transform .15s var(--as-ease), box-shadow .15s var(--as-ease);
}
.as-lab .as-lab-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.as-lab .as-lab-card:focus-visible { outline: 2px solid var(--red, #ef233c); outline-offset: 2px; }
.as-lab-card.is-normal { border-left-color: var(--lab-ok); }
.as-lab-card.is-alto, .as-lab-card.is-alterado { border-left-color: var(--lab-bad); }
.as-lab-card.is-baixo, .as-lab-card.is-atencao { border-left-color: var(--lab-warn); }
.as-lab-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.as-lab-card-top b { font-size: 14px; }
.as-lab-card-value { display: flex; align-items: baseline; gap: 6px; }
.as-lab-card-value strong { font-size: 24px; line-height: 1.1; }
.as-lab-card-value span, .as-lab-card-meta, .as-lab-card-ref { font-size: 12px; color: var(--as-muted); }
.as-lab-card-delta { font-size: 12px; color: var(--as-text); }
.as-lab-badge { flex: none; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--as-input-bg); color: var(--as-muted); border: 1px solid var(--as-line); }
.as-lab-badge.is-normal { background: rgba(31, 169, 113, .14); color: var(--lab-ok); border-color: transparent; }
.as-lab-badge.is-alto, .as-lab-badge.is-alterado { background: rgba(239, 35, 60, .14); color: var(--lab-bad); border-color: transparent; }
.as-lab-badge.is-baixo, .as-lab-badge.is-atencao { background: rgba(229, 180, 0, .16); color: var(--lab-warn); border-color: transparent; }
.as-lab-chart { display: block; width: 100%; height: auto; overflow: visible; }
.as-lab-band { fill: rgba(31, 169, 113, .14); }
.as-lab-line { fill: none; stroke: var(--lab-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.as-lab-chart.is-detailed .as-lab-line { stroke-width: 2.5; }
.as-lab-dot { fill: var(--lab-line); stroke: var(--as-surface-solid); stroke-width: 1.5; }
.as-lab-dot.is-normal { fill: var(--lab-ok); }
.as-lab-dot.is-alto, .as-lab-dot.is-alterado { fill: var(--lab-bad); }
.as-lab-dot.is-baixo, .as-lab-dot.is-atencao { fill: var(--lab-warn); }
.as-lab-grid { stroke: var(--as-line); stroke-width: 1; }
.as-lab-refline { stroke: var(--lab-ok); stroke-width: 1; stroke-dasharray: 4 4; }
.as-lab-axis, .as-lab-reflabel { font-size: 11px; fill: var(--as-muted); }
.as-lab-reflabel { fill: var(--lab-ok); }
.as-lab-vlabel { font-size: 11px; font-weight: 700; fill: var(--as-text); }
.as-lab-vlabel.is-alto, .as-lab-vlabel.is-alterado { fill: var(--lab-bad); }
.as-lab-vlabel.is-baixo, .as-lab-vlabel.is-atencao { fill: var(--lab-warn); }
.as-lab-vlabel.is-normal { fill: var(--lab-ok); }
.as-lab-dialog { width: min(94vw, 720px); max-width: min(94vw, 720px); }
.as-lab-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.as-lab-dialog-head h3 { margin: 0; }
.as-lab-dialog-chart { margin: 8px 0 12px; padding: 8px; border-radius: 12px; background: var(--as-input-bg); }
.as-lab-mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.as-lab-mini td { padding: 6px 4px; border-top: 1px solid var(--as-line); }
.as-lab-mini td.is-alto, .as-lab-mini td.is-alterado { color: var(--lab-bad); font-weight: 700; }
.as-lab-mini td.is-baixo, .as-lab-mini td.is-atencao { color: var(--lab-warn); font-weight: 700; }
.as-lab-mini td.is-normal { color: var(--lab-ok); font-weight: 700; }
.as-calcs .as-calc { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--as-line); border-radius: 12px; }
.as-calc h5 { margin: 0 0 4px; font-size: 14px; }
.as-calc .as-treino-row .auth-field { flex: 1 1 150px; }
.as-calc-origem { margin: 0 0 6px; }
.as-calcs .as-calc-grupo { margin: 20px 0 2px; font-size: 15px; }
.as-calc-lista { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 0; }
.as-calc-lista dt { color: var(--as-muted); font-size: 13px; }
.as-calc-lista dd { margin: 0; font-weight: 700; }
@media (max-width: 599px) { .as-calc-lista { grid-template-columns: 1fr; gap: 2px; } .as-calc-lista dd { margin-bottom: 6px; } }
.as-lab-evol-qtd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--as-muted); }
.as-lab-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--as-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.as-lab-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.as-lab-table th, .as-lab-table td { padding: 8px 10px; border-bottom: 1px solid var(--as-line); text-align: center; white-space: nowrap; vertical-align: middle; }
.as-lab-table th.as-lab-table-data { min-width: 64px; line-height: 1.15; }
.as-lab-table th.as-lab-table-data span { display: block; font-weight: 700; color: var(--as-text); }
.as-lab-table th.as-lab-table-data small { display: block; font-size: 10.5px; }
.as-lab-table thead th { position: sticky; top: 0; background: var(--as-surface-solid); font-size: 12px; color: var(--as-muted); z-index: 1; }
.as-lab-table tbody th, .as-lab-table thead th:first-child { position: sticky; left: 0; text-align: left; background: var(--as-surface-solid); z-index: 2; white-space: normal; min-width: 110px; max-width: 150px; box-shadow: 1px 0 0 var(--as-line); }
.as-lab-table tbody th span { display: block; font-weight: 600; }
.as-lab-table tbody th small { display: block; font-weight: 400; font-size: 11px; color: var(--as-muted); }
.as-lab-table thead th:nth-child(2), .as-lab-table:not(.as-lab-cmp) tbody td:nth-of-type(1) { background: rgba(139, 149, 161, .10); }
.as-lab-table-group th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--as-muted); background: var(--as-input-bg) !important; }
.as-lab-table td.is-alto, .as-lab-table td.is-alterado { color: var(--lab-bad); font-weight: 700; background: rgba(239, 35, 60, .08); }
.as-lab-table td.is-baixo, .as-lab-table td.is-atencao { color: var(--lab-warn); font-weight: 700; background: rgba(229, 180, 0, .10); }
.as-lab-table td.is-normal { color: var(--lab-ok); }
.as-lab-table td.is-empty { color: var(--as-muted); opacity: .6; }
.as-lab-table-ref { color: var(--as-muted); font-size: 12px; }
.as-lab-table td.as-lab-table-ref { white-space: normal; min-width: 150px; }
.as-lab-diff.is-up { color: var(--lab-line); }
.as-lab-diff.is-down { color: var(--lab-warn); }
.as-lab-file-status { font-weight: 600; }
.as-lab-file-status.is-ok { color: var(--lab-ok) !important; }
.as-lab-file-status.is-erro { color: var(--lab-bad) !important; }
.as-lab .as-foto-cmp-datas { margin-bottom: 12px; }

/* ---- Shell por papel: celular (barra embaixo) e computador (menu lateral) */
#athletic-auth-root { --as-shell-w: 480px; }
#athletic-auth-root[data-role="professional"] { --as-shell-w: 1180px; }
/* Mantém respiro abaixo da Dynamic Island / notch (não zerar o padding inferior da barra). */
.as-top-bar {
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px), calc((100vw - var(--as-shell-w)) / 2))
    10px
    max(12px, env(safe-area-inset-left, 0px), calc((100vw - var(--as-shell-w)) / 2));
  min-height: calc(72px + env(safe-area-inset-top, 0px));
}
.as-popover { right: max(12px, calc((100vw - var(--as-shell-w)) / 2)); }
.as-bottom-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.auth-card--pro > section > h2:first-child { margin-top: 0; }
.as-recebidos-lista { display: grid; gap: 12px; margin-top: 12px; }
.as-recebido { padding: 14px 16px; border: 1px solid var(--as-line); border-radius: var(--as-radius); }
.as-recebido-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.as-recebido-head > div { display: grid; gap: 2px; min-width: 0; }
.as-recebido-head small { color: var(--as-muted); font-size: 12px; }
.auth-card .as-recebido .btn { width: auto; margin: 0; }
.as-recebido .as-foto-grade { grid-template-columns: repeat(auto-fill, minmax(96px, 140px)); }
.as-bio-envio { display: grid; gap: 10px; margin: 10px 0; padding: 12px; border: 1px solid var(--as-line); border-radius: 12px; }
.as-exame-item > .as-bio-envio { flex-basis: 100%; }
.as-bio-envio-opcao { display: grid; gap: 4px; }
.as-bio-envio-opcao input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red, #ef233c); }
.as-bio-envio-alerta .auth-hint { color: var(--red, #ef233c); font-weight: 600; }
.as-bio-envio-alerta input[type="tel"], .as-bio-envio-alerta input[type="email"] { border-color: var(--red, #ef233c); }
.as-bio-envio .btn { width: auto; justify-self: start; margin: 0; }
.as-confirm-message { white-space: pre-line; }
@media (max-width: 899px) {
  .as-painel-side { padding: 10px; }
  .as-painel-item { width: auto; min-height: 40px; padding: 6px 14px; border: 1px solid var(--as-line); border-radius: 999px; white-space: nowrap; }
}
@media (min-width: 900px) {
  #athletic-auth-root[data-top-bar="true"] .as-painel-side { top: calc(112px + env(safe-area-inset-top)); max-height: calc(100vh - 130px); }
}
@media (min-width: 1024px) {
  #athletic-auth-root[data-role="student"] { --as-shell-w: 760px; }
  .auth-card.auth-card--aluno { width: min(100%, 760px); }
  #athletic-auth-root[data-bottom-nav="true"] { padding-left: 252px; padding-right: 24px; padding-bottom: 32px; }
  .as-top-bar { padding-left: 24px; padding-right: 24px; }
  .as-popover { right: 24px; }
  .as-bottom-nav {
    left: 16px; right: auto; top: calc(112px + env(safe-area-inset-top)); bottom: auto; transform: none;
    width: 220px; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 4px; padding: 8px; border-radius: 20px;
  }
  .as-bottom-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 14px; font-size: 14px; }
  #athletic-auth-root[data-bottom-nav="true"] .as-rest-timer { bottom: 24px; }
}
.as-pro-page > details > summary { display: none; }

/* ---- Aulas / agenda / ao vivo -------------------------------------- */
.as-aula-form { display: grid; gap: 10px; }
.as-aula-flash { color: var(--red, #ef233c); }
.as-aula-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.as-aula-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--as-line);
}
.as-aula-item:first-child { border-top: 0; padding-top: 0; }
.as-aula-item-meta { display: grid; gap: 2px; min-width: 0; }
.as-aula-item-meta small { color: var(--as-muted, #9aa0a6); }
.as-aula-item-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-card .as-aula-item-acoes .btn { width: auto; margin-top: 0; }
.as-aula-sala {
  margin: 12px 0; padding: 16px; border-radius: var(--as-radius); border: 1px solid var(--as-line);
  background: var(--as-input-bg);
}
.as-aula-sala-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.as-aula-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(239, 35, 60, .15); color: var(--red, #ef233c);
}
.as-aula-sala-stage {
  min-height: 180px; display: grid; place-content: center; gap: 6px; text-align: center;
  border-radius: 12px; border: 1px dashed var(--as-line); padding: 20px; margin-bottom: 12px;
}
.as-aula-sala-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-card .as-aula-sala-acoes .btn { width: auto; margin-top: 0; }
.as-aula-ao-vivo-card > .btn { margin-top: 8px; }
.as-aula-alunos { display: grid; gap: 8px; }
.as-aula-alunos-lista { max-height: 220px; }
.as-aula-sala-stage--live {
  min-height: 0; place-content: stretch; text-align: left; border-style: solid; padding: 0; overflow: hidden;
}
.as-live-room { display: grid; gap: 10px; padding: 12px; }
.as-live-room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.as-live-status { margin: 0; }
.as-live-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  min-height: 220px;
}
.as-live-tile {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: #0d0e12; border: 1px solid var(--as-line);
}
.as-live-tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0d0e12; }
.as-live-tile-cap {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; background: rgba(0, 0, 0, .65); color: #fff;
}
.as-live-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-card .as-live-controls .btn { width: auto; margin-top: 0; }
.auth-card .as-live-controls .btn.is-off { opacity: .7; }
.as-live-file-panel { display: grid; gap: 8px; }
.as-live-file-stage { min-height: 0; }
.as-live-file-embed {
  width: 100%;
  min-height: 280px;
  max-height: 55vh;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.as-aula-link-sala { word-break: break-all; }
.as-billing .as-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }

/* ---- Treino: aviso de rascunho não publicado ------------------------ */
.as-treino-unpublished {
  position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 10px 14px; border-radius: 12px;
  background: var(--as-surface-solid, #15161b); border: 1px solid var(--red, #ef233c);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); font-size: 14px;
}
.auth-card .as-treino-unpublished .btn { width: auto; margin-top: 0; flex: none; }
@media (min-width: 1024px) { .as-treino-unpublished { bottom: 16px; } }

/* ---- Evolução: próxima reavaliação ---------------------------------- */
.as-next-check {
  display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: 14px;
  border: 1px solid var(--as-line); background: var(--as-surface-solid);
}
.as-next-check-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--as-muted, #9aa0a6); }
.as-next-check-date { font-size: 28px; line-height: 1.1; }
.as-next-check-count { font-weight: 600; color: var(--red, #ef233c); }
.as-next-check .auth-hint { margin: 4px 0 0; }

/* ---- Dieta simplificada (painel) ------------------------------------ */
.as-meal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.as-meal-chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--as-line); background: transparent;
  color: var(--as-text); font: inherit; font-size: 14px; cursor: pointer;
}
.as-meal-chip[aria-pressed="true"] { background: var(--red, #ef233c); border-color: var(--red, #ef233c); color: #fff; font-weight: 600; }
.as-meal-chip.is-open { outline: 2px solid var(--as-text); outline-offset: 2px; }
.as-dieta-total { font-size: 13px; color: var(--as-muted); margin: 8px 0; }
.as-dieta-meal { border: 1px solid var(--as-line); border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
.as-dieta-meal > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.as-dieta-items { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.as-dieta-item { display: flex; align-items: center; gap: 8px; }
.as-dieta-item > div { flex: 1; min-width: 0; display: grid; }
.as-dieta-item .auth-hint { margin: 0; }
.auth-card .as-dieta-item .btn { width: auto; margin-top: 0; }
.as-dieta-qty {
  width: 80px; padding: 6px 8px; border-radius: 8px; font: inherit;
  border: 1px solid var(--as-line); background: var(--as-input-bg); color: var(--as-text);
}
.as-dieta-results { display: grid; gap: 6px; margin-top: 6px; }
.as-dieta-result {
  display: grid; text-align: left; gap: 2px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--as-line); background: var(--as-input-bg); color: var(--as-text); font: inherit; cursor: pointer;
}
.as-dieta-result:hover, .as-dieta-result:focus-visible { border-color: var(--red, #ef233c); }
.as-dieta-result .auth-hint { margin: 0; }
.as-dieta-pick, .as-dieta-novo { margin-top: 8px; padding: 10px; border-radius: 10px; border: 1px dashed var(--as-line); }
.auth-card .as-dieta-results .btn, .auth-card .as-dieta-pick .btn, .auth-card .as-dieta-novo .btn { width: auto; }

/* ---- Dieta (painel): situação, cardápio em leitura e histórico ------- */
.as-diet-status {
  display: grid; gap: 6px; padding: 16px; margin: 10px 0 16px; border-radius: 14px;
  border: 1px solid var(--as-line); background: var(--as-surface-solid);
}
.as-diet-status.is-draft { border-color: var(--red, #ef233c); }
.as-diet-status-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--as-muted); }
.as-diet-status.is-draft .as-diet-status-label { color: var(--red, #ef233c); font-weight: 700; }
.as-diet-status-title { font-size: 18px; }
.as-diet-status-totals { margin: 0; font-weight: 600; }
.as-diet-status .auth-hint { margin: 0; }
.as-diet-edit { display: grid; gap: 6px; margin-top: 6px; }
.as-diet-block { margin: 14px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--as-line); }
.as-diet-block > summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.as-diet-block > h5 { margin: 0 0 8px; }
.as-diet-history-item { padding: 8px 0; border-top: 1px solid var(--as-line); }
.as-diet-history-item > summary { cursor: pointer; }
.as-menu { display: grid; gap: 10px; margin-top: 8px; }
.as-menu-meal { padding: 10px 12px; border-radius: 14px; background: var(--as-surface-solid); }
.as-menu-meal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--as-line); }
.as-menu-meal-head h6 { margin: 0; font-size: 16px; font-weight: 700; color: var(--as-text); }
.as-menu-time { font-weight: 700; color: var(--red, #ef233c); font-variant-numeric: tabular-nums; }
.as-menu-kcal { margin-left: auto; font-size: 13px; color: var(--as-muted); }
.as-menu-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.as-menu-item { display: grid; gap: 2px; }
.as-menu-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.as-menu-qty { color: var(--as-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-menu-item .auth-hint, .as-menu-item small { margin: 0; font-size: 12px; }
.as-diet-history-meta { color: var(--as-muted); font-size: 13px; }
.as-diet-history-item > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.auth-card .as-diet-history-delete { width: auto; margin: 0 0 0 auto; color: var(--red, #ef233c); }

/* ---- Baixar PDF (dieta e treino) --------------------------------------- */
.as-pdf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0; }
.auth-card .as-pdf-btn { width: auto; margin: 0; display: inline-flex; align-items: center; gap: 8px; border-color: var(--red, #ef233c); }
.as-pdf-btn::before { content: "PDF"; padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--red, #ef233c); }
.as-pdf-row .auth-hint { margin: 0; }
.as-img-btn::before { content: "IMG"; }

/* ---- Metas, estratégia, lista de compras e adesão ---------------------- */
.as-diet-tech[open] > summary { margin-bottom: 10px; }
.as-tech-section { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--as-surface-solid); border: 1px solid var(--as-line); }
.as-tech-section > .auth-painel-dieta-summary { margin: 0; padding: 0; border: 0; background: none; }
.as-tech-title { margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--as-muted); }
.as-tech-quote { margin: 0; padding-left: 10px; border-left: 3px solid var(--red, #ef233c); color: var(--as-text); white-space: pre-wrap; }
.as-goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.as-goal { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--as-input-bg); border: 1px solid var(--as-line); }
.as-goal-label { font-size: 12px; color: var(--as-muted); }
.as-goal-value { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--as-text); }
.as-goal-meta { font-size: 12px; color: var(--as-muted); font-variant-numeric: tabular-nums; }
.as-goal-bar { height: 6px; border-radius: 99px; background: var(--as-line); overflow: hidden; }
.as-goal-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--as-muted); transition: width .5s var(--as-spring, ease); }
.as-goal.is-ok .as-goal-bar > span { background: #16a34a; }
.as-goal.is-atencao .as-goal-bar > span { background: #d97706; }
.as-goal.is-fora .as-goal-bar > span { background: var(--red, #ef233c); }
.as-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.as-chip { padding: 4px 10px; border-radius: 99px; font-size: 12px; background: var(--as-input-bg); border: 1px solid var(--as-line); color: var(--as-text); }
.as-adh-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.as-adh-count { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; font-size: 13px; background: var(--as-input-bg); border: 1px solid var(--as-line); }
.as-adh-rate { margin-left: auto; font-weight: 700; color: var(--as-text); }
.as-adh-icon {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-weight: 700; color: #fff; background: var(--as-muted);
}
.as-adh-icon.is-cumprida, .is-cumprida > .as-adh-icon { background: #16a34a; }
.as-adh-icon.is-parcial, .is-parcial > .as-adh-icon { background: #d97706; }
.as-adh-icon.is-nao_realizada, .is-nao_realizada > .as-adh-icon { background: var(--red, #ef233c); }
.as-adh-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.as-adh-row { display: flex; align-items: flex-start; gap: 10px; padding-top: 8px; border-top: 1px solid var(--as-line); }
.as-adh-row > div { display: grid; gap: 2px; min-width: 0; }
.as-adh-row .auth-hint { margin: 0; font-size: 12px; }

/* ---- Pop-up de confirmação (confirm-dialog.mjs) e check-in ----------- */
.as-confirm, .as-checkin-dialog {
  border: 2px solid var(--red, #ef233c) !important; border-radius: 18px;
}
.as-confirm {
  padding: 0; width: min(420px, calc(100vw - 32px)); color: var(--as-text);
  background: var(--as-surface-solid); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.as-confirm::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.as-confirm form { display: grid; gap: 12px; padding: 22px; }
.as-confirm-title { margin: 0; font-size: 18px; line-height: 1.3; }
.as-confirm-message { margin: 0; color: var(--as-muted); }
.as-confirm .auth-field { margin: 0; }
.as-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.as-confirm-actions .btn { display: inline-flex; width: auto; margin: 0; }
.as-confirm-danger { background: var(--red, #ef233c); }
.as-notif-modal { width: min(560px, calc(100vw - 32px)); padding: 24px; }
.as-notif-modal[open] { display: grid; gap: 10px; }
.as-notif-modal-corpo { margin: 4px 0; white-space: pre-wrap; font-size: 16px; line-height: 1.55; max-height: 60vh; overflow-y: auto; }
@media (prefers-reduced-motion: no-preference) {
  .as-confirm[open] { animation: as-pop-center .28s var(--as-spring, ease) both; }
}

/* ---- Refeições: borda vermelha, espaço entre elas, arrastar e soltar -- */
.as-menu .auth-painel-dieta-day, .auth-dieta-aluno-day { display: grid; gap: 14px; }
.as-dieta-meal, .as-menu-meal { border: 2px solid var(--red, #ef233c); }
.as-dieta-meal { margin: 14px 0; }
.as-dieta-meal > summary .as-menu-time { font-weight: 700; color: var(--red, #ef233c); font-variant-numeric: tabular-nums; }
.as-dieta-meal > summary strong { font-size: 15px; }
.as-dieta-meal.drop-into { outline: 2px dashed var(--red, #ef233c); outline-offset: 2px; }
.auth-dieta-aluno-meal.as-menu-meal { border: 2px solid var(--red, #ef233c); border-radius: 14px; margin: 0; padding: 12px 14px; }
.as-adherence-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.auth-card .as-adherence-btn {
  width: 100%; min-height: 48px; margin: 0; padding: 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--as-line); background: var(--as-input-bg); color: var(--as-muted);
  font-size: 20px; font-weight: 700; line-height: 1; transition: background .2s, color .2s, border-color .2s, transform .2s var(--as-spring, ease);
  display: grid; place-items: center;
}
.as-adherence-ico { font-size: 18px; }
.auth-card .as-adherence-btn.is-cumprida { border-color: rgba(53, 208, 127, .55); color: #35d07f; }
.auth-card .as-adherence-btn.is-parcial { border-color: rgba(244, 197, 66, .55); color: #e5b400; }
.auth-card .as-adherence-btn.is-nao_realizada { border-color: rgba(239, 35, 60, .55); color: var(--red, #ef233c); }
.auth-card .as-adherence-btn:hover:not(:disabled) { color: inherit; filter: brightness(1.08); }
.auth-card .as-adherence-btn:active:not(:disabled) { transform: scale(.94); }
.auth-card .as-adherence-btn.is-cumprida.is-selected { background: #16a34a; border-color: #16a34a; color: #fff; }
.auth-card .as-adherence-btn.is-parcial.is-selected { background: #d97706; border-color: #d97706; color: #fff; }
.auth-card .as-adherence-btn.is-nao_realizada.is-selected { background: var(--red, #ef233c); border-color: var(--red, #ef233c); color: #fff; }
.as-menu-item.has-subs { border-radius: 12px; }
.as-menu-item-toggle {
  appearance: none; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  width: 100%; margin: 0; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--as-line); background: var(--as-input-bg);
  color: var(--as-text); font: inherit; text-align: left; cursor: pointer;
}
.as-menu-item-toggle .as-menu-item-nome {
  margin: 0; font-weight: 700; text-decoration: none;
}
.as-menu-item-toggle .as-menu-qty { grid-column: 2; grid-row: 1; color: var(--as-muted); font-size: 13px; }
.as-menu-subs-badge {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(239, 35, 60, .12); color: var(--red, #ef233c);
}
.as-menu-subs-badge::after { content: " ▾"; }
.as-menu-item-toggle.is-open .as-menu-subs-badge::after { content: " ▴"; }
.as-menu-item-toggle.is-open {
  border-color: rgba(239, 35, 60, .45);
}
.as-menu-subs {
  margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(239, 35, 60, .35); background: rgba(239, 35, 60, .06);
}
.as-menu-subs-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.as-menu-subs-list li { display: grid; gap: 2px; }
.as-menu-subs-list .as-menu-qty { color: var(--as-muted); font-size: 13px; }
.auth-dieta-aluno-meal .as-menu-meal-head h5 { margin: 0; font-size: 16px; font-weight: 700; color: var(--as-text); }
.auth-dieta-aluno-item.as-menu-item { padding: 8px 0; }
.as-menu-notes-title { margin: 10px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--as-muted); }
.as-menu-note .as-menu-qty { color: var(--red, #ef233c); font-size: 13px; }
.as-drag-handle {
  flex: none; width: 28px; height: 32px; padding: 0; border: 0; border-radius: 8px; cursor: grab;
  background: transparent; color: var(--as-muted); font-size: 18px; line-height: 1; touch-action: none;
}
.as-drag-handle:hover, .as-drag-handle:focus-visible { background: var(--as-input-bg); color: var(--as-text); }
.as-dieta-item { position: relative; border-radius: 10px; }
.as-dieta-item.is-dragging { opacity: .45; }
.as-dieta-item.drop-before { box-shadow: 0 -3px 0 var(--red, #ef233c); }
.as-dieta-item.drop-after { box-shadow: 0 3px 0 var(--red, #ef233c); }
.as-dieta-unit { width: auto; min-width: 64px; padding: 6px 8px; }
.as-dieta-grams { white-space: nowrap; }
.as-dieta-notes { margin: 8px 0 12px; padding-top: 8px; border-top: 1px dashed var(--as-line); }
.as-dieta-note > div { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.as-dieta-note .as-menu-time { font-size: 13px; }

/* Admin › Acessos */
.as-acessos-corpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.as-acessos-corpo > * { min-width: 0; margin: 0; }
.as-acessos-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.as-acessos-secao-titulo {
  margin: 8px 0 0; font: 700 1.05rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--as-text); letter-spacing: .01em;
  padding-bottom: 4px; border-bottom: 2px solid rgba(239, 35, 60, .35);
}
.as-acesso { display: grid; align-content: start; gap: 10px; min-width: 0; }
.as-acesso-head, .as-acesso-aluno { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.as-acesso-head > div, .as-acesso-aluno > div:first-child { display: grid; gap: 2px; min-width: 0; }
.as-acesso-head small, .as-acesso-aluno small { color: var(--as-muted); font-size: 12px; overflow-wrap: anywhere; }
.as-acesso-titulo b { font-weight: 700; }
.as-acesso-cats {
  display: inline-block; margin-left: 2px; font-weight: 700; font-size: .92em;
  color: var(--red, #ef233c); white-space: nowrap;
}
.as-acesso-cats-switches { display: grid; gap: 8px; min-width: 0; }
.as-acesso-cats-switches .as-switch { width: 100%; }
.as-acesso-tag { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: var(--red, #ef233c); }
.as-acesso-modulos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.as-acesso-modulos legend { width: 100%; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--as-text); }
.as-acesso-mod { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font-size: 13px; border: 1px solid var(--as-line); background: var(--as-input-bg); cursor: pointer; }
.as-acesso-mod input { width: 16px; height: 16px; margin: 0; accent-color: var(--red, #ef233c); }
.as-acesso-professores-lista {
  display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto;
  width: 100%; padding: 4px 2px 4px 0; margin: 0 0 8px;
  border: 1px solid var(--as-line); border-radius: 10px; background: var(--as-input-bg);
}
.as-acesso-professores-lista .as-acesso-mod { border-radius: 8px; background: transparent; }
.auth-card .as-acesso .btn { width: auto; margin: 0; justify-self: start; }
.as-acessos-alunos { display: grid; gap: 0; margin: 0; padding: 4px 16px; list-style: none; }
.as-acesso-aluno { padding: 0; border-bottom: 1px solid var(--as-line); }
.as-acesso-aluno:last-child { border-bottom: 0; }
.as-acesso-aluno-card { margin: 0; padding: 8px 0; }
.as-acesso-aluno-summary {
  cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  min-height: 36px; font-weight: 700;
}
.as-acesso-aluno-summary::-webkit-details-marker { display: none; }
.as-acesso-aluno-summary::before {
  content: ''; width: 0; height: 0; border: 5px solid transparent; border-left-color: var(--as-muted);
  margin-right: 2px; flex: 0 0 auto; transition: transform .15s ease; align-self: center;
}
.as-acesso-aluno-card[open] > .as-acesso-aluno-summary::before {
  transform: rotate(90deg); border-left-color: var(--red, #ef233c);
}
.as-acesso-aluno-empresa {
  font-weight: 600; font-size: 12px; color: var(--as-muted); overflow-wrap: anywhere;
}
.as-acesso-aluno-empresa--vazia { font-style: italic; opacity: .85; }
.as-acesso-aluno-corpo { display: grid; gap: 8px; margin-top: 8px; padding: 0 0 4px 16px; }
.as-acesso-pacote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-acesso-pacote label { font-weight: 700; font-size: 13px; }
.as-acesso-pacote select { width: auto; min-width: 200px; }
.as-acesso-empresa > summary {
  cursor: pointer; display: grid; gap: 4px; list-style: none; font-weight: 700;
}
.as-acesso-empresa > summary::-webkit-details-marker { display: none; }
.as-acesso-empresa-nome { font-weight: 700; color: var(--as-text); }
.as-acesso-empresa-meta { display: block; font-weight: 500; font-size: 12px; color: var(--as-muted); }
.as-acesso-empresa-corpo { display: grid; gap: 10px; margin-top: 10px; }
.as-acesso-nova-empresa { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--as-line); }
.as-acesso-nova-empresa > summary { cursor: pointer; font-weight: 700; color: var(--red, #ef233c); min-height: 32px; display: flex; align-items: center; }
.as-acesso-empresa-edit { margin: 4px 0; padding: 8px 0; border-top: 1px dashed var(--as-line); }
.as-acesso-empresa-edit > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--red, #ef233c); min-height: 28px; display: flex; align-items: center; }
.as-acesso-empresa-corpo select,
.as-acesso-empresa-corpo .auth-field,
.as-acesso-empresa-membros { max-width: 100%; min-width: 0; box-sizing: border-box; }
.as-acesso-empresa-corpo select { width: 100%; }
.as-acesso-empresa { overflow: hidden; }
.as-acesso-membro-nome { font-weight: 600; overflow-wrap: anywhere; }
.as-acesso-billing { display: block; font-size: 12px; color: var(--as-muted); margin-top: 2px; }

/* ---- Painel profissional: menu no topo, ficha com seletor e abas no rodapé ---- */
.as-top-nav-pro { display: none; }
.as-top-nav-pro ul, .as-main-menu ul { list-style: none; margin: 0; padding: 0; }
.as-main-menu .as-icon { width: 22px; height: 22px; }
.as-main-menu a[aria-current="page"] { color: var(--red, #ef233c); background: rgba(239, 35, 60, .12); }
@media (min-width: 900px) {
  .as-top-bar-menu, .as-main-menu { display: none !important; }
  .as-top-nav-pro { display: block; margin: 0 auto 0 20px; min-width: 0; }
  .as-top-nav-pro ul { display: flex; gap: 4px; }
  .as-top-nav-pro a {
    display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px;
    color: var(--as-muted); text-decoration: none; font: 600 14px/1 Inter, ui-sans-serif, system-ui, sans-serif; white-space: nowrap;
    transition: color .15s var(--as-ease), background-color .15s var(--as-ease);
  }
  .as-top-nav-pro .as-icon { width: 20px; height: 20px; }
  .as-top-nav-pro a:hover { color: var(--as-text); background: var(--as-input-bg); }
  .as-top-nav-pro a[aria-current="page"] { color: var(--red, #ef233c); background: rgba(239, 35, 60, .14); }
  .as-top-nav-pro a:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: 2px; }
}

.as-painel-picker {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 4px 12px;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--as-line);
}
.as-painel-picker .auth-field { margin: 0; min-width: 0; }
.as-painel-picker-status { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .as-painel-picker { grid-template-columns: minmax(0, 1fr); } }

.as-painel-footer[hidden] { display: none; }
.as-painel-footer-tab {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 60px; padding: 7px 6px 6px;
  border: 0; border-radius: 18px; background: transparent; color: var(--as-muted); cursor: pointer; white-space: nowrap;
  font: 600 11px/1.15 Inter, ui-sans-serif, system-ui, sans-serif; scroll-snap-align: center;
  transition: color .2s var(--as-ease), background-color .2s var(--as-ease), transform .25s var(--as-spring);
}
.as-painel-footer-tab > span > span { display: block; }
.as-painel-footer-tab:hover { color: var(--as-text); }
.as-painel-footer-tab[aria-selected="true"] { color: var(--red, #ef233c); background: rgba(239, 35, 60, .14); }
.as-painel-footer-tab:focus-visible { outline: 3px solid var(--red, #ef233c); outline-offset: -3px; }
.as-painel-footer-tab:active { transform: scale(.95); }
/* Celular/tablet: as 8 abas numa fileira; a fonte acompanha a largura e palavras longas quebram no hífen. */
.as-bottom-nav.as-painel-footer {
  width: min(calc(100% - 12px), 760px); gap: 0; padding: 4px; grid-auto-columns: minmax(0, 1fr);
}
@media (max-width: 1023px) {
  .as-painel-footer-tab {
    min-height: 66px; padding: 7px 2px 5px; border-radius: 16px; white-space: normal; text-align: center;
    font-size: clamp(8px, calc(2.3vw - .5px), 11px); -webkit-hyphens: manual; hyphens: manual;
  }
}
@media (min-width: 1024px) {
  .as-painel-footer-tab { font-size: 12px; }
}
#athletic-auth-root[data-role="professional"][data-bottom-nav="true"] .as-treino-unpublished { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  #athletic-auth-root[data-role="professional"][data-bottom-nav="true"] { padding-left: 24px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .as-bottom-nav.as-painel-footer {
    left: 50%; right: auto; top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 114px; width: max-content; gap: 2px; padding: 6px; border-radius: 26px;
  }
}

/* Aceite do Termo de Uso e da Política de Privacidade */
.as-termo-card { max-width: 560px; }
.as-termo { display: grid; gap: 14px; text-align: left; }
.as-termo a, .as-login-legal a { color: var(--red, #ef233c); }
.as-termo-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.as-termo-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red, #ef233c); }
.as-termo fieldset { border: 1px solid var(--as-line); border-radius: 14px; padding: 12px 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.as-termo legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.as-termo-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.as-termo-botoes .btn { flex: 1 1 160px; }
.as-cadastro-faltam { margin: 0; padding: 10px 12px; border-left: 3px solid var(--as-accent, #e5383b); border-radius: 8px; background: var(--as-surface-2, rgba(127, 127, 127, .08)); font-size: 14px; line-height: 1.45; }
.as-cadastro .as-perfil-grid fieldset { grid-column: 1 / -1; margin: 10px 0; }
.as-cadastro .as-perfil-grid select { width: 100%; }
.as-login-legal { text-align: center; margin-top: 14px; }
.as-acesso-termo { display: block; font-size: 12px; opacity: .8; }

/* Verificação em duas etapas, anti-robô e recuperação de senha */
.as-captcha { display: flex; justify-content: center; min-height: 65px; margin: 4px 0 10px; }
.as-login-panel > .btn, .as-login-panel form > .btn { width: 100%; margin-top: 8px; }
#athletic-auth-root[data-login="true"] .as-login-panel form > .btn {
  min-height: 50px; border-radius: 14px; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(239, 35, 60, .28);
}
#athletic-auth-root[data-login="true"] .as-login-panel form > .btn.ghost,
#athletic-auth-root[data-login="true"] .as-login-panel > .btn.ghost {
  box-shadow: none; min-height: 46px; border-radius: 14px;
  background: rgba(255,255,255,.04);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #athletic-auth-root[data-login="true"] .as-login-panel form > .btn.ghost,
  :root:not([data-theme="dark"]) #athletic-auth-root[data-login="true"] .as-login-panel > .btn.ghost {
    background: rgba(15,20,35,.04);
  }
}
:root[data-theme="light"] #athletic-auth-root[data-login="true"] .as-login-panel form > .btn.ghost,
:root[data-theme="light"] #athletic-auth-root[data-login="true"] .as-login-panel > .btn.ghost {
  background: rgba(15,20,35,.04);
}
#athletic-auth-root[data-login="true"] .auth-field input {
  min-height: 50px; border-radius: 14px; padding: 12px 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid var(--as-glass-edge);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #athletic-auth-root[data-login="true"] .auth-field input {
    background: rgba(255,255,255,.72);
  }
}
:root[data-theme="light"] #athletic-auth-root[data-login="true"] .auth-field input {
  background: rgba(255,255,255,.72);
}
#athletic-auth-root[data-login="true"] .auth-field input:focus {
  outline: none;
  border-color: rgba(239, 35, 60, .55);
  box-shadow: 0 0 0 3px rgba(239, 35, 60, .18);
}
.as-mfa-card { max-width: 520px; }
.as-mfa-enroll { display: grid; gap: 12px; text-align: left; }
.as-mfa-passos { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.as-mfa-qr { display: grid; justify-items: center; gap: 6px; text-align: center; }
.as-mfa-qr img { width: 200px; height: 200px; padding: 10px; border-radius: 12px; background: #fff; }
.as-mfa-secret { font-size: 14px; letter-spacing: .08em; word-break: break-all; user-select: all; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--as-line); background: var(--as-input-bg); }
.as-mfa-status:empty { display: none; }
.as-mfa-lista { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.as-mfa-lista li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--as-line); }
.as-mfa-lista li:first-child { border-top: 0; }
.as-mfa-lista li .btn { width: auto; flex: 0 0 auto; }
.as-mfa-nudge-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.as-mfa-nudge-acoes .btn { width: auto; flex: 0 0 auto; text-decoration: none; }
.as-acesso-mfa { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.as-acesso-mfa .btn { min-height: 32px; }
.as-acesso-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.as-acesso-tags:empty { display: none; }
.as-acesso-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.auth-card .as-acesso-acoes .btn { width: auto; margin: 0; min-height: 32px; }
.as-acesso-excluir { color: var(--red, #ef233c); }
.as-login-abas {
  --aba-dir: 1;
  --aba-r: 11px;
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  margin: 4px 0 16px; padding: 4px; border-radius: 14px;
  border: 1px solid var(--as-glass-edge);
  background: rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  overflow: hidden;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .as-login-abas { background: rgba(255,255,255,.45); }
}
:root[data-theme="light"] .as-login-abas { background: rgba(255,255,255,.45); }

.as-login-aba-bubble {
  position: absolute;
  z-index: 0;
  top: 4px; bottom: 4px;
  left: 4px;
  width: 33%;
  border-radius: var(--aba-r);
  background: linear-gradient(145deg, var(--red, #ef233c) 0%, var(--red2, #b90f27) 100%);
  box-shadow: 0 8px 18px rgba(239, 35, 60, .28);
  transform: scaleX(1);
  transform-origin: center;
  pointer-events: none;
  opacity: 0; /* só aparece depois do JS encaixar na aba certa */
  /* Transição sempre ativa: CSS var em calc() NÃO anima — left/width em px no JS sim. */
  transition:
    left .42s cubic-bezier(.22, .7, .2, 1),
    width .42s cubic-bezier(.22, .7, .2, 1),
    opacity .2s ease;
  will-change: left, width, transform, border-radius;
}
.as-login-aba-bubble.is-ready { opacity: 1; }
.as-login-aba-bubble.is-wave {
  animation: as-aba-wave .42s cubic-bezier(.22, .7, .2, 1);
}
.as-login-aba-bubble::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.22), transparent 55%);
  opacity: .85;
}

.auth-card .as-login-aba {
  position: relative; z-index: 1;
  box-sizing: border-box;
  width: 100%; margin: 0; min-height: 52px; padding: 8px 4px;
  border: 0; border-radius: var(--aba-r, 11px);
  background: transparent; color: var(--as-muted);
  box-shadow: none;
  display: grid; place-items: center;
  font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .35s var(--as-ease);
}
.auth-card .as-login-aba-stack {
  display: grid; gap: 2px; justify-items: center; text-align: center; line-height: 1.2;
}
.auth-card .as-login-aba-line {
  font-size: clamp(11px, 2.7vw, 12.5px);
  font-weight: 650;
  letter-spacing: -.01em;
}
.auth-card .as-login-aba[aria-selected="true"] { color: #fff; }
.auth-card .as-login-aba:hover:not([aria-selected="true"]) { color: var(--as-text); }

/* Onda tipo bolha: estica e deforma o radius enquanto desliza. */
@keyframes as-aba-wave {
  0% {
    border-radius: var(--aba-r);
    transform: scaleX(1);
    filter: brightness(1);
  }
  16% {
    border-radius:
      calc(32% + 10px * var(--aba-dir)) calc(68% - 10px * var(--aba-dir))
      calc(55% - 4px * var(--aba-dir)) calc(45% + 4px * var(--aba-dir))
      / 42% 58% 40% 60%;
    transform: scaleX(1.22);
    filter: brightness(1.06);
  }
  40% {
    border-radius:
      calc(62% - 8px * var(--aba-dir)) calc(38% + 8px * var(--aba-dir))
      calc(40% + 10px * var(--aba-dir)) calc(60% - 10px * var(--aba-dir))
      / 58% 42% 62% 38%;
    transform: scaleX(1.34);
    filter: brightness(1.1);
  }
  62% {
    border-radius:
      calc(45% + 6px * var(--aba-dir)) calc(55% - 6px * var(--aba-dir))
      52% 48% / 48% 55% 45% 52%;
    transform: scaleX(1.14);
  }
  82% {
    border-radius: 14px 12px 13px 11px / 12px 14px 11px 13px;
    transform: scaleX(1.04);
  }
  100% {
    border-radius: var(--aba-r);
    transform: scaleX(1);
    filter: brightness(1);
  }
}
.as-confirm-erro { margin: 0; color: var(--red, #ef233c); }
.as-confirm-erro:empty { display: none; }
.as-mfa-recuperar { display: grid; gap: 8px; margin-top: 12px; text-align: left; }
.auth-card .as-mfa-recuperar > .btn { width: auto; justify-self: start; }
.as-mfa-codigos-box { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--as-line); }
.as-mfa-codigos-box h4, .as-mfa-config h4 { margin: 0; font-size: 15px; }
.as-mfa-codigos-box .btn, .as-mfa-codigos-acoes .btn { width: auto; justify-self: start; }
.as-mfa-codigos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 8px 0; padding-left: 26px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .06em; user-select: all; }
.as-mfa-codigos-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.as-mfa-alerta { color: var(--yellow, #f4c542); }
.as-painel-aviso:empty { display: none; }
.as-painel-aviso { margin-bottom: 12px; }
.as-notificar-alunos { list-style: none; margin: 6px 0; padding: 0; max-height: 300px; overflow-y: auto; border: 1px solid var(--as-line); border-radius: 10px; }
.as-notificar-alunos li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--as-line); }
.as-notificar-alunos li:first-child { border-top: 0; }
.as-notificar-tag { font-size: 11px; color: var(--as-muted); white-space: nowrap; }
.as-notificar-canal { display: grid; gap: 2px; margin: 0 0 12px; }
.as-notificar-modo { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 10px; }
.as-notificar-historico li.as-notificar-envio { display: flex; align-items: flex-start; gap: 10px; }
.as-notificar-envio details { flex: 1; min-width: 0; display: grid; gap: 6px; }
.as-notificar-envio summary { cursor: pointer; display: grid; gap: 2px; list-style: none; }
.as-notificar-envio summary::-webkit-details-marker { display: none; }
.as-notificar-envio summary b::before { content: '▸ '; color: var(--as-muted); }
.as-notificar-envio details[open] summary b::before { content: '▾ '; }
.as-notificar-envio summary small { color: var(--as-muted); }
.as-notificar-corpo { white-space: pre-wrap; margin: 4px 0; font-size: 14px; line-height: 1.45; }
.as-notificar-canal .auth-hint { margin-left: 24px; }
.as-notificar textarea { width: 100%; resize: vertical; }
.as-notificar .btn { width: auto; }
.as-notificar-wa-lista { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.as-notificar-wa-lista a { text-decoration: none; }
.as-notificar-wa-lista a.is-aberto { opacity: .55; }
.as-notificar-historico, .as-sobre-lista, .as-sobre-docs { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 10px; }
.as-notificar-historico li, .as-sobre-lista li, .as-sobre-docs li { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--as-line); }
.as-notificar-historico li:first-child, .as-sobre-lista li:first-child, .as-sobre-docs li:first-child { border-top: 0; padding-top: 0; }
.as-notificar-historico small, .as-sobre-lista small { color: var(--as-muted); }
.as-sobre-linha { margin: 2px 0; }
.as-sobre-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.as-sobre-acoes .btn { width: auto; }

/* ---- Início: cartão "Sua evolução" ---------------------------------- */
.as-evo-card { color: var(--as-text); }
.as-evo-desde { margin: -4px 0 6px; }
.as-evo-legend {
  list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px;
  font-size: 12px; color: var(--as-muted);
}
.as-evo-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.as-evo-legend-swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.as-evo-chart { display: block; width: 100%; height: auto; max-height: 210px; overflow: visible; }
.as-evo-grid { stroke: var(--as-line); stroke-width: 1; }
.as-evo-base { stroke: var(--as-muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.as-evo-axis { fill: var(--as-muted); font-size: 10px; }
.as-evo-axis-pct { fill: #f0a202; }
.as-evo-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.as-evo-line--gordura { stroke-width: 2; stroke-dasharray: 5 3; }
.as-evo-line--magra { stroke-width: 2; }
.as-evo-dot { stroke-width: 2; }
.as-evo-dot.is-ponta { stroke-width: 2.5; }
.as-evo-vlabel { font-size: 11px; font-weight: 700; }
.as-evo-vlabel--peso { font-size: 11.5px; }
.as-evo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.as-evo-stat {
  display: grid; gap: 1px; padding: 8px 10px; border: 1px solid var(--as-line);
  border-radius: 12px; background: var(--as-input-bg); min-width: 0; border-top-width: 3px;
}
.as-evo-stat.is-peso, .as-evo-stat.is-variacao { border-top-color: #ef233c; }
.as-evo-stat.is-gordura { border-top-color: #f0a202; }
.as-evo-stat.is-magra { border-top-color: #3d9cf0; }
.as-evo-stat.is-altura { border-top-color: #8b90a5; }
.as-evo-stat small { font-size: 11px; color: var(--as-muted); }
.as-evo-stat strong { font-size: 16px; white-space: nowrap; }
.as-evo-stat span { font-size: 11px; color: var(--as-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-evo-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(239, 35, 60, .08); font-weight: 600; font-size: 14px; }
@media (max-width: 360px) { .as-evo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Treino: PR + sugestão de carga */
.as-treino-ex-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-treino-ex-title-row .as-treino-ex-title { margin: 0; }
.as-treino-pr {
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(240, 162, 2, .16); color: #f0a202;
}
.as-treino-hint { display: grid; gap: 6px; margin: 6px 0; }
.as-treino-hint .btn { width: auto; justify-self: start; }
.as-treino-pr-flash { margin: 0 0 8px; color: #f0a202; font-weight: 600; }

/* Início: semana + hábitos */
.as-home-week-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px;
}
.as-home-week-cell {
  display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--as-line); background: var(--as-input-bg); text-align: center;
}
.as-home-week-cell strong { font-size: 16px; }
.as-home-week-cell span { font-size: 11px; color: var(--as-muted); }
.as-home-habits-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px;
}
.as-shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.as-habit-switch, .as-shop-switch { margin: 0; width: 100%; }
.as-home-habits .as-habit-switch {
  align-items: center; gap: 8px; min-height: 48px; margin: 0;
  padding: 6px 8px; border-radius: 12px; border: 1px solid var(--as-line);
  background: var(--as-input-bg); box-sizing: border-box;
}
.as-home-habits .as-switch-text {
  font-size: 12px; line-height: 1.25; font-weight: 600;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
}
.as-home-habits .as-switch-track { width: 44px; height: 28px; }
.as-home-habits .as-switch-track::after { width: 24px; height: 24px; }
.as-home-habits .as-switch input:checked + .as-switch-track::after { transform: translateX(16px); }
#athletic-auth-root .as-home-habits .as-switch input { width: 44px; height: 28px; }
.as-shop-item.is-done .as-switch-text { text-decoration: line-through; opacity: .65; }
.as-adherence-extras { display: grid; gap: 10px; margin-top: 10px; }
.as-adherence-foto { display: grid; gap: 6px; }
.as-file-pick { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.as-file-pick > input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.as-file-pick-btn { display: inline-flex; align-items: center; gap: 6px; }
.as-adherence-foto-prev {
  margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--as-line);
  max-width: 220px; background: rgba(127, 127, 127, .08);
}
.as-adherence-foto-prev img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.as-adh-foto-thumb {
  display: block; margin-top: 6px; width: 72px; height: 72px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--as-line); cursor: zoom-in;
}

/* Painel: hábitos */
.as-habits-admin, .as-habits-admin-body { display: grid; gap: 10px; margin: 12px 0; }
.as-habits-admin-body { margin: 0; }
.as-habits-chips {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.as-habits-chips .btn { width: 100%; justify-content: center; min-height: 42px; }
.as-habits-chips .btn:disabled { opacity: .45; }
.as-habits-dose-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
}
.as-habits-dose-row .auth-field { margin: 0; }
.as-habits-dose-row .btn { min-height: 46px; }
.as-habits-add {
  display: grid; gap: 10px; align-items: end;
  grid-template-columns: 1fr auto;
}
.as-habits-add .auth-field { margin: 0; }
.as-habits-add .btn { min-height: 46px; }
.as-habits-admin-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.as-habits-admin-list li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  padding: 10px; border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-input-bg);
}
.as-habits-admin-list li.is-off {
  border-color: rgba(239, 35, 60, .45); background: rgba(239, 35, 60, .06);
}
.as-habits-admin-list li.is-off .as-habit-title { color: var(--as-muted); }
.as-habits-admin-list .as-habit-title {
  font-weight: 600; font-size: 13px; line-height: 1.25; min-width: 0;
  overflow-wrap: anywhere;
}
.as-habits-admin-list li.auth-hint,
.as-habits-admin-list .as-habits-empty {
  grid-column: 1 / -1; border: 0; background: none; padding: 0;
}
.as-habits-admin-actions { display: flex; gap: 6px; flex: none; }
.as-habits-admin-actions .as-icon-btn { width: 40px; height: 40px; }
@media (max-width: 520px) {
  .as-habits-admin-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .as-home-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Interruptor estilo iOS (switch.mjs) ---------------------------- */
.as-switch {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 10px 0; min-height: 44px; cursor: pointer; font-size: 14px;
  color: var(--as-text); -webkit-tap-highlight-color: transparent;
}
.as-switch-text { flex: 1; min-width: 0; line-height: 1.3; text-align: left; }
#athletic-auth-root .as-switch input {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 51px; height: 31px; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.as-switch-track { position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--as-line); box-shadow: inset 0 0 0 1px var(--as-line); transition: background .25s var(--as-ease); }
.as-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s var(--as-ease); }
.as-switch input:checked + .as-switch-track { background: var(--red, #ef233c); box-shadow: none; }
.as-switch input:checked + .as-switch-track::after { transform: translateX(20px); }
.as-switch input:focus-visible + .as-switch-track { outline: 2px solid var(--red, #ef233c); outline-offset: 2px; }
.as-switch input:disabled + .as-switch-track { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .as-switch-track, .as-switch-track::after { transition: none; } }

/* ---- Painel: Todos os alunos + excluir dados (gestao-alunos-painel.mjs) ---- */
.as-geral h2 { margin: 0 0 6px; }
.as-geral-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--as-line); border-radius: 14px; }
.as-geral-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.as-geral-table th, .as-geral-table td { padding: 10px 12px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--as-line); }
.as-geral-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .75; background: var(--as-input-bg); }
.as-geral-table tbody th { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 130px; max-width: 170px; white-space: normal; background: var(--as-surface-solid); box-shadow: 1px 0 0 var(--as-line); }
.as-geral-table tbody tr { cursor: pointer; transition: background .15s; }
.as-geral-table tbody tr:hover, .as-geral-table tbody tr:focus-visible { background: rgba(239, 35, 60, .08); outline: none; }
.as-geral-table tbody tr.has-pendencia th { box-shadow: inset 3px 0 0 var(--red, #ef233c), 1px 0 0 var(--as-line); }
.as-geral-table td strong, .as-geral-table td small { display: block; }
.as-geral-table td small { opacity: .75; font-size: 12px; }
.as-geral-pend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.as-geral-pill { display: inline-block; padding: 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(244, 197, 66, .14); color: var(--yellow, #e5b400); white-space: nowrap; }
.as-geral-pill.is-ok { background: rgba(47, 191, 113, .14); color: #2fbf71; }
@media (max-width: 640px) {
  .as-geral-wrap { overflow: visible; border: 0; }
  .as-geral-table { min-width: 0; }
  .as-geral-table thead { display: none; }
  .as-geral-table tbody { display: grid; gap: 10px; }
  .as-geral-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px; border: 1px solid var(--as-line); border-radius: 14px; }
  .as-geral-table tbody tr.has-pendencia { border-left: 3px solid var(--red, #ef233c); }
  .as-geral-table tbody th, .as-geral-table tbody td { position: static; padding: 0; border: 0; text-align: left; box-shadow: none; max-width: none; background: none; }
  .as-geral-table tbody tr.has-pendencia th { box-shadow: none; }
  .as-geral-table tbody th { grid-column: 1 / -1; font-size: 16px; }
  .as-geral-table tbody td::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .65; margin-bottom: 2px; }
  .as-geral-table tbody td:last-child { grid-column: 1 / -1; }
  .as-geral-pend { justify-content: flex-start; }
}
.as-dados-excluir { margin-top: 16px; }
.as-dados-grupo { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--as-line); border-radius: 12px; }
.as-dados-grupo > summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.as-dados-lista { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.as-dados-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--as-line); }
.as-dados-lista li span { display: grid; gap: 2px; }
.as-dados-lista li small { opacity: .75; }
.as-dados-lista li .as-dados-botoes { display: flex; gap: 6px; flex: none; }
.as-confirm select { width: 100%; }

/* ---- Chat aluno <-> professor (layout WhatsApp/Telegram) ------------ */
.as-chat-page { padding: 0 !important; max-width: none; }
.auth-card--aluno:has(.as-chat-page), .auth-card--app:has(.as-chat-page) { padding-left: 0; padding-right: 0; }
.as-chat {
  display: grid; grid-template-rows: auto auto 1fr auto auto;
  gap: 0; min-height: min(78vh, 720px); max-height: min(82vh, 780px);
  border: 1px solid var(--as-line); border-radius: 18px; overflow: hidden;
  background: var(--as-input-bg);
}
.as-chat-dica {
  margin: 0; padding: 8px 12px; font-size: 13px; color: var(--as-muted);
  border-bottom: 1px solid var(--as-line); background: rgba(244, 197, 66, .07);
}
.as-chat-dica a { color: var(--red, #ef233c); font-weight: 700; text-decoration: none; }
.as-chat-dica a:hover { text-decoration: underline; }
.as-chat-secure {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.as-chat-secure img, .as-chat-secure audio { -webkit-user-drag: none; }
@media print {
  .as-chat-secure, .as-chat-page { display: none !important; }
}
.as-chat-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--as-surface-solid); border-bottom: 1px solid var(--as-line);
}
.as-chat-head-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 4px;
  border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; text-align: left;
}
.as-chat-head-btn:hover, .as-chat-head-btn:focus-visible { background: var(--as-input-bg); }
.as-chat-head-info { display: grid; gap: 2px; min-width: 0; }
.as-chat-head-info b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-chat-head-info small { margin: 0; }
.as-chat-lista {
  list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  min-height: 280px; overflow-y: auto; background:
    radial-gradient(circle at 10% 20%, rgba(239, 35, 60, .04), transparent 40%),
    var(--as-input-bg);
}
.as-chat-dia { align-self: center; font-size: 12px; opacity: .7; padding: 2px 10px; border-radius: 99px; background: var(--as-surface-solid); }
.as-chat-msg {
  align-self: flex-start; max-width: 85%; padding: 8px 12px;
  border-radius: 16px 16px 16px 4px; background: var(--as-surface-solid); border: 1px solid var(--as-line);
}
.as-chat-msg.is-minha {
  align-self: flex-end; border-radius: 16px 16px 4px 16px;
  background: var(--red, #ef233c); border-color: transparent; color: #fff;
}
.as-chat-msg b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.as-chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; }
.as-chat-msg small { display: block; margin-top: 3px; font-size: 11px; opacity: .75; text-align: right; }
.as-chat-vazio { align-self: center; margin: auto; opacity: .7; font-size: 14px; text-align: center; }
.as-chat-status { margin: 0; padding: 0 12px 4px; }
.as-chat-form { display: grid; gap: 0; border-top: 1px solid var(--as-line); background: var(--as-surface-solid); padding: 8px; }
.as-chat-composer { display: flex; align-items: flex-end; gap: 6px; }
#athletic-auth-root .as-chat-form textarea {
  flex: 1; box-sizing: border-box; min-height: 44px; max-height: 120px; resize: none; margin: 0;
  padding: 10px 14px; border-radius: 22px; border: 1px solid var(--as-line); background: var(--as-input-bg);
  color: var(--as-text); font: inherit; font-size: 16px;
}
.as-chat-emoji {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; margin-bottom: 6px; border-radius: 12px;
  border: 1px solid var(--as-line); background: var(--as-input-bg);
  max-height: 160px; overflow: auto;
}
.as-chat-emoji button {
  width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 8px;
  background: transparent; font-size: 20px; cursor: pointer; line-height: 1;
}
.as-chat-emoji button:hover, .as-chat-emoji button:focus-visible { background: var(--as-surface-solid); }
.as-chat-msg-wrap { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.as-chat-msg-wrap.is-minha { align-items: flex-end; }
.as-chat-msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; }
.as-chat-msg-wrap.is-minha .as-chat-msg-row { flex-direction: row; justify-content: flex-end; }
.as-chat-audio-avatar { position: relative; flex: none; }
.as-avatar.as-avatar--msg { width: 42px; height: 42px; font-size: 14px; }
.as-chat-mic-badge {
  position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px;
  display: grid; place-items: center; border-radius: 50%; background: #25d366; font-size: 10px;
  box-shadow: 0 0 0 2px var(--as-input-bg);
}
.as-chat-audio {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-width: 200px;
  --pct: 0;
}
.as-chat-audio-mid { display: grid; gap: 4px; min-width: 0; }
.as-chat-audio-play {
  width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: inherit; display: grid; place-items: center; cursor: pointer;
}
.as-chat-msg:not(.is-minha) .as-chat-audio-play { background: rgba(239, 35, 60, .14); color: var(--red, #ef233c); }
.as-chat-audio-wave {
  position: relative; display: flex; align-items: flex-end; gap: 2px; height: 28px;
}
.as-chat-audio-wave::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--pct) * 100%);
  background: rgba(255,255,255,.22); border-radius: 4px; pointer-events: none;
}
.as-chat-audio-wave i {
  flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .55; height: 40%;
}
.as-chat-audio-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 11px; font-variant-numeric: tabular-nums; opacity: .8;
}
.as-chat-audio-dur, .as-chat-audio-clock { font-size: inherit; }
.as-chat-react { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; position: relative; }
.as-chat-react-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.as-chat-react-chip, .as-chat-react-open, .as-chat-react-more {
  margin: 0; padding: 2px 8px; min-height: 28px; border-radius: 999px; border: 1px solid var(--as-line);
  background: var(--as-input-bg); color: inherit; font: inherit; font-size: 13px; cursor: pointer;
}
.as-chat-msg.is-minha .as-chat-react-chip, .as-chat-msg.is-minha .as-chat-react-open {
  background: rgba(255,255,255,.14); border-color: transparent;
}
.as-chat-react-chip.is-mine { outline: 2px solid rgba(239, 35, 60, .55); }
.as-chat-react-quick, .as-chat-react-mais {
  position: absolute; z-index: 3; bottom: calc(100% + 6px); left: 0;
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; max-width: min(280px, 80vw);
  border-radius: 999px; border: 1px solid var(--as-line); background: #12141a;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.as-chat-msg-wrap.is-minha .as-chat-react-quick, .as-chat-msg-wrap.is-minha .as-chat-react-mais { left: auto; right: 0; }
.as-chat-react-mais { border-radius: 16px; max-height: 180px; overflow: auto; }
.as-chat-react-quick button, .as-chat-react-mais button {
  width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; font-size: 20px; cursor: pointer; line-height: 1;
}
.as-chat-react-quick button:hover, .as-chat-react-mais button:hover { background: rgba(255,255,255,.08); }
.as-chat-react-quick .as-chat-react-more {
  width: 36px; height: 36px; padding: 0; font-size: 22px; font-weight: 600; line-height: 1;
}
.as-chat-recbar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 6px 4px; min-height: 56px;
}
.as-chat-rec-tempo {
  font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--red, #ef233c); font-variant-numeric: tabular-nums; min-width: 3.2em;
}
.as-chat-rec-wave {
  display: flex; align-items: flex-end; gap: 2px; height: 32px; overflow: hidden;
}
.as-chat-rec-wave i {
  flex: 1; min-width: 2px; height: 18%; border-radius: 2px; background: var(--as-muted); opacity: .7;
  transition: height .08s linear;
}
.as-chat-rec-wave i.is-hot { background: var(--red, #ef233c); opacity: 1; }
.as-chat-rec-acoes { display: flex; align-items: center; gap: 6px; }
.as-chat-rec-pause.is-paused { color: var(--red, #ef233c); }
.as-icon-btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; margin: 0; padding: 0;
  border-radius: 50%; border: 1px solid var(--as-line); background: var(--as-input-bg); color: var(--as-text); cursor: pointer;
}
.as-icon-btn.is-primary { background: var(--red, #ef233c); border-color: transparent; color: #fff; }
.as-icon-btn:disabled { opacity: .55; cursor: progress; }
.as-chat-contato-corpo { display: grid; gap: 8px; margin: 8px 0 16px; }

/* ---- Ajuda ---------------------------------------------------------- */
.as-ajuda-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.as-ajuda-nav li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-input-bg); }
.as-ajuda-nav p { margin: 0; color: var(--as-muted); font-size: 14px; line-height: 1.4; }
.as-ajuda-faq { display: grid; gap: 14px; }
.as-ajuda-faq-group h4 { margin: 0 0 6px; color: var(--red, #ef233c); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.as-ajuda-faq-item { border: 1px solid var(--as-line); border-radius: 10px; padding: 8px 12px; background: var(--as-input-bg); margin-bottom: 6px; }
.as-ajuda-faq-item summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.as-ajuda-faq-item p { margin: 8px 0 2px; color: var(--as-muted); font-size: 14px; line-height: 1.4; }
.as-ajuda-card .btn { width: auto; margin-top: 8px; }
.as-bug-form { display: grid; gap: 12px; margin-top: 8px; }
.as-bug-field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.as-bug-field span { color: var(--as-text); }
.as-bug-field input, .as-bug-field textarea {
  box-sizing: border-box; width: 100%; margin: 0; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--as-line); background: var(--as-input-bg); color: var(--as-text);
  font: inherit; font-weight: 400; font-size: 15px;
}
.as-bug-field textarea { resize: vertical; min-height: 72px; }
.as-bug-field input[type="file"] { padding: 8px; }
.as-bug-status { margin: 0; min-height: 1.2em; }
.as-bug-form .btn { width: auto; justify-self: start; }
@media (max-width: 420px) {
  .as-bottom-nav a span { font-size: 10px; }
}
.as-chat-sugestoes { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(244, 197, 66, .1); border: 1px solid rgba(244, 197, 66, .35); }
.as-chat-sugestoes b { font-size: 13px; }
.as-chat-sugestao { margin: 0; font-size: 14px; }
#athletic-auth-root .as-chat-inbox input[type="search"] { width: 100%; box-sizing: border-box; margin: 4px 0 8px; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-input-bg); color: var(--as-text); font: inherit; font-size: 16px; }
.as-chat-inbox-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#athletic-auth-root .as-chat-inbox-item { width: 100%; margin: 0; display: grid; gap: 4px; padding: 12px 14px; text-align: left; font: inherit; color: var(--as-text); cursor: pointer; border-radius: 14px; border: 1px solid var(--as-line); background: var(--as-surface-solid); min-height: 0; }
#athletic-auth-root .as-chat-inbox-item.is-nao-lida { border-color: var(--red, #ef233c); background: rgba(239, 35, 60, .08); }
.as-chat-inbox-topo, .as-chat-inbox-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.as-chat-inbox-topo small { font-size: 12px; opacity: .7; white-space: nowrap; }
.as-chat-inbox-previa { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; opacity: .8; }
.as-chat-inbox-item.is-nao-lida .as-chat-inbox-previa { opacity: 1; font-weight: 600; }
.as-chat-inbox-rodape .as-badge-count { position: static; flex: none; }
.as-acesso-nova > summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }

/* ---- Exames: cards clicaveis, datas, lancamento manual ---------------- */
#athletic-auth-root button.as-lab-stat { width: 100%; margin: 0; text-align: left; font: inherit; color: var(--as-text); cursor: pointer; min-height: 0; }
.as-lab-stat.is-clicavel { border-color: rgba(239, 35, 60, .45); transition: background .15s, border-color .15s; }
.as-lab-stat.is-clicavel:hover { background: rgba(239, 35, 60, .06); }
.as-lab-stat.is-ativo { border-color: var(--red, #ef233c); background: rgba(239, 35, 60, .12); }
.as-lab-datas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
#athletic-auth-root .as-chip-btn { margin: 0; min-height: 36px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--as-line); background: var(--as-input-bg); color: var(--as-text); font-size: 13.5px; cursor: pointer; }
#athletic-auth-root .as-chip-btn.is-ativo { background: var(--red, #ef233c); border-color: transparent; color: #fff; }
.as-lab-filtro-ativo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(239, 35, 60, .08); font-size: 14px; font-weight: 600; }
.as-lab-manual { margin-top: 16px; padding: 10px 12px; border: 1px solid var(--as-line); border-radius: 14px; }
.as-lab-manual > summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.as-lab-manual-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; align-items: end; }
.as-lab-manual-form .auth-field span { display: block; font-size: 13px; margin-bottom: 4px; }
.as-lab-manual-form > .btn, .as-lab-manual-form > p { grid-column: 1 / -1; }

/* ---- Análise histórica -------------------------------------------------- */
.as-analise-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0 12px; }
.as-analise-toolbar select, .as-analise-toolbar input[type="date"] {
  min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--as-line);
  background: var(--as-input-bg); color: var(--as-text); font: inherit;
}
.as-analise-deltas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.as-analise-delta { margin: 0; padding: 12px; }
.as-analise-delta b { display: block; font-size: 13px; opacity: .85; }
.as-analise-delta p { margin: 6px 0 0; font-size: 22px; font-weight: 700; }
.as-analise-charts { display: grid; gap: 16px; }
.as-analise-chart h4 { margin: 0 0 6px; font-size: 15px; }
.as-analise-pdf { margin-top: 12px; }
