﻿/* ==========================================================================
   1) Tokens de design (cores, sombras e raio padrao)
   ========================================================================== */
:root {
  --green: #1cbf5c;
  --green-strong: #109b45;
  --green-soft: #e8f9ef;
  --black: #0b0b0b;
  --white: #ffffff;
  --gray: #3f3f3f;
  --shadow: 0 18px 46px rgba(18, 169, 75, 0.12);
  --radius: 18px;
}


/* ==========================================================================
   2) Reset basico e regras globais
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--black);
  background: linear-gradient(180deg, #ffffff 0%, #f4fff8 50%, #ffffff 100%);
  line-height: 1.6;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(28, 191, 92, 0.6);
  outline-offset: 2px;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}


/* ==========================================================================
   3) Header / Navegacao
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.4px;
  position: relative;
  z-index: 2;
}

.logo-mark {
  font-size: 24px;
  color: var(--green);
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.logo-image-dark {
  display: none;
}

body.theme-dark .logo-image-light {
  display: none;
}

body.theme-dark .logo-image-dark {
  display: block;
}

.menu {
  margin-left: auto;
  display: none;
  gap: 16px;
  font-weight: 600;
  font-size: 14px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.menu a {
  opacity: 0.7;
}

.menu a:hover {
  opacity: 1;
}

.menu-toggle {
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--black);
}

.menu.open {
  display: grid;
  position: absolute;
  top: 70px;
  right: 4%;
  z-index: 15;
  background: var(--white);
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #1d271f;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.header-student-btn {
  position: relative;
  z-index: 2;
}

.header-student-btn,
.theme-toggle,
.menu-toggle {
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  box-shadow: 0 0 0 3px rgba(28, 191, 92, 0.16), 0 0 18px rgba(28, 191, 92, 0.18);
}

.theme-toggle:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 4px rgba(28, 191, 92, 0.18), 0 0 22px rgba(28, 191, 92, 0.22);
}

.theme-toggle.is-clicked {
  animation: toggle-click 0.26s ease;
}

.theme-icon {
  position: absolute;
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.theme-icon-moon {
  fill: currentColor;
  stroke: none;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.7) rotate(25deg);
}

body.theme-dark .theme-toggle {
  color: #1cbf5c;
  border-color: rgba(28, 191, 92, 0.54);
  background: rgba(16, 34, 22, 0.92);
}

body.theme-dark .theme-icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(-25deg);
}

body.theme-dark .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@keyframes toggle-click {
  0% { transform: scale(1); }
  40% { transform: scale(0.93); }
  100% { transform: scale(1); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--green-strong);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}


/* ==========================================================================
   4) Tema claro/escuro (dark mode)
   ========================================================================== */
body.theme-dark {
  background: linear-gradient(180deg, #0c1110 0%, #121a16 55%, #0b100d 100%);
  color: #ebf3ed;
}

body.theme-dark .site-header {
  background: rgba(12, 17, 14, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .menu a {
  color: rgba(233, 243, 235, 0.9);
}

body.theme-dark .menu-toggle span {
  background: #e9f3eb;
}

body.theme-dark .menu.open {
  background: #111a15;
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .section.alt {
  background: linear-gradient(160deg, #111913 0%, #0f1712 70%);
}

body.theme-dark 
/* ==========================================================================
   14) Localizacao
   ========================================================================== */
#localizacao {
  background: linear-gradient(180deg, #111913 0%, #0f1712 100%);
}

body.theme-dark #localizacao .section-header h2 {
  color: #f4f8f5;
}

body.theme-dark #localizacao .section-header p {
  color: rgba(232, 240, 233, 0.88);
}

body.theme-dark #modalidades .card,
body.theme-dark #avaliacao .trainer-card,
body.theme-dark #contato .contact-form,
body.theme-dark .map-box {
  background: #131b16;
  border-color: rgba(142, 179, 156, 0.2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

body.theme-dark #modalidades .section-header h2 {
  color: #f4f8f5;
}

body.theme-dark #modalidades .section-header p {
  color: rgba(232, 240, 233, 0.88);
}

body.theme-dark #modalidades .card p,
body.theme-dark #avaliacao p,
body.theme-dark #contato .contact-lead p,
body.theme-dark #contato .contact-consent span {
  color: rgba(230, 239, 231, 0.84);
}

body.theme-dark #contato .contact-form input,
body.theme-dark #contato .contact-form select,
body.theme-dark #contato .contact-form textarea {
  background: #0f1712;
  border-color: rgba(151, 188, 164, 0.24);
  color: #eef5ef;
}

body.theme-dark #contato .contact-form input::placeholder,
body.theme-dark #contato .contact-form textarea::placeholder {
  color: rgba(211, 225, 215, 0.62);
}

body.theme-dark #contato.contact-section,
body.theme-dark #contato {
  background: linear-gradient(180deg, #111913 0%, #0f1712 100%);
}

body.theme-dark #contato .contact-lead h2 {
  color: #f4f8f5;
}

body.theme-dark #contato .contact-lead h2 span {
  color: #8de2ad;
}

body.theme-dark #contato .contact-form label > span {
  color: #eaf2eb;
}

body.theme-dark #contato .contact-kicker {
  background: rgba(28, 191, 92, 0.2);
  border-color: rgba(28, 191, 92, 0.34);
  color: #9beab9;
}

body.theme-dark 
/* ==========================================================================
   17) Rodape
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #0d5a2c 0%, #084321 100%);
}

body.theme-dark .footer-grid {
  color: rgba(228, 239, 231, 0.86);
}

body.theme-dark .footer-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.theme-dark .socials a {
  background: rgba(28, 191, 92, 0.22);
  color: #ccf9dc;
}


/* ==========================================================================
   5) Overlay da Area do Aluno (loading + login SPA)
   ========================================================================== */
.student-area-open {
  overflow: hidden;
}

html.student-area-open {
  overflow: hidden;
}

.student-area {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.student-area.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.student-area-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(28, 191, 92, 0.14), transparent 65%),
    rgba(6, 12, 10, 0.78);
  backdrop-filter: blur(6px);
}

.student-area-layer {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  display: grid;
  place-items: center;
}

.student-loading-screen,
.student-login-screen,
.student-app-screen {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.student-loading-screen:not(.is-visible),
.student-login-screen:not(.is-visible),
.student-app-screen:not(.is-visible) {
  display: none;
}

.student-loading-screen.is-visible,
.student-login-screen.is-visible,
.student-app-screen.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.student-loading-screen {
  width: 100%;
  justify-items: center;
  text-align: center;
}

.student-loading-video {
  width: clamp(200px, 34vw, 300px);
  border-radius: 36px;
  border: 1px solid rgba(28, 191, 92, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.student-loading-text {
  margin-top: 12px;
  color: rgba(232, 246, 237, 0.95);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.student-login-screen {
  width: min(100%, 420px);
  position: relative;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.student-app-screen {
  width: min(100%, 1080px);
}

.student-app-shell {
  background: linear-gradient(165deg, rgba(12, 23, 18, 0.97), rgba(7, 16, 12, 0.96));
  border: 1px solid rgba(28, 191, 92, 0.28);
  border-radius: 20px;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.44);
  padding: 16px;
  min-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.site-top-notice {
  position: fixed;
  top: max(10px, calc(env(safe-area-inset-top) + 6px));
  left: 50%;
  width: min(92vw, 520px);
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  z-index: 1901;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.site-top-notice[hidden] {
  display: none !important;
}

.site-top-notice.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.site-top-notice-card {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: linear-gradient(180deg, rgba(54, 19, 19, 0.98), rgba(38, 13, 13, 0.98));
  color: #ffc9c9;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  padding: 12px 14px;
}

.site-top-notice-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
}

.site-top-notice.is-success .site-top-notice-card {
  border-color: rgba(34, 197, 94, 0.42);
  background: linear-gradient(180deg, rgba(13, 61, 34, 0.98), rgba(10, 43, 25, 0.98));
  color: #b8f4cd;
}

.student-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(150, 182, 163, 0.18);
  padding-bottom: 12px;
}

.student-app-kicker {
  color: rgba(175, 214, 189, 0.88);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.student-app-header h3 {
  color: #f2f8f4;
  font-size: 1.35rem;
  line-height: 1.1;
}

.student-app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-app-plan {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(28, 191, 92, 0.2);
  border: 1px solid rgba(28, 191, 92, 0.44);
  color: #dff7e9;
  font-size: 0.82rem;
  font-weight: 700;
}

.student-app-logout,
.student-app-close {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(150, 182, 163, 0.3);
  background: rgba(10, 22, 16, 0.9);
  color: #e1f0e7;
  padding: 0 12px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.student-app-close {
  width: 36px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.student-app-body {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
}

.student-app-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.student-app-nav-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(150, 182, 163, 0.24);
  background: rgba(11, 22, 17, 0.86);
  color: rgba(210, 232, 219, 0.86);
  font-family: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.student-app-nav-btn.is-active {
  border-color: rgba(28, 191, 92, 0.58);
  background: rgba(28, 191, 92, 0.2);
  color: #defbe9;
}

.student-app-main {
  background: rgba(8, 18, 13, 0.64);
  border: 1px solid rgba(150, 182, 163, 0.18);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  min-height: 0;
  overflow: auto;
}

.student-tab-loading {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 22, 16, 0.9);
  border: 1px solid rgba(150, 182, 163, 0.26);
  color: #d8efe1;
  font-size: 0.8rem;
  z-index: 2;
}

.student-tab-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1cbf5c;
  animation: student-pulse 1s ease-in-out infinite;
}

@keyframes student-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.student-app-panel {
  display: none;
  animation: student-panel-in 0.32s ease both;
}

@keyframes scale-up-ver-top {
  0% {
    transform: scaleY(0.4);
    transform-origin: 100% 0%;
  }
  100% {
    transform: scaleY(1);
    transform-origin: 100% 0%;
  }
}

.scale-up-ver-top-normal {
  animation: scale-up-ver-top 0.58s cubic-bezier(0.390, 0.575, 0.565, 1.000) 0s 1 normal both;
}

.student-app-panel.is-active {
  display: block;
  min-height: 100%;
}

@keyframes student-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.student-dashboard-welcome {
  background: rgba(28, 191, 92, 0.16);
  border: 1px solid rgba(28, 191, 92, 0.34);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.student-dashboard-welcome h4 {
  color: #eff9f3;
  font-size: 1.06rem;
}

.student-dashboard-welcome p {
  color: rgba(218, 236, 226, 0.88);
}

.student-dashboard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.student-app-card {
  background: rgba(11, 22, 17, 0.88);
  border: 1px solid rgba(150, 182, 163, 0.24);
  border-radius: 12px;
  padding: 12px;
}

.student-app-card h5 {
  color: rgba(183, 212, 196, 0.88);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.student-app-card p {
  color: #eff9f3;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
}

.student-workout-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.student-workout-hint {
  margin: 0;
  color: #000000;
  font-size: 0.84rem;
  text-align: center;
}

.student-workout-list {
  display: grid;
  gap: 8px;
  max-height: clamp(280px, 48vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.student-workout-empty {
  margin: 0;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(146, 184, 163, 0.36);
  color: rgba(210, 232, 220, 0.9);
  background: rgba(11, 22, 17, 0.7);
  text-align: center;
  font-size: 0.84rem;
}

.student-workout-list::-webkit-scrollbar {
  width: 6px;
}

.student-workout-list::-webkit-scrollbar-thumb {
  background: rgba(28, 191, 92, 0.35);
  border-radius: 999px;
}

.student-workout-start-btn {
  margin-top: 24px;
  min-height: 46px;
  border-radius: 999px;
}

.student-app-shell.is-workouts-tab-mode .student-workout-layout {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  background: #ffffff;
}

.student-app-shell.is-workouts-tab-mode .student-workout-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.student-app-shell.is-workouts-tab-mode .student-workout-start-btn {
  margin-top: 12px;
  margin-bottom: 18px;
}

.student-workout-item {
  border: 1px solid rgba(150, 182, 163, 0.24);
  background: rgba(11, 22, 17, 0.88);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@keyframes student-workout-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.student-workout-item.is-entering {
  animation: student-workout-card-in 0.28s ease both;
}

.student-workout-item:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 191, 92, 0.56);
}

.student-workout-item.is-active {
  border-color: rgba(28, 191, 92, 0.72);
  background: rgba(28, 191, 92, 0.14);
}

.student-workout-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

.student-workout-item strong {
  color: #f1f9f4;
  line-height: 1.28;
  flex: 1 1 auto;
  min-width: 0;
}

.student-workout-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  min-height: 24px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.student-workout-badge.is-done {
  background: rgba(22, 184, 87, 0.72);
  color: #ffffff;
}

.student-workout-badge.is-pending {
  background: rgba(224, 59, 59, 0.72);
  color: #ffffff;
}

.student-workout-item p {
  color: rgba(205, 224, 213, 0.82);
  font-size: 0.82rem;
  text-align: left;
  margin-top: 6px;
  line-height: 1.35;
}

.student-workout-detail {
  border: 1px solid rgba(150, 182, 163, 0.24);
  background: rgba(11, 22, 17, 0.88);
  border-radius: 12px;
  padding: 12px;
}

.student-workout-detail h4 {
  color: #f0f8f3;
}

.student-workout-detail > p {
  color: rgba(205, 224, 213, 0.84);
  margin-bottom: 10px;
}

.student-workout-exercises {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.student-workout-exercises li {
  border: 1px solid rgba(150, 182, 163, 0.18);
  background: rgba(9, 19, 15, 0.88);
  border-radius: 10px;
  padding: 8px 10px;
}

.student-workout-exercises strong {
  color: #eef8f2;
  display: block;
}

.student-workout-exercises span {
  color: rgba(197, 219, 205, 0.82);
  font-size: 0.86rem;
}

.student-complete-btn {
  min-height: 44px;
}

.student-progress-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 12px;
}

.student-progress-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.student-chart-list {
  display: grid;
  gap: 8px;
}

.student-chart-row {
  display: grid;
  gap: 4px;
}

.student-chart-row-head {
  display: flex;
  justify-content: space-between;
  color: rgba(210, 231, 219, 0.84);
  font-size: 0.84rem;
}

.student-chart-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(150, 182, 163, 0.16);
  overflow: hidden;
}

.student-chart-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #14a44b, #1cbf5c);
  transition: width 0.7s ease;
}

.student-chart-bar.is-animated > span {
  width: var(--bar-size, 50%);
}

.student-app-panel[data-student-app-panel="progresso"] {
  background: linear-gradient(180deg, #eff9f2 0%, #e6f5eb 100%);
  border-radius: 16px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.student-progress-report {
  display: grid;
  gap: 12px;
  color: #111111;
}

.student-progress-report[hidden],
.trainer-progress-report[hidden] {
  display: none !important;
}

.student-progress-report-head {
  padding-top: 6px;
  margin-bottom: 2px;
  text-align: center;
}

.student-progress-report-head h4 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.student-progress-summary-card,
.student-progress-history-card,
.student-progress-weight-card,
.student-progress-bmi-card {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(16, 156, 70, 0.16);
  padding: 12px;
  box-shadow: 0 8px 20px rgba(16, 156, 70, 0.08);
}

.student-progress-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.student-progress-summary-item {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.student-progress-summary-icon {
  font-size: 1rem;
  line-height: 1;
  width: auto;
  height: auto;
  display: inline-block;
  color: #1aa95b;
}

.student-progress-summary-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-progress-inline-icon {
  width: auto;
  height: auto;
  display: inline-block;
  margin-right: 4px;
  vertical-align: baseline;
}

.student-progress-inline-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-progress-summary-item strong {
  font-size: 2rem;
  line-height: 1;
  color: #111111;
}

.student-progress-summary-item small {
  font-size: 0.82rem;
  color: #727272;
}

.student-progress-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.student-progress-card-head h5 {
  font-size: 1.28rem;
  font-weight: 800;
  color: #1a1a1a;
}

.student-progress-link-btn {
  border: 0;
  background: transparent;
  color: #109c46;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.student-progress-action-btn {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.student-progress-action-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  filter: saturate(0.78);
}

.student-progress-block .student-progress-card-head h5 {
  font-size: 1.12rem;
}

.student-progress-block .student-progress-card-head {
  margin-top: 4px;
}

.student-progress-block .student-progress-action-btn {
  min-height: 32px;
  font-size: 0.86rem;
  padding: 0 12px;
  border-radius: 11px;
}

.student-progress-weekday-row,
.student-progress-date-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.student-progress-weekday-row span {
  color: #8b8b8b;
  font-size: 0.78rem;
}

.student-progress-date-row span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1rem;
  color: #2a2a2a;
}

.student-progress-date-row span.is-today {
  border: 2px solid #1bb45b;
  color: #0f8e42;
  font-weight: 800;
  background: #e8faef;
}

.student-progress-history-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.08);
}

.student-progress-history-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-progress-history-footer small {
  color: #7c7c7c;
  font-size: 0.82rem;
}

.student-progress-history-footer strong {
  color: #151515;
  font-size: 1.2rem;
  display: block;
  margin-top: 2px;
}

.student-progress-history-footer .is-right {
  text-align: right;
}

.student-progress-block {
  display: grid;
  gap: 8px;
}

.student-progress-weight-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.student-progress-weight-meta small {
  color: #666666;
}

.student-progress-weight-meta strong {
  color: #181818;
}

.student-progress-weight-meta > div:first-child {
  display: grid;
  align-content: start;
  justify-items: start;
}

.student-progress-weight-meta > div:first-child small {
  display: block;
  font-size: 0.96rem;
  line-height: 1.05;
}

.student-progress-weight-meta > div > strong {
  display: block;
  margin-top: 2px;
  font-size: 1.6rem;
  line-height: 1;
}

.student-progress-weight-meta .is-right {
  display: grid;
  justify-items: end;
  align-content: start;
  text-align: right;
  gap: 2px;
}

.student-progress-weight-meta .is-right small {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  width: auto;
  font-size: 0.95rem;
  line-height: 1.15;
}

.student-progress-weight-meta .is-right small strong {
  display: inline;
  margin-top: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.student-progress-weight-chart {
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  margin-top: 8px;
  padding-top: 8px;
}

.student-progress-weight-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 14px;
}

.student-progress-weight-modal[hidden] {
  display: none !important;
}

.student-progress-weight-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 10, 0.48);
  z-index: 0;
}

.student-progress-weight-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  align-self: center;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(16, 156, 70, 0.2);
  box-shadow: 0 18px 40px rgba(6, 24, 14, 0.32);
  padding: 14px 14px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(560px, 90dvh);
  overflow-y: auto;
}

.student-progress-weight-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-progress-weight-modal-head h6 {
  color: #12271c;
  font-size: 1.42rem;
  font-weight: 800;
}

.student-progress-weight-modal-head span {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f7f4;
  border: 1px solid rgba(16, 156, 70, 0.16);
  color: #4d5d54;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.student-progress-weight-unit-toggle {
  width: fit-content;
  margin: 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: #f3f7f5;
  border: 1px solid rgba(16, 156, 70, 0.14);
  display: inline-flex;
  gap: 2px;
}

.student-progress-weight-unit-toggle button {
  min-width: 52px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #516158;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.student-progress-weight-unit-toggle button.is-active {
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
}

.student-progress-weight-live-value {
  margin: 0;
  text-align: center;
}

.student-progress-weight-live-value strong {
  color: #07140d;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.student-progress-weight-live-value small {
  color: #1f3228;
  font-size: 1.35rem;
  font-weight: 700;
}

.student-progress-weight-ruler-wrap {
  position: relative;
  padding-top: 8px;
  min-height: 96px;
}

.student-progress-weight-ruler-indicator {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 2px;
  height: 72px;
  border-radius: 999px;
  background: #109c46;
  z-index: 2;
  pointer-events: none;
}

.student-progress-weight-ruler {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  padding-bottom: 4px;
  min-height: 88px;
}

.student-progress-weight-ruler::-webkit-scrollbar {
  height: 4px;
}

.student-progress-weight-ruler::-webkit-scrollbar-thumb {
  background: rgba(16, 156, 70, 0.28);
  border-radius: 999px;
}

.student-progress-weight-ruler-track {
  --tick-space: 6px;
  --side-pad: 120px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 0 var(--side-pad);
  min-height: 90px;
}

.student-progress-weight-ruler-tick {
  flex: 0 0 var(--tick-space);
  width: var(--tick-space);
  display: grid;
  justify-items: center;
  align-content: end;
  color: #7a877f;
}

.student-progress-weight-ruler-tick::before {
  content: "";
  width: 1px;
  height: 13px;
  border-radius: 999px;
  background: rgba(15, 43, 28, 0.14);
}

.student-progress-weight-ruler-tick.is-mid::before {
  height: 19px;
  background: rgba(15, 43, 28, 0.24);
}

.student-progress-weight-ruler-tick.is-major::before {
  height: 30px;
  background: rgba(15, 43, 28, 0.4);
}

.student-progress-weight-ruler-tick span {
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1;
}

.student-progress-weight-modal-actions {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-progress-weight-modal-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.24rem;
  font-weight: 800;
  cursor: pointer;
}

.student-progress-weight-cancel {
  background: #f0f2f1;
  color: #1c2923;
}

.student-progress-weight-save {
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
}

.student-progress-bmi-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 14px;
}

.student-progress-bmi-modal[hidden] {
  display: none !important;
}

.student-progress-bmi-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 10, 0.48);
}

.student-progress-bmi-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(18, 169, 75, 0.2);
  box-shadow: 0 18px 40px rgba(6, 24, 14, 0.32);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100dvh - 18px);
  min-height: min(560px, calc(100dvh - 18px));
  overflow: hidden;
}

.student-progress-bmi-modal-top h6 {
  color: #13261c;
  font-size: 1.18rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.student-progress-bmi-modal-top h6 span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #eceff3;
  color: #80868e;
  font-size: 0.72rem;
  display: inline-grid;
  place-items: center;
}

.student-progress-bmi-editor-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.student-progress-bmi-editor-title {
  margin: 0;
  color: #101f17;
  font-size: 1rem;
  font-weight: 700;
}

.student-progress-bmi-toggle {
  width: fit-content;
  margin: 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: #f0f2f5;
  border: 1px solid rgba(17, 60, 151, 0.12);
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 2px;
}

.student-progress-bmi-toggle button {
  min-width: 54px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4f5e55;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.student-progress-bmi-toggle button.is-active {
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
}

.student-progress-bmi-live {
  margin: 0;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  visibility: visible !important;
  opacity: 1 !important;
}

.student-progress-bmi-live strong {
  color: #109c46;
  font-size: 2.52rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.student-progress-bmi-live small {
  color: #13261c;
  font-size: 1.08rem;
  font-weight: 700;
}

.student-progress-bmi-ruler-wrap {
  position: relative;
  min-height: 76px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.student-progress-bmi-ruler-indicator {
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  border-radius: 999px;
  background: #109c46;
  z-index: 2;
  pointer-events: none;
}

.student-progress-bmi-ruler {
  display: block !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  min-height: 70px;
  background: linear-gradient(180deg, transparent 0%, transparent 64%, rgba(7, 20, 13, 0.04) 64%, rgba(7, 20, 13, 0.04) 100%);
}

.student-progress-bmi-ruler::-webkit-scrollbar {
  height: 4px;
}

.student-progress-bmi-ruler::-webkit-scrollbar-thumb {
  background: rgba(16, 156, 70, 0.24);
  border-radius: 999px;
}

.student-progress-bmi-ruler-track {
  --tick-space: 6px;
  --side-pad: 120px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 0 var(--side-pad);
  min-height: 72px;
}

.student-progress-bmi-ruler-tick {
  flex: 0 0 var(--tick-space);
  width: var(--tick-space);
  display: grid;
  justify-items: center;
  align-content: end;
  color: #7b828b;
}

.student-progress-bmi-ruler-tick::before {
  content: "";
  width: 1px;
  height: 12px;
  border-radius: 999px;
  background: rgba(7, 20, 13, 0.12);
}

.student-progress-bmi-ruler-tick.is-mid::before {
  height: 17px;
  background: rgba(7, 20, 13, 0.2);
}

.student-progress-bmi-ruler-tick.is-major::before {
  height: 26px;
  background: rgba(7, 20, 13, 0.35);
}

.student-progress-bmi-ruler-tick span {
  margin-bottom: 5px;
  font-size: 0.92rem;
  line-height: 1;
}

.student-progress-bmi-modal-actions {
  margin-top: auto;
  padding-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-progress-bmi-modal-actions button {
  min-height: 39px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
}

.student-progress-bmi-cancel {
  background: #edf4ef;
  color: #1f3027;
  border: 1px solid rgba(16, 156, 70, 0.16);
}

.student-progress-bmi-save {
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
}

@media (max-height: 760px) {
  .student-progress-bmi-modal-card {
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .student-progress-bmi-live strong {
    font-size: 2.2rem;
  }

  .student-progress-bmi-ruler-wrap {
    min-height: 66px;
  }

  .student-progress-bmi-ruler-indicator {
    height: 52px;
  }

  .student-progress-bmi-ruler {
    min-height: 60px;
  }

  .student-progress-bmi-ruler-track {
    min-height: 62px;
  }
}

.student-progress-plot {
  position: relative;
  min-height: 164px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
}

.student-progress-plot-y {
  display: grid;
  align-content: space-between;
  font-size: 0.75rem;
  color: #8a8a8a;
}

.student-progress-plot-canvas {
  position: relative;
  border-radius: 10px;
  background-image: repeating-linear-gradient(to top, rgba(16, 156, 70, 0.14) 0, rgba(16, 156, 70, 0.14) 1px, transparent 1px, transparent 28px);
}

.student-progress-plot-point {
  position: absolute;
  left: 58%;
  top: 58%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 6px;
}

.student-progress-plot-label {
  background: #1b3b2a;
  color: #ffffff;
  border-radius: 999px;
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.student-progress-plot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #109c46;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 156, 70, 0.22);
}

.student-progress-plot-x {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-left: 44px;
  margin-top: 6px;
  color: #8a8a8a;
  font-size: 0.76rem;
  text-align: center;
}

.student-progress-bmi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.student-progress-bmi-head strong {
  color: #111111;
  font-size: 2.6rem;
  line-height: 1;
}

.student-progress-bmi-head small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111111;
  font-size: 0.9rem;
}

.student-progress-bmi-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e8c84b;
}

.student-progress-bmi-scale {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
}

.student-progress-bmi-scale span {
  height: 12px;
  border-radius: 2px;
  background: var(--bmi-color, #cccccc);
}

.student-progress-bmi-marks {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: #6e6e6e;
  font-size: 0.72rem;
}

.student-progress-bmi-height {
  margin-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-progress-bmi-height small {
  color: #666666;
}

.student-progress-bmi-height strong {
  color: #181818;
  font-size: 1.85rem;
}

.student-progress-history-sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #eef9f1;
  padding: 12px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.student-progress-history-sheet[hidden] {
  display: none !important;
}

.student-progress-history-sheet-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-progress-history-sheet-top h5 {
  color: #0f2017;
  font-size: 1.25rem;
  font-weight: 800;
}

.student-progress-history-back {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #13261c;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.student-progress-history-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-progress-history-month-nav {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
}

.student-progress-history-month-nav button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7a8e83;
  font-size: 0.84rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.student-progress-history-month-nav button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-progress-history-month-nav strong {
  text-align: center;
  color: #121f18;
  font-size: 1.15rem;
  font-weight: 800;
}

.student-progress-history-weekdays,
.student-progress-history-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.student-progress-history-weekdays span {
  min-height: 20px;
  display: grid;
  place-items: center;
  color: #4f5f57;
  font-size: 0.86rem;
}

.student-progress-history-calendar button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #101010;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.student-progress-history-calendar button.is-outside {
  color: #9ea9a3;
}

.student-progress-history-calendar button.is-selected {
  background: #0e1411;
  color: #ffffff;
  font-weight: 700;
}

.student-progress-history-calendar button.has-record::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  display: block;
  margin: 2px auto 0;
  background: #1bb45b;
}

.student-progress-history-summary h6 {
  color: #1e2c23;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.student-progress-history-summary-card {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(16, 156, 70, 0.16);
  box-shadow: 0 8px 20px rgba(16, 156, 70, 0.08);
  padding: 12px;
}

.student-progress-history-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.student-progress-history-summary-head strong {
  color: #131d17;
  font-size: 1.02rem;
  font-weight: 800;
}

.student-progress-history-summary-metas {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.student-progress-history-summary-metas small {
  color: #2f3a35;
  font-size: 0.84rem;
  white-space: nowrap;
}

.student-progress-history-count {
  display: block;
  margin-top: 2px;
  color: #5d6964;
  font-size: 0.88rem;
}

.student-progress-history-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.student-progress-history-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.student-progress-history-item img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(16, 156, 70, 0.24);
}

.student-progress-history-item-body small {
  color: #6e7873;
  font-size: 0.82rem;
}

.student-progress-history-item-body strong {
  display: block;
  color: #17271e;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 2px;
}

.student-progress-history-item-metas {
  margin-top: 3px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.student-progress-history-item-metas span {
  color: #2f3a35;
  font-size: 0.82rem;
}

.student-progress-history-empty {
  min-height: 80px;
  border-radius: 10px;
  background: #f3faf6;
  border: 1px dashed rgba(16, 156, 70, 0.26);
  display: grid;
  place-items: center;
  color: #5a6961;
  font-size: 0.9rem;
}

.student-library-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 6px;
}

.student-library-item {
  border: 1px solid rgba(18, 39, 28, 0.12);
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  align-items: center;
  column-gap: 12px;
  min-height: 96px;
  text-align: left;
}

.student-library-item:hover {
  border-color: rgba(16, 156, 70, 0.55);
  box-shadow: 0 8px 18px rgba(16, 156, 70, 0.13);
  transform: translateY(-2px);
}

.student-library-item-media {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(145deg, #effaf3, #dff2e6);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(18, 39, 28, 0.06);
}

.student-library-item-group-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.student-library-item-media.is-group-image {
  background: transparent;
  box-shadow: none;
}

.student-library-item-emoji {
  font-size: 2rem;
  line-height: 1;
}

.student-library-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.student-library-item strong {
  display: block;
  color: #173728;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-library-item-copy small {
  font-size: 0.77rem;
  color: rgba(23, 55, 40, 0.66);
}

.student-library-item-arrow {
  font-size: 1.36rem;
  color: rgba(23, 55, 40, 0.46);
  text-align: right;
}

.student-library-item[data-library-group="peito"] .student-library-item-media {
  background: linear-gradient(145deg, #eef9f2, #dff2e7);
}

.student-library-item[data-library-group="costas"] .student-library-item-media {
  background: linear-gradient(145deg, #eaf7ef, #d9eedf);
}

.student-library-item[data-library-group="ombros"] .student-library-item-media {
  background: linear-gradient(145deg, #ebf8f0, #dbefe2);
}

.student-library-item[data-library-group="biceps"] .student-library-item-media,
.student-library-item[data-library-group="triceps"] .student-library-item-media,
.student-library-item[data-library-group="antebraco"] .student-library-item-media {
  background: linear-gradient(145deg, #e7f6ed, #d5ecdd);
}

.student-library-item[data-library-group="abdomen"] .student-library-item-media,
.student-library-item[data-library-group="lombar"] .student-library-item-media {
  background: linear-gradient(145deg, #e9f8ee, #d8ecdf);
}

.student-library-item[data-library-group="gluteos"] .student-library-item-media,
.student-library-item[data-library-group="quadriceps"] .student-library-item-media,
.student-library-item[data-library-group="posterior"] .student-library-item-media,
.student-library-item[data-library-group="adutores"] .student-library-item-media,
.student-library-item[data-library-group="abdutores"] .student-library-item-media,
.student-library-item[data-library-group="panturrilhas"] .student-library-item-media {
  background: linear-gradient(145deg, #e6f6ec, #d5ebdc);
}

@media (min-width: 900px) {
  .student-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.student-profile-screen {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
}

.student-profile-hero {
  border: 1px solid rgba(7, 20, 13, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, #f6fbf8 0%, #f0f7f3 100%);
  box-shadow: 0 10px 24px rgba(8, 35, 20, 0.08);
  padding: 22px 16px 18px;
  text-align: center;
}

.student-profile-hero-avatar-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto 14px;
  isolation: isolate;
}

.student-profile-hero-avatar {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  min-width: 112px;
  min-height: 112px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(
    120% 120% at 30% 20%,
    rgba(27, 180, 91, 0.28) 0%,
    rgba(27, 180, 91, 0.16) 48%,
    rgba(10, 28, 19, 0.2) 100%
  ), #0d271a;
}

.student-profile-hero-avatar.has-image {
  background: rgba(10, 28, 19, 0.5);
}

.student-profile-hero-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  z-index: 2;
}

.student-profile-hero-avatar svg {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;
  width: 48px;
  height: 48px;
  stroke: #14aa53;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  display: none;
}

.student-profile-hero-avatar.is-fallback-visible [data-student-profile-avatar-fallback] {
  display: block;
}

.student-profile-hero-avatar.has-image [data-student-profile-avatar-fallback] {
  display: none !important;
}

.student-profile-hero-avatar:not(.has-image) .student-profile-hero-avatar-image {
  display: none !important;
}

.student-profile-hero-avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -2px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(20, 163, 82, 0.52);
  background: linear-gradient(180deg, #19cf67 0%, #11a74f 100%);
  color: #ecfff4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(8, 34, 20, 0.24);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.student-profile-hero-avatar-edit:hover {
  filter: brightness(1.04);
}

.student-profile-hero-avatar-edit:active {
  transform: scale(0.96);
}

.student-profile-hero-avatar-edit:disabled {
  opacity: 0.64;
  cursor: wait;
}

.student-profile-hero-avatar-edit svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-profile-hero h4 {
  margin: 0;
  color: #0a2015;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}

.student-profile-hero p {
  margin: 6px 0 0;
  color: #4b6759;
  font-size: 1rem;
}

.student-profile-hero-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.student-profile-hero-meta-item {
  display: grid;
  justify-items: center;
  row-gap: 1px;
  text-align: center;
}

.student-profile-hero-meta-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 2px;
  display: grid;
  place-items: center;
  color: #16b154;
}

.student-profile-hero-meta-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-profile-hero-meta-item small {
  display: block;
  color: #70867a;
  font-size: 0.9rem;
  line-height: 1.1;
}

.student-profile-hero-meta-item strong {
  display: block;
  margin-top: 0;
  color: #0d271a;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.08;
}

.student-profile-block h5 {
  margin: 0 0 10px;
  color: #07140d;
  font-size: 1.05rem;
  font-weight: 800;
}

.student-profile-list {
  border: 1px solid rgba(7, 20, 13, 0.1);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.student-profile-list-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(7, 20, 13, 0.08);
}

.student-profile-list-item:last-child {
  border-bottom: 0;
}

.student-profile-list-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #8a96a7;
}

.student-profile-list-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-profile-list-copy small {
  display: block;
  color: #688173;
  font-size: 0.86rem;
}

.student-profile-list-copy strong {
  display: block;
  margin-top: 1px;
  color: #081f14;
  font-size: 1.03rem;
  font-weight: 700;
}

.student-profile-settings-list .student-profile-list-item {
  grid-template-columns: 36px minmax(0, 1fr) 16px;
}

.student-profile-settings-btn {
  width: 100%;
  border: 0;
  background: #ffffff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.student-profile-settings-btn:hover {
  background: #f3faf6;
}

.student-profile-settings-btn:active {
  background: #eaf7f0;
}

.student-profile-settings-btn:focus-visible {
  outline: 2px solid rgba(18, 169, 75, 0.55);
  outline-offset: -2px;
}

.student-profile-settings-list .student-profile-list-copy strong {
  margin-top: 0;
}

.student-profile-settings-list .student-profile-list-copy small:empty {
  display: none;
}

.student-profile-list-chevron {
  color: #9bb0a4;
  font-size: 1rem;
  font-weight: 700;
}

.student-profile-action-modal {
  position: fixed;
  inset: 0;
  z-index: 87;
  display: grid;
  place-items: center;
  padding: 14px;
}

.student-profile-action-modal[hidden] {
  display: none !important;
}

.student-profile-action-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 6, 0.58);
}

.student-profile-action-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  border-radius: 18px;
  border: 1px solid rgba(7, 20, 13, 0.12);
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(8, 35, 20, 0.22);
}

[data-trainer-workout-quick-create-modal] {
  z-index: 2101;
}

[data-trainer-workout-quick-create-modal] .student-profile-action-modal-card {
  width: min(100%, 420px);
  max-height: min(88vh, 560px);
  overflow: auto;
  border-color: rgba(63, 211, 132, 0.28);
  background:
    radial-gradient(
      110% 120% at 50% -20%,
      rgba(48, 196, 118, 0.26) 0%,
      rgba(15, 40, 29, 0.28) 46%,
      rgba(8, 22, 17, 0.97) 100%
    ),
    rgba(8, 22, 17, 0.97);
  box-shadow: 0 18px 44px rgba(1, 8, 5, 0.62);
  padding: 20px 18px 16px;
}

[data-trainer-workout-quick-create-modal] .student-profile-action-modal-scrim {
  background: rgba(2, 8, 5, 0.75);
  backdrop-filter: blur(3px);
}

[data-trainer-workout-quick-create-modal] .student-profile-action-modal-card h5 {
  color: #e8f7ef;
}

[data-trainer-workout-quick-create-modal] .student-profile-action-modal-close {
  background: rgba(18, 43, 32, 0.9);
  border-color: rgba(88, 204, 145, 0.38);
  color: #d6f1e2;
}

[data-site-confirm-modal] {
  z-index: 2102;
}

[data-site-confirm-modal] .student-profile-action-modal-scrim {
  background: rgba(2, 8, 5, 0.78);
  backdrop-filter: blur(3px);
}

[data-site-confirm-modal] .student-profile-action-modal-card {
  width: min(100%, 460px);
  border-color: rgba(63, 211, 132, 0.28);
  background:
    radial-gradient(
      110% 120% at 50% -20%,
      rgba(48, 196, 118, 0.24) 0%,
      rgba(15, 40, 29, 0.28) 46%,
      rgba(8, 22, 17, 0.97) 100%
    ),
    rgba(8, 22, 17, 0.97);
  box-shadow: 0 18px 44px rgba(1, 8, 5, 0.62);
  padding: 20px 18px 16px;
}

[data-site-confirm-modal] .student-profile-action-modal-card h5 {
  color: #e8f7ef;
}

[data-site-confirm-modal] .student-profile-action-modal-close {
  background: rgba(18, 43, 32, 0.9);
  border-color: rgba(88, 204, 145, 0.38);
  color: #d6f1e2;
}

[data-site-confirm-modal] .site-confirm-identification {
  margin: 0;
  color: rgba(181, 214, 195, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-site-confirm-modal] .site-confirm-message {
  color: #d8eee1;
  font-size: 1rem;
}

.student-profile-action-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(7, 20, 13, 0.14);
  background: #ffffff;
  color: #173728;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.student-profile-action-modal-close:hover {
  border-color: rgba(24, 173, 87, 0.5);
  background: rgba(238, 249, 243, 1);
  transform: translateY(-1px);
}

.student-profile-action-modal-close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.student-profile-action-modal-close svg path {
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-profile-action-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-right: 34px;
}

.student-profile-action-modal-card h5,
.student-profile-action-modal-card h6 {
  margin: 0;
  color: #081d13;
  font-size: 1.2rem;
  font-weight: 800;
}

.student-profile-action-modal-card p {
  margin: 8px 0 0;
  color: #446455;
  font-size: 0.95rem;
  line-height: 1.4;
}

.student-profile-action-form {
  display: grid;
  gap: 10px;
}

.student-profile-action-field {
  display: grid;
  gap: 8px;
}

.student-profile-action-field span {
  color: rgba(223, 243, 232, 0.9);
  font-size: 1.02rem;
  font-weight: 700;
}

.student-profile-action-field input,
.student-profile-action-field select,
.student-profile-action-field textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(70, 205, 130, 0.4);
  background: linear-gradient(145deg, rgba(14, 45, 32, 0.98), rgba(10, 30, 22, 0.98));
  color: #eaf8f1;
  font-family: inherit;
  font-size: 1rem;
  padding: 0 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.student-profile-action-field input::placeholder,
.student-profile-action-field textarea::placeholder {
  color: rgba(185, 212, 198, 0.82);
}

.student-profile-action-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 12px;
}

.student-profile-action-field textarea {
  min-height: 112px;
  resize: vertical;
  padding-top: 10px;
  line-height: 1.4;
}

.student-profile-action-field input:focus,
.student-profile-action-field select:focus,
.student-profile-action-field textarea:focus {
  border-color: rgba(52, 215, 126, 0.85);
  box-shadow: 0 0 0 3px rgba(39, 204, 113, 0.22);
}

.student-profile-support-wrap {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.student-profile-support-form {
  display: grid;
  gap: 10px;
}

.student-profile-support-feedback {
  min-height: 18px;
}

.student-profile-support-list-wrap {
  border-top: 1px solid rgba(104, 192, 146, 0.26);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.student-profile-support-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.student-profile-support-list-head h6 {
  margin: 0;
  color: #c9ead8;
  font-size: 1rem;
}

.student-profile-support-refresh {
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(68, 188, 126, 0.46);
  background: rgba(18, 54, 38, 0.88);
  color: #ddf7e8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.student-profile-support-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.student-profile-support-item {
  border: 1px solid rgba(78, 191, 135, 0.28);
  border-radius: 12px;
  background: rgba(8, 29, 20, 0.62);
  padding: 10px 10px 9px;
  display: grid;
  gap: 4px;
}

.student-profile-support-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.student-profile-support-item header strong {
  color: #e9f8ef;
  font-size: 0.86rem;
}

.student-profile-support-subject {
  margin: 0;
  color: #edf8f2;
  font-size: 0.9rem;
  line-height: 1.3;
}

.student-profile-support-item small {
  color: rgba(195, 220, 206, 0.84);
  font-size: 0.74rem;
}

.student-profile-support-response {
  margin: 2px 0 0;
  color: rgba(211, 235, 222, 0.9);
  font-size: 0.8rem;
  line-height: 1.35;
}

.student-profile-support-empty {
  margin: 0;
  color: rgba(196, 221, 208, 0.88);
  font-size: 0.86rem;
  line-height: 1.4;
}

.student-profile-action-form .student-form-error {
  margin: 0;
  min-height: 19px;
  font-size: 0.9rem;
}

.student-profile-action-modal-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-profile-action-modal-actions button {
  min-height: 42px;
  border-radius: 12px;
  border: 0;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.student-profile-action-modal.is-support-mode .student-profile-action-modal-actions {
  grid-template-columns: 1fr;
}

.student-profile-action-cancel {
  border: 1px solid rgba(102, 199, 148, 0.4);
  background: rgba(15, 49, 34, 0.72);
  color: #d5f1e2;
}

.student-profile-action-cancel:hover {
  background: rgba(22, 62, 44, 0.9);
}

.student-profile-action-save {
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
}

@media (max-width: 420px) {
  [data-trainer-workout-quick-create-modal] .student-profile-action-modal-card {
    padding: 18px 14px 14px;
    border-radius: 16px;
  }

  [data-trainer-workout-quick-create-modal] .student-profile-action-modal-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.student-exercise-modal[hidden] {
  display: none;
}

.student-exercise-modal {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: grid;
  place-items: center;
  padding: 14px;
}

.student-exercise-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 6, 0.7);
}

.student-exercise-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  border-radius: 14px;
  border: 1px solid rgba(150, 182, 163, 0.22);
  background: rgba(9, 19, 15, 0.98);
  padding: 14px;
}

.student-exercise-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(150, 182, 163, 0.3);
  background: rgba(9, 19, 15, 0.95);
  color: #e2f0e8;
  font-size: 1.1rem;
  cursor: pointer;
}

.student-exercise-modal-card h4 {
  color: #f1f9f4;
  margin-bottom: 3px;
}

.student-exercise-modal-card p {
  color: rgba(202, 222, 210, 0.86);
}

.student-exercise-video {
  margin: 10px 0;
  width: 100%;
  border: 0;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
}

.student-exercise-tips {
  margin-top: 8px;
  list-style: none;
  display: grid;
  gap: 6px;
}

.student-exercise-tips li {
  color: rgba(197, 219, 205, 0.84);
  font-size: 0.9rem;
  padding-left: 12px;
  position: relative;
}

.student-exercise-tips li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1cbf5c;
}

.student-area-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 19, 15, 0.9);
  color: #d7e8dd;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.student-area-close:hover {
  transform: scale(1.05);
  border-color: rgba(28, 191, 92, 0.65);
}

.student-login-card {
  background: linear-gradient(165deg, rgba(12, 23, 18, 0.97), rgba(7, 16, 12, 0.96));
  border: 1px solid rgba(28, 191, 92, 0.28);
  border-radius: 14px;
  padding: 18px 16px 14px;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.44);
}

.student-login-logo {
  width: min(150px, 46%);
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.student-login-card h2 {
  text-align: center;
  color: #f2f8f4;
  font-size: clamp(1.6rem, 2vw + 1rem, 2rem);
  line-height: 1.05;
}

.student-login-subtitle {
  text-align: center;
  color: rgba(219, 236, 226, 0.85);
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.student-auth-switch {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

/* Garante que os botões superiores de alternância (Entrar / Novo cadastro) não apareçam */
.student-auth-tab {
  display: none !important;
}

.student-auth-tab {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(150, 182, 163, 0.26);
  background: rgba(12, 23, 18, 0.7);
  color: rgba(210, 232, 219, 0.84);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.student-auth-tab.is-active {
  background: rgba(28, 191, 92, 0.2);
  border-color: rgba(28, 191, 92, 0.58);
  color: #dcfbe9;
}

.student-auth-panel {
  display: none;
}

.student-auth-panel.is-active {
  display: block;
}

.student-login-form,
.student-register-form,
.student-forgot-request-form,
.student-forgot-reset-form {
  display: grid;
  gap: 4px;
}

.student-login-form {
  gap: 2px;
}

.student-field {
  position: relative;
  display: block;
}

.student-login-form .student-field + .student-field {
  margin-top: 6px;
}

.student-field-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(200, 226, 210, 0.74);
  pointer-events: none;
}

.student-field-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.student-login-form input,
.student-register-form input,
.student-forgot-request-form input,
.student-forgot-request-form select,
.student-forgot-request-form textarea,
.student-forgot-reset-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(145, 176, 158, 0.3);
  background: rgba(14, 24, 20, 0.96);
  color: #ecf7f0;
  padding: 12px 14px 12px 42px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.student-login-form input::placeholder,
.student-register-form input::placeholder,
.student-forgot-request-form input::placeholder,
.student-forgot-request-form textarea::placeholder,
.student-forgot-reset-form input::placeholder {
  color: rgba(193, 214, 201, 0.62);
}

.student-login-form input:focus,
.student-register-form input:focus,
.student-forgot-request-form input:focus,
.student-forgot-request-form select:focus,
.student-forgot-request-form textarea:focus,
.student-forgot-reset-form input:focus {
  border-color: rgba(28, 191, 92, 0.72);
  box-shadow: 0 0 0 3px rgba(28, 191, 92, 0.2);
  outline: none;
}

.student-login-form input.is-invalid,
.student-register-form input.is-invalid,
.student-forgot-request-form input.is-invalid,
.student-forgot-request-form select.is-invalid,
.student-forgot-request-form textarea.is-invalid,
.student-forgot-reset-form input.is-invalid {
  border-color: rgba(216, 74, 74, 0.85);
  box-shadow: 0 0 0 3px rgba(216, 74, 74, 0.16);
}

.student-forgot-request-form select {
  padding-left: 42px;
  appearance: none;
  -webkit-appearance: none;
}

.student-forgot-request-form textarea {
  min-height: 86px;
  padding: 12px 14px 12px 42px;
  resize: vertical;
  line-height: 1.4;
}

.student-field-textarea-wrap .student-field-icon {
  top: 14px;
  transform: none;
}

.student-form-helper {
  margin: 0 2px 4px;
  color: rgba(190, 216, 201, 0.78);
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: left;
}

.student-forgot-request-form[hidden],
.student-forgot-reset-form[hidden] {
  display: none !important;
}

.student-forgot-reset-form [data-student-forgot-token] {
  letter-spacing: 0.04em;
}

.student-form-error {
  min-height: 0;
  color: #ff9696;
  font-size: 0.88rem;
  line-height: 1.2;
  margin: 0;
}

.student-form-error.is-success {
  color: #8ef0b5;
}

.student-remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(194, 217, 203, 0.86);
  font-size: 0.84rem;
  user-select: none;
  line-height: 1.2;
}

.student-login-options {
  display: grid;
  gap: 0;
  margin: 0 2px 0;
}

.student-login-options .student-remember-option + .student-remember-option {
  margin-top: -8px;
}

.student-remember-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #1cbf5c;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  border: 1px solid rgba(194, 217, 203, 0.55);
  border-radius: 3px;
}

.student-remember-option span {
  line-height: 1.2;
}

.student-remember-option input[type="checkbox"]:focus,
.student-remember-option input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.student-login-btn {
  margin-top: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #1cbf5c 0%, #129b48 100%);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.student-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(28, 191, 92, 0.18), 0 12px 24px rgba(18, 155, 72, 0.35);
}

.student-login-btn:active {
  transform: scale(0.98);
}

.student-login-btn.is-loading {
  filter: saturate(0.85);
  cursor: wait;
}

.student-login-btn:disabled {
  opacity: 0.86;
}

.student-forgot-link {
  justify-self: center;
  color: rgba(198, 222, 207, 0.82);
  font-size: 0.9rem;
  margin-top: 0;
}

.student-forgot-link:hover {
  color: #9ce8ba;
}

.student-form-link {
  justify-self: center;
  background: transparent;
  border: 0;
  color: rgba(190, 216, 201, 0.88);
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
}

.student-form-link:hover {
  color: #aef3cb;
}

.student-login-note {
  text-align: center;
  color: rgba(188, 210, 197, 0.72);
  font-size: 0.82rem;
}

/* ==========================================================================
   5.1) Student Area Full Screen App Overrides
   ========================================================================== */
.student-area.view-app {
  padding: 0;
  display: block;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}

.student-area.view-app .student-area-scrim {
  opacity: 0;
  pointer-events: none;
}

.student-area.view-app .student-area-layer {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
}

.student-app-screen {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.student-app-screen.is-visible {
  transform: none;
}

.student-app-shell {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #f8fcfa 0%, #f2f8f4 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.student-area.view-app .student-app-body {
  display: block;
  grid-template-columns: 1fr;
  gap: 0;
  height: 100%;
}

.student-area.view-app .student-app-nav {
  display: none;
}

.student-area.view-app .student-app-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.student-app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: calc(20px + env(safe-area-inset-top)) 18px 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(10, 25, 16, 0.08);
  box-shadow: 0 8px 24px rgba(8, 35, 20, 0.08);
}

.student-app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-app-brand-meta h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #202838;
  line-height: 1.1;
  margin: 0;
}

.student-app-brand-meta p {
  margin-top: 4px;
  margin-bottom: 0;
  color: #6f7f9a;
  font-size: 0.92rem;
}

.student-app-brand-logo-wrap {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.student-app-brand-logo-wrap:focus-visible {
  outline: 2px solid rgba(28, 191, 92, 0.7);
  outline-offset: 2px;
}

.student-app-brand-logo {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 0;
  object-fit: contain;
  filter: none;
  background: transparent;
}

.student-app-brand-logo-dark {
  display: none;
}

body.theme-dark .student-app-brand-logo-light {
  display: none;
}

body.theme-dark .student-app-brand-logo-dark {
  display: block;
}

.student-app-brand-title {
  font-size: 1.95rem;
  line-height: 1;
  color: #222838;
  font-weight: 700;
}

.student-app-kicker {
  display: none;
}

.student-app-topbar h3 {
  color: #07140d;
}

.student-app-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-app-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(111, 130, 163, 0.28);
  background: #fff;
  color: #8ea0bd;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.student-app-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-area button,
.student-area [role="button"],
.student-area a[href],
.student-area label,
.student-app-brand-logo-wrap {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.student-app-main {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 20px 18px 104px;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

.student-week-summary-card {
  margin-bottom: 14px;
  border-radius: 16px;
  background: #edf0f5;
  padding: 14px 12px 12px;
}

.student-week-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.student-week-summary-head h5 {
  color: #2c374b;
  font-size: 1.35rem;
  font-weight: 700;
}

.student-week-summary-head span {
  color: #20ad60;
  font-weight: 700;
  font-size: 1rem;
}

.student-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.student-week-col {
  text-align: center;
}

.student-week-col-label {
  display: block;
  color: #6f7f9a;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.student-week-col-box {
  height: 40px;
  width: 40px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid #dde4ef;
  background: #f3f6fb;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.student-week-col-box:hover {
  transform: translateY(-1px);
}

.student-week-col-box:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 179, 95, 0.24);
}

.student-week-col-box.is-done {
  border-color: #20b35f;
  background: #23c467;
  color: #ffffff;
}

.student-week-col-box.is-current {
  border: 2px solid #20b35f;
  background: #f7fbf8;
  color: #20b35f;
}

.student-week-col-check {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-week-col-current-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-week-col-current-icon circle {
  fill: currentColor;
  stroke: none;
}

.student-week-col-current-spin {
  transform-origin: 12px 12px;
  animation: student-current-day-spin 5s linear infinite;
}

@keyframes student-current-day-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loop-check-icon path {
  stroke-dasharray: var(--path-len, 20);
  stroke-dashoffset: var(--path-len, 20);
  opacity: 0;
  animation: loop-check-draw 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.loop-check-icon .loop-check-path-2 {
  animation-delay: 0.22s;
}

@keyframes loop-check-draw {
  0% {
    stroke-dashoffset: var(--path-len, 20);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  52% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  82% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: var(--path-len, 20);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loop-check-icon path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.student-app-plan {
  background: rgba(18, 169, 75, 0.1);
  border-color: rgba(18, 169, 75, 0.3);
  color: #0d7e3f;
}

.student-app-logout,
.student-app-close {
  border: 1px solid rgba(18, 169, 75, 0.22);
  background: #ffffff;
  color: #07140d;
}

.student-tab-loading {
  display: none !important;
  top: 14px;
  right: 18px;
  background: #ffffff;
  border-color: rgba(18, 169, 75, 0.24);
  color: #0d7e3f;
}

.student-app-card,
.student-workout-item,
.student-workout-detail,
.student-library-item {
  background: #ffffff;
  border: 1px solid rgba(7, 20, 13, 0.1);
  box-shadow: 0 10px 24px rgba(8, 35, 20, 0.08);
}

.student-app-card h5 {
  color: #2f4f40;
}

.student-app-card p,
.student-workout-item strong,
.student-workout-detail h4 {
  color: #07140d;
}

/* ==========================================================================
   5.2) Student Area - Dark Theme
   ========================================================================== */
body.theme-dark .student-area.view-app .student-area-scrim {
  opacity: 1;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(28, 191, 92, 0.18), transparent 70%),
    rgba(6, 10, 9, 0.78);
  pointer-events: none;
}

body.theme-dark .student-app-shell {
  background: linear-gradient(180deg, #0e1412 0%, #0b100d 100%);
  border-color: rgba(28, 191, 92, 0.18);
}

body.theme-dark .student-app-topbar {
  background: #101815;
  border-bottom-color: rgba(155, 201, 176, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

body.theme-dark .student-app-brand-meta h4 {
  color: #eaf4ee;
}

body.theme-dark .student-app-brand-meta p {
  color: rgba(198, 218, 206, 0.82);
}

body.theme-dark .student-app-icon-btn {
  background: rgba(15, 30, 21, 0.9);
  border-color: rgba(28, 191, 92, 0.22);
  color: #d8ebe0;
}

body.theme-dark .student-app-main {
  background: rgba(9, 15, 12, 0.9);
  border-color: rgba(148, 189, 167, 0.16);
}

body.theme-dark .student-week-summary-card {
  background: #131d18;
  border: 1px solid rgba(146, 184, 163, 0.2);
}

body.theme-dark .student-week-summary-head h5 {
  color: #ecf6f0;
}

body.theme-dark .student-week-summary-head span {
  color: #47d57e;
}

body.theme-dark .student-week-col-label {
  color: rgba(194, 215, 202, 0.88);
}

body.theme-dark .student-week-col-box {
  border-color: rgba(146, 184, 163, 0.24);
  background: #1a2620;
  color: #d9ece1;
}

body.theme-dark .student-week-col-box:focus-visible {
  box-shadow: 0 0 0 3px rgba(82, 221, 137, 0.26);
}

body.theme-dark .student-week-col-box.is-current {
  border-color: #2ecc70;
  background: rgba(28, 191, 92, 0.14);
  color: #52dd89;
}

body.theme-dark .student-panel-head h4 {
  color: #edf7f1;
}

body.theme-dark .student-panel-head p {
  color: rgba(192, 213, 200, 0.86);
}

body.theme-dark .student-library-search-wrap input {
  background: #19241f;
  border-color: rgba(146, 184, 163, 0.26);
  color: #ecf7f0;
}

body.theme-dark .student-library-search-wrap input::placeholder {
  color: rgba(189, 211, 198, 0.72);
}

body.theme-dark .student-library-item strong {
  color: #e7f4ec;
}

body.theme-dark .student-library-item-media {
  color: rgba(190, 213, 199, 0.86);
}

body.theme-dark .student-library-item-media {
  background: #223129;
}

body.theme-dark .student-library-item-copy small,
body.theme-dark .student-library-item-arrow {
  color: rgba(189, 211, 198, 0.7);
}

body.theme-dark .student-group-guide-sheet,
body.theme-dark .student-group-detail-sheet,
body.theme-dark .student-group-create-sheet {
  background: #0f1613;
  color: #e8f4ed;
}

body.theme-dark .student-group-guide-top h5 {
  color: #eaf5ee;
}

body.theme-dark .student-group-guide-title-wrap p,
body.theme-dark [data-group-detail-subtitle] {
  color: rgba(192, 213, 200, 0.72);
}

body.theme-dark .student-group-guide-back {
  background: #18241f;
  border-color: rgba(146, 184, 163, 0.24);
  color: #53d287;
}

body.theme-dark .student-group-guide-search input {
  background: #19241f;
  border-color: rgba(146, 184, 163, 0.24);
  color: #e8f4ed;
}

body.theme-dark .student-group-guide-search input::placeholder {
  color: rgba(192, 213, 200, 0.7);
}

body.theme-dark .student-group-guide-card {
  background: #121b17;
  border-color: rgba(146, 184, 163, 0.2);
}

body.theme-dark .student-group-guide-card-thumb {
  background: #223129;
}

body.theme-dark .student-group-guide-card-copy strong {
  color: #e8f3ec;
}

body.theme-dark .student-group-guide-card-copy small {
  color: rgba(189, 211, 198, 0.78);
}

body.theme-dark .student-group-guide-card-thumb-fallback {
  color: rgba(224, 244, 232, 0.92);
}

body.theme-dark .student-group-detail-muscle,
body.theme-dark .student-group-detail-description,
body.theme-dark .student-group-detail-no-video {
  color: rgba(196, 216, 204, 0.9);
}

body.theme-dark .student-group-detail-media {
  background: #15211b;
  border-color: rgba(146, 184, 163, 0.2);
}

body.theme-dark .student-group-detail-tabs {
  background: #151f1a;
  border-color: rgba(146, 184, 163, 0.22);
}

body.theme-dark .student-group-detail-tabs button {
  color: rgba(194, 214, 202, 0.88);
}

body.theme-dark .student-group-detail-tabs button.is-active {
  background: #25332c;
  color: #f2faf5;
}

body.theme-dark .student-group-detail-duration-box,
body.theme-dark .student-group-detail-info-card {
  background: #15211b;
  border-color: rgba(146, 184, 163, 0.22);
}

body.theme-dark .student-group-detail-duration-box strong,
body.theme-dark .student-group-detail-duration-controls span,
body.theme-dark .student-group-detail-info-card h6,
body.theme-dark .student-group-detail-info-card ul,
body.theme-dark .student-group-detail-info-card ol {
  color: #eaf5ee;
}

body.theme-dark .student-group-detail-duration-controls button {
  background: #1b2922;
  border-color: rgba(146, 184, 163, 0.3);
  color: #e8f3ec;
}

body.theme-dark .student-group-detail-play-btn {
  background: linear-gradient(180deg, #1f8f4a 0%, #166d39 100%);
}

body.theme-dark .student-group-detail-intensity-bars span {
  background: #2f3d4f;
}

body.theme-dark .student-group-detail-intensity-bars span.is-active {
  background: #58cf88;
}

body.theme-dark .student-group-detail-info-card.is-tip {
  background: rgba(28, 191, 92, 0.12);
  border-color: rgba(28, 191, 92, 0.36);
}

body.theme-dark .student-group-detail-info-card.is-tip h6 {
  color: #8de2ad;
}

body.theme-dark .student-group-create-btn-top {
  background: #18241f;
  border-color: rgba(46, 204, 112, 0.45);
  color: #53d287;
}

body.theme-dark .student-group-create-file-name {
  color: rgba(194, 214, 202, 0.84);
}

body.theme-dark .student-group-create-form input,
body.theme-dark .student-group-create-form textarea,
body.theme-dark .student-group-create-form select {
  background: #19241f;
  border-color: rgba(146, 184, 163, 0.24);
  color: #e8f4ed;
}

body.theme-dark .student-app-bottom-nav {
  background: #111915;
  border-top-color: rgba(146, 184, 163, 0.22);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.42);
}

body.theme-dark .student-app-nav-btn {
  color: rgba(203, 224, 212, 0.92);
}

body.theme-dark .student-app-nav-btn.is-active {
  color: #52dd89;
}

body.theme-dark .student-app-card,
body.theme-dark .student-workout-item,
body.theme-dark .student-workout-detail,
body.theme-dark .student-library-item {
  background: #121b17;
  border-color: rgba(146, 184, 163, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

body.theme-dark .student-profile-hero,
body.theme-dark .student-profile-list {
  background: #121b17;
  border-color: rgba(146, 184, 163, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

body.theme-dark .student-profile-hero h4,
body.theme-dark .student-profile-list-copy strong,
body.theme-dark .student-profile-block h5,
body.theme-dark .student-profile-hero-meta-item strong {
  color: #e8f4ed;
}

body.theme-dark .student-profile-hero p,
body.theme-dark .student-profile-hero-meta-item small,
body.theme-dark .student-profile-list-copy small {
  color: rgba(190, 213, 199, 0.84);
}

body.theme-dark .student-profile-hero-avatar {
  background: radial-gradient(
    120% 120% at 30% 20%,
    rgba(25, 207, 103, 0.3) 0%,
    rgba(25, 207, 103, 0.14) 48%,
    rgba(10, 28, 19, 0.9) 100%
  ), #0a1e14;
}

body.theme-dark .student-profile-hero-avatar.has-image {
  background: rgba(10, 28, 19, 0.8);
}

body.theme-dark .student-profile-hero-avatar-edit {
  border-color: rgba(58, 215, 132, 0.64);
  background: linear-gradient(180deg, #17c965 0%, #0f9d4b 100%);
  color: #e7fff1;
}

body.theme-dark .student-profile-list-item {
  border-bottom-color: rgba(146, 184, 163, 0.14);
}

body.theme-dark .student-profile-settings-btn {
  background: #121b17;
}

body.theme-dark .student-profile-settings-btn:hover {
  background: #18241f;
}

body.theme-dark .student-profile-action-modal-card {
  background: #121b17;
  border-color: rgba(146, 184, 163, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

body.theme-dark .student-profile-action-modal-close {
  background: #18241f;
  border-color: rgba(146, 184, 163, 0.2);
  color: #d9ede1;
}

body.theme-dark .student-profile-action-modal-card h5,
body.theme-dark .student-profile-action-modal-card h6 {
  color: #e8f4ed;
}

body.theme-dark .student-profile-action-modal-card p {
  color: rgba(190, 213, 199, 0.84);
}

body.theme-dark .student-profile-action-cancel {
  background: #223029;
  color: #e5f3ec;
}

body.theme-dark .student-profile-action-modal-close:hover {
  border-color: rgba(91, 223, 150, 0.64);
  background: #23352d;
}

body.theme-dark .student-profile-action-field span {
  color: rgba(225, 243, 232, 0.92);
}

body.theme-dark .student-profile-action-field input,
body.theme-dark .student-profile-action-field select,
body.theme-dark .student-profile-action-field textarea {
  border-color: rgba(95, 208, 153, 0.36);
  background: linear-gradient(145deg, rgba(18, 42, 32, 0.96), rgba(12, 32, 24, 0.96));
  color: #edf8f2;
}

body.theme-dark .student-profile-action-field input::placeholder,
body.theme-dark .student-profile-action-field textarea::placeholder {
  color: rgba(181, 209, 195, 0.82);
}

body.theme-dark .student-profile-support-list-wrap {
  border-top-color: rgba(98, 180, 137, 0.34);
}

body.theme-dark .student-profile-support-item {
  border-color: rgba(95, 208, 153, 0.3);
  background: rgba(14, 33, 25, 0.78);
}

body.theme-dark .student-app-panel[data-student-app-panel="dashboard"] .student-app-card {
  border-color: rgba(146, 184, 163, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

body.theme-dark .student-dashboard-hero {
  border-color: rgba(28, 191, 92, 0.22);
  background: linear-gradient(145deg, rgba(28, 191, 92, 0.12), rgba(17, 26, 21, 0.88) 58%, rgba(28, 191, 92, 0.08));
}

body.theme-dark .student-dashboard-hero h4 {
  color: #e8f4ed;
}

body.theme-dark .student-dashboard-hero p {
  color: rgba(208, 229, 217, 0.82);
}

body.theme-dark .student-dashboard-hero.has-image-cta {
  background: url("https://ugcfxksbzbqzdoxjneys.supabase.co/storage/v1/object/public/media/repo-media/imagens/aba-de-img/c5c14bc2c4-botao-treino-hoje-3.svg") center/contain no-repeat;
}

body.theme-dark .student-upcoming-item {
  background: #101915;
  border-color: rgba(146, 184, 163, 0.16);
}

body.theme-dark .student-upcoming-item.is-today {
  border-color: rgba(28, 191, 92, 0.4);
}

body.theme-dark .student-upcoming-item:not(.is-today) .student-upcoming-icon {
  background: #2f3f37;
}

body.theme-dark .student-upcoming-copy strong {
  color: #e8f3ec;
}

body.theme-dark .student-upcoming-head h5 {
  color: #edf7f1;
}

body.theme-dark .student-upcoming-viewall {
  color: #58d98e;
}

body.theme-dark .student-upcoming-copy small,
body.theme-dark .student-upcoming-when,
body.theme-dark .student-status-level,
body.theme-dark .student-completion-text {
  color: rgba(190, 213, 199, 0.84);
}

body.theme-dark .student-metric-card:nth-child(odd),
body.theme-dark .student-metric-card:nth-child(even) {
  background: #121b17;
}

body.theme-dark .student-metric-card p,
body.theme-dark .student-goal-title,
body.theme-dark .student-motivation-text {
  color: #e8f3ec;
}

body.theme-dark .student-goal-track,
body.theme-dark .student-completion-track {
  background: rgba(205, 228, 214, 0.14);
}

body.theme-dark .student-all-workout-item {
  background: #121b17;
  border-color: rgba(146, 184, 163, 0.2);
}

body.theme-dark .student-all-workout-copy strong {
  color: #e8f3ec;
}

body.theme-dark .student-all-workout-copy small {
  color: rgba(188, 211, 196, 0.82);
}

body.theme-dark .student-all-workouts-card h5,
body.theme-dark .student-workout-hint,
body.theme-dark .student-workout-item p,
body.theme-dark .student-workout-detail > p,
body.theme-dark .student-workout-exercises span {
  color: rgba(228, 241, 234, 0.92);
}

body.theme-dark .student-active-workout {
  background: #0f1613;
  border-color: rgba(146, 184, 163, 0.16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

body.theme-dark .student-active-card {
  background: #131c18;
  border-color: rgba(146, 184, 163, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.44);
}

body.theme-dark .student-active-title-wrap h4,
body.theme-dark .student-active-list-head h5,
body.theme-dark .student-active-exercise-copy h5 {
  color: #e7f2eb;
}

body.theme-dark .student-active-title-wrap p,
body.theme-dark .student-active-list-head span,
body.theme-dark .student-active-exercise-copy small {
  color: rgba(189, 210, 197, 0.84);
}

body.theme-dark .student-active-summary-grid article,
body.theme-dark .student-active-exercise-metrics > div {
  background: #0f1714;
  border-color: rgba(146, 184, 163, 0.16);
}

body.theme-dark .student-active-summary-grid strong,
body.theme-dark .student-active-progress-head strong,
body.theme-dark .student-active-exercise-metrics strong {
  color: #dff0e7;
}

body.theme-dark .student-active-summary-grid span,
body.theme-dark .student-active-progress-head span,
body.theme-dark .student-active-exercise-metrics small {
  color: rgba(186, 209, 195, 0.82);
}

body.theme-dark .student-active-progress-track {
  background: rgba(206, 228, 215, 0.14);
}

body.theme-dark .student-active-exercise-card {
  border-bottom-color: rgba(146, 184, 163, 0.2);
}

body.theme-dark .student-active-exercise-check {
  background: #0f1814;
  border-color: rgba(146, 184, 163, 0.24);
}

body.theme-dark .student-active-exercise-check.is-done {
  background: rgba(28, 191, 92, 0.18);
}

body.theme-dark .student-active-exercise-thumb {
  background: transparent;
  border-color: transparent;
}

body.theme-dark .student-exercise-detail-view {
  background: #101714;
  border-color: rgba(146, 184, 163, 0.16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

body.theme-dark .student-prep-view {
  background: #000000;
  border-color: rgba(146, 184, 163, 0.16);
}

body.theme-dark .student-prep-media {
  background: #000000;
}

body.theme-dark .student-prep-media.has-video {
  background: #000000;
}

body.theme-dark .student-prep-video,
body.theme-dark .student-prep-video-file {
  background: #000000;
}

body.theme-dark .student-prep-body {
  background: #0f1613;
}

body.theme-dark .student-prep-body p,
body.theme-dark .student-prep-countdown-ring span {
  color: #e2efe8;
}

body.theme-dark .student-prep-back {
  color: #5bd892;
}

body.theme-dark .student-prep-countdown-ring {
  background:
    radial-gradient(circle at center, #0f1613 63%, transparent 64%),
    conic-gradient(#1abd5c var(--prep-progress), #34423b 0);
}

body.theme-dark .student-run-view {
  background: #101714;
  border-color: rgba(146, 184, 163, 0.16);
}

body.theme-dark .student-run-media {
  background:
    radial-gradient(80% 80% at 50% 18%, rgba(28, 191, 92, 0.16), transparent 72%),
    linear-gradient(180deg, #121b17 0%, #0e1512 100%);
}

body.theme-dark .student-run-back svg {
  stroke: #5bd892;
}

body.theme-dark .student-app-panel[data-student-app-panel="treino-execucao"] {
  background: #101714;
}

body.theme-dark .student-run-body {
  background: #0f1613;
}

body.theme-dark .student-run-exercise,
body.theme-dark .student-run-clock {
  color: #e2efe8;
}

body.theme-dark .student-run-counter {
  color: #9fb8ab;
}

body.theme-dark .student-run-busy-toggle {
  background: rgba(23, 35, 30, 0.96);
  border-color: rgba(146, 184, 163, 0.16);
  color: #d9ece2;
}

body.theme-dark .student-run-help-trigger {
  border-color: rgba(146, 184, 163, 0.4);
  color: #d9ece2;
  background: rgba(16, 30, 25, 0.72);
}

body.theme-dark .student-run-help-modal-card {
  background: linear-gradient(180deg, #101a15 0%, #0d1512 100%);
  border-color: rgba(146, 184, 163, 0.26);
  color: #dcede3;
}

body.theme-dark .student-run-help-modal-head h5 {
  color: #e6f2eb;
}

body.theme-dark .student-run-help-modal-close {
  border-color: rgba(146, 184, 163, 0.28);
  color: #d5ebdf;
  background: rgba(17, 31, 25, 0.72);
}

body.theme-dark .student-run-help-modal p {
  color: #cde2d7;
}

body.theme-dark .student-run-controls button {
  background: #17231e;
  color: #d7e8df;
}

body.theme-dark .student-run-controls .student-run-pause.is-paused {
  background: #1f3227;
  color: #6ae199;
}

body.theme-dark .student-exercise-detail-head h4 {
  color: #e6f2eb;
}

body.theme-dark .student-exercise-detail-media {
  background:
    radial-gradient(80% 80% at 50% 20%, rgba(28, 191, 92, 0.18), transparent 70%),
    linear-gradient(180deg, #13201a 0%, #0e1713 100%);
  border-color: rgba(146, 184, 163, 0.14);
}

body.theme-dark .student-exercise-detail-figure iframe,
body.theme-dark .student-exercise-detail-figure video,
body.theme-dark .student-exercise-detail-figure img {
  background: #0f1714;
}

body.theme-dark .student-exercise-detail-fallback {
  color: #d8ece0;
}

body.theme-dark .student-exercise-detail-tabs {
  background: #1a2420;
}

body.theme-dark .student-exercise-detail-tabs button {
  color: rgba(188, 211, 196, 0.84);
}

body.theme-dark .student-exercise-duration-controls button {
  background: #17231e;
  border-color: rgba(146, 184, 163, 0.16);
  color: #deece4;
}

body.theme-dark .student-exercise-duration-controls span {
  color: #e6f2eb;
}

body.theme-dark .student-exercise-detail-instructions p,
body.theme-dark .student-exercise-detail-stepper span {
  color: rgba(194, 215, 202, 0.9);
}

body.theme-dark .student-exercise-detail-stepper button {
  background: #1c2923;
  color: #53d287;
}

.student-workout-item p,
.student-workout-detail > p,
.student-workout-exercises span,
.student-library-item span {
  color: #416051;
}

.student-dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(18, 169, 75, 0.2);
  background: linear-gradient(145deg, rgba(28, 191, 92, 0.14), rgba(255, 255, 255, 0.85) 58%, rgba(28, 191, 92, 0.08));
  box-shadow: 0 12px 28px rgba(8, 35, 20, 0.08);
  animation: student-elevate-in 0.42s ease both;
}

.student-dashboard-hero.has-image-cta {
  position: relative;
  display: block;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: url("https://ugcfxksbzbqzdoxjneys.supabase.co/storage/v1/object/public/media/repo-media/imagens/aba-de-img/597d11b706-botao-treino-hoje-1.svg") center/contain no-repeat;
  box-shadow: 0 12px 28px rgba(8, 35, 20, 0.08);
  overflow: hidden;
  aspect-ratio: 320 / 143;
  min-height: 128px;
}

.student-dashboard-hero.has-image-cta > div {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.student-dashboard-hero h4 {
  color: #1e3128;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.student-dashboard-hero p {
  color: rgba(22, 41, 33, 0.72);
  font-size: 0.95rem;
}

.student-cta-inline {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(18, 169, 75, 0.34);
  background: linear-gradient(90deg, #16af4f, #20c361);
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 169, 75, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.student-dashboard-hero.has-image-cta .student-cta-inline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 13px;
  top: auto;
  transform: none;
  z-index: 2;
  margin: 0;
  min-height: 44px;
  max-height: 44px;
  border-radius: 12px;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  gap: 0;
}

.student-dashboard-hero.has-image-cta .student-cta-inline:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

.student-dashboard-hero.has-image-cta .student-cta-inline:active {
  transform: none;
}

.student-dashboard-hero.has-image-cta .student-cta-inline span,
.student-dashboard-hero.has-image-cta .student-cta-inline svg {
  opacity: 0;
  pointer-events: none;
}

.student-dashboard-hero.has-image-cta .student-cta-inline:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.student-cta-inline svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.student-cta-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 169, 75, 0.3);
}

.student-cta-inline:active {
  transform: scale(0.98);
}

.student-active-workout {
  --active-cta-green: #16b857;
  display: block;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(20, 42, 33, 0.1);
  box-shadow: 0 14px 30px rgba(8, 35, 20, 0.12);
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.student-app-panel[data-student-app-panel="treino-ativo"] {
  margin: -20px -18px -104px;
  padding-bottom: 104px;
  background: #ffffff;
}

.student-active-hero {
  --active-workout-hero: url("https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?auto=format&fit=crop&w=1400&q=80");
  position: relative;
  min-height: clamp(190px, 38vh, 320px);
  background-image: var(--active-workout-hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.student-active-hero.is-svg-hero {
  background-size: 128% auto;
  background-position: center;
  background-color: #0d1712;
}

.student-active-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 12, 9, 0.26) 0%, rgba(5, 12, 9, 0.7) 100%),
    radial-gradient(90% 90% at 50% 10%, rgba(28, 191, 92, 0.22), transparent 70%);
}

.student-active-card {
  position: relative;
  z-index: 2;
  margin: -18px 0 0;
  padding: 16px 14px 0;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid rgba(11, 39, 27, 0.08);
  box-shadow: 0 14px 32px rgba(8, 35, 20, 0.16);
}

.student-active-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.student-active-title-wrap > div {
  width: 100%;
  text-align: center;
}

.student-active-title-wrap h4 {
  margin: 3px 0 0;
  color: #15241d;
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
  line-height: 1.08;
}

.student-active-title-wrap p {
  margin: 4px 0 0;
  color: #5f766a;
  font-size: 0.78rem;
}

.student-active-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.student-active-summary-grid article {
  background: #f2f5f4;
  border: 1px solid rgba(11, 39, 27, 0.08);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}

.student-active-summary-grid strong {
  display: block;
  color: #162a21;
  font-size: 1.02rem;
}

.student-active-summary-grid span {
  display: block;
  color: #648173;
  font-size: 0.74rem;
}

.student-active-progress {
  margin-top: 12px;
}

.student-active-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.student-active-progress-head strong {
  font-size: 0.8rem;
  color: #193128;
}

.student-active-progress-head span {
  font-size: 0.76rem;
  color: #1ea85a;
  font-weight: 700;
}

.student-active-progress-track {
  margin-top: 6px;
  height: 8px;
  border-radius: 999px;
  background: rgba(12, 30, 22, 0.1);
  overflow: hidden;
}

.student-active-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea84f, #25d06d);
  transition: width 0.45s ease;
}

.student-active-list-head {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-active-list-head h5 {
  margin: 0;
  color: #15271f;
  font-size: 0.96rem;
}

.student-active-list-head span {
  color: #668073;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  margin-right: 10px;
}

.student-active-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}

.student-active-back svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 2.4;
  fill: none;
  animation: student-chevron-left-loop 1.7s ease-in-out infinite;
}

@keyframes student-chevron-left-loop {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  45% {
    transform: translateX(-2px);
    opacity: 0.55;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.student-active-workout-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  max-height: clamp(260px, 42vh, 520px);
  overflow-y: auto;
  padding-right: 2px;
  padding-bottom: 10px;
  scroll-padding-bottom: 10px;
}

.student-active-workout-list::-webkit-scrollbar {
  width: 5px;
}

.student-active-workout-list::-webkit-scrollbar-thumb {
  background: rgba(18, 169, 75, 0.35);
  border-radius: 999px;
}

.student-active-exercise-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "thumb copy check"
    ". metrics check";
  gap: 8px 10px;
  align-items: center;
  padding: 10px 2px 12px;
  border-bottom: 1px solid rgba(11, 39, 27, 0.12);
}

.student-active-exercise-card:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.student-active-exercise-check {
  grid-area: check;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(11, 39, 27, 0.2);
  border-radius: 9px;
  background: #f6f8f7;
  display: grid;
  place-items: center;
  cursor: pointer;
  align-self: start;
  margin-top: 2px;
  margin-right: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}

.student-active-exercise-check:active {
  transform: scale(0.95);
}

.student-active-exercise-check.is-done {
  background: #1fbe5f;
  border-color: #149848;
  color: #ffffff;
}

.student-active-check-id {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  perspective: 500px;
}

.student-active-check-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform-origin: center;
}

.student-active-check-icon path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.student-active-exercise-check.is-done .student-active-check-icon {
  opacity: 1;
}

.student-active-exercise-check.is-done .student-active-check-icon path {
  stroke-dashoffset: 0;
}

.student-active-exercise-check.is-animating .student-active-check-icon {
  animation: student-check-spin-once 0.8s ease-in-out 1;
}

.student-active-exercise-check.is-animating .student-active-check-icon path {
  animation: student-check-draw-once 0.8s ease-in-out 1;
}

@keyframes student-check-spin-once {
  0% { transform: rotateY(0deg); opacity: 1; }
  50% { transform: rotateY(180deg); opacity: 0.8; }
  100% { transform: rotateY(360deg); opacity: 1; }
}

@keyframes student-check-draw-once {
  0% { stroke-dashoffset: 0; opacity: 1; }
  50% { stroke-dashoffset: 5; opacity: 0.8; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.student-active-exercise-thumb {
  grid-area: thumb;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-active-exercise-thumb span {
  color: #7a8b82;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.student-active-thumb-lines {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.student-active-exercise-copy {
  grid-area: copy;
}

.student-active-exercise-copy h5 {
  margin: 0;
  color: #11261e;
  font-size: 0.95rem;
}

.student-active-exercise-copy small {
  display: block;
  margin-top: 2px;
  color: #6b8477;
  font-size: 0.76rem;
}


.student-active-exercise-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.student-active-exercise-metrics > div {
  background: #f3f6f4;
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
}

.student-active-exercise-metrics small {
  display: block;
  color: #769183;
  font-size: 0.62rem;
}

.student-active-exercise-metrics strong {
  color: #12372a;
  font-size: 0.8rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-active-finish-btn {
  position: relative;
  display: flex;
  width: calc(100% - 20px);
  max-width: none;
  margin: 14px 10px calc(14px + env(safe-area-inset-bottom));
  min-height: 72px;
  border-radius: 18px;
  background: var(--active-cta-green);
  border-top: 0;
  box-shadow: 0 14px 28px rgba(10, 38, 22, 0.18);
  font-size: 1.06rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.student-active-finish-btn:active {
  transform: scale(0.98);
}

.student-prep-view {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  box-shadow: none;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.student-app-panel[data-student-app-panel="pre-treino"] {
  margin: -20px -18px -104px;
  padding-bottom: 104px;
  background: #ffffff;
}

.student-app-shell.is-prep-mode .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-active-workout-mode .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-workouts-tab-mode .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-run-mode .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-rest-mode .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-library-guide-mode .student-app-bottom-nav {
  display: none !important;
}

.student-app-shell.is-library-guide-mode .student-app-mode-note {
  display: none !important;
}

.student-app-shell.is-weight-modal-open .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-weight-modal-open .student-app-mode-note {
  display: none;
}

.student-app-shell.is-bmi-modal-open .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-bmi-modal-open .student-app-mode-note {
  display: none;
}

.student-app-shell.is-profile-modal-open .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-profile-modal-open .student-app-mode-note {
  display: none;
}

.student-app-mode-note {
  display: none;
  min-height: 40px;
  background: #0f8f46;
  color: #8fd9ab;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.student-app-shell.is-workouts-tab-mode .student-app-mode-note {
  display: flex;
}

.student-app-shell.is-prep-mode .student-app-main {
  padding: 0;
  display: flex;
  overflow: hidden;
  background: #ffffff;
}

.student-app-shell.is-active-workout-mode .student-app-main {
  padding-bottom: 0;
  background: #16b857;
}

.student-app-shell.is-workouts-tab-mode .student-app-main {
  padding-bottom: 0;
  background: #ffffff;
}

.student-app-shell.is-run-mode .student-app-main {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.student-app-shell.is-rest-mode .student-app-main {
  padding: 0;
  overflow: hidden;
  background: #f3f7f4;
}

.student-app-shell.is-prep-mode .student-app-panel[data-student-app-panel="pre-treino"] {
  margin: 0;
  padding: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
}

.student-app-shell.is-active-workout-mode .student-app-panel[data-student-app-panel="treino-ativo"] {
  margin: -20px -18px 0;
  padding-bottom: 0;
  min-height: calc(100dvh - 132px);
  background: #ffffff;
}

.student-app-shell.is-active-workout-mode .student-app-panel[data-student-app-panel="treino-ativo"].is-active {
  min-height: 100%;
}

.student-app-shell.is-workouts-tab-mode .student-app-panel[data-student-app-panel="treinos"] {
  min-height: calc(100dvh - 132px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.theme-dark .student-app-shell.is-workouts-tab-mode .student-app-main {
  background: #0f1613;
}

body.theme-dark .student-app-shell.is-workouts-tab-mode .student-app-panel[data-student-app-panel="treinos"] {
  background: #0f1613;
}

body.theme-dark .student-app-shell.is-workouts-tab-mode .student-workout-layout {
  background: #0f1613;
}

body.theme-dark .student-workout-item strong,
body.theme-dark .student-workout-detail h4 {
  color: #e8f3ec;
}

.student-app-shell.is-workouts-tab-mode .student-app-panel[data-student-app-panel="treinos"].is-active {
  min-height: 100%;
}

.student-app-shell.is-run-mode .student-app-panel[data-student-app-panel="treino-execucao"] {
  margin: -20px -18px 0;
  min-height: calc(100dvh - 132px);
  flex: 1 1 auto;
}

.student-app-shell.is-run-mode .student-app-panel[data-student-app-panel="treino-execucao"].is-active {
  min-height: 100%;
}

.student-app-shell.is-run-mode .student-run-view {
  width: 100%;
  min-height: 100%;
}

.student-app-shell.is-rest-mode .student-app-panel[data-student-app-panel="treino-descanso"] {
  margin: -20px -18px 0;
  min-height: calc(100dvh - 132px);
  flex: 1 1 auto;
  background: #f3f7f4;
}

.student-app-shell.is-rest-mode .student-app-panel[data-student-app-panel="treino-descanso"].is-active {
  min-height: 100%;
}

body.theme-dark .student-app-shell.is-rest-mode .student-app-main {
  background: #0f1613;
}

body.theme-dark .student-app-shell.is-rest-mode .student-app-panel[data-student-app-panel="treino-descanso"] {
  background: #0f1613;
}

.student-app-shell.is-prep-mode .student-prep-view {
  flex: 1 1 auto;
  min-height: 0;
}

.student-app-shell.is-prep-mode .student-prep-media {
  flex: 0 0 36%;
  min-height: 0;
}

.student-app-shell.is-prep-mode .student-prep-body {
  flex: 1 1 auto;
}

.student-prep-media {
  position: relative;
  min-height: clamp(150px, 28vh, 240px);
  flex: 1 1 auto;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.student-prep-figure {
  position: relative;
  z-index: 1;
  font-size: clamp(6.2rem, 24vw, 10.6rem);
  line-height: 1;
}

.student-prep-video,
.student-prep-video-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  z-index: 1;
  background: #ffffff;
}

.student-prep-video {
  pointer-events: none;
}

.student-prep-video-file {
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.student-prep-video.is-visible,
.student-prep-video-file.is-visible {
  display: block;
}

.student-prep-media.has-video .student-prep-figure {
  visibility: hidden;
}

.student-prep-media.has-video {
  background: #ffffff;
}

.student-prep-media.has-video .student-prep-video-file {
  transform: scale(1);
  transform-origin: center center;
}

.student-prep-media.has-video .student-prep-video {
  transform: scale(1);
  transform-origin: center center;
}

.student-prep-figure.is-fallback-icon,
.student-run-figure.is-fallback-icon {
  display: grid;
  place-items: center;
}

.student-prep-figure.is-fallback-icon svg,
.student-run-figure.is-fallback-icon svg {
  width: clamp(86px, 20vw, 132px);
  height: clamp(86px, 20vw, 132px);
  fill: none;
  stroke: #159848;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-prep-body {
  position: relative;
  margin-top: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 38px 16px 78px;
  text-align: center;
}

.student-prep-body h4 {
  margin: 0;
  color: #0f8f46;
  text-transform: uppercase;
  font-size: 1.46rem;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.student-prep-body p {
  margin: 10px 0 0;
  color: #15261f;
  font-size: 1.3rem;
  font-weight: 700;
}

[data-student-prep-exercise] {
  white-space: pre-line;
}

.student-prep-countdown-ring {
  --prep-progress: 100%;
  width: 152px;
  height: 152px;
  margin: 20px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 63%, transparent 64%),
    conic-gradient(#1abd5c var(--prep-progress), #d9dee2 0);
  display: grid;
  place-items: center;
}

.student-prep-countdown-ring span {
  color: #12231c;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.student-prep-next {
  position: absolute;
  right: 18px;
  bottom: 16px;
  margin: 0;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #e7f6ed;
  color: #14984a;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 8;
  box-shadow: 0 10px 24px rgba(15, 66, 40, 0.24);
}

.student-prep-next svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.student-prep-back {
  position: absolute;
  left: 18px !important;
  top: auto !important;
  bottom: 18px;
  z-index: 8;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #14984a;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: none;
}

.student-prep-back svg {
  display: none;
}

.student-run-view {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(11, 39, 27, 0.12);
  box-shadow: 0 14px 30px rgba(8, 35, 20, 0.12);
  min-height: 100%;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.student-app-panel[data-student-app-panel="treino-execucao"] {
  min-height: calc(100dvh - 190px);
}

.student-app-panel[data-student-app-panel="treino-execucao"].is-active {
  display: flex;
  flex-direction: column;
}

.student-run-media {
  position: relative;
  min-height: clamp(260px, 46vh, 420px);
  flex: 0 0 auto;
  background: #ffffff;
  display: grid;
  place-items: center;
  z-index: 1;
  overflow: hidden;
}

.student-run-back {
  position: absolute;
  top: 32px !important;
  left: 34px !important;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #16b857;
  display: grid;
  place-items: center;
  z-index: 3;
}

.student-run-back svg {
  stroke: #ffffff;
  animation: student-chevron-left-loop 1.7s ease-in-out infinite;
}

.student-run-back {
  display: none !important;
}

.student-run-figure {
  position: relative;
  z-index: 1;
  font-size: clamp(6.2rem, 24vw, 10.6rem);
  line-height: 1;
}

.student-run-video,
.student-run-video-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  z-index: 1;
  background: transparent;
}

.student-run-video {
  pointer-events: none;
}

.student-run-video-file {
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.student-run-video.is-visible,
.student-run-video-file.is-visible {
  display: block;
}

.student-run-media.has-video .student-run-figure {
  visibility: hidden;
}

.student-rest-view {
  border-radius: 0;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 90% at 50% 14%, rgba(24, 184, 91, 0.1), transparent 72%),
    linear-gradient(180deg, #f7fbf8 0%, #eef5f1 100%);
}

.student-rest-media {
  position: relative;
  min-height: clamp(250px, 42vh, 340px);
  background: #ffffff;
  border-radius: 0 0 30px 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.student-rest-figure {
  position: relative;
  z-index: 1;
  font-size: clamp(6rem, 23vw, 10rem);
  line-height: 1;
}

.student-rest-figure.is-fallback-icon {
  display: grid;
  place-items: center;
}

.student-rest-figure.is-fallback-icon svg {
  width: clamp(86px, 20vw, 132px);
  height: clamp(86px, 20vw, 132px);
  fill: none;
  stroke: #159848;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-rest-video,
.student-rest-video-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  z-index: 1;
  background: #ffffff;
}

.student-rest-video {
  pointer-events: none;
}

.student-rest-video-file {
  object-fit: contain;
  pointer-events: none;
}

.student-rest-video.is-visible,
.student-rest-video-file.is-visible {
  display: block;
}

.student-rest-media.has-video .student-rest-figure {
  visibility: hidden;
}

.student-rest-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px calc(22px + env(safe-area-inset-bottom));
  color: #10201a;
}

.student-rest-next-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  color: #173026;
}

.student-rest-next-head small {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-left: 10px;
}

.student-rest-next-head span {
  font-size: 1.55rem;
  line-height: 1;
  margin-right: 10px;
}

.student-rest-next-name {
  width: 100%;
  margin: 0;
  font-size: clamp(1.08rem, 4.2vw, 1.44rem);
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #14261f;
}

.student-rest-body h4 {
  margin: 18px 0 0;
  font-size: 3.15rem;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 900;
  color: #149049;
}

.student-rest-clock {
  display: block;
  margin-top: 6px;
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  color: #0f1f18;
}

.student-rest-actions {
  width: calc(100% - 8px);
  margin-top: auto;
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.student-rest-actions button {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(24, 152, 74, 0.22);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.student-rest-actions button[data-student-rest-add-time] {
  background: rgba(24, 152, 74, 0.14);
  color: #0f5d35;
}

.student-rest-actions button[data-student-rest-skip] {
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  border-color: rgba(31, 199, 108, 0.42);
  color: #ffffff;
}

body.theme-dark .student-rest-view {
  background:
    radial-gradient(90% 90% at 50% 14%, rgba(24, 184, 91, 0.16), transparent 72%),
    linear-gradient(180deg, #12201a 0%, #0d1713 100%);
}

body.theme-dark .student-rest-media {
  background: #0f1512;
}

body.theme-dark .student-rest-video,
body.theme-dark .student-rest-video-file {
  background: #0b0f0d;
}

body.theme-dark .student-rest-body {
  color: #ffffff;
}

body.theme-dark .student-rest-next-head,
body.theme-dark .student-rest-next-name,
body.theme-dark .student-rest-clock {
  color: #ffffff;
}

body.theme-dark .student-rest-body h4 {
  color: #ffffff;
}

body.theme-dark .student-rest-actions button {
  border-color: rgba(120, 204, 159, 0.22);
}

body.theme-dark .student-rest-actions button[data-student-rest-add-time] {
  background: rgba(24, 152, 74, 0.22);
  color: #d6efdf;
}

.student-run-body {
  background: #ffffff;
  border-radius: 0;
  margin-top: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.student-run-exercise {
  margin: 0;
  color: #14241d;
  font-size: 2rem;
  font-weight: 700;
  white-space: pre-line;
}

.student-run-exercise-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.student-run-help-trigger {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(20, 36, 29, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: #2f4138;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.student-run-clock {
  display: block;
  order: 1;
  margin-top: 16px;
  font-size: 4rem;
  line-height: 1;
  color: #101e18;
}

.student-run-counter {
  display: block;
  order: 3;
  margin-top: 10px;
  color: #597265;
  font-size: 0.94rem;
}

.student-run-busy-toggle {
  display: inline-flex;
  order: 2;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(238, 242, 240, 0.92);
  border: 1px solid rgba(20, 36, 29, 0.1);
  color: #20342b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
}

.student-run-busy-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #16a34a;
  cursor: pointer;
  flex: 0 0 auto;
}

.student-run-busy-toggle span {
  line-height: 1;
  white-space: nowrap;
}

.student-run-controls {
  order: 4;
  margin-top: 16px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.student-run-controls button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: #eef2f0;
  color: #14241d;
  font-size: 1.44rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.student-run-controls button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.student-run-controls .student-run-pause {
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
}

.student-run-controls .student-run-pause.is-paused {
  background: #d8f4e3;
  color: #14984a;
}

.student-run-help-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 18px;
}

.student-run-help-modal[hidden] {
  display: none !important;
}

.student-run-help-modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 12, 9, 0.72);
}

.student-run-help-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 36px));
  border-radius: 18px;
  border: 1px solid rgba(11, 39, 27, 0.16);
  background: linear-gradient(180deg, #f9fcfa 0%, #eef4f1 100%);
  box-shadow: 0 20px 44px rgba(5, 22, 14, 0.38);
  padding: 16px 16px 14px;
  color: #1a2d24;
}

.student-run-help-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.student-run-help-modal-head h5 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #14241d;
}

.student-run-help-modal-close {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(11, 39, 27, 0.18);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.85);
  color: #21342b;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.student-run-help-modal p {
  margin: 12px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #334a3f;
  white-space: pre-line;
}

.student-exercise-detail-view {
  border-radius: 22px;
  background: #f5f7f6;
  border: 1px solid rgba(11, 39, 27, 0.1);
  box-shadow: 0 14px 30px rgba(8, 35, 20, 0.12);
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.student-exercise-detail-head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 12px 8px;
}

.student-exercise-detail-head .student-active-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  z-index: 1;
}

.student-exercise-detail-head .student-active-back svg {
  stroke: #159848;
}

.student-exercise-detail-head h4 {
  margin: 0;
  color: #17261f;
  width: 100%;
  padding: 0 52px;
  font-size: clamp(1.12rem, 4.6vw, 1.56rem);
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  display: block;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.student-exercise-detail-media {
  margin: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(11, 39, 27, 0.08);
  min-height: 230px;
  background:
    radial-gradient(80% 80% at 50% 20%, rgba(28, 191, 92, 0.12), transparent 70%),
    linear-gradient(180deg, #fcfffd 0%, #f0f4f2 100%);
  display: grid;
  place-items: center;
}

.student-exercise-detail-figure {
  position: relative;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.student-exercise-detail-figure iframe,
.student-exercise-detail-figure video,
.student-exercise-detail-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: none;
  pointer-events: none;
}

.student-exercise-detail-figure iframe.is-visible,
.student-exercise-detail-figure video.is-visible,
.student-exercise-detail-figure img.is-visible {
  display: block;
}

.student-exercise-detail-fallback {
  font-size: clamp(4.6rem, 10vw, 7.4rem);
  line-height: 1;
  color: #1f4733;
}

.student-exercise-detail-tabs {
  margin: 10px 12px 0;
  background: #e7eaed;
  border-radius: 999px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.student-exercise-detail-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #61786c;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.student-exercise-detail-tabs button.is-active {
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
}

.student-exercise-detail-duration {
  margin: 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.student-exercise-detail-duration strong {
  color: #128f43;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.student-exercise-duration-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-exercise-duration-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(11, 39, 27, 0.14);
  border-radius: 10px;
  background: #f0f2f4;
  color: #273339;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.student-exercise-duration-controls span {
  min-width: 76px;
  text-align: center;
  font-size: 1.96rem;
  font-weight: 800;
  color: #111d17;
  line-height: 1;
}

.student-exercise-detail-instructions {
  margin: 12px 12px 0;
}

.student-exercise-detail-instructions h5 {
  margin: 0 0 8px;
  color: #128f43;
  font-size: 1.04rem;
  text-transform: uppercase;
}

.student-exercise-detail-instructions p {
  margin: 0;
  color: #23362c;
  line-height: 1.45;
  font-size: 1.02rem;
  white-space: pre-line;
}

.student-exercise-detail-footer {
  margin-top: 12px;
  padding: 0 12px 14px;
  display: grid;
  gap: 10px;
}

.student-exercise-detail-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.student-exercise-detail-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #dff1e6;
  color: #139a4a;
  font-weight: 800;
  cursor: pointer;
}

.student-exercise-detail-stepper button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-exercise-detail-stepper span {
  min-width: 52px;
  text-align: center;
  font-weight: 700;
  color: #1f2d38;
}

.student-exercise-detail-close {
  min-height: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  box-shadow: 0 10px 20px rgba(18, 169, 75, 0.32);
}

.student-all-workouts-card {
  margin-top: 14px;
  margin-bottom: 12px;
}

.student-all-workouts-card h5 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: #14261f;
}

.student-all-workouts-list {
  display: grid;
  gap: 8px;
}

.student-all-workout-item {
  width: 100%;
  border: 1px solid rgba(12, 30, 22, 0.13);
  border-radius: 16px;
  background: #ffffff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(8, 35, 20, 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.student-all-workout-item:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 169, 75, 0.4);
}

.student-all-workout-item.is-active {
  border-color: rgba(18, 169, 75, 0.72);
}

.student-all-workout-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #0f1e36;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.student-all-workout-copy {
  display: grid;
  gap: 2px;
}

.student-all-workout-copy strong {
  color: #11231c;
  font-size: 1rem;
  line-height: 1.1;
}

.student-all-workout-copy small {
  color: #556f62;
  font-size: 0.86rem;
  line-height: 1.15;
}

.student-all-workout-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #94a6bc;
  stroke-width: 2.3;
  fill: none;
}

.student-dashboard-grid,
.student-dashboard-secondary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.student-dashboard-grid {
  align-items: start;
  gap: 5px;
}

.student-app-panel[data-student-app-panel="dashboard"] .student-dashboard-grid {
  column-gap: 14px;
  row-gap: 16px;
  align-items: stretch;
}

.student-upcoming-card {
  grid-column: 1 / -1;
  border-radius: 18px;
  padding: 10px 12px !important;
}

.student-upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.student-upcoming-head h5 {
  margin: 0;
  color: #162f24;
  font-size: 1.02rem;
  text-transform: none;
  letter-spacing: 0;
}

.student-upcoming-viewall {
  border: 0;
  background: transparent;
  color: #1aa957;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.student-upcoming-list {
  display: grid;
  gap: 8px;
}

.student-upcoming-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(12, 30, 22, 0.1);
  border-radius: 14px;
  padding: 8px 10px;
  background: #f9fbfa;
}

.student-upcoming-item.is-today {
  border-color: rgba(18, 169, 75, 0.42);
}

.student-upcoming-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #1ab35a;
  display: grid;
  place-items: center;
}

.student-upcoming-item:not(.is-today) .student-upcoming-icon {
  background: #cfd7e2;
}

.student-upcoming-icon svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2.2;
  fill: none;
}

.student-upcoming-calendar rect {
  animation: student-calendar-frame 1.2s ease-in-out infinite;
}

.student-upcoming-calendar text {
  fill: #ffffff;
  stroke: none;
  font-size: 8px;
  font-weight: 800;
  dominant-baseline: middle;
  transform-origin: center;
  animation: student-calendar-number 1.4s ease-in-out infinite;
}

@keyframes student-calendar-frame {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes student-calendar-number {
  0% {
    opacity: 0;
    transform: scale(0.35) translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.student-upcoming-copy {
  display: grid;
  gap: 2px;
  align-content: center;
}

.student-upcoming-copy strong {
  display: block;
  color: #142820;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-upcoming-copy small {
  display: block;
  color: #5b7569;
  font-size: 0.7rem;
  line-height: 1;
  margin-top: 0;
}

.student-upcoming-when {
  color: #22aa5f;
  font-weight: 700;
  font-size: 0.72rem;
  min-width: 56px;
  text-align: center;
  justify-self: center;
}

.student-metric-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 8px 10px 4px;
  box-sizing: border-box;
}

.student-app-panel[data-student-app-panel="dashboard"] .student-metric-card {
  min-height: 0;
  padding: 8px 10px 3px;
}

.student-app-panel[data-student-app-panel="dashboard"] .student-app-card {
  border-radius: 18px;
  border-color: rgba(12, 30, 22, 0.08);
  box-shadow: 0 8px 24px rgba(8, 35, 20, 0.07);
  padding: 14px;
  animation: student-elevate-in 0.4s ease both;
}

.student-metric-card:nth-child(odd) {
  background: #ffffff;
}

.student-metric-card:nth-child(even) {
  background: #f7faf8;
}

.student-card-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  justify-content: center;
}

.student-card-heading svg {
  width: 14px;
  height: 14px;
  stroke: #6f8d7e;
  stroke-width: 2.1;
  fill: none;
}

.student-next-icon {
  width: 15px;
  height: 15px;
}

.student-current-icon {
  width: 21px;
  height: 21px;
  transform-origin: center;
  animation: student-current-weight-pulse 1.9s ease-in-out infinite;
}

.student-card-heading-current {
  width: 100%;
  justify-content: flex-start;
}

@keyframes student-current-weight-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-1px) scale(1.08);
    opacity: 1;
  }
}

.student-next-icon-hand {
  transform-origin: 12px 12px;
  animation: student-next-clock-spin 2.6s linear infinite;
}

@keyframes student-next-clock-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.student-status-icon {
  width: 16px;
  height: 16px;
}

.student-status-icon path {
  stroke-dasharray: 32;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s ease, transform 0.45s ease;
  transform-origin: center;
  animation: student-status-scan 2.2s ease-in-out infinite;
}

.student-metric-card:hover .student-status-icon path {
  stroke-dashoffset: 4;
  transform: scale(0.98);
}

@keyframes student-status-scan {
  0% {
    stroke-dashoffset: 26;
    opacity: 0.75;
    transform: scale(0.98);
  }
  45% {
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1);
  }
  100% {
    stroke-dashoffset: 26;
    opacity: 0.75;
    transform: scale(0.98);
  }
}

.student-metric-card h5,
.student-dashboard-secondary-grid .student-app-card h5 {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c8377;
  margin-bottom: 5px;
}

.student-dashboard-secondary-grid .student-app-card:first-child h5 {
  transform: translateY(5px);
}

.student-metric-card h5 {
  min-height: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.student-metric-card .student-card-heading > span {
  white-space: nowrap;
}

.student-metric-card p {
  font-size: 0.98rem;
  font-weight: 800;
  color: #13271f;
  margin: 0 0 1px;
}

.student-metric-card .workout-name-line {
  white-space: nowrap;
}

.student-dashboard-secondary-grid {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.student-dashboard-secondary-grid .student-app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.student-dashboard-secondary-grid .student-app-card p,
.student-dashboard-secondary-grid .student-app-card small {
  text-align: center;
}

.student-dashboard-secondary-grid .student-goal-track {
  width: min(100%, 260px);
  margin-left: auto;
  margin-right: auto;
}

.student-status-level {
  display: block;
  margin-top: 2px;
  color: #557164;
  font-size: 0.82rem;
}

.student-card-completion .student-completion-percent {
  font-size: 1.08rem;
  color: #0f8f46;
  margin-bottom: 2px;
}

.student-completion-text {
  display: block;
  color: #557164;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.2;
}

[data-student-goal-percent] {
  font-size: 0.76rem;
  font-weight: 500;
  color: #5b7569;
}

.student-goal-percent-number {
  font-weight: 700;
  color: #0f8f46;
}

.student-completion-track {
  margin-top: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 39, 27, 0.09);
  overflow: hidden;
}

.student-card-completion {
  padding-bottom: 2px !important;
}

.student-completion-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12a94b, #36cc75);
  transition: width 0.6s ease;
}

@keyframes student-elevate-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.student-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.student-week-day {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(7, 20, 13, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #3d5b4c;
  background: #f6faf8;
}

.student-week-day.is-done {
  border-color: rgba(18, 169, 75, 0.4);
  color: #0d7e3f;
  background: rgba(18, 169, 75, 0.14);
}

.student-goal-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 20, 13, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.student-goal-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #12a94b, #29c467);
  transition: width 0.7s ease;
}

.student-performance-score {
  font-size: 1.8rem;
  color: #0f8f46;
}

.student-panel-head {
  margin-bottom: 12px;
}

.student-panel-head h4 {
  color: #07140d;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.student-panel-head p {
  color: #355546;
}

.student-app-panel[data-student-app-panel="biblioteca"] .student-panel-head {
  text-align: center;
  position: relative;
  padding-left: 38px;
  padding-right: 38px;
}

.student-app-panel[data-student-app-panel="biblioteca"] {
  position: relative;
  min-height: 100%;
}

.student-app-panel[data-student-app-panel="biblioteca"] .student-panel-head h4 {
  text-transform: uppercase;
  margin-top: 12px;
}

.student-app-panel[data-student-app-panel="treinos"] .student-panel-head {
  text-align: center;
  position: relative;
  padding-left: 38px;
  padding-right: 38px;
}

.student-app-panel[data-student-app-panel="treinos"] .student-panel-head h4 {
  text-transform: uppercase;
}

.student-app-panel[data-student-app-panel="treinos"] .student-panel-head p {
  font-size: 0.88rem;
}

.student-workout-progress-num {
  color: #109b45;
  font-weight: 800;
}

.student-workouts-back {
  position: absolute;
  left: 0;
  top: 44%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 184, 87, 0.78);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.student-workouts-back svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-library-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.student-library-manage {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  justify-items: center;
}

.student-library-manage[hidden],
.student-library-manage-card[hidden] {
  display: none !important;
}

.student-library-manage-feedback {
  margin: 0;
  text-align: center;
}

.trainer-required-chip {
  font-style: normal;
}

.student-library-manage-card {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(12, 30, 22, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  box-shadow: 0 10px 24px rgba(8, 35, 20, 0.08);
  overflow: hidden;
}

.trainer-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  padding-right: 44px;
}

.trainer-library-head-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.trainer-library-head-main > div {
  text-align: center;
  min-width: 0;
  width: 100%;
}

.trainer-library-head-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 35, 26, 0.08);
  color: #122c21;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trainer-library-head-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-library-head h5 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.06;
  color: #11271d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-library-head p {
  margin: 4px 0 0;
  color: #4b5d76;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-library-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(12, 30, 22, 0.24);
  border-radius: 10px;
  background: #ffffff;
  color: #2f4b3d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 4px;
  top: 0;
}

.trainer-library-close-btn span {
  font-size: 1.3rem;
  line-height: 1;
}

.trainer-library-form--model {
  display: grid;
  gap: 12px;
}

.trainer-library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.trainer-library-grid > * {
  min-width: 0;
}

.trainer-library-grid label > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trainer-library-form--model .trainer-library-grid label > span {
  color: #132f23;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

.trainer-library-form--model .trainer-library-grid input:not([type="file"]),
.trainer-library-form--model .trainer-library-grid textarea,
.trainer-library-form--model .trainer-library-grid select {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(95, 109, 136, 0.24);
  background: #ffffff;
  color: #223139;
  font-size: 1.02rem;
  padding: 10px 14px;
}

.trainer-library-grid textarea {
  min-height: 96px;
}

.trainer-library-defaults h6 {
  margin: 0;
  color: #132f23;
  font-size: 1.03rem;
  font-weight: 700;
}

.trainer-library-metrics {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.trainer-library-metrics .trainer-metric-field {
  gap: 2px;
  min-width: 0;
}

.trainer-library-metrics .trainer-metric-field span {
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-library-metrics .trainer-metric-field input {
  text-align: center;
  min-width: 0;
}

.trainer-library-field-hint {
  margin: -2px 0 0;
  color: #4a5f71;
  font-size: 0.82rem;
  line-height: 1.25;
}

.trainer-library-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trainer-library-media-drop {
  display: grid;
  gap: 8px;
}

.trainer-library-media-title {
  color: #132f23;
  font-size: 0.96rem;
  font-weight: 700;
}

.trainer-library-media-zone {
  position: relative;
  border: 1px dashed rgba(95, 109, 136, 0.4);
  border-radius: 14px;
  min-height: 154px;
  background: rgba(247, 251, 249, 0.72);
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  text-align: center;
  padding: 14px 10px;
}

.trainer-library-media-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.trainer-library-media-zone:focus-within {
  border-color: rgba(18, 169, 75, 0.75);
  box-shadow: 0 0 0 3px rgba(18, 169, 75, 0.15);
}

.trainer-library-media-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background: #0d1612;
}

.trainer-library-media-preview[hidden] {
  display: none !important;
}

.trainer-library-media-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(15, 35, 26, 0.12);
  color: #122c21;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  margin: 0 auto;
}

.trainer-library-media-icon,
.trainer-library-media-zone strong,
.trainer-library-media-zone small {
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.trainer-library-media-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-library-media-zone strong {
  color: #10251c;
  font-size: 0.95rem;
  font-weight: 700;
}

.trainer-library-media-zone small {
  color: #4a5f71;
  font-size: 0.85rem;
}

.trainer-library-media-zone.has-preview .trainer-library-media-icon,
.trainer-library-media-zone.has-preview strong {
  opacity: 0;
  transform: translateY(5px);
}

.trainer-library-media-zone.has-preview small {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 9px;
  color: #ecf6f0;
  background: rgba(7, 13, 10, 0.72);
  border: 1px solid rgba(145, 187, 165, 0.35);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-library-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.trainer-library-cancel-btn {
  min-height: 44px;
  min-width: 140px;
  border-radius: 12px;
  border: 1px solid rgba(95, 109, 136, 0.35);
  background: #ffffff;
  color: #16222d;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0 16px;
  cursor: pointer;
}

.trainer-library-submit-btn {
  width: 250px;
  max-width: 100%;
}

@media (max-width: 960px) {
  .trainer-library-grid {
    grid-template-columns: 1fr;
  }

  .trainer-library-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trainer-library-media-grid {
    grid-template-columns: 1fr;
  }

  .trainer-library-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .trainer-library-head h5 {
    font-size: clamp(1.18rem, 5.4vw, 1.5rem);
  }

  .trainer-library-head p {
    font-size: 0.88rem;
  }

  .trainer-library-metrics {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
  }

  .trainer-library-cancel-btn,
  .trainer-library-submit-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .student-library-manage-card {
    border-radius: 14px;
    padding: 12px 10px;
  }

  .trainer-library-head {
    gap: 8px;
    margin-bottom: 10px;
    padding-right: 38px;
  }

  .trainer-library-head h5 {
    font-size: 1.18rem;
  }

  .trainer-library-head p {
    font-size: 0.83rem;
  }

  .trainer-library-close-btn {
    width: 26px;
    height: 26px;
    right: 2px;
    top: 1px;
    border-radius: 8px;
    padding: 0;
  }

  .trainer-library-close-btn span {
    font-size: 1rem;
  }

  .trainer-library-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .trainer-library-metrics .trainer-metric-field span {
    font-size: 0.7rem;
  }

  .trainer-library-metrics .trainer-metric-field input {
    min-height: 40px;
    padding: 8px 6px;
  }
}

.student-library-search-wrap input {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(7, 20, 13, 0.12);
  background: #ffffff;
  padding: 0 14px;
  color: #07140d;
  font-family: inherit;
}

.student-library-search-wrap input:focus {
  outline: none;
  border-color: rgba(18, 169, 75, 0.62);
  box-shadow: 0 0 0 3px rgba(18, 169, 75, 0.16);
}

.student-library-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
}

.student-filter-btn {
  min-width: 0;
  flex: 1 1 0;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(27, 180, 91, 0.52);
  background: linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
  color: #109c46;
  font-weight: 700;
  font-size: 0.64rem;
  line-height: 1.08;
  text-align: center;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(16, 156, 70, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.student-filter-btn[data-student-library-filter="core"] {
  flex: 0.9 1 0;
}

.student-filter-btn[data-student-library-filter="todos"] {
  flex: 0.9 1 0;
}

.student-group-guide-sheet,
.student-group-detail-sheet {
  position: absolute;
  inset: 0;
  z-index: 70;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f5fcf8 0%, #eaf4ef 100%);
  color: #12271c;
  padding: 12px 12px calc(112px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom));
  overscroll-behavior-y: auto;
}

.student-group-guide-sheet {
  display: flex;
  flex-direction: column;
}

.student-app-shell.is-library-guide-mode .student-app-main {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.student-group-guide-sheet[hidden],
.student-group-detail-sheet[hidden],
.student-group-create-sheet[hidden] {
  display: none !important;
}

.student-group-guide-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.student-group-guide-title-wrap {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.student-group-guide-sheet .student-group-guide-title-wrap {
  flex: 1;
  text-align: center;
  margin-right: 34px;
}

.student-group-detail-sheet .student-group-guide-top {
  position: relative;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
  padding-top: 8px;
}

.student-group-detail-sheet [data-group-detail-title],
.student-group-detail-sheet [data-group-detail-subtitle],
.student-group-detail-sheet .student-group-detail-muscle {
  text-align: center;
}

.student-group-detail-sheet [data-group-detail-back] {
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid #16b857;
  border-radius: 999px;
  background: transparent;
  color: #16b857;
  box-shadow: none;
  margin-top: 0;
  flex-shrink: 0;
}

.student-group-detail-sheet [data-group-detail-back]:hover {
  border-color: #16b857;
  box-shadow: 0 0 0 3px rgba(22, 184, 87, 0.18);
  transform: translateY(-1px);
}

.student-group-detail-sheet [data-group-detail-back]:active {
  transform: scale(0.96);
}

.student-group-detail-sheet [data-group-detail-back] svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  animation: student-chevron-left-loop 1.7s ease-in-out infinite;
}

body.theme-dark .student-group-detail-sheet [data-group-detail-back] {
  background: transparent;
  color: #16b857;
  border-color: #16b857;
}

.student-group-guide-back {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(16, 156, 70, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
  color: #109c46;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.student-group-guide-back:hover {
  border-color: rgba(16, 156, 70, 0.55);
  box-shadow: 0 5px 12px rgba(16, 156, 70, 0.16);
}

.student-group-guide-back:active {
  transform: scale(0.96);
}

.student-group-guide-back-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: student-chevron-left-loop 1.7s ease-in-out infinite;
}

.student-group-guide-top h5 {
  font-size: 1.32rem;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-group-detail-sheet [data-group-detail-title] {
  width: 100%;
  padding: 8px 42px 0;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.12;
  text-align: center;
}

.student-group-guide-title-wrap p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(23, 55, 40, 0.68);
}

.student-group-guide-search input {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(18, 39, 28, 0.16);
  background: #ffffff;
  color: #143728;
  padding: 0 14px;
  font-family: inherit;
}

.student-group-guide-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 6px;
}

@media (min-width: 980px) {
  .student-group-guide-grid {
    grid-template-columns: 1fr;
  }
}

.student-group-guide-card {
  border: 1px solid rgba(18, 39, 28, 0.12);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 96px;
}

.student-group-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(9, 33, 22, 0.12);
  border-color: rgba(22, 159, 76, 0.42);
}

.student-group-guide-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #effaf3, #dff2e6);
  box-shadow: inset 0 0 0 1px rgba(18, 39, 28, 0.07);
  flex-shrink: 0;
}

.student-group-guide-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.student-group-guide-card-thumb img.student-group-guide-card-group-image {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.student-group-guide-card-thumb-fallback {
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(1px);
}

.student-group-guide-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.student-group-guide-card-copy strong {
  display: block;
  color: #173728;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.24;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-group-guide-card-copy small {
  font-size: 0.86rem;
  color: rgba(23, 55, 40, 0.7);
}

.student-group-guide-card[data-group-card="peito"] .student-group-guide-card-thumb {
  background: linear-gradient(145deg, #eef9f2, #dff2e7);
}

.student-group-guide-card[data-group-card="costas"] .student-group-guide-card-thumb {
  background: linear-gradient(145deg, #eaf7ef, #d9eedf);
}

.student-group-guide-card[data-group-card="ombros"] .student-group-guide-card-thumb {
  background: linear-gradient(145deg, #ebf8f0, #dbefe2);
}

.student-group-guide-card[data-group-card="biceps"] .student-group-guide-card-thumb,
.student-group-guide-card[data-group-card="triceps"] .student-group-guide-card-thumb,
.student-group-guide-card[data-group-card="antebraco"] .student-group-guide-card-thumb {
  background: linear-gradient(145deg, #e7f6ed, #d5ecdd);
}

.student-group-guide-card[data-group-card="abdomen"] .student-group-guide-card-thumb,
.student-group-guide-card[data-group-card="lombar"] .student-group-guide-card-thumb {
  background: linear-gradient(145deg, #e9f8ee, #d8ecdf);
}

.student-group-guide-card[data-group-card="gluteos"] .student-group-guide-card-thumb,
.student-group-guide-card[data-group-card="quadriceps"] .student-group-guide-card-thumb,
.student-group-guide-card[data-group-card="posterior"] .student-group-guide-card-thumb,
.student-group-guide-card[data-group-card="adutores"] .student-group-guide-card-thumb,
.student-group-guide-card[data-group-card="abdutores"] .student-group-guide-card-thumb,
.student-group-guide-card[data-group-card="panturrilhas"] .student-group-guide-card-thumb {
  background: linear-gradient(145deg, #e6f6ec, #d5ebdc);
}

body.theme-dark .student-group-guide-card[data-group-card] .student-group-guide-card-thumb {
  background: #223129;
}

.student-group-detail-muscle {
  color: rgba(23, 55, 40, 0.74);
  margin: 0 0 10px;
}

.student-group-detail-media {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(18, 39, 28, 0.14);
  min-height: 220px;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  touch-action: pan-y;
}

.student-group-detail-media iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
  display: none;
  touch-action: pan-y;
}

.student-group-detail-media video,
.student-group-detail-media img {
  width: 100%;
  min-height: 220px;
  border: 0;
  display: none;
  object-fit: cover;
  touch-action: pan-y;
}

.student-group-detail-media video {
  pointer-events: none;
}

.student-group-detail-media video.is-visible,
.student-group-detail-media img.is-visible,
.student-group-detail-media iframe.is-visible {
  display: block;
}

.student-group-detail-no-video {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(23, 55, 40, 0.72);
  font-weight: 600;
  font-size: 0.92rem;
}

.student-group-detail-media.is-no-video .student-group-detail-no-video {
  display: grid;
}

.student-group-detail-description {
  margin: 10px auto 0;
  color: #173728;
  max-width: 28ch;
  font-size: 0.88rem;
  line-height: 1.32;
  text-align: center;
}

.student-group-detail-tabs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background: #f2f4f3;
  border: 1px solid rgba(18, 39, 28, 0.12);
  border-radius: 999px;
  padding: 4px;
}

.student-group-detail-tabs button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 55, 40, 0.8);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.student-group-detail-tabs button.is-active {
  background: #ffffff;
  color: #102e1f;
  box-shadow: 0 4px 10px rgba(7, 20, 13, 0.08);
}

.student-group-detail-panel {
  margin-top: 12px;
  display: none;
  gap: 10px;
}

.student-group-detail-panel.is-active {
  display: grid;
}

.student-group-detail-panel[hidden] {
  display: none !important;
}

.student-group-detail-duration-box {
  border: 1px solid rgba(18, 39, 28, 0.14);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-group-detail-duration-box strong {
  font-size: 0.86rem;
  color: #102e1f;
}

.student-group-detail-duration-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.student-group-detail-duration-controls button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(18, 39, 28, 0.16);
  background: #f7faf8;
  color: #173728;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.student-group-detail-duration-controls span {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #081811;
}

.student-group-detail-play-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(180deg, #1cbf5c 0%, #109b45 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.student-group-detail-info-card {
  border: 1px solid rgba(18, 39, 28, 0.14);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.student-group-detail-info-card h6 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #081d14;
}

.student-group-detail-info-card ul,
.student-group-detail-info-card ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #162f24;
}

.student-group-detail-intensity-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.student-group-detail-intensity-bars span {
  height: 6px;
  border-radius: 999px;
  background: #d9dde0;
}

.student-group-detail-intensity-bars span.is-active {
  background: #1cbf5c;
}

.student-group-detail-info-card.is-tip {
  border-color: rgba(28, 191, 92, 0.36);
  background: #effaf3;
}

.student-group-detail-info-card.is-tip h6 {
  color: #0f8f43;
  text-align: center;
  white-space: nowrap;
}

[data-group-detail-image].is-pulse {
  animation: group-detail-image-pulse 0.55s ease;
}

@keyframes group-detail-image-pulse {
  0% {
    transform: scale(1);
    filter: saturate(100%);
  }
  50% {
    transform: scale(1.02);
    filter: saturate(120%);
  }
  100% {
    transform: scale(1);
    filter: saturate(100%);
  }
}

.student-group-create-btn {
  position: static;
  align-self: flex-end;
  margin-top: 10px;
  margin-bottom: 4px;
  width: auto;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(16, 156, 70, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  z-index: 1;
}

.student-group-create-btn-top {
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 30px;
  font-size: 0.68rem;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid #1bb45b;
  background: linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
  color: #109c46;
  box-shadow: 0 5px 12px rgba(16, 156, 70, 0.14);
  white-space: nowrap;
  flex-shrink: 0;
}

.student-group-create-sheet {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: #eef2f0;
  color: #12271c;
  padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.student-group-create-image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px dashed rgba(16, 156, 70, 0.42);
  background: rgba(16, 156, 70, 0.08);
  color: #109c46;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  margin: 6px auto 14px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.student-group-create-image.has-preview {
  border-style: solid;
}

.student-group-create-image.has-preview > span {
  display: none;
}

.student-group-create-file {
  display: none;
}

.student-group-create-file-name {
  margin-top: -8px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.74rem;
  color: #2f5948;
}

.student-group-create-form {
  display: grid;
  gap: 10px;
}

.student-group-create-form input,
.student-group-create-form textarea,
.student-group-create-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(18, 39, 28, 0.2);
  background: #ffffff;
  color: #153628;
  font-family: inherit;
  padding: 12px;
}

.student-group-create-form textarea {
  min-height: 76px;
  resize: vertical;
}

.student-group-create-label {
  margin-top: 4px;
  font-weight: 700;
  color: #163a2a;
}

.student-group-create-save {
  margin-top: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.student-filter-btn.is-active {
  border-color: #1bb45b;
  background: linear-gradient(90deg, #109c46 0%, #19b856 45%, #27cf70 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 156, 70, 0.2);
}

.student-exercise-modal-card {
  border-radius: 20px;
  border-color: rgba(7, 20, 13, 0.12);
  background: #ffffff;
}

.student-exercise-close {
  border-color: rgba(7, 20, 13, 0.16);
  background: #ffffff;
  color: #0a2015;
}

.student-exercise-modal-card h4 {
  color: #07140d;
}

.student-exercise-modal-card p,
.student-exercise-tips li {
  color: #355546;
}

.student-app-bottom-nav {
  --nav-cols: 4;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  background: #ffffff;
  border-top: 1px solid rgba(7, 20, 13, 0.12);
  box-shadow: 0 -8px 24px rgba(8, 35, 20, 0.12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(var(--nav-cols), minmax(0, 1fr));
  gap: 8px;
}

.student-app-shell.is-trainer-mode .student-app-bottom-nav {
  --nav-cols: 4;
}

.student-app-shell.is-admin-geral-mode .student-app-bottom-nav {
  --nav-cols: 4;
}

.student-app-shell.is-admin-geral-mode .student-app-main {
  min-height: 0;
}

.student-app-nav-btn {
  min-height: 60px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #486457;
  font-family: inherit;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.student-app-nav-btn span:last-child {
  font-size: 0.82rem;
  margin-top: 0;
  line-height: 1.05;
}

.student-app-nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-app-nav-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-app-nav-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.student-app-nav-btn.is-active {
  border-color: transparent;
  background: transparent;
  color: #0d7e3f;
}


/* ==========================================================================
   6) Hero principal
   ========================================================================== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: url("https://ugcfxksbzbqzdoxjneys.supabase.co/storage/v1/object/public/media/repo-media/imagens/aba-de-img/373e1ad8bc-baanner-da-aba-de-inicio-1.png") center/cover no-repeat;
  overflow: visible;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(230, 255, 241, 0.06));
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(28, 191, 92, 0.35), transparent 70%),
    radial-gradient(120% 70% at 50% 100%, rgba(28, 191, 92, 0.35), transparent 70%);
  opacity: 0.6;
  filter: blur(10px);
  z-index: -1;
}

.hero-content {
  position: relative;
  padding: 80px 0;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.2vw + 1rem, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 16px 0;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-text p {
  max-width: 680px;
  color: var(--white);
}

.hero-logo-mobile {
  display: none;
}

.mobile-only {
  display: none;
}

.nowrap {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin: 22px 0 30px;
  flex-wrap: wrap;
}

.hero-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.hero-highlight > div {
  min-width: 120px;
}

.hero-highlight strong {
  display: block;
  font-size: 20px;
  color: var(--white);
  line-height: 1.05;
}

.hero-highlight span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--white);
  line-height: 1.1;
}


/* ==========================================================================
   7) Estrutura base de secao
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section.alt {
  background: linear-gradient(160deg, #f4fff7 0%, #ffffff 70%);
}


/* ==========================================================================
   8) Secao de horario e status dinamico
   ========================================================================== */
.schedule-section {
  background: linear-gradient(135deg, #18b256 0%, #129a48 100%);
  color: var(--white);
  position: relative;
  padding: 36px 0;
  box-shadow: 0 14px 24px rgba(7, 69, 36, 0.38);
}

.schedule-section::before,
.schedule-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.schedule-section::before {
  top: 0;
}

.schedule-section::after {
  bottom: 0;
}

.schedule-section .container {
  display: grid;
  gap: 14px;
  padding-bottom: 12px;
}

.schedule-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
}

.schedule-header h2 {
  font-size: clamp(1.5rem, 2vw + 0.9rem, 2.3rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
  width: 100%;
}

.schedule-icon {
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.schedule-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
}

.schedule-status-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max-content;
  display: flex;
  justify-content: center;
  margin-top: 0;
  z-index: 3;
  overflow: hidden;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  clip-path: inset(100% 0 0 0);
  transition: opacity 0.5s ease, transform 0.5s ease, clip-path 0.5s ease;
  box-shadow: none;
}

.status-chip.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0 0);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-chip.is-open {
  color: #0f9f46;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

.status-chip.is-open .status-dot {
  background: #0f9f46;
}

.status-chip.is-closed {
  color: #d02f46;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

.status-chip.is-closed .status-dot {
  background: #d02f46;
}

.schedule-grid {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.schedule-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  width: 100%;
  max-width: 190px;
  padding: 7px 9px;
  box-shadow: none;
  text-align: center;
}

.schedule-day {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.schedule-day::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.schedule-time {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1px;
  text-align: center;
  font-size: 0.84rem;
}


/* ==========================================================================
   9) Cabecalhos padrao de secao
   ========================================================================== */
.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 2.4vw + 1rem, 2.6rem);
  font-weight: 800;
}

.section-header p {
  color: var(--gray);
  max-width: 620px;
}


/* ==========================================================================
   10) Modalidades
   ========================================================================== */
#modalidades .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#modalidades .section-header h2 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
}

#modalidades .section-header p {
  margin-left: auto;
  margin-right: auto;
}

#modalidades .card {
  text-align: center;
  box-shadow: 0 12px 24px rgba(18, 169, 75, 0.14);
  border-color: rgba(18, 169, 75, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#modalidades .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 34px rgba(18, 169, 75, 0.24);
  border-color: rgba(18, 169, 75, 0.34);
}

#modalidades .card p {
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   11) Blocos reutilizaveis (cards, grids e split)
   ========================================================================== */
.split {
  display: grid;
  gap: 26px;
}

.pill {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-weight: 700;
  margin-top: 18px;
}

.highlight-card,
.card,
.price-card,
.trainer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.highlight-card h3 {
  margin-bottom: 10px;
}

.highlight-card ul {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  color: var(--gray);
  list-style: none;
}

.highlight-card li::before {
  content: "•";
  color: var(--green-strong);
  margin-right: 8px;
}

.grid-4,
.grid-3 {
  display: grid;
  gap: 20px;
}

.card h3 {
  margin-top: 14px;
  font-weight: 700;
}

.card p {
  color: var(--gray);
}

.card-image {
  height: 160px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(18, 169, 75, 0.25));
}

.image-1 {
  background-image: url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=900&q=80");
}

.image-2 {
  background-image: url("https://ugcfxksbzbqzdoxjneys.supabase.co/storage/v1/object/public/media/repo-media/imagens/aba-de-img/d9a7cfbd46-treino-funcional.png");
}

.image-3 {
  background-image: url("https://ugcfxksbzbqzdoxjneys.supabase.co/storage/v1/object/public/media/repo-media/imagens/aba-de-img/cde3b3ef44-cardio.jpg");
}

.image-4 {
  background-image: url("https://images.unsplash.com/photo-1558611848-73f7eb4001a1?auto=format&fit=crop&w=900&q=80");
}


/* ==========================================================================
   12) Avaliacao fisica + personal
   ========================================================================== */
.check-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-weight: 600;
}

.avaliacao-title-image {
  width: min(640px, 100%);
  height: auto;
  display: block;
}

.avaliacao-title-image-dark {
  display: none;
}

body.theme-dark .avaliacao-title-image-light {
  display: none;
}

body.theme-dark .avaliacao-title-image-dark {
  display: block;
}

.check-list span::before {
  content: "\2713";
  color: var(--green-strong);
  margin-right: 8px;
}

.trainer-card {
  text-align: center;
}

.trainer-card h3 {
  margin: 0 0 2px;
  line-height: 1.1;
}

.trainer-card p {
  margin: 0;
  line-height: 1.25;
}

.trainer-card .btn {
  margin-top: 12px;
}

.trainer-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: url("https://ugcfxksbzbqzdoxjneys.supabase.co/storage/v1/object/public/media/repo-media/imagens/aba-de-img/3da07a8f83-foto-do-personal.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.price-card {
  display: grid;
  gap: 12px;
}

.price {
  font-size: 32px;
  font-weight: 800;
}

.price span {
  font-size: 14px;
  color: var(--gray);
  margin-left: 6px;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--gray);
}

.price-card li::before {
  content: "•";
  color: var(--green-strong);
  margin-right: 8px;
}

.price-card.featured {
  border: 2px solid rgba(18, 169, 75, 0.25);
  position: relative;
}

.tag {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--green);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}


/* ==========================================================================
   13) Planos
   ========================================================================== */
#planos.plans-section {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #11823e 0%, #0d6f35 100%);
  position: relative;
  padding: 46px 0 52px;
}

#planos .plans-header {
  text-align: center;
  margin-bottom: 24px;
}

#planos .plans-header h2 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: clamp(2rem, 2.8vw + 1rem, 3.3rem);
  letter-spacing: 0.8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

#planos .plans-header p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.12rem;
}

#planos .plans-stage {
  position: relative;
  padding: 8px 0 18px;
}

#planos .plans-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(920px, 100%);
  height: 72%;
  background: #0b4f27;
  border-radius: 18px;
  z-index: 0;
}

#planos .plans-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-content: center;
}

#planos .plan-card {
  background: #f7f9f7;
  border: 1px solid rgba(18, 169, 75, 0.28);
  border-top: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  padding: 0 22px 18px;
  width: min(100%, 360px);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

#planos .plan-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
}

#planos .plan-topbar {
  display: block;
  height: 10px;
  background: var(--green);
  border-radius: 0;
  margin: 0 -22px 18px;
}

#planos .plan-card h3 {
  text-align: center;
  color: var(--black);
  font-size: 2rem;
  line-height: 1.05;
}

#planos .plan-price {
  text-align: center;
  color: var(--green-strong);
  font-size: 3.05rem;
  line-height: 1.05;
  font-weight: 800;
  border-top: 1px solid rgba(18, 169, 75, 0.2);
  border-bottom: 1px solid rgba(18, 169, 75, 0.2);
  padding: 14px 0 12px;
  margin-bottom: 12px;
}

#planos .plan-price small {
  font-size: 1.25rem;
  margin-right: 6px;
  font-weight: 700;
}

#planos .plan-features {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

#planos .plan-features li {
  color: #1d1d1d;
  font-weight: 600;
  font-size: 0.97rem;
}

#planos .plan-features li::before {
  content: "\2713";
  color: var(--green-strong);
  margin-right: 8px;
  font-size: 0.7rem;
}

#planos .plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#planos .plan-btn:hover {
  background: var(--green-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(18, 169, 75, 0.35);
}

#planos .plan-btn span {
  font-size: 0.95rem;
}

.info-list {
  display: grid;
  gap: 14px;
  font-weight: 600;
}

.info-list span {
  color: var(--gray);
  font-weight: 400;
}

#localizacao {
  background: linear-gradient(180deg, #f5f6f6 0%, #f0f2f1 100%);
}

#localizacao .location-layout {
  display: grid;
  gap: 18px;
}

#localizacao .section-header {
  text-align: center;
  margin-bottom: 0;
}

#localizacao .section-header h2 {
  text-transform: uppercase;
  font-size: clamp(2rem, 2.6vw + 1rem, 3.2rem);
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  color: var(--black);
}

#localizacao .section-header p {
  margin: 0 auto;
  max-width: 880px;
  color: #222;
}

.location-note {
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: #1e1e1e;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.map-box {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  box-shadow: 0 14px 30px rgba(6, 54, 26, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-image {
  height: 140px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.social-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(18, 169, 75, 0.25));
}

.s1 { background-image: url("https://images.unsplash.com/photo-1517832606299-7ae9b720a186?auto=format&fit=crop&w=600&q=80"); }
.s2 { background-image: url("https://images.unsplash.com/photo-1517838277536-f5f99be501d9?auto=format&fit=crop&w=600&q=80"); }
.s3 { background-image: url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=600&q=80"); }
.s4 { background-image: url("https://images.unsplash.com/photo-1521804906057-1df8fdb718b7?auto=format&fit=crop&w=600&q=80"); }
.s5 { background-image: url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=600&q=80"); }
.s6 { background-image: url("https://images.unsplash.com/photo-1546483875-ad9014c88eba?auto=format&fit=crop&w=600&q=80"); }

.social-cta {
  margin-top: 20px;
}


/* ==========================================================================
   15) Time / equipe
   ========================================================================== */
.team-section {
  background:
    radial-gradient(110% 70% at 50% -5%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #0f7a3a 0%, #0b6b32 100%);
  color: #f5f5f5;
}

.team-header {
  text-align: center;
  margin-bottom: 30px;
}

.team-header h2 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  letter-spacing: 0.6px;
}

.team-header p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 760px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  gap: 20px;
}

.team-card {
  background: #f2f2f2;
  border: 1px solid rgba(18, 169, 75, 0.34);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(8, 75, 35, 0.24);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.team-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 34px rgba(8, 75, 35, 0.34);
  border-color: rgba(18, 169, 75, 0.56);
}

.team-mark {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #0f6f35;
  background: rgba(18, 169, 75, 0.12);
  border: 1px solid rgba(18, 169, 75, 0.32);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.team-top-weight {
  width: 114px;
  height: 13px;
  border-radius: 6px;
  background: url("https://ugcfxksbzbqzdoxjneys.supabase.co/storage/v1/object/public/media/repo-media/imagens/aba-de-img/817f046bc7-peso-2.png") center/contain no-repeat;
  border: 1px solid rgba(18, 169, 75, 0.28);
  margin: 0 auto 8px;
}

.team-photo {
  position: relative;
  overflow: hidden;
  height: 172px;
  border-radius: 12px;
  background: linear-gradient(145deg, #d8dfdb, #f0f4f2);
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% var(--team-photo-position-y, 50%);
  transform: scale(var(--team-photo-zoom, 1));
  transform-origin: center center;
}

.team-photo img[hidden] {
  display: none;
}

.team-1 {
  background-image: url("https://images.unsplash.com/photo-1549060279-7e168fcee0c2?auto=format&fit=crop&w=900&q=80");
}

.team-2 {
  background-image: url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=900&q=80");
}

.team-3 {
  background-image: url("https://images.unsplash.com/photo-1518310383802-640c2de311b2?auto=format&fit=crop&w=900&q=80");
}

.team-4 {
  background-image: url("https://images.unsplash.com/photo-1548690312-e3b507d8c110?auto=format&fit=crop&w=900&q=80");
}

.team-card h3 {
  color: #111111;
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 4px 0 3px;
}

.team-role {
  color: #0f7a3a;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-desc {
  color: #2f2f2f;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-section {
  background: linear-gradient(180deg, #f6f8f7 0%, #f1f4f2 100%);
}

.contact-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.contact-lead {
  display: grid;
  gap: 12px;
}

.contact-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 169, 75, 0.24);
  background: rgba(18, 169, 75, 0.1);
  color: #0f7a3a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.contact-lead h2 {
  color: #111111;
  font-size: clamp(1.9rem, 2.2vw + 1rem, 3.1rem);
  line-height: 1.08;
  max-width: 560px;
}

.contact-lead h2 span {
  color: #0f7a3a;
}

.contact-lead p {
  color: #3f3f3f;
  max-width: 520px;
}

.contact-emphasis {
  color: #131313;
  font-weight: 700;
}

.contact-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.contact-row {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label > span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 0.95rem;
  color: #1d1d1d;
  background: #ffffff;
}

.contact-form select {
  cursor: pointer;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(68, 68, 68, 0.56);
}

.contact-form .contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-form .contact-consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.contact-form .contact-consent span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #424242;
}

.contact-submit {
  width: 100%;
  margin-top: 2px;
  padding: 13px 18px;
  font-size: 1rem;
}

.site-footer {
  padding: 46px 0 42px;
  background: linear-gradient(180deg, #11823e 0%, #0d6f35 100%);
  border-top: 0;
}

.footer-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.footer-grid {
  display: grid;
  gap: 24px;
  color: rgba(239, 248, 242, 0.9);
}

.footer-brand p {
  margin-top: 12px;
  max-width: 260px;
  color: rgba(220, 234, 225, 0.84);
}

.footer-logo-image {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand small {
  display: block;
  margin-top: 10px;
  color: rgba(188, 211, 196, 0.84);
  font-size: 0.84rem;
}

.footer-heading {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.footer-unit + .footer-unit {
  margin-top: 16px;
}

.footer-unit strong {
  display: block;
  color: #8de2ad;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.footer-unit span,
.footer-contact span {
  display: block;
  color: rgba(230, 241, 233, 0.88);
  line-height: 1.55;
}

.footer-contact .socials {
  margin-top: 12px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(28, 191, 92, 0.54);
  background: rgba(28, 191, 92, 0.18);
  color: #f4fff8;
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.socials a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.socials a:hover {
  transform: translateY(-2px);
  background: rgba(28, 191, 92, 0.32);
}


/* ==========================================================================
   18) Botao flutuante de WhatsApp
   ========================================================================== */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  background: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 200;
}

.whatsapp img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}


/* ==========================================================================
   20) Responsividade
   ========================================================================== */
@media (max-width: 640px) {
  .nav {
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .logo-image {
    height: 30px;
  }

  .header-actions {
    gap: 8px;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .header-student-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 40px;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .menu-toggle {
    margin-left: 0;
    gap: 4px;
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
  }

  .hero {
    background-image: url("https://ugcfxksbzbqzdoxjneys.supabase.co/storage/v1/object/public/media/repo-media/imagens/aba-de-img/563a89df9e-baanner-da-aba-de-inicio-story-ofic.png");
    background-position: center top;
  }

  .hero-overlay {
    background: linear-gradient(130deg, rgba(4, 10, 8, 0.6), rgba(4, 10, 8, 0.35));
  }

  .hero-content {
    padding: 0 0 70px;
    display: flex;
    justify-content: center;
  }

  .hero-text {
    text-align: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: clamp(1.7rem, 5vw + 0.75rem, 2.3rem);
    line-height: 1.26;
    text-align: center;
    margin-top: 0;
    margin-bottom: 12px;
  }

  .hero-logo-mobile {
    display: block;
    width: min(140px, 42vw);
    height: auto;
    margin: 0 auto 10px;
  }

  .hero-firstline {
    font-size: 1.14em;
    letter-spacing: 0.2px;
  }

  .hero-text p {
    font-size: 0.98rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 340px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }

  .hero-cta {
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
  }

  .hero-cta .btn {
    width: auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.86rem;
    justify-content: center;
    flex: 1 1 auto;
  }

  .hero-highlight {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-highlight > div {
    min-width: 0;
    flex: 1 1 0;
  }

  .hero-highlight strong {
    font-size: 15px;
  }

  .hero-highlight span {
    font-size: 9px;
    white-space: nowrap;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .student-login-screen {
    width: min(100%, 330px);
    max-height: calc(100vh - 12px);
    overflow-y: auto;
  }

  .student-app-screen {
    width: 100%;
  }

  .student-area {
    padding: 0;
    align-items: center;
  }

  .student-area-layer {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
  }

  .student-loading-screen,
  .student-login-screen {
    margin: 0 auto;
  }

  .student-area-close {
    top: 10px;
    right: 10px;
    z-index: 2;
  }

  .student-login-card {
    padding: 12px 10px 10px;
    border-radius: 10px;
  }

  .student-login-logo {
    width: min(120px, 46vw);
    margin-bottom: 6px;
  }

  .student-login-card h2 {
    font-size: 1.82rem;
  }

  .student-login-subtitle {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .student-auth-tab {
    min-height: 34px;
    font-size: 0.86rem;
  }

  .student-login-form input,
  .student-register-form input,
  .student-forgot-request-form input,
  .student-forgot-request-form select,
  .student-forgot-request-form textarea,
  .student-forgot-reset-form input {
    min-height: 42px;
  }

  .student-login-form,
  .student-register-form,
  .student-forgot-request-form,
  .student-forgot-reset-form {
    gap: 4px;
  }

  .student-form-error {
    min-height: 0;
    margin: 0;
  }

  .student-login-btn {
    min-height: 42px;
    font-size: 0.9rem;
    margin-top: 0;
  }

  .student-loading-video {
    width: min(82vw, 250px);
  }

  .student-app-shell {
    min-height: 100vh;
  }

  .student-app-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: calc(16px + env(safe-area-inset-top)) 12px 12px;
  }

  .student-app-top-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .student-app-brand-logo-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
  }

  .student-app-brand-logo {
    width: 100%;
    height: auto;
  }

  .student-app-brand {
    gap: 10px;
  }

  .student-app-brand-meta h4 {
    font-size: 0.95rem;
  }

  .student-app-brand-meta p {
    font-size: 0.74rem;
    margin-top: 2px;
  }

  .student-app-brand-title {
    font-size: 1.55rem;
  }

  .student-app-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .student-app-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .student-app-main {
    padding: 16px 12px 96px;
  }

  .student-group-guide-sheet,
  .student-group-detail-sheet {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100%;
    max-height: none;
    padding: 12px 12px calc(112px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom));
    overscroll-behavior-y: auto;
  }

  .student-group-detail-media iframe,
  .student-group-detail-media img,
  .student-exercise-detail-figure iframe,
  .student-exercise-detail-figure img {
    pointer-events: none;
  }

  .student-app-main,
  .student-workout-list,
  .student-progress-history-sheet,
  .trainer-exercise-library-picker-card,
  .admin-exercise-edit-modal-card {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: auto;
  }

  .student-week-summary-card {
    padding: 12px 10px 10px;
    margin-bottom: 12px;
  }

  .student-week-summary-head h5 {
    font-size: 1.1rem;
  }

  .student-week-summary-head span {
    font-size: 0.86rem;
  }

  .student-week-col-label {
    font-size: 0.74rem;
  }

  .student-week-col-box {
    height: 34px;
    width: 34px;
    border-radius: 999px;
  }

  .student-dashboard-hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .student-dashboard-hero > div {
    display: grid;
    justify-items: center;
    gap: 4px;
    width: 100%;
  }

  .student-dashboard-hero .student-cta-inline {
    align-self: center;
    margin-top: 6px;
  }

  .student-dashboard-hero.has-image-cta {
    min-height: 116px;
  }

  .student-dashboard-hero.has-image-cta > div {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .student-dashboard-hero.has-image-cta .student-cta-inline {
    margin-top: 0;
    left: 14px;
    right: 14px;
    bottom: 10px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 11px;
  }

  .student-all-workout-item {
    padding: 9px 10px;
    grid-template-columns: 34px 1fr 18px;
    gap: 8px;
  }

  .student-all-workout-badge {
    width: 34px;
    height: 34px;
    font-size: 0.98rem;
  }

  .student-all-workout-copy strong {
    font-size: 0.95rem;
  }

  .student-all-workout-copy small {
    font-size: 0.82rem;
  }

  .student-app-panel[data-student-app-panel="dashboard"] .student-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 11px;
    row-gap: 13px;
  }

  .student-app-bottom-nav {
    gap: 6px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .student-app-nav-btn {
    min-height: 52px;
    border-radius: 12px;
  }

  .student-workout-layout {
    grid-template-columns: 1fr;
  }

  .student-profile-hero {
    padding: 20px 14px 16px;
  }

  .student-profile-hero h4 {
    font-size: 1.72rem;
  }

  .student-profile-hero-meta {
    gap: 12px;
  }

  .student-active-workout {
    border-radius: 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .student-app-panel[data-student-app-panel="treino-ativo"] {
    margin: -16px -12px -96px;
    padding-bottom: 96px;
  }

  .student-active-hero {
    min-height: 180px;
  }

  .student-active-card {
    margin: -12px 0 0;
    border-radius: 0;
    padding: 12px 10px 0;
  }

  .student-prep-media {
    min-height: 220px;
  }

  .student-app-panel[data-student-app-panel="pre-treino"] {
    margin: -16px -12px -96px;
    padding-bottom: 96px;
  }

  .student-app-shell.is-prep-mode .student-app-panel[data-student-app-panel="pre-treino"] {
    margin: 0;
    padding: 0;
    min-height: 0;
  }

  .student-app-shell.is-active-workout-mode .student-app-panel[data-student-app-panel="treino-ativo"] {
    margin: -16px -12px 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    min-height: calc(100dvh - 92px);
  }

  .student-active-workout-list {
    padding-bottom: 8px;
    scroll-padding-bottom: 8px;
  }

  .student-active-finish-btn {
    width: calc(100% - 24px);
    margin: 12px 12px calc(18px + env(safe-area-inset-bottom));
    min-height: 66px;
    border-radius: 16px;
  }

  .student-app-shell.is-workouts-tab-mode .student-app-panel[data-student-app-panel="treinos"] {
    min-height: calc(100dvh - 92px);
  }

  .student-app-shell.is-run-mode .student-app-panel[data-student-app-panel="treino-execucao"] {
    margin: -16px -12px 0;
    min-height: calc(100dvh - 92px);
  }

  .student-app-shell.is-rest-mode .student-app-panel[data-student-app-panel="treino-descanso"] {
    margin: -16px -12px 0;
    min-height: calc(100dvh - 92px);
  }

  .student-app-shell.is-prep-mode .student-prep-media {
    flex-basis: 34%;
  }

  .student-prep-media.has-video .student-prep-video-file {
    transform: scale(1);
  }

  .student-prep-body {
    padding: 30px 12px 70px;
  }

  .student-prep-body h4 {
    font-size: 1.2rem;
  }

  .student-prep-body p {
    font-size: 1.08rem;
  }

  .student-prep-countdown-ring {
    width: 132px;
    height: 132px;
  }

  .student-prep-countdown-ring span {
    font-size: 2.6rem;
  }

  .student-prep-next {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .student-prep-back {
    left: 14px !important;
    bottom: calc(76px + env(safe-area-inset-bottom));
    font-size: 0.98rem;
  }

  .student-run-media {
    min-height: 38dvh !important;
    margin-top: 10px;
  }

  .student-run-video-file {
    object-position: center 54% !important;
    transform: none !important;
  }

  .student-run-video {
    transform: translateY(6px) !important;
    transform-origin: center top;
  }

  .student-run-figure {
    transform: translateY(6px) !important;
  }

  .student-app-panel[data-student-app-panel="treino-execucao"] {
    min-height: calc(100dvh - 170px);
  }

  .student-run-exercise {
    font-size: 1.5rem;
  }

  .student-run-exercise-head {
    gap: 8px;
    margin-top: 0;
    transform: translateY(30px);
    margin-bottom: -30px;
  }

  .student-run-help-trigger {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }

  .student-run-clock {
    margin-top: clamp(84px, 13vh, 124px);
    font-size: 3.8rem;
  }

  .student-run-counter {
    margin-top: 12px;
  }

  .student-run-busy-toggle {
    margin-top: 10px;
    width: auto;
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
    padding: 6px 10px;
  }

  .student-run-controls button {
    min-height: 54px;
    border-radius: 14px;
    font-size: 1.2rem;
  }

  .student-run-body {
    margin-top: -16px !important;
    min-height: 0;
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom)) !important;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .student-run-controls {
    margin-top: 18px;
    width: 100%;
  }

  .student-run-help-modal {
    padding: 14px;
  }

  .student-run-help-modal-card {
    width: min(520px, calc(100vw - 24px));
    border-radius: 16px;
    padding: 14px 14px 12px;
  }

  .student-run-help-modal-head h5 {
    font-size: 1rem;
  }

  .student-run-help-modal p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .student-rest-media {
    min-height: 220px;
    border-radius: 0 0 24px 24px;
  }

  .student-rest-body {
    gap: 8px;
    padding: 22px 12px calc(16px + env(safe-area-inset-bottom));
  }

  .student-rest-next-head small {
    font-size: 0.9rem;
    margin-left: 8px;
  }

  .student-rest-next-head span {
    font-size: 1.2rem;
    margin-right: 8px;
  }

  .student-rest-next-name {
    font-size: 1.02rem;
  }

  .student-rest-body h4 {
    margin-top: 10px;
    font-size: 2.15rem;
  }

  .student-rest-clock {
    font-size: 3.6rem;
  }

  .student-rest-actions {
    margin-top: auto;
    padding-top: 20px;
    gap: 12px;
  }

  .student-rest-actions button {
    min-height: 34px;
    font-size: 0.92rem;
  }

  .student-active-summary-grid {
    gap: 6px;
  }

  .student-active-summary-grid article {
    padding: 8px 6px;
    border-radius: 11px;
  }

  .student-active-finish-btn {
    width: calc(100% - 24px);
    margin: 10px 12px calc(18px + env(safe-area-inset-bottom));
    min-height: 62px;
    font-size: 0.98rem;
    border-radius: 16px;
    border-top-width: 0;
  }

  .student-exercise-detail-head h4 {
    padding: 0 54px;
    font-size: 1.2rem;
    line-height: 1.14;
  }

  .student-exercise-detail-media {
    min-height: 180px;
  }

  .student-exercise-detail-tabs button {
    min-height: 30px;
    font-size: 0.78rem;
  }

  .student-exercise-duration-controls span {
    font-size: 1.6rem;
    min-width: 64px;
  }

  .student-exercise-detail-instructions p {
    font-size: 0.94rem;
  }

  .student-exercise-detail-close {
    min-height: 48px;
  }

}

@media (max-width: 390px) {
  .hero-text h1 {
    font-size: 1.72rem;
  }
}


/* ==========================================================================
   19) Utilitarios de animacao
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .menu {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

  .menu-toggle {
    display: none;
  }

  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .schedule-grid {
    grid-template-columns: repeat(3, 190px);
    justify-content: center;
    gap: 18px;
  }

  .schedule-section .container {
    grid-template-columns: 1fr;
  }

  .schedule-status-wrap {
    bottom: 0;
  }

  #localizacao .location-layout {
    gap: 22px;
  }

  .map-box iframe {
    min-height: 460px;
  }

  .contact-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.2fr);
    gap: 30px;
  }

  .contact-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 0.95fr 1.2fr 0.85fr;
    align-items: start;
  }

  .student-workout-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  #planos .plans-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    max-width: 760px;
    margin: 0 auto;
  }

  #planos .plans-stage::after {
    width: min(900px, 94%);
    height: 62%;
  }
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] {
  background: linear-gradient(180deg, #0d1712 0%, #12231b 100%);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-report,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-report h4,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-card-head h5,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-summary-item strong,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-footer strong,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-meta strong,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-head strong,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-head small,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-height strong {
  color: #eff8f2;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-summary-card,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-card,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-card,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-card {
  background: rgba(12, 28, 20, 0.88);
  border-color: rgba(28, 191, 92, 0.24);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-summary-item small,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weekday-row span,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-footer small,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-meta small,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-plot-y,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-plot-x,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-marks,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-height small {
  color: rgba(197, 219, 205, 0.82);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-date-row span {
  color: #dceee3;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-date-row span.is-today {
  background: rgba(28, 191, 92, 0.18);
  color: #34d579;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-link-btn {
  color: #34d579;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-plot-canvas {
  background-image: repeating-linear-gradient(to top, rgba(28, 191, 92, 0.2) 0, rgba(28, 191, 92, 0.2) 1px, transparent 1px, transparent 28px);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-plot-label {
  background: #193324;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-sheet {
  background: #101b15;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-sheet-top h5,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-month-nav strong,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-summary h6,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-summary-head strong,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-item-body strong {
  color: #eff8f2;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-weekdays span,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-month-nav button,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-item-body small,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-item-metas span,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-summary-metas small,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-count {
  color: rgba(197, 219, 205, 0.82);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-calendar button {
  color: #e5f3eb;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-calendar button.is-outside {
  color: rgba(197, 219, 205, 0.46);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-calendar button.is-selected {
  background: #1bb45b;
  color: #0f1f16;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-summary-card {
  background: rgba(12, 28, 20, 0.88);
  border-color: rgba(28, 191, 92, 0.24);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-history-empty {
  background: rgba(18, 34, 26, 0.88);
  border-color: rgba(28, 191, 92, 0.26);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-modal-card {
  background: #12231b;
  border-color: rgba(28, 191, 92, 0.24);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-modal-head h6,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-live-value strong,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-live-value small {
  color: #eff8f2;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-modal-head span {
  background: rgba(19, 45, 31, 0.9);
  color: rgba(197, 219, 205, 0.82);
  border-color: rgba(28, 191, 92, 0.22);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-unit-toggle {
  background: rgba(19, 45, 31, 0.9);
  border-color: rgba(28, 191, 92, 0.22);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-unit-toggle button {
  color: rgba(197, 219, 205, 0.82);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-ruler-tick {
  color: rgba(197, 219, 205, 0.66);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-ruler-tick::before {
  background: rgba(220, 237, 227, 0.24);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-ruler-tick.is-mid::before {
  background: rgba(220, 237, 227, 0.34);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-ruler-tick.is-major::before {
  background: rgba(220, 237, 227, 0.52);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-weight-cancel {
  background: #20352a;
  color: #eff8f2;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-modal-card {
  background: #12231b;
  border-color: rgba(28, 191, 92, 0.24);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-modal-top h6,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-editor-title,
body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-live small {
  color: #eff8f2;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-modal-top h6 span {
  background: rgba(21, 39, 30, 0.9);
  color: rgba(197, 219, 205, 0.78);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-toggle {
  background: rgba(21, 39, 30, 0.9);
  border-color: rgba(28, 191, 92, 0.22);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-toggle button {
  color: rgba(197, 219, 205, 0.82);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-live strong {
  color: #34d579;
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-ruler-tick {
  color: rgba(197, 219, 205, 0.66);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-ruler-tick::before {
  background: rgba(220, 237, 227, 0.22);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-ruler-tick.is-mid::before {
  background: rgba(220, 237, 227, 0.32);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-ruler-tick.is-major::before {
  background: rgba(220, 237, 227, 0.46);
}

body.theme-dark .student-app-panel[data-student-app-panel="progresso"] .student-progress-bmi-cancel {
  background: #20352a;
  color: #eff8f2;
}

.admin-general-only {
  display: none;
}

.trainer-only {
  display: none;
}

.student-app-shell.is-admin-geral-mode .admin-general-only {
  display: inline-flex;
}

.student-app-shell.is-trainer-mode .trainer-only {
  display: inline-flex;
}

.student-app-shell.is-trainer-mode .student-app-nav-btn[data-student-app-tab="dashboard"] {
  display: none;
}

.student-app-shell.is-admin-geral-mode .student-app-nav-btn[data-student-app-tab="dashboard"],
.student-app-shell.is-admin-geral-mode .student-app-nav-btn[data-student-app-tab="treinos"],
.student-app-shell.is-admin-geral-mode .student-app-nav-btn[data-student-app-tab="progresso"] {
  display: none;
}

.admin-overview-screen {
  display: grid;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f4f6fa;
  border: 1px solid rgba(15, 35, 26, 0.1);
}

.admin-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.admin-overview-head-copy {
  display: grid;
  gap: 4px;
}

.admin-overview-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-overview-head h4 {
  margin: 0;
  font-size: clamp(1.42rem, 2.6vw, 2rem);
  line-height: 1.08;
  color: #10192e;
}

.admin-overview-head p {
  margin: 0;
  color: #5a6276;
  max-width: 620px;
  line-height: 1.4;
}

.admin-overview-error {
  margin: 0;
}

.admin-overview-refresh,
.admin-overview-report-btn {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.admin-overview-refresh {
  border: 1px solid rgba(15, 35, 26, 0.18);
  background: #ffffff;
  color: #0f1d2b;
  box-shadow: 0 6px 16px rgba(10, 20, 36, 0.08);
}

.admin-overview-report-btn {
  border: 1px solid #0b1024;
  background: #0b1024;
  color: #f7f9ff;
  box-shadow: 0 8px 20px rgba(11, 16, 36, 0.22);
}

.admin-overview-refresh svg,
.admin-overview-report-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.admin-overview-refresh:hover,
.admin-overview-report-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.trainer-workout-screen {
  display: grid;
  gap: 14px;
}

.trainer-workout-screen .trainer-workout-head {
  order: -3;
}

.trainer-workout-screen .trainer-workout-error {
  order: -2;
}

.trainer-workout-screen .trainer-template-create-card {
  order: -1;
}

.trainer-workout-screen .trainer-exercise-create-card {
  order: 0;
}

.trainer-workout-screen .trainer-workout-create-card {
  order: 1;
}

.trainer-workout-screen [data-trainer-managed-workouts-card] {
  order: 2;
}

.trainer-workout-head {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.trainer-workout-head h4 {
  margin: 0;
  font-size: clamp(1.34rem, 4vw, 1.82rem);
  line-height: 1.08;
}

.trainer-workout-head p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #000000;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-head p {
  white-space: normal;
  overflow-wrap: anywhere;
}

.trainer-workout-head-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.trainer-workout-head-actions .student-progress-action-btn {
  white-space: nowrap;
}

.trainer-workout-head-actions .trainer-workout-open-library,
.trainer-workout-head-actions .trainer-workout-refresh {
  width: auto;
  justify-self: auto;
}

.trainer-workout-refresh {
  justify-self: center;
}

.trainer-workout-error {
  margin: 0;
}

.trainer-workout-form {
  display: grid;
  gap: 10px;
}

.trainer-workout-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.trainer-workout-form-grid .trainer-field-full {
  grid-column: 1 / -1;
}

.trainer-workout-form-grid label {
  display: grid;
  gap: 6px;
}

.trainer-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.trainer-exercise-metrics {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.trainer-metric-field {
  display: grid;
  gap: 3px;
}

.trainer-metric-field input {
  min-height: 34px !important;
  padding-top: 6px;
  padding-bottom: 6px;
}

.trainer-exercise-editor {
  border: 1px solid rgba(12, 30, 22, 0.18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(247, 251, 249, 0.55);
}

.trainer-exercise-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.trainer-exercise-editor-head h6 {
  margin: 0;
  color: #0f251a;
  font-size: 1.04rem;
  font-weight: 700;
}

.trainer-exercise-editor-trash {
  color: #d13b57;
  font-size: 1.05rem;
  line-height: 1;
}

.trainer-exercise-grid label span {
  margin-bottom: 1px;
}

.trainer-exercise-group-hint {
  margin: 0;
  border: 1px dashed rgba(12, 30, 22, 0.2);
  border-radius: 12px;
  background: rgba(247, 251, 249, 0.72);
  padding: 10px 12px;
  color: #3b5a4b;
  font-size: 0.93rem;
  line-height: 1.35;
}

.trainer-exercise-details {
  border: 1px solid rgba(12, 30, 22, 0.14);
  border-radius: 12px;
  background: rgba(247, 251, 249, 0.62);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.trainer-exercise-section-title {
  margin: 0;
  color: #153327;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.2;
}

.trainer-exercise-section-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(95, 109, 136, 0.24);
  margin: 2px 0;
}

.trainer-exercise-details[hidden] {
  display: none !important;
}

.trainer-exercise-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trainer-exercise-media-grid input[type="file"] {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(95, 109, 136, 0.26);
  background: #ffffff;
  padding: 10px 12px;
  cursor: pointer;
}

.trainer-exercise-media-grid input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(12, 30, 22, 0.2);
  border-radius: 8px;
  background: #ecf6f0;
  color: #123024;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.trainer-weekdays-fieldset {
  border: 1px solid rgba(12, 30, 22, 0.18);
  border-radius: 10px;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
}

.trainer-weekdays-fieldset legend {
  padding: 0 6px;
  color: #000000;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trainer-weekdays-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #2f4b3d;
}

.trainer-weekdays-fieldset input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1cbf5c;
}

.trainer-weekdays-break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
  margin: -2px 0;
}

.trainer-workout-form-grid label span,
.trainer-exercise-filter span {
  color: #000000;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trainer-workout-form-grid input,
.trainer-workout-form-grid textarea,
.trainer-workout-form-grid select,
.trainer-exercise-filter select {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(12, 30, 22, 0.18);
  padding: 8px 10px;
  background: #ffffff;
  color: #10251c;
  font-family: inherit;
  font-size: 0.88rem;
  touch-action: manipulation;
}

.trainer-workout-form-grid textarea {
  min-height: 82px;
  resize: vertical;
}

.trainer-workout-create-card,
.trainer-workout-definition-card,
.trainer-exercise-create-card {
  border-radius: 18px;
  border: 1px solid rgba(12, 30, 22, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  box-shadow: 0 10px 24px rgba(8, 35, 20, 0.08);
  padding: 18px;
}

.trainer-workout-cover-builder {
  display: grid;
  gap: 12px;
  margin-bottom: 6px;
}

.trainer-workout-cover-stage {
  position: relative;
  min-height: 228px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(66, 118, 96, 0.24);
  background:
    radial-gradient(circle at top, rgba(31, 207, 105, 0.2), transparent 56%),
    linear-gradient(135deg, rgba(6, 24, 17, 0.98), rgba(8, 36, 23, 0.9));
}

.trainer-workout-cover-stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-workout-cover-stage-image[hidden] {
  display: none !important;
}

.trainer-workout-cover-stage-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 8, 0.08) 0%, rgba(4, 12, 8, 0.72) 100%),
    radial-gradient(circle at top, rgba(31, 207, 105, 0.22), transparent 58%);
}

.trainer-workout-cover-stage-copy {
  position: relative;
  z-index: 1;
  min-height: 228px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px 20px;
}

.trainer-workout-cover-stage-copy small {
  color: rgba(191, 223, 207, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trainer-workout-cover-stage-copy strong {
  color: #f4fbf7;
  font-size: clamp(1.32rem, 2vw, 2rem);
  line-height: 1.08;
  font-weight: 800;
}

.trainer-workout-cover-stage-copy span {
  color: rgba(223, 238, 229, 0.9);
  font-size: 0.94rem;
}

.trainer-workout-cover-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.trainer-workout-cover-drop {
  margin: 0;
}

.trainer-workout-cover-upload-zone {
  min-height: 132px;
}

.trainer-workout-cover-feedback {
  margin: 0;
}

@media (max-width: 720px) {
  .trainer-workout-cover-stage {
    min-height: 192px;
  }

  .trainer-workout-cover-stage-copy {
    min-height: 192px;
    padding: 16px;
  }

  .trainer-workout-cover-stage-copy strong {
    font-size: clamp(1.16rem, 5.4vw, 1.52rem);
  }

  .trainer-workout-cover-stage-copy span {
    font-size: 0.88rem;
  }

  .trainer-workout-cover-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

}

.trainer-workout-create-card,
.trainer-workout-definition-card {
  margin-top: -6px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-create-card,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-definition-card,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-create-card {
  width: 100%;
}

.trainer-workout-create-card .admin-overview-table-head,
.trainer-workout-definition-card .admin-overview-table-head,
.trainer-exercise-create-card .admin-overview-table-head {
  margin-bottom: 12px;
}

.trainer-workout-create-card .admin-overview-table-head,
.trainer-workout-definition-card .admin-overview-table-head {
  text-align: left;
}

.trainer-workout-create-card .admin-overview-table-head h5,
.trainer-workout-definition-card .admin-overview-table-head h5,
.trainer-exercise-create-card .admin-overview-table-head h5 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #11271d;
}

.trainer-workout-definition-body {
  display: grid;
  gap: 14px;
}

.trainer-workout-definition-card .trainer-predefined-workout-field > span {
  color: #000000;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 600;
}

.trainer-workout-definition-card .trainer-predefined-workout-field select {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(95, 109, 136, 0.24);
  background: #ffffff;
  color: #223139;
  font-size: 1.02rem;
  padding: 10px 14px;
}

.trainer-workout-definition-card .trainer-predefined-workout-field select:focus-visible {
  outline: none;
  border-color: rgba(22, 163, 74, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.trainer-workout-actions.trainer-workout-definition-actions {
  justify-content: center;
  margin-top: 8px;
}

.trainer-workout-actions.trainer-workout-definition-actions .trainer-workout-submit {
  width: min(100%, 260px);
}

.trainer-card-subtitle {
  margin: 6px 0 0;
  color: #4b5d76;
  font-size: 1.06rem;
  text-align: left;
}

.trainer-card-head--centered {
  justify-items: stretch;
}

.trainer-card-head--centered .admin-overview-table-head-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  gap: 12px;
}

.trainer-card-head--centered .admin-overview-table-head-row h5 {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.trainer-card-head--centered .admin-overview-table-head-row .admin-overview-collapse-btn {
  grid-column: 3;
  justify-self: end;
}

.trainer-card-head--centered .trainer-card-subtitle {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.trainer-required-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #cf1f44;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.trainer-card-section-head {
  max-width: 720px;
  margin: 0 auto 12px;
  text-align: center;
}

.trainer-card-section-head h6 {
  margin: 0;
  color: #143528;
  font-size: 1.02rem;
  font-weight: 700;
}

.trainer-card-section-head p {
  margin: 4px 0 0;
  color: #000000;
  font-size: 0.92rem;
}

.trainer-workout-form-grid--model {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.trainer-workout-form-grid--model .trainer-field-full {
  grid-column: 1 / -1;
}

.trainer-workout-form-grid--model label span,
.trainer-workout-form-grid--model .trainer-weekdays-fieldset legend {
  color: #000000;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 600;
}

.trainer-predefined-workout-field {
  display: grid;
  gap: 8px;
}

.trainer-predefined-workout-field > span {
  color: #000000;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 600;
}

.trainer-workout-form-grid--model input,
.trainer-workout-form-grid--model textarea,
.trainer-workout-form-grid--model select {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(95, 109, 136, 0.24);
  background: #ffffff;
  color: #223139;
  font-size: 1.02rem;
  padding: 10px 14px;
}

.trainer-workout-select-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.trainer-workout-select-actions > select {
  min-width: 0;
}

.trainer-workout-select-action {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(88, 146, 120, 0.4);
  background: rgba(17, 44, 33, 0.78);
  color: #d8eee2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.trainer-workout-select-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-workout-select-action:not(:disabled):hover {
  filter: brightness(1.06);
}

.trainer-workout-select-action:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.trainer-workout-form-grid--model input[type="file"] {
  min-height: 48px;
  padding: 10px 12px;
  cursor: pointer;
}

.trainer-workout-form-grid--model input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(12, 30, 22, 0.22);
  border-radius: 8px;
  background: #eef6f1;
  color: #123024;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.trainer-select-search {
  position: relative;
  margin-bottom: 8px;
}

.trainer-select-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #4b5d76;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.trainer-select-search-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-workout-create-card .trainer-select-search {
  display: block;
}

.trainer-select-search input[type="search"],
.trainer-select-search input[type="text"] {
  width: 100%;
  min-height: 50px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 12px;
  border: 1px solid rgba(95, 109, 136, 0.24);
  background: #ffffff;
  color: #223139;
  font-size: 1rem;
  padding: 10px 14px 10px 40px;
}

.trainer-select-search input[type="search"]::placeholder,
.trainer-select-search input[type="text"]::placeholder {
  color: #6b7788;
}

.trainer-select-search input[type="search"]::-webkit-search-decoration,
.trainer-select-search input[type="search"]::-webkit-search-cancel-button,
.trainer-select-search input[type="search"]::-webkit-search-results-button,
.trainer-select-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.trainer-select-search input[type="search"]:focus-visible,
.trainer-select-search input[type="text"]:focus-visible {
  outline: none;
  border-color: rgba(22, 163, 74, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.trainer-workout-form-grid--model .trainer-student-field,
.trainer-workout-form-grid--model .trainer-instructor-field {
  width: 100%;
  max-width: none;
}

.trainer-workout-form-grid--model .trainer-student-field {
  justify-self: stretch;
}

.trainer-workout-form-grid--model .trainer-instructor-field {
  justify-self: stretch;
}

.trainer-workout-form-grid--model .trainer-student-field > span,
.trainer-workout-form-grid--model .trainer-instructor-field > span {
  text-align: left;
  font-weight: 600;
}

.trainer-workout-form-grid--model .trainer-student-field .trainer-select-search,
.trainer-workout-form-grid--model .trainer-student-field [data-trainer-workout-student],
.trainer-workout-form-grid--model .trainer-instructor-field .trainer-select-search,
.trainer-workout-form-grid--model .trainer-instructor-field [data-trainer-workout-instructor] {
  width: 100%;
}

.trainer-workout-form-grid--model .trainer-student-field [data-trainer-workout-student],
.trainer-workout-form-grid--model .trainer-instructor-field [data-trainer-workout-instructor] {
  text-align: left;
  text-align-last: left;
}

.trainer-workout-form-grid--model textarea {
  min-height: 92px;
}

.trainer-workout-form-grid--model .trainer-weekdays-fieldset {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 8px;
}

.trainer-form-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(95, 109, 136, 0.24);
  margin: 4px 0 8px;
}

.trainer-workout-form-grid--model .trainer-weekdays-fieldset legend {
  margin-bottom: 6px;
}

.trainer-workout-form-grid--model .trainer-weekdays-fieldset label {
  position: relative;
  margin: 0;
}

.trainer-workout-form-grid--model .trainer-weekdays-fieldset label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trainer-workout-form-grid--model .trainer-weekdays-fieldset label span {
  min-width: 52px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(95, 109, 136, 0.28);
  background: #f7f8fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #16222d;
  font-size: 0.97rem;
  font-weight: 600;
}

.trainer-workout-form-grid--model .trainer-weekdays-fieldset label input[type="checkbox"]:checked + span {
  border-color: rgba(31, 186, 95, 0.8);
  background: rgba(31, 186, 95, 0.18);
  color: #0f5a32;
}

@media (min-width: 961px) {
  .trainer-workout-form-grid--model .trainer-weekdays-fieldset {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
  }

  .trainer-workout-form-grid--model .trainer-weekdays-fieldset label {
    font-size: 1.1rem;
    gap: 9px;
    white-space: nowrap;
  }

  .trainer-workout-form-grid--model .trainer-weekdays-fieldset input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .trainer-workout-form-grid--model .trainer-weekdays-break {
    display: none;
  }
}

.trainer-workout-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.trainer-workout-actions .trainer-workout-submit {
  width: 230px;
  max-width: 100%;
}

.trainer-workout-actions [data-trainer-exercise-submit] {
  width: 190px;
}

[data-trainer-workout-form] .trainer-workout-actions {
  justify-content: center;
}

.trainer-exercise-create-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  gap: 12px;
}

.trainer-exercise-title-wrap {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.trainer-exercise-title-wrap p {
  margin: 6px 0 0;
  color: #000000;
  font-size: 0.98rem;
}


.trainer-exercise-form[hidden] {
  display: none !important;
}

.trainer-exercise-feedback {
  margin-top: 6px;
  text-align: center;
}

.trainer-exercise-add-btn {
  grid-column: 3;
  justify-self: end;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(18, 169, 75, 0.56);
  background: linear-gradient(180deg, #12a94b 0%, #0f8f46 100%);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 14px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.trainer-exercise-add-btn:hover {
  filter: brightness(1.04);
}

.trainer-exercise-add-btn span:first-child {
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .trainer-workout-head p {
    white-space: normal;
  }

  .trainer-card-head--centered .admin-overview-table-head-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .trainer-card-head--centered .admin-overview-table-head-row h5,
  .trainer-card-head--centered .admin-overview-table-head-row .admin-overview-collapse-btn {
    grid-column: 1;
    justify-self: center;
  }

  .trainer-workout-form-grid--model .trainer-weekdays-fieldset {
    justify-content: center;
    gap: 12px 20px;
  }

  .trainer-workout-form-grid--model .trainer-weekdays-fieldset label {
    font-size: 1.1rem;
    gap: 9px;
  }

  .trainer-workout-form-grid--model .trainer-weekdays-fieldset input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .trainer-workout-form-grid--model .trainer-student-field,
  .trainer-workout-form-grid--model .trainer-instructor-field {
    justify-self: stretch;
    max-width: none;
  }

  .trainer-workout-select-actions {
    gap: 6px;
  }

  .trainer-workout-select-action {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .trainer-exercise-create-head {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .trainer-exercise-title-wrap,
  .trainer-exercise-add-btn {
    grid-column: 1;
    justify-self: center;
  }

  .trainer-template-create-card .admin-overview-table-head h5,
  .trainer-workout-create-card .admin-overview-table-head h5,
  .trainer-exercise-create-card .admin-overview-table-head h5 {
    font-size: 1.42rem;
  }

  .trainer-template-create-card .trainer-card-subtitle,
  .trainer-workout-create-card .trainer-card-subtitle {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trainer-workout-create-card,
  .trainer-workout-definition-card,
  .trainer-exercise-create-card {
    padding: 14px;
    border-radius: 14px;
  }

  .trainer-workout-form-grid--model {
    grid-template-columns: 1fr;
  }

  .trainer-exercise-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trainer-workout-actions {
    justify-content: stretch;
  }

  .trainer-workout-actions .trainer-workout-submit {
    width: 100%;
  }

  .trainer-workout-actions [data-trainer-exercise-submit] {
    width: min(100%, 220px);
  }

  [data-trainer-workout-form] .trainer-workout-actions {
    justify-content: center;
  }

  [data-trainer-workout-form] .trainer-workout-actions .trainer-workout-submit {
    width: min(100%, 280px);
  }

  .trainer-workout-actions.trainer-workout-definition-actions {
    justify-content: center;
  }

  .trainer-workout-actions.trainer-workout-definition-actions .trainer-workout-submit {
    width: min(100%, 280px);
  }
}

@media (max-width: 560px) {
  .trainer-exercise-metrics {
    grid-template-columns: 1fr;
  }

  .trainer-exercise-media-grid {
    grid-template-columns: 1fr;
  }
}

.trainer-workout-submit {
  max-width: 280px;
}

.trainer-exercise-filter {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.trainer-linked-exercises {
  margin-top: -2px;
  border: 1px solid rgba(12, 30, 22, 0.14);
  border-radius: 14px;
  background: rgba(247, 251, 249, 0.6);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.trainer-linked-exercises[hidden] {
  display: none !important;
}

.trainer-linked-exercises h6 {
  margin: 0;
  color: #132f23;
  font-size: 1.08rem;
  font-weight: 700;
}

.trainer-weekday-assignment-wrap {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.trainer-weekday-assignment-wrap h6 {
  margin: 0;
  width: 100%;
  color: #163a2c;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.trainer-weekday-assignment-wrap strong {
  color: #163a2c;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trainer-weekday-assignment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  width: 100%;
  margin-inline: auto;
}

.trainer-weekday-assignment-field {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.trainer-weekday-assignment-field > span {
  color: #436556;
  font-size: 0.9rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

.trainer-weekday-assignment-field select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  text-align: center;
  text-align-last: center;
}

.trainer-linked-exercises-filter {
  margin-bottom: 0;
}

.trainer-linked-exercises-summary {
  margin-top: 2px;
  border: 1px solid rgba(95, 109, 136, 0.24);
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trainer-linked-exercises-summary strong {
  color: #0f251c;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-linked-exercises-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(15, 35, 26, 0.22);
  background: #f2f7f4;
  color: #15402f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.trainer-linked-exercises-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-linked-exercises-toggle.is-open {
  border-color: rgba(17, 183, 91, 0.52);
  background: rgba(17, 183, 91, 0.14);
  color: #0f7c43;
}

.trainer-linked-exercises-toggle:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.trainer-linked-exercises-list {
  margin-top: 2px;
}

.trainer-linked-exercises-list[hidden] {
  display: none !important;
}

.trainer-linked-exercises-list .admin-overview-table-wrap {
  border: 1px solid rgba(95, 109, 136, 0.24);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.trainer-linked-exercises-table {
  min-width: 0;
}

.trainer-linked-exercise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.trainer-linked-exercise-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.trainer-linked-exercise-video-btn {
  flex-shrink: 0;
}

.trainer-linked-exercise-video-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.trainer-linked-exercises-table.is-empty thead {
  display: none;
}

.trainer-linked-exercises-table.is-empty td[colspan] {
  border: 1px dashed rgba(95, 109, 136, 0.32);
  border-bottom: 1px dashed rgba(95, 109, 136, 0.32);
  border-radius: 12px;
  background: rgba(247, 251, 249, 0.72);
  text-align: center;
  color: #4f6d5e;
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 24px 14px;
}

.trainer-linked-exercises-table.is-empty tbody tr {
  background: transparent;
  border: 0;
  padding: 0;
}

.trainer-workout-table {
  min-width: 920px;
}

.trainer-workout-table a {
  color: #0f8f46;
  text-decoration: underline;
}

.trainer-managed-workout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trainer-managed-workout-summary-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.trainer-managed-workout-summary strong {
  color: #10251c;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trainer-managed-workout-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(95, 109, 136, 0.3);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

.trainer-managed-workout-kind.is-assigned {
  color: #116637;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.36);
}

.trainer-managed-workout-kind.is-definition {
  color: #154987;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.38);
}

.trainer-managed-workout-toggle {
  flex-shrink: 0;
}

.trainer-managed-workouts-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.trainer-managed-workouts-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 420px);
}

.trainer-managed-workouts-tabs .admin-overview-tab {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}

.trainer-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trainer-table-actions .student-progress-action-btn {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.trainer-action-danger {
  background: linear-gradient(90deg, #be123c 0%, #e11d48 50%, #f43f5e 100%);
}

.trainer-action-warning {
  background: linear-gradient(90deg, #9a6a06 0%, #c18208 50%, #e39a11 100%);
}

.trainer-action-neutral {
  border: 1px solid rgba(95, 109, 136, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #eef4f1 100%);
  color: #163024;
}

.trainer-action-icon-btn {
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trainer-action-icon-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-action-danger:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.trainer-action-warning:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.trainer-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(95, 109, 136, 0.38);
  background: rgba(95, 109, 136, 0.12);
  color: #2f4458;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trainer-status-chip.is-success {
  border-color: rgba(16, 155, 69, 0.5);
  background: rgba(28, 191, 92, 0.16);
  color: #0f7d3d;
}

.trainer-status-chip.is-disabled {
  border-color: rgba(190, 24, 93, 0.34);
  background: rgba(244, 63, 94, 0.12);
  color: #9f1239;
}

.trainer-progress-report {
  display: grid;
  gap: 14px;
}

.trainer-progress-head {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.trainer-progress-head h4,
.trainer-progress-head p {
  margin: 0;
}

.trainer-progress-head p {
  line-height: 1.3;
}

.trainer-progress-refresh {
  justify-self: center;
  margin-top: 6px;
}

.trainer-progress-error {
  margin: 0;
}

.trainer-progress-empty-state {
  border: 1px dashed rgba(95, 109, 136, 0.35);
  border-radius: 14px;
  background: rgba(247, 251, 249, 0.5);
  min-height: 168px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px 16px;
}

.trainer-progress-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(18, 30, 23, 0.08);
  color: #3c5666;
  display: grid;
  place-items: center;
}

.trainer-progress-empty-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-progress-empty-state p {
  margin: 0;
  color: #4b5d76;
  font-size: 1.03rem;
  max-width: 320px;
}

.trainer-progress-toolbar {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  justify-items: center;
  text-align: center;
}

.trainer-progress-toolbar label {
  display: grid;
  gap: 6px;
  justify-items: center;
  width: 100%;
  max-width: 560px;
}

.trainer-progress-toolbar span {
  color: #000000;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trainer-progress-toolbar select {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(12, 30, 22, 0.18);
  padding: 8px 10px;
  background: #ffffff;
  color: #10251c;
  font-family: inherit;
  font-size: 0.88rem;
  text-align: center;
  text-align-last: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-progress-toolbar small {
  color: #000000;
  font-size: 0.82rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.trainer-progress-toolbar-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.trainer-progress-export-pdf {
  width: min(100%, 280px);
}

.trainer-progress-stats-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.trainer-progress-stat-card {
  border: 1px solid rgba(12, 30, 22, 0.12);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 5px;
}

.trainer-progress-stat-card small {
  color: #5f786b;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-progress-stat-card strong {
  color: #10251c;
  font-size: 1.24rem;
}

.trainer-progress-student-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.trainer-progress-student-grid article {
  border: 1px solid rgba(12, 30, 22, 0.1);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.trainer-progress-student-grid small {
  color: #5f786b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trainer-progress-student-grid strong {
  color: #10251c;
  font-size: 0.98rem;
}

.trainer-progress-history-table {
  min-width: 900px;
}

.admin-overview-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.admin-overview-stat-card {
  border: 1px solid rgba(15, 35, 26, 0.12);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(10, 20, 36, 0.06);
  display: grid;
  gap: 8px;
}

.admin-overview-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-overview-stat-card small {
  color: #5f6881;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.3;
}

.admin-overview-stat-card strong {
  color: #0f172a;
  font-size: clamp(1.58rem, 3.2vw, 2.14rem);
  line-height: 1;
}

.admin-overview-icon-card {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: #dbeafe;
  flex-shrink: 0;
}

.admin-overview-icon-card svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
}

.admin-overview-icon-card.is-blue {
  background: #dbeafe;
  color: #2563eb;
}

.admin-overview-icon-card.is-purple {
  background: #ede9fe;
  color: #9333ea;
}

.admin-overview-icon-card.is-green {
  background: #dcfce7;
  color: #16a34a;
}

.admin-overview-icon-card.is-orange {
  background: #ffedd5;
  color: #ea580c;
}

.admin-overview-icon-card.is-red {
  background: #fee2e2;
  color: #ef4444;
}

.admin-overview-icon-card.is-cyan {
  background: #cffafe;
  color: #0891b2;
}

.admin-overview-icon-card.is-green-soft {
  background: #d1fae5;
  color: #059669;
}

.admin-overview-icon-card.is-slate {
  background: #e5e7eb;
  color: #64748b;
}

.admin-overview-icon-card.is-amber {
  background: #fef3c7;
  color: #d97706;
}

.admin-overview-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  width: fit-content;
}

.admin-overview-trend.is-positive {
  color: #0a8f43;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.admin-overview-trend.is-negative {
  color: #c61f1f;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.admin-overview-trend.is-neutral {
  color: #4b5563;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
}

.admin-overview-charts-grid {
  display: grid;
  gap: 12px;
}

.admin-overview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 6px;
}

.admin-overview-tab {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-overview-tab.is-active {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.admin-overview-support-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.admin-overview-support-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 280px);
}

.admin-overview-chart-card {
  border: 1px solid rgba(15, 35, 26, 0.12);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(10, 20, 36, 0.05);
}

.admin-overview-chart-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

[data-admin-overview-pane="distribution"] .admin-overview-chart-head {
  text-align: center;
  justify-items: center;
}

[data-admin-overview-pane="distribution"] .admin-overview-chart-head h5 {
  font-size: clamp(1.3rem, 2.6vw, 1.72rem);
}

[data-admin-overview-pane="distribution"] .admin-overview-chart-head p {
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.admin-overview-chart-head h5 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
}

.admin-overview-chart-head p {
  margin: 0;
  color: #59627a;
  font-size: 0.93rem;
}

.admin-overview-pie-layout {
  display: grid;
  gap: 14px;
  justify-items: center;
  align-items: start;
}

.admin-overview-pie-wrap {
  display: grid;
  place-items: center;
  width: 100%;
}

.admin-overview-pie {
  width: 100%;
  display: grid;
  place-items: center;
}

.admin-overview-pie-circle {
  width: min(260px, 75vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.admin-overview-pie-svg {
  width: 100%;
  height: 100%;
  display: block;
  grid-area: 1 / 1;
}

.admin-overview-pie-track {
  display: none;
}

.admin-overview-pie-segment {
  stroke-linecap: butt;
  stroke-linejoin: round;
  opacity: 1;
  transition: stroke-dashoffset 0.62s ease-out;
}

.admin-overview-pie-segment.is-active {
  stroke-dashoffset: 0 !important;
}

.admin-overview-pie-center {
  width: 42%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(15, 35, 26, 0.12);
  display: grid;
  place-items: center;
  gap: 0;
  grid-area: 1 / 1;
  z-index: 1;
}

.admin-overview-pie-center strong {
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1;
}

.admin-overview-pie-center small {
  color: #62728f;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: -4px;
}

.admin-overview-pie-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(100%, 980px);
}

.admin-overview-legend-item {
  border: 1px solid rgba(15, 35, 26, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  min-height: 46px;
  flex: 1 1 180px;
  max-width: 240px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
}

.admin-overview-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.admin-overview-legend-item small {
  color: #4f5f79;
  font-size: 0.84rem;
}

.admin-overview-legend-item strong {
  color: #10192e;
  font-size: 0.94rem;
}

.admin-overview-chart-empty {
  margin: 0;
  color: #6a738a;
  font-size: 0.9rem;
  text-align: center;
}

.chart-container {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  transform-origin: center;
}

.chart-container.active {
  transform: scale(1);
  opacity: 1;
}

.admin-overview-activity-chart {
  display: grid;
  gap: 10px;
}

.admin-overview-activity-bars {
  min-height: 250px;
  border: 1px dashed rgba(15, 35, 26, 0.16);
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px 10px 10px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.admin-overview-activity-day {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.admin-overview-activity-columns {
  height: 190px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.admin-overview-activity-bar {
  width: min(16px, 42%);
  border-radius: 7px 7px 3px 3px;
  min-height: 8px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}

.admin-overview-activity-bar.is-users {
  background: #3b82f6;
}

.admin-overview-activity-bar.is-workouts {
  background: #8b5cf6;
}

.admin-overview-activity-bar.is-active {
  transform: scaleY(1);
}

.admin-overview-activity-day small {
  color: #53627e;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-overview-activity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-overview-activity-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #425370;
  font-size: 0.86rem;
}

.admin-overview-activity-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.admin-overview-activity-legend i.is-users {
  background: #3b82f6;
}

.admin-overview-activity-legend i.is-workouts {
  background: #8b5cf6;
}

.admin-overview-growth-chart {
  border: 1px dashed rgba(15, 35, 26, 0.16);
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.admin-overview-growth-svg {
  width: 100%;
  height: auto;
  display: block;
}

.admin-overview-growth-axis {
  stroke: rgba(15, 23, 42, 0.35);
  stroke-width: 1.2;
}

.admin-overview-growth-line {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s ease-out;
}

.admin-overview-growth-line.is-active {
  stroke-dashoffset: 0;
}

.admin-overview-growth-point {
  fill: #3b82f6;
  stroke: #ffffff;
  stroke-width: 2;
}

.admin-overview-growth-node {
  opacity: 0;
  transform: translateY(10px);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.admin-overview-growth-node.is-active {
  opacity: 1;
  transform: translateY(0);
}

.admin-overview-growth-value {
  fill: #0f172a;
  text-anchor: middle;
  font-size: 14px;
  font-weight: 700;
}

.admin-overview-growth-label {
  fill: #5c6781;
  text-anchor: middle;
  font-size: 13px;
  font-weight: 700;
}

.admin-overview-growth-footer {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-overview-growth-card {
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  min-height: 74px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.admin-overview-growth-card small {
  font-size: 0.77rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6c86;
  font-weight: 700;
}

.admin-overview-growth-card strong {
  color: #0f172a;
  font-size: 1.82rem;
  line-height: 1;
}

.admin-overview-growth-card.is-green {
  border-color: #86efac;
  background: #dcfce7;
}

.admin-overview-growth-card.is-green strong {
  color: #0a8f43;
}

.admin-overview-growth-card.is-blue {
  border-color: #93c5fd;
  background: #dbeafe;
}

.admin-overview-growth-card.is-blue strong {
  color: #255fdd;
}

.admin-overview-table-card {
  border: 1px solid rgba(15, 35, 26, 0.12);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(10, 20, 36, 0.05);
}

.admin-overview-table-head {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.admin-overview-table-head--collapsible {
  gap: 6px;
}

.admin-overview-table-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-overview-table-head h5 {
  margin: 0;
  color: #0f172a;
}

.admin-overview-table-head p {
  margin: 0;
  color: #5f6881;
  font-size: 0.84rem;
}

.admin-overview-collapse-btn {
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15, 35, 26, 0.22);
  background: #ffffff;
  color: #12263f;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.admin-overview-collapse-btn:hover {
  background: #f8fafc;
}

[data-admin-users-card].is-collapsed {
  padding-bottom: 10px;
}

[data-admin-exercises-card].is-collapsed {
  padding-bottom: 10px;
}

[data-admin-workouts-card].is-collapsed {
  padding-bottom: 10px;
}

[data-admin-support-card].is-collapsed {
  padding-bottom: 10px;
}

[data-admin-team-card].is-collapsed {
  padding-bottom: 10px;
}

[data-trainer-workout-create-card].is-collapsed {
  padding-bottom: 10px;
}

[data-trainer-template-create-card].is-collapsed {
  padding-bottom: 10px;
}

[data-trainer-managed-workouts-card].is-collapsed {
  padding-bottom: 10px;
}

.admin-overview-exercises-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 260px);
  gap: 10px;
  margin-bottom: 10px;
  align-items: end;
}

.admin-overview-workouts-toolbar {
  grid-template-columns: minmax(220px, 1fr);
}

.admin-overview-filter-field {
  display: grid;
  gap: 6px;
}

.admin-overview-filter-field > span {
  color: #5e6880;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.admin-overview-filter-field input,
.admin-overview-filter-field select {
  min-height: 38px;
  border: 1px solid rgba(15, 35, 26, 0.2);
  border-radius: 10px;
  background: #ffffff;
  color: #0f1b31;
  padding: 0 11px;
  font-family: inherit;
  font-size: 0.86rem;
}

.admin-overview-filter-field input::placeholder {
  color: rgba(74, 85, 104, 0.72);
}

.admin-overview-filter-field input:focus-visible,
.admin-overview-filter-field select:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.admin-overview-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-overview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-overview-table th,
.admin-overview-table td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(15, 35, 26, 0.1);
  font-size: 0.85rem;
}

.admin-overview-table th {
  color: #5e6880;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-overview-table td {
  color: #0f1b31;
}

.admin-overview-table td small {
  display: block;
  margin-top: 2px;
  color: #627184;
  font-size: 0.74rem;
}

.admin-overview-identification-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(15, 35, 26, 0.18);
  background: #f7faf8;
  color: #153226;
}

.admin-overview-status-bars {
  display: grid;
  gap: 10px;
}

.admin-overview-status-row {
  display: grid;
  gap: 6px;
}

.admin-overview-status-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.admin-overview-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.admin-overview-status-label small {
  color: #40526e;
  font-size: 0.9rem;
}

.admin-overview-status-label strong {
  color: #111b30;
  font-size: 0.98rem;
}

.admin-overview-status-track {
  height: 8px;
  border-radius: 999px;
  background: #d1d5db;
  overflow: hidden;
}

.admin-overview-status-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.admin-overview-role-select {
  min-height: 36px;
  border: 1px solid rgba(15, 35, 26, 0.2);
  border-radius: 10px;
  background: #ffffff;
  color: #0f1f34;
  padding: 0 10px;
  font-size: 0.8rem;
  font-family: inherit;
}

.admin-overview-role-select:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.admin-overview-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-overview-status-badge.is-enabled {
  background: #dcfce7;
  color: #0b8040;
  border: 1px solid #86efac;
}

.admin-overview-status-badge.is-disabled {
  background: #fee2e2;
  color: #8d2f2f;
  border: 1px solid #fca5a5;
}

.admin-overview-status-badge.is-warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.admin-overview-action-btn {
  min-height: 32px;
  border: 1px solid rgba(15, 35, 26, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: #11263f;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.admin-overview-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-overview-action-btn.admin-overview-action-icon-btn {
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-overview-action-btn.admin-overview-action-icon-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.admin-overview-action-btn.is-danger {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #b42318;
}

.admin-overview-action-btn.is-danger:hover {
  background: #ffe4e6;
}

.admin-overview-action-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.admin-site-team-form {
  display: grid;
  gap: 12px;
}

.admin-site-team-toolbar-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-site-team-feedback {
  margin: 0;
  min-height: 1.2em;
}

.admin-site-team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-site-team-item {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 35, 26, 0.16);
  border-radius: 14px;
  background: #f7faf8;
  padding: 12px;
}

.admin-site-team-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-site-team-item h6 {
  margin: 0;
  color: #102019;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-site-team-remove-btn {
  min-height: 30px;
  padding: 0 10px;
}

.admin-site-team-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid rgba(15, 35, 26, 0.16);
  background: linear-gradient(145deg, #dde8e1, #eef4f0);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.admin-site-team-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% var(--team-photo-position-y, 50%);
  transform: scale(var(--team-photo-zoom, 1));
  transform-origin: center center;
}

.admin-site-team-preview img[hidden] {
  display: none;
}

.admin-site-team-toolbar {
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-site-team-toolbar--single {
  grid-template-columns: 1fr;
}

.admin-site-team-range-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-site-team-range-field strong {
  color: #102019;
  font-size: 0.78rem;
}

.admin-site-team-range-field input[type="range"] {
  min-height: auto;
  height: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  accent-color: #0f7a3a;
  cursor: pointer;
}

.admin-site-team-range-field input[type="range"]:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
}

.admin-site-team-photo-hint {
  margin: -4px 0 0;
}

.admin-site-team-item .admin-overview-filter-field textarea {
  min-height: 88px;
  border: 1px solid rgba(15, 35, 26, 0.2);
  border-radius: 10px;
  background: #ffffff;
  color: #0f1b31;
  padding: 10px 11px;
  font-family: inherit;
  font-size: 0.86rem;
  resize: vertical;
}

.admin-site-team-item .admin-overview-filter-field textarea:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.admin-site-team-item .admin-overview-filter-field input.is-invalid,
.admin-site-team-item .admin-overview-filter-field textarea.is-invalid {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}

.admin-site-team-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-overview-action-muted {
  color: #6f7f9a;
  font-size: 0.76rem;
}

.admin-exercise-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 14px;
}

[data-trainer-workout-modal],
[data-trainer-workout-exercise-modal] {
  z-index: 2102;
}

[data-trainer-exercise-video-modal] {
  z-index: 2103;
}

.admin-exercise-edit-modal[hidden] {
  display: none !important;
}

.admin-exercise-edit-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 8, 0.6);
}

.admin-exercise-edit-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  max-height: min(92vh, 760px);
  overflow: auto;
  border: 1px solid rgba(15, 35, 26, 0.18);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(8, 32, 23, 0.26);
}

.admin-exercise-edit-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15, 35, 26, 0.18);
  background: #ffffff;
  color: #1a382c;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.admin-exercise-edit-modal-close:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-exercise-edit-modal-head {
  display: grid;
  gap: 4px;
  padding-right: 42px;
  margin-bottom: 12px;
}

.admin-exercise-edit-modal-head h6 {
  margin: 0;
  color: #101f18;
  font-size: 1.14rem;
  font-weight: 800;
}

.admin-exercise-edit-modal-head p {
  margin: 0;
  color: #4f6a5f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trainer-exercise-video-modal-card {
  width: min(100%, 620px);
}

.trainer-exercise-video-modal-body {
  display: grid;
  gap: 10px;
}

.trainer-exercise-video-modal-embed,
.trainer-exercise-video-modal-file {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(15, 35, 26, 0.22);
  border-radius: 12px;
  background: #020806;
}

.trainer-exercise-video-modal-empty {
  margin: 0;
  border: 1px dashed rgba(95, 109, 136, 0.34);
  border-radius: 12px;
  background: rgba(247, 251, 249, 0.72);
  color: #4f6d5e;
  text-align: center;
  padding: 14px 12px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-exercise-edit-form {
  display: grid;
  gap: 10px;
}

.admin-exercise-edit-feedback {
  margin: 0 0 2px;
  min-height: 18px;
}

.admin-user-delete-warning {
  margin: 0;
  color: #334d42;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-exercise-edit-field {
  display: grid;
  gap: 6px;
}

.admin-exercise-edit-field > span {
  color: #546678;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-exercise-edit-field input,
.admin-exercise-edit-field select,
.admin-exercise-edit-field textarea {
  min-height: 40px;
  border: 1px solid rgba(15, 35, 26, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: #0f1b31;
  padding: 0 11px;
  font-family: inherit;
  font-size: 0.9rem;
}

.admin-exercise-edit-field input:focus-visible,
.admin-exercise-edit-field select:focus-visible,
.admin-exercise-edit-field textarea:focus-visible {
  outline: none;
  border-color: rgba(22, 163, 74, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.admin-exercise-edit-field textarea {
  min-height: 84px;
  resize: vertical;
  padding: 10px 11px;
}

.admin-exercise-edit-form.is-readonly .admin-exercise-edit-field input:disabled,
.admin-exercise-edit-form.is-readonly .admin-exercise-edit-field select:disabled,
.admin-exercise-edit-form.is-readonly .admin-exercise-edit-field textarea:disabled {
  opacity: 1;
  color: #0f1b31;
  -webkit-text-fill-color: #0f1b31;
  background: #f7fbf8;
  cursor: default;
}

.admin-exercise-edit-grid {
  display: grid;
  gap: 10px;
}

.admin-exercise-edit-grid > * {
  min-width: 0;
}

.admin-exercise-edit-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-exercise-edit-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-exercise-edit-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-exercise-edit-grid--media {
  grid-template-columns: 1fr;
  align-items: start;
}

.trainer-workout-modal-library {
  border: 1px solid rgba(15, 35, 26, 0.18);
  border-radius: 12px;
  background: #f7fbf8;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.trainer-workout-modal-cover {
  margin-bottom: 2px;
}

.trainer-workout-modal-cover .trainer-workout-cover-stage {
  min-height: 196px;
}

.trainer-workout-modal-cover .trainer-workout-cover-stage-copy {
  min-height: 196px;
}

.trainer-workout-modal-cover .trainer-workout-cover-stage-copy strong {
  font-size: clamp(1.08rem, 1.9vw, 1.44rem);
}

.trainer-workout-modal-cover .trainer-workout-cover-upload-zone {
  min-height: 112px;
}

.trainer-workout-modal-library[hidden] {
  display: none !important;
}

.trainer-workout-modal-library-head {
  display: grid;
  gap: 3px;
}

.trainer-workout-modal-library-head strong {
  color: #123226;
  font-size: 0.9rem;
}

.trainer-workout-modal-library-head small {
  color: #5c7367;
  font-size: 0.76rem;
}

.trainer-workout-modal-library-empty {
  margin: 0;
  color: #5f786b;
  font-size: 0.82rem;
}

.trainer-workout-modal-library-list {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.trainer-workout-modal-library-item {
  border: 1px solid rgba(15, 35, 26, 0.14);
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trainer-workout-modal-library-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trainer-workout-modal-library-item-copy strong {
  color: #10251c;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-workout-modal-library-item-copy small {
  color: #5d7380;
  font-size: 0.74rem;
}

.trainer-workout-modal-library-item-copy small .trainer-workout-modal-library-item-pending {
  display: block;
}

.trainer-workout-modal-library-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.trainer-workout-modal-library-view {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(95, 109, 136, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #eef4f1 100%);
  color: #163024;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.trainer-workout-modal-library-view svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-workout-modal-library-add {
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(16, 155, 69, 0.46);
  background: linear-gradient(90deg, #109b45 0%, #1cbf5c 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.trainer-workout-modal-library-add--circle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.trainer-workout-modal-library-remove--circle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(228, 76, 108, 0.52);
  background: linear-gradient(180deg, #f24d76 0%, #d8315b 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.trainer-workout-modal-library-remove--circle:disabled {
  opacity: 1;
  border-color: rgba(203, 111, 133, 0.5);
  background: rgba(139, 46, 69, 0.52);
  color: rgba(255, 238, 242, 0.84);
  cursor: not-allowed;
}

.trainer-workout-modal-library-add:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.trainer-workout-modal-library-item--section {
  background: rgba(240, 246, 242, 0.95);
  border-color: rgba(95, 109, 136, 0.18);
}

.trainer-workout-modal-library-item--section .trainer-workout-modal-library-item-copy strong {
  white-space: normal;
}

.trainer-exercise-library-picker {
  margin-top: -2px;
  padding: 0;
  gap: 0;
  border-radius: 18px;
  border: 1px solid rgba(82, 132, 110, 0.36);
  background: linear-gradient(180deg, rgba(8, 22, 18, 0.98) 0%, rgba(9, 25, 20, 0.96) 100%);
  overflow: hidden;
}

.trainer-exercise-library-picker[hidden] {
  display: none !important;
}

.trainer-exercise-library-picker.is-floating {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 8, 12, 0.72);
  cursor: pointer;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-card {
  position: relative;
  width: min(100%, 940px);
  max-height: min(88vh, 780px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid rgba(95, 134, 155, 0.52);
  background: linear-gradient(180deg, rgba(9, 24, 36, 0.98) 0%, rgba(8, 21, 33, 0.98) 100%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  text-align: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
  padding: 16px 114px 14px;
  border-bottom: 1px solid rgba(95, 134, 155, 0.34);
  background: rgba(10, 27, 41, 0.96);
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head strong {
  grid-column: 1 / -1;
  justify-self: center;
  color: #ecf6f3;
  font-size: clamp(1.1rem, 2.4vw, 1.25rem);
  line-height: 1.2;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head small {
  color: rgba(198, 216, 210, 0.88);
  font-size: 0.9rem;
  line-height: 1.3;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head small:not(.trainer-exercise-library-picker-group):not(.trainer-exercise-library-picker-pending) {
  grid-column: 1 / -1;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-group,
.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-pending {
  grid-column: auto;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(95, 134, 155, 0.38);
  background: rgba(17, 40, 57, 0.84);
  color: #d8ebe4;
  font-size: 0.95rem;
  font-weight: 700;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-pending {
  border-color: rgba(33, 203, 113, 0.42);
  color: #9cf0c4;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-close {
  position: absolute;
  top: 12px;
  right: 14px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(95, 134, 155, 0.38);
  background: rgba(22, 50, 40, 0.78);
  color: #ecf6f3;
  padding: 0 12px;
  font-size: 0.92rem;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid rgba(95, 134, 155, 0.18);
  border-bottom: 1px solid rgba(95, 134, 155, 0.28);
  background: rgba(9, 26, 39, 0.94);
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search > span {
  color: #d9ece5;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search input {
  min-height: 58px;
  border: 1px solid rgba(95, 134, 155, 0.38);
  border-radius: 14px;
  background: rgba(14, 34, 49, 0.88);
  color: #e8f5f0;
  padding: 0 14px;
  font-size: 0.99rem;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-list {
  max-height: none;
  min-height: 0;
  height: 100%;
  overflow: auto;
  display: grid;
  gap: 0;
  background: rgba(8, 21, 33, 0.96);
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item {
  border: 0;
  border-bottom: 1px solid rgba(95, 134, 155, 0.3);
  border-radius: 0;
  background: transparent;
  padding: 18px 18px;
  gap: 12px;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item:last-child {
  border-bottom: 0;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-copy {
  gap: 6px;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-copy strong {
  color: #eef8f5;
  font-size: 1.05rem;
  font-weight: 700;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-copy small {
  color: rgba(198, 216, 210, 0.9);
  font-size: 0.95rem;
  line-height: 1.3;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-actions {
  gap: 10px;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-view,
.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-add--circle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-view {
  border-color: rgba(156, 185, 177, 0.5);
  background: rgba(15, 34, 49, 0.9);
  color: #d8ebe4;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-add--circle {
  border-color: rgba(33, 203, 113, 0.55);
  background: linear-gradient(180deg, #20d06a 0%, #17b65a 100%);
  color: #ffffff;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-remove--circle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-empty {
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid rgba(95, 134, 155, 0.24);
  color: rgba(198, 216, 210, 0.86);
  background: rgba(8, 21, 33, 0.96);
}

.trainer-exercise-library-picker-head {
  position: relative;
  padding: 14px 14px 12px;
  padding-right: 88px;
  border-bottom: 1px solid rgba(82, 132, 110, 0.28);
  gap: 6px;
}

.trainer-exercise-library-picker-head strong {
  color: #ecf7f1;
  font-size: 1.02rem;
  line-height: 1.15;
}

.trainer-exercise-library-picker-head small {
  color: rgba(203, 222, 211, 0.86);
  font-size: 0.8rem;
  line-height: 1.25;
}

.trainer-exercise-library-picker-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(76, 121, 101, 0.44);
  background: rgba(18, 38, 29, 0.9);
  color: #e8f4ee;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.trainer-exercise-library-picker-search {
  display: grid;
  gap: 6px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(82, 132, 110, 0.24);
  background: rgba(8, 22, 18, 0.62);
}

.trainer-exercise-library-picker-search > span {
  color: rgba(203, 222, 211, 0.82);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trainer-exercise-library-picker-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(76, 121, 101, 0.42);
  border-radius: 10px;
  background: rgba(16, 36, 28, 0.88);
  color: #e8f4ee;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

.trainer-exercise-library-picker-search input::placeholder {
  color: rgba(203, 222, 211, 0.62);
}

.trainer-exercise-library-picker-group {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(76, 121, 101, 0.36);
  background: rgba(18, 38, 29, 0.82);
  color: rgba(220, 237, 227, 0.92);
  font-size: 0.74rem;
  font-weight: 700;
}

.trainer-exercise-library-picker-pending {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(44, 201, 112, 0.38);
  background: rgba(18, 54, 37, 0.7);
  color: #9df1c4;
  font-size: 0.74rem;
  font-weight: 700;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-list {
  max-height: 330px;
  overflow: auto;
  display: grid;
  gap: 0;
  background: rgba(9, 24, 19, 0.6);
}

.trainer-exercise-library-picker .trainer-workout-modal-library-item {
  border: 0;
  border-bottom: 1px solid rgba(82, 132, 110, 0.24);
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
  gap: 12px;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-item:last-child {
  border-bottom: 0;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-item-copy {
  gap: 4px;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-item-copy strong {
  color: #e8f4ee;
  font-size: 1.02rem;
  font-weight: 700;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-item-copy small {
  color: rgba(203, 222, 211, 0.85);
  font-size: 0.9rem;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-item-actions {
  gap: 10px;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-view,
.trainer-exercise-library-picker .trainer-workout-modal-library-add--circle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-view {
  border-color: rgba(84, 130, 109, 0.44);
  background: rgba(14, 32, 24, 0.86);
  color: rgba(224, 239, 230, 0.9);
}

.trainer-exercise-library-picker .trainer-workout-modal-library-add--circle {
  border-color: rgba(44, 201, 112, 0.48);
  background: linear-gradient(180deg, #1fcf69 0%, #18b55a 100%);
  color: #ffffff;
}

.trainer-exercise-library-picker .trainer-workout-modal-library-empty {
  margin: 0;
  padding: 16px 14px;
  border-top: 1px solid rgba(82, 132, 110, 0.24);
  color: rgba(203, 222, 211, 0.86);
  font-size: 0.9rem;
  background: rgba(8, 22, 18, 0.62);
}

body.student-mobile-select-picker-open {
  overflow: hidden;
}

.student-mobile-select-picker {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  align-items: end;
  padding: 10px;
}

.student-mobile-select-picker[hidden] {
  display: none !important;
}

.student-mobile-select-picker-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 14, 10, 0.54);
  cursor: pointer;
}

.student-mobile-select-picker-card {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
  border: 1px solid rgba(12, 30, 22, 0.24);
  border-radius: 18px;
  background: #f8fbf9;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(72vh, 560px);
}

.student-mobile-select-picker-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(12, 30, 22, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.student-mobile-select-picker-head strong {
  color: #0f251b;
  font-size: 0.88rem;
  line-height: 1.2;
}

.student-mobile-select-picker-head button {
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(15, 35, 26, 0.2);
  background: #ffffff;
  color: #143124;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
}

.student-mobile-select-picker-list {
  overflow: auto;
  display: grid;
  min-height: 0;
  max-height: 100%;
  background: #ffffff;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.student-mobile-select-picker-option {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid rgba(12, 30, 22, 0.12);
  background: transparent;
  color: #1a2a31;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.student-mobile-select-picker-option-row {
  position: relative;
}

.student-mobile-select-picker-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.student-mobile-select-picker-option-title {
  color: #e8f4ee;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.student-mobile-select-picker-option-subtitle {
  color: rgba(197, 215, 208, 0.9);
  font-size: 0.82rem;
  line-height: 1.2;
}

.student-mobile-select-picker.is-workout-select .student-mobile-select-picker-option {
  min-height: 66px;
  padding-right: 52px;
}

.student-mobile-select-picker-edit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(74, 97, 109, 0.45);
  background: rgba(11, 24, 31, 0.76);
  color: #d7e8e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.student-mobile-select-picker-edit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-mobile-select-picker-option:last-child {
  border-bottom: 0;
}

.student-mobile-select-picker-option:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.student-mobile-select-picker-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(74, 97, 109, 0.8);
  background: transparent;
}

.student-mobile-select-picker-option.is-selected .student-mobile-select-picker-radio {
  border-color: #1cbf5c;
  box-shadow: inset 0 0 0 4px #ffffff, inset 0 0 0 8px #1cbf5c;
}

.student-mobile-select-picker.is-multiple .student-mobile-select-picker-radio {
  border-radius: 6px;
}

.student-mobile-select-picker.is-multiple .student-mobile-select-picker-option.is-selected .student-mobile-select-picker-radio {
  border-color: #1cbf5c;
  background: #1cbf5c;
  box-shadow: none;
  position: relative;
}

.student-mobile-select-picker.is-multiple .student-mobile-select-picker-option.is-selected .student-mobile-select-picker-radio::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -58%) rotate(45deg);
}

.student-app-shell.is-mobile-select-picker-open .student-app-bottom-nav {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 761px) {
  .student-mobile-select-picker {
    align-items: center;
    padding: 18px;
  }

  .student-mobile-select-picker-card {
    width: min(100%, 560px);
    max-height: min(78vh, 640px);
    border-radius: 20px;
  }
}

.admin-exercise-edit-field input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  min-height: 42px;
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.admin-exercise-edit-field input[type="file"]::file-selector-button {
  border: 1px solid rgba(15, 35, 26, 0.2);
  border-radius: 8px;
  background: #eef3f0;
  color: #163225;
  padding: 5px 10px;
  margin-right: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-exercise-edit-current-link,
.admin-exercise-edit-current-empty {
  font-size: 0.76rem;
  line-height: 1.25;
}

.admin-exercise-edit-current-link {
  color: #0f8f43;
  text-decoration: underline;
}

.admin-exercise-edit-current-empty {
  color: #6f7f9a;
}

.admin-exercise-edit-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-exercise-edit-cancel,
.admin-exercise-edit-save {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-exercise-edit-cancel {
  border-color: rgba(15, 35, 26, 0.2);
  background: #eef3f0;
  color: #163225;
}

.admin-exercise-edit-save {
  border-color: rgba(22, 163, 74, 0.45);
  background: linear-gradient(90deg, #129547 0%, #17ad50 46%, #20c15d 100%);
  color: #ffffff;
}

.admin-exercise-edit-cancel:disabled,
.admin-exercise-edit-save:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.student-app-shell.is-admin-exercise-modal-open .student-app-bottom-nav {
  display: none;
}

.student-app-shell.is-admin-exercise-modal-open .student-app-mode-note {
  display: none;
}

body.theme-dark .admin-overview-stat-card,
body.theme-dark .admin-overview-table-card,
body.theme-dark .admin-overview-chart-card {
  border-color: rgba(90, 124, 229, 0.25);
  background: linear-gradient(160deg, rgba(15, 22, 38, 0.95), rgba(13, 20, 32, 0.95));
}

body.theme-dark .admin-overview-stat-card small,
body.theme-dark .admin-overview-table th,
body.theme-dark .admin-overview-chart-empty,
body.theme-dark .admin-overview-chart-head p,
body.theme-dark .admin-overview-legend-item small,
body.theme-dark .admin-overview-status-label small,
body.theme-dark .admin-overview-growth-label,
body.theme-dark .admin-overview-activity-day small,
body.theme-dark .admin-overview-activity-legend span,
body.theme-dark .admin-overview-action-muted {
  color: rgba(188, 202, 235, 0.82);
}

body.theme-dark .admin-overview-stat-card strong,
body.theme-dark .admin-overview-table-head h5,
body.theme-dark .admin-overview-table td,
body.theme-dark .admin-overview-chart-head h5,
body.theme-dark .admin-overview-legend-item strong,
body.theme-dark .admin-overview-growth-value,
body.theme-dark .admin-overview-status-label strong {
  color: #e7ecff;
}

body.theme-dark .admin-overview-screen {
  border-color: rgba(97, 135, 248, 0.22);
  background: linear-gradient(170deg, rgba(10, 16, 30, 0.95), rgba(8, 12, 22, 0.95));
}

body.theme-dark .admin-overview-head h4 {
  color: #f0f5ff;
}

body.theme-dark .admin-overview-head p {
  color: rgba(196, 210, 244, 0.82);
}

body.theme-dark .admin-overview-refresh {
  border-color: rgba(106, 142, 244, 0.35);
  background: rgba(20, 30, 50, 0.86);
  color: #eaf0ff;
}

body.theme-dark .admin-overview-report-btn {
  border-color: rgba(149, 177, 255, 0.4);
  background: #111a2e;
  color: #f1f6ff;
}

body.theme-dark .admin-overview-collapse-btn {
  border-color: rgba(106, 142, 244, 0.38);
  background: rgba(17, 27, 46, 0.86);
  color: #eaf0ff;
}

body.theme-dark .admin-overview-collapse-btn:hover {
  background: rgba(22, 36, 60, 0.9);
}

body.theme-dark .admin-overview-tab {
  color: rgba(216, 228, 255, 0.9);
}

body.theme-dark .admin-overview-tabs {
  background: rgba(33, 46, 77, 0.82);
}

body.theme-dark .admin-overview-tab.is-active {
  background: rgba(13, 21, 39, 0.95);
  box-shadow: 0 8px 18px rgba(5, 8, 18, 0.44);
}

body.theme-dark .admin-overview-legend-item,
body.theme-dark .admin-overview-activity-bars,
body.theme-dark .admin-overview-growth-chart {
  border-color: rgba(96, 129, 210, 0.26);
  background: rgba(17, 27, 46, 0.86);
}

body.theme-dark .admin-overview-pie-center {
  background: rgba(13, 22, 39, 0.92);
  border-color: rgba(110, 142, 219, 0.32);
}

body.theme-dark .admin-overview-pie-track {
  stroke: rgba(102, 124, 171, 0.32);
}

body.theme-dark .admin-overview-pie-center strong {
  color: #eef3ff;
}

body.theme-dark .admin-overview-pie-center small {
  color: rgba(184, 198, 229, 0.82);
}

body.theme-dark .admin-overview-table th,
body.theme-dark .admin-overview-table td {
  border-bottom-color: rgba(96, 129, 210, 0.24);
}

body.theme-dark .admin-overview-table td small {
  color: rgba(188, 202, 235, 0.82);
}

body.theme-dark .admin-overview-status-track {
  background: rgba(95, 111, 151, 0.44);
}

body.theme-dark .admin-overview-role-select {
  border-color: rgba(109, 142, 220, 0.36);
  background: rgba(17, 27, 46, 0.86);
  color: #edf3ff;
}

body.theme-dark .admin-overview-table-head p,
body.theme-dark .admin-overview-filter-field > span {
  color: rgba(188, 202, 235, 0.82);
}

body.theme-dark .admin-overview-filter-field input,
body.theme-dark .admin-overview-filter-field select {
  border-color: rgba(109, 142, 220, 0.36);
  background: rgba(17, 27, 46, 0.86);
  color: #edf3ff;
}

body.theme-dark .admin-overview-filter-field input::placeholder {
  color: rgba(184, 198, 229, 0.72);
}

body.theme-dark .admin-overview-role-select:focus-visible {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

body.theme-dark .admin-overview-status-badge.is-enabled {
  background: rgba(34, 197, 94, 0.2);
  color: #96f0bb;
  border-color: rgba(74, 222, 128, 0.4);
}

body.theme-dark .admin-overview-status-badge.is-disabled {
  background: rgba(239, 68, 68, 0.2);
  color: #ffb0b0;
  border-color: rgba(248, 113, 113, 0.4);
}

body.theme-dark .admin-overview-status-badge.is-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #ffd7a3;
  border-color: rgba(251, 191, 36, 0.42);
}

body.theme-dark .admin-overview-action-btn {
  border-color: rgba(106, 142, 244, 0.35);
  background: rgba(17, 27, 46, 0.84);
  color: #eaf0ff;
}

body.theme-dark .admin-site-team-item {
  border-color: rgba(106, 142, 244, 0.3);
  background: linear-gradient(162deg, rgba(18, 29, 49, 0.9), rgba(14, 24, 40, 0.92));
}

body.theme-dark .admin-site-team-item h6 {
  color: #e7ecff;
}

body.theme-dark .admin-site-team-preview {
  border-color: rgba(109, 142, 220, 0.36);
  background: linear-gradient(145deg, rgba(27, 45, 69, 0.82), rgba(18, 31, 50, 0.82));
}

body.theme-dark .admin-site-team-range-field strong {
  color: #edf3ff;
}

body.theme-dark .admin-site-team-photo-hint {
  color: rgba(188, 202, 235, 0.72);
}

body.theme-dark .admin-site-team-item .admin-overview-filter-field textarea {
  border-color: rgba(109, 142, 220, 0.36);
  background: rgba(17, 27, 46, 0.86);
  color: #edf3ff;
}

body.theme-dark .admin-site-team-item .admin-overview-filter-field textarea:focus-visible {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

body.theme-dark .admin-site-team-item .admin-overview-filter-field input.is-invalid,
body.theme-dark .admin-site-team-item .admin-overview-filter-field textarea.is-invalid {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

body.theme-dark .admin-overview-action-btn.is-danger {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(104, 25, 25, 0.52);
  color: #ffc9c9;
}

body.theme-dark .admin-overview-identification-chip {
  border-color: rgba(109, 142, 220, 0.4);
  background: rgba(17, 27, 46, 0.86);
  color: #ebf2ff;
}

body.theme-dark .admin-exercise-edit-modal-card {
  border-color: rgba(103, 154, 128, 0.36);
  background: linear-gradient(156deg, rgba(10, 27, 20, 0.96), rgba(9, 21, 16, 0.96));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

body.theme-dark .admin-exercise-edit-modal-close {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #e5f5ec;
}

body.theme-dark .admin-exercise-edit-modal-head h6 {
  color: #e8f7ee;
}

body.theme-dark .admin-exercise-edit-modal-head p,
body.theme-dark .admin-exercise-edit-field > span {
  color: rgba(194, 214, 202, 0.86);
}

body.theme-dark .trainer-exercise-video-modal-embed,
body.theme-dark .trainer-exercise-video-modal-file {
  border-color: rgba(116, 162, 138, 0.34);
  background: #000000;
}

body.theme-dark .trainer-exercise-video-modal-empty {
  color: rgba(194, 214, 202, 0.9);
  border-color: rgba(116, 162, 138, 0.36);
  background: rgba(22, 40, 31, 0.56);
}

body.theme-dark .admin-user-delete-warning {
  color: rgba(210, 229, 218, 0.92);
}

body.theme-dark .admin-exercise-edit-field input,
body.theme-dark .admin-exercise-edit-field select,
body.theme-dark .admin-exercise-edit-field textarea {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #ecf7f1;
}

body.theme-dark .admin-exercise-edit-form.is-readonly .admin-exercise-edit-field input:disabled,
body.theme-dark .admin-exercise-edit-form.is-readonly .admin-exercise-edit-field select:disabled,
body.theme-dark .admin-exercise-edit-form.is-readonly .admin-exercise-edit-field textarea:disabled {
  opacity: 1;
  color: #ecf7f1;
  -webkit-text-fill-color: #ecf7f1;
  background: rgba(22, 40, 31, 0.76);
}

body.theme-dark .admin-exercise-edit-field input[type="file"]::file-selector-button {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.7);
  color: #e6f5ec;
}

body.theme-dark .admin-exercise-edit-current-link {
  color: #8de2ad;
}

body.theme-dark .admin-exercise-edit-current-empty {
  color: rgba(194, 214, 202, 0.8);
}

body.theme-dark .admin-exercise-edit-cancel {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #e6f5ec;
}

body.theme-dark .admin-exercise-edit-save {
  border-color: rgba(52, 207, 116, 0.55);
}

body.theme-dark .trainer-workout-modal-library {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(17, 35, 27, 0.62);
}

body.theme-dark .trainer-workout-modal-library-head strong {
  color: #ecf7f1;
}

body.theme-dark .trainer-workout-modal-library-head small,
body.theme-dark .trainer-workout-modal-library-empty,
body.theme-dark .trainer-workout-modal-library-item-copy small {
  color: rgba(194, 214, 202, 0.84);
}

body.theme-dark .trainer-workout-modal-library-item {
  border-color: rgba(116, 162, 138, 0.3);
  background: rgba(22, 40, 31, 0.64);
}

body.theme-dark .trainer-workout-modal-library-item-copy strong {
  color: #e9f6ef;
}

body.theme-dark .trainer-exercise-library-picker-close {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #e6f5ec;
}

body.theme-dark .trainer-exercise-library-picker-search > span {
  color: rgba(194, 214, 202, 0.84);
}

body.theme-dark .trainer-exercise-library-picker-search input {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #ecf7f1;
}

body.theme-dark .trainer-exercise-library-picker-group {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #d8ece0;
}

body.theme-dark .trainer-exercise-library-picker-pending {
  border-color: rgba(44, 201, 112, 0.4);
  background: rgba(17, 61, 40, 0.74);
  color: #9df1c4;
}

body.theme-dark .trainer-exercise-library-picker {
  border-color: rgba(116, 162, 138, 0.34);
  background: linear-gradient(180deg, rgba(8, 22, 18, 0.98) 0%, rgba(9, 25, 20, 0.96) 100%);
}

body.theme-dark .trainer-exercise-library-picker-head {
  border-bottom-color: rgba(116, 162, 138, 0.24);
}

body.theme-dark .trainer-exercise-library-picker .trainer-workout-modal-library-list {
  background: rgba(9, 24, 19, 0.6);
}

body.theme-dark .trainer-exercise-library-picker .trainer-workout-modal-library-item {
  border: 0;
  border-bottom: 1px solid rgba(116, 162, 138, 0.22);
  border-radius: 0;
  background: transparent;
}

body.theme-dark .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy strong {
  color: #e8f4ee;
}

body.theme-dark .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy small {
  color: rgba(203, 222, 211, 0.85);
}

body.theme-dark .trainer-exercise-library-picker .trainer-workout-modal-library-view {
  border-color: rgba(116, 162, 138, 0.38);
  background: rgba(14, 32, 24, 0.86);
  color: rgba(224, 239, 230, 0.9);
}

body.theme-dark .trainer-exercise-library-picker .trainer-workout-modal-library-add--circle {
  border-color: rgba(44, 201, 112, 0.48);
  background: linear-gradient(180deg, #1fcf69 0%, #18b55a 100%);
  color: #ffffff;
}

body.theme-dark .trainer-exercise-library-picker .trainer-workout-modal-library-remove--circle {
  border-color: rgba(242, 104, 132, 0.54);
  background: linear-gradient(180deg, #f05e81 0%, #d33d63 100%);
  color: #ffffff;
}

body.theme-dark .trainer-exercise-library-picker .trainer-workout-modal-library-empty {
  border-top-color: rgba(116, 162, 138, 0.24);
  background: rgba(8, 22, 18, 0.62);
  color: rgba(203, 222, 211, 0.86);
}

body.theme-dark .student-mobile-select-picker-scrim {
  background: rgba(2, 6, 4, 0.72);
}

body.theme-dark .student-mobile-select-picker-card {
  border-color: rgba(116, 162, 138, 0.3);
  background: #1a242d;
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.42);
}

body.theme-dark .student-mobile-select-picker-head {
  border-bottom-color: rgba(116, 162, 138, 0.26);
  background: rgba(14, 24, 30, 0.88);
}

body.theme-dark .student-mobile-select-picker-head strong {
  color: #ecf7f1;
}

body.theme-dark .student-mobile-select-picker-head button {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #e6f5ec;
}

body.theme-dark .student-mobile-select-picker-list {
  background: rgba(16, 26, 33, 0.98);
}

body.theme-dark .student-mobile-select-picker-option {
  border-bottom-color: rgba(116, 162, 138, 0.2);
  color: #dfecea;
}

body.theme-dark .student-mobile-select-picker-option-title {
  color: #ecf7f1;
}

body.theme-dark .student-mobile-select-picker-option-subtitle {
  color: rgba(195, 213, 203, 0.9);
}

body.theme-dark .student-mobile-select-picker-edit {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.72);
  color: #dceee5;
}

body.theme-dark .student-mobile-select-picker-radio {
  border-color: rgba(195, 213, 203, 0.88);
}

body.theme-dark .student-mobile-select-picker-option.is-selected .student-mobile-select-picker-radio {
  border-color: #2acf73;
  box-shadow: inset 0 0 0 4px #1a242d, inset 0 0 0 8px #2acf73;
}

body.theme-dark .student-mobile-select-picker.is-multiple .student-mobile-select-picker-option.is-selected .student-mobile-select-picker-radio {
  border-color: #2acf73;
  background: #2acf73;
  box-shadow: none;
}

@media (min-width: 760px) {
  .admin-overview-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .admin-overview-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.theme-dark .trainer-workout-create-card,
body.theme-dark .trainer-workout-definition-card,
body.theme-dark .trainer-exercise-create-card {
  border-color: rgba(103, 154, 128, 0.28);
  background: linear-gradient(140deg, rgba(8, 30, 21, 0.88), rgba(9, 22, 17, 0.9));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

body.theme-dark .trainer-workout-create-card .admin-overview-table-head h5,
body.theme-dark .trainer-workout-definition-card .admin-overview-table-head h5,
body.theme-dark .trainer-exercise-create-card .admin-overview-table-head h5 {
  color: #ebf8f0;
}

body.theme-dark .trainer-card-subtitle {
  color: rgba(182, 215, 196, 0.82);
}

body.theme-dark .trainer-workout-definition-card .trainer-predefined-workout-field > span {
  color: rgba(194, 214, 202, 0.9);
}

body.theme-dark .trainer-workout-definition-card .trainer-predefined-workout-field select {
  background: rgba(22, 40, 31, 0.62);
  border-color: rgba(116, 162, 138, 0.34);
  color: #ecf7f1;
}

body.theme-dark .trainer-card-section-head h6 {
  color: #ddf5e8;
}

body.theme-dark .trainer-card-section-head p,
body.theme-dark .trainer-exercise-title-wrap p {
  color: rgba(182, 215, 196, 0.78);
}

body.theme-dark .student-library-manage-card {
  border-color: rgba(103, 154, 128, 0.28);
  background: linear-gradient(140deg, rgba(8, 30, 21, 0.88), rgba(9, 22, 17, 0.9));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

body.theme-dark .trainer-library-head-icon,
body.theme-dark .trainer-library-media-icon {
  background: rgba(34, 59, 46, 0.9);
  color: #d8ece0;
}

body.theme-dark .trainer-library-head h5,
body.theme-dark .trainer-library-defaults h6,
body.theme-dark .trainer-library-media-zone strong {
  color: #ecf7f1;
}

body.theme-dark .trainer-library-head p,
body.theme-dark .trainer-library-media-zone small {
  color: rgba(182, 215, 196, 0.82);
}

body.theme-dark .trainer-library-close-btn,
body.theme-dark .trainer-library-cancel-btn {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #ecf7f1;
}

body.theme-dark .trainer-library-media-title {
  color: rgba(194, 214, 202, 0.92);
}

body.theme-dark .trainer-library-media-zone {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.5);
}

body.theme-dark .trainer-library-media-zone:focus-within {
  border-color: rgba(52, 207, 116, 0.75);
  box-shadow: 0 0 0 3px rgba(52, 207, 116, 0.2);
}

body.theme-dark .trainer-workout-cover-stage {
  border-color: rgba(116, 162, 138, 0.28);
  background:
    radial-gradient(circle at top, rgba(30, 194, 101, 0.24), transparent 54%),
    linear-gradient(145deg, rgba(5, 18, 14, 0.98), rgba(8, 28, 20, 0.94));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

body.theme-dark .trainer-workout-cover-stage-overlay {
  background:
    linear-gradient(180deg, rgba(3, 10, 7, 0.06) 0%, rgba(3, 10, 7, 0.78) 100%),
    radial-gradient(circle at top, rgba(40, 209, 111, 0.18), transparent 56%);
}

body.theme-dark .trainer-workout-cover-stage-copy small {
  color: rgba(178, 221, 199, 0.82);
}

body.theme-dark .trainer-workout-cover-stage-copy strong {
  color: #f2fbf5;
}

body.theme-dark .trainer-workout-cover-stage-copy span {
  color: rgba(220, 237, 227, 0.9);
}

body.theme-dark .trainer-workout-cover-feedback {
  color: rgba(204, 223, 212, 0.88);
}

body.theme-dark .trainer-library-form--model .trainer-library-grid label > span {
  color: rgba(194, 214, 202, 0.92);
}

body.theme-dark .trainer-library-form--model .trainer-library-grid input:not([type="file"]),
body.theme-dark .trainer-library-form--model .trainer-library-grid textarea,
body.theme-dark .trainer-library-form--model .trainer-library-grid select {
  background: rgba(22, 40, 31, 0.62);
  border-color: rgba(116, 162, 138, 0.34);
  color: #ecf7f1;
}


body.theme-dark .trainer-workout-form-grid label span,
body.theme-dark .trainer-exercise-filter span {
  color: rgba(194, 214, 202, 0.86);
}

body.theme-dark .trainer-workout-head p {
  color: rgba(194, 214, 202, 0.82);
}

body.theme-dark .trainer-progress-stat-card,
body.theme-dark .trainer-progress-student-grid article {
  border-color: rgba(103, 154, 128, 0.28);
  background: linear-gradient(165deg, rgba(15, 29, 23, 0.96), rgba(12, 24, 19, 0.95));
}

body.theme-dark .trainer-progress-toolbar span,
body.theme-dark .trainer-progress-toolbar small,
body.theme-dark .trainer-progress-stat-card small,
body.theme-dark .trainer-progress-student-grid small {
  color: rgba(194, 214, 202, 0.86);
}

body.theme-dark .trainer-progress-export-pdf {
  border-color: rgba(24, 191, 92, 0.42);
}

body.theme-dark .trainer-progress-stat-card strong,
body.theme-dark .trainer-progress-student-grid strong {
  color: #e3f2ea;
}

body.theme-dark .trainer-progress-toolbar select {
  background: #19241f;
  border-color: rgba(146, 184, 163, 0.24);
  color: #e8f4ed;
}

body.theme-dark .trainer-progress-empty-state {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.5);
}

body.theme-dark .trainer-progress-empty-icon {
  background: rgba(34, 59, 46, 0.9);
  color: #d8ece0;
}

body.theme-dark .trainer-progress-empty-state p {
  color: rgba(182, 215, 196, 0.82);
}

body.theme-dark .trainer-workout-form-grid input,
body.theme-dark .trainer-workout-form-grid textarea,
body.theme-dark .trainer-workout-form-grid select,
body.theme-dark .trainer-exercise-filter select {
  background: #19241f;
  border-color: rgba(146, 184, 163, 0.24);
  color: #e8f4ed;
}

body.theme-dark .trainer-workout-form-grid--model label span,
body.theme-dark .trainer-workout-form-grid--model .trainer-weekdays-fieldset legend {
  color: rgba(194, 214, 202, 0.9);
}

body.theme-dark .trainer-predefined-workout-field > span {
  color: rgba(194, 214, 202, 0.9);
}

body.theme-dark .trainer-workout-form-grid--model input,
body.theme-dark .trainer-workout-form-grid--model textarea,
body.theme-dark .trainer-workout-form-grid--model select {
  background: rgba(22, 40, 31, 0.62);
  border-color: rgba(116, 162, 138, 0.34);
  color: #ecf7f1;
}

body.theme-dark [data-trainer-exercise-group] {
  color-scheme: dark;
  scrollbar-color: rgba(116, 162, 138, 0.52) rgba(10, 23, 18, 0.92);
}

body.theme-dark [data-trainer-exercise-group] option {
  background: #102018;
  color: #ecf7f1;
}

body.theme-dark [data-trainer-exercise-group] option:checked {
  background: #2acf73;
  color: #04110b;
}

body.theme-dark .trainer-form-divider {
  border-top-color: rgba(116, 162, 138, 0.34);
}

body.theme-dark .trainer-workout-form-grid--model .trainer-weekdays-fieldset label span {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(25, 44, 35, 0.78);
  color: #d8ece0;
}

body.theme-dark .trainer-workout-form-grid--model .trainer-weekdays-fieldset label input[type="checkbox"]:checked + span {
  border-color: rgba(52, 207, 116, 0.75);
  background: rgba(52, 207, 116, 0.2);
  color: #9af0bf;
}

body.theme-dark .trainer-exercise-editor {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(18, 35, 28, 0.65);
}

body.theme-dark .trainer-exercise-group-hint {
  color: rgba(194, 214, 202, 0.9);
  border-color: rgba(116, 162, 138, 0.36);
  background: rgba(22, 40, 31, 0.56);
}

body.theme-dark .trainer-exercise-details {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.5);
}

body.theme-dark .trainer-exercise-section-title {
  color: #e6f4eb;
}

body.theme-dark .trainer-exercise-section-divider {
  border-top-color: rgba(116, 162, 138, 0.34);
}

body.theme-dark .trainer-exercise-media-grid input[type="file"] {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #ecf7f1;
}

body.theme-dark .trainer-exercise-media-grid input[type="file"]::file-selector-button {
  border-color: rgba(116, 162, 138, 0.38);
  background: rgba(34, 59, 46, 0.9);
  color: #d8ecdf;
}

body.theme-dark .trainer-exercise-editor-head h6 {
  color: #e6f4eb;
}

body.theme-dark .trainer-exercise-editor-trash {
  color: #f1899e;
}

body.theme-dark .trainer-workout-form-grid--model input[type="file"]::file-selector-button {
  border-color: rgba(116, 162, 138, 0.38);
  background: rgba(34, 59, 46, 0.9);
  color: #d8ecdf;
}

body.theme-dark .trainer-select-search-icon {
  color: rgba(176, 213, 192, 0.82);
}

body.theme-dark .trainer-select-search input[type="search"],
body.theme-dark .trainer-select-search input[type="text"] {
  background: rgba(22, 40, 31, 0.62);
  border-color: rgba(116, 162, 138, 0.34);
  color: #ecf7f1;
}

body.theme-dark .trainer-select-search input[type="search"]::placeholder,
body.theme-dark .trainer-select-search input[type="text"]::placeholder {
  color: rgba(184, 215, 197, 0.7);
}

body.theme-dark .trainer-weekdays-fieldset {
  border-color: rgba(146, 184, 163, 0.24);
  background: rgba(25, 36, 31, 0.75);
}

body.theme-dark .trainer-workout-form-grid--model .trainer-weekdays-fieldset {
  border-color: rgba(116, 162, 138, 0.32);
  background: rgba(22, 40, 31, 0.5);
}

body.theme-dark .trainer-weekdays-fieldset legend {
  color: rgba(194, 214, 202, 0.86);
}

body.theme-dark .trainer-weekdays-fieldset label {
  color: #d9ece2;
}

body.theme-dark .trainer-workout-table a {
  color: #73e3a8;
}

body.theme-dark .trainer-managed-workout-summary strong {
  color: #e9f6ef;
}

body.theme-dark .trainer-linked-exercises {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.5);
}

body.theme-dark .trainer-linked-exercises h6 {
  color: #e6f4eb;
}

body.theme-dark .trainer-weekday-assignment-wrap strong {
  color: #dff3e7;
}

body.theme-dark .trainer-weekday-assignment-wrap h6 {
  color: #dff3e7;
}

body.theme-dark .trainer-weekday-assignment-field > span {
  color: rgba(194, 214, 202, 0.9);
}

body.theme-dark .trainer-linked-exercises-summary {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(18, 35, 28, 0.65);
}

body.theme-dark .trainer-linked-exercises-summary strong {
  color: #e6f4eb;
}

body.theme-dark .trainer-linked-exercises-toggle {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(22, 40, 31, 0.62);
  color: #d8ece0;
}

body.theme-dark .trainer-linked-exercises-toggle.is-open {
  border-color: rgba(44, 216, 115, 0.5);
  background: rgba(19, 74, 45, 0.8);
  color: #8ef0ba;
}

body.theme-dark .trainer-workout-select-action {
  border-color: rgba(116, 162, 138, 0.36);
  background: rgba(18, 41, 32, 0.78);
  color: #d4eee0;
}

body.theme-dark .trainer-linked-exercises-list .admin-overview-table-wrap {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(18, 35, 28, 0.65);
}

body.theme-dark .trainer-linked-exercises-table.is-empty td[colspan] {
  color: rgba(194, 214, 202, 0.86);
  border-color: rgba(116, 162, 138, 0.36);
  background: rgba(22, 40, 31, 0.56);
}

body.theme-dark .trainer-exercise-add-btn {
  border-color: rgba(44, 216, 115, 0.5);
  background: rgba(13, 25, 19, 0.9);
  color: #e8f8ef;
}

body.theme-dark .trainer-exercise-add-btn:hover {
  filter: brightness(1.1);
}

body.theme-dark .trainer-status-chip {
  border-color: rgba(116, 162, 138, 0.42);
  background: rgba(85, 108, 96, 0.28);
  color: rgba(213, 232, 220, 0.92);
}

body.theme-dark .trainer-status-chip.is-success {
  border-color: rgba(44, 216, 115, 0.5);
  background: rgba(18, 60, 37, 0.82);
  color: #8ef0ba;
}

body.theme-dark .trainer-status-chip.is-disabled {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(104, 25, 25, 0.42);
  color: #fecaca;
}

body.theme-dark .trainer-action-danger {
  background: linear-gradient(90deg, #9f1239 0%, #be123c 48%, #e11d48 100%);
}

body.theme-dark .trainer-action-warning {
  background: linear-gradient(90deg, #8a5b02 0%, #b77906 48%, #d99110 100%);
}

body.theme-dark .trainer-action-neutral,
body.theme-dark .trainer-workout-modal-library-view {
  border-color: rgba(116, 162, 138, 0.34);
  background: rgba(18, 41, 32, 0.82);
  color: #d9efe3;
}

body.theme-dark .trainer-workout-modal-library-item--section {
  border-color: rgba(116, 162, 138, 0.22);
  background: rgba(20, 36, 29, 0.92);
}

@media (max-width: 760px) {
  .admin-overview-screen {
    padding: 10px;
    border-radius: 14px;
    overflow-x: clip;
  }

  .admin-overview-screen > * {
    min-width: 0;
  }

  .admin-overview-head {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .admin-overview-head-copy {
    width: 100%;
    min-width: 0;
  }

  .admin-overview-head h4 {
    font-size: clamp(1.14rem, 5.8vw, 1.45rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .admin-overview-head p {
    max-width: none;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }

  .admin-overview-head-actions {
    width: 100%;
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-overview-refresh,
  .admin-overview-report-btn {
    min-height: 38px;
    font-size: 0.84rem;
    padding: 0 12px;
    width: 100%;
    min-width: 0;
  }

  .admin-overview-stat-card {
    padding: 12px;
  }

  .admin-overview-icon-card {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .admin-overview-tabs {
    gap: 6px;
    padding: 5px;
  }

  .admin-overview-tab {
    min-height: 34px;
    font-size: 0.82rem;
  }

  .admin-overview-support-toolbar {
    justify-content: stretch;
  }

  .admin-overview-support-tabs {
    width: 100%;
  }

  .trainer-managed-workouts-toolbar {
    justify-content: stretch;
  }

  .trainer-managed-workouts-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trainer-managed-workouts-tabs .admin-overview-tab {
    font-size: 0.78rem;
    padding: 0 10px;
  }

  .admin-overview-chart-card {
    padding: 12px;
  }

  .admin-overview-pie-circle {
    width: min(220px, 74vw);
  }

  .admin-overview-activity-bars {
    min-height: 210px;
    padding: 10px 8px 8px;
    gap: 6px;
  }

  .admin-overview-activity-columns {
    height: 150px;
    gap: 4px;
  }

  .admin-overview-activity-legend {
    gap: 10px;
  }

  .admin-overview-growth-footer {
    grid-template-columns: 1fr;
  }

  .admin-overview-exercises-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-overview-table-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-overview-collapse-btn {
    width: 100%;
  }

  .admin-site-team-list {
    grid-template-columns: 1fr;
  }

  .admin-site-team-toolbar-actions .admin-overview-action-btn {
    width: 100%;
  }

  .admin-site-team-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-site-team-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-site-team-actions .admin-overview-action-btn,
  .admin-site-team-actions .admin-overview-report-btn {
    width: 100%;
  }

  .admin-exercise-edit-modal {
    padding: 8px;
  }

  .admin-exercise-edit-modal-card {
    width: 100%;
    border-radius: 14px;
    padding: 12px;
  }

  .admin-exercise-edit-grid--two,
  .admin-exercise-edit-grid--three,
  .admin-exercise-edit-grid--four {
    grid-template-columns: 1fr;
  }

  .admin-exercise-edit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-exercise-edit-cancel,
  .admin-exercise-edit-save {
    width: 100%;
  }

  .student-app-shell.is-admin-geral-mode .student-app-main {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .student-app-panel .admin-overview-table-wrap {
    overflow: visible;
  }

  .student-app-panel .admin-overview-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .student-app-panel .admin-overview-table thead {
    display: none;
  }

  .student-app-panel .admin-overview-table tbody,
  .student-app-panel .admin-overview-table tr {
    display: grid;
    gap: 6px;
  }

  .student-app-panel .admin-overview-table tr {
    border: 1px solid rgba(12, 30, 22, 0.12);
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
  }

  .student-app-panel .admin-overview-table td {
    border-bottom: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    color: #11271d;
    font-size: 0.84rem;
  }

  .student-app-panel .admin-overview-table td::before {
    content: attr(data-label);
    color: #5f786b;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    flex-shrink: 0;
    padding-top: 2px;
  }

  .student-app-panel .admin-overview-table td[colspan] {
    display: block;
    text-align: center;
    color: #4f6d5e;
  }

  .student-app-panel .admin-overview-table td[colspan]::before {
    content: none;
  }

  .student-app-panel .admin-overview-role-select,
  .student-app-panel .admin-overview-action-btn {
    width: min(100%, 180px);
    margin-left: auto;
  }

  .student-app-panel .admin-overview-action-muted,
  .student-app-panel .admin-overview-status-badge {
    margin-left: auto;
    text-align: right;
  }

  body.theme-dark .student-app-panel .admin-overview-table tr {
    border-color: rgba(103, 154, 128, 0.28);
    background: linear-gradient(165deg, rgba(15, 29, 23, 0.96), rgba(12, 24, 19, 0.95));
  }

  body.theme-dark .student-app-panel .admin-overview-table td {
    color: #e3f2ea;
  }

  body.theme-dark .student-app-panel .admin-overview-table td::before {
    color: rgba(194, 214, 202, 0.86);
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table-wrap {
    overflow: visible;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table thead {
    display: none;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table tbody,
  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table tr {
    display: grid;
    gap: 6px;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table tr {
    border: 1px solid rgba(12, 30, 22, 0.12);
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table td {
    border-bottom: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    color: #11271d;
    font-size: 0.84rem;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table td::before {
    content: attr(data-label);
    color: #5f786b;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    flex-shrink: 0;
    padding-top: 2px;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table td[colspan] {
    display: block;
    text-align: center;
    color: #4f6d5e;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table td[colspan]::before {
    content: none;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-role-select,
  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-action-btn {
    width: min(100%, 180px);
    margin-left: auto;
  }

  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-action-muted,
  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-status-badge {
    margin-left: auto;
    text-align: right;
  }

  .student-app-panel .admin-overview-actions-group,
  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-actions-group {
    margin-left: auto;
    justify-content: flex-end;
  }

  .student-app-panel .admin-overview-actions-group .admin-overview-action-btn,
  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-actions-group .admin-overview-action-btn {
    margin-left: 0;
  }

  .student-app-panel .admin-overview-action-btn.admin-overview-action-icon-btn,
  .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-action-btn.admin-overview-action-icon-btn {
    width: 34px;
    min-width: 34px;
  }

  body.theme-dark .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table tr {
    border-color: rgba(103, 154, 128, 0.28);
    background: linear-gradient(165deg, rgba(15, 29, 23, 0.96), rgba(12, 24, 19, 0.95));
  }

  body.theme-dark .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table td {
    color: #e3f2ea;
  }

  body.theme-dark .student-app-panel[data-student-app-panel="admin-geral"] .admin-overview-table td::before {
    color: rgba(194, 214, 202, 0.86);
  }

  .trainer-workout-form-grid {
    grid-template-columns: 1fr;
  }

  .trainer-workout-submit {
    max-width: none;
    width: 100%;
  }

  .trainer-workout-actions [data-trainer-exercise-submit] {
    width: min(100%, 220px);
  }

  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-toolbar small {
    order: 1;
  }

  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-toolbar label {
    order: 2;
  }

  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-stats-grid {
    grid-template-columns: 1fr;
  }

  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-stat-card small {
    font-size: 0.76rem;
    overflow: visible;
    text-overflow: clip;
  }

  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-toolbar-actions {
    margin-top: 8px;
  }

  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-export-pdf {
    width: 100%;
  }

  .trainer-workout-screen .admin-overview-table-wrap {
    overflow: visible;
  }

  .trainer-workout-screen .trainer-workout-table,
  .trainer-progress-report .trainer-progress-history-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .trainer-workout-screen .trainer-workout-table thead,
  .trainer-progress-report .trainer-progress-history-table thead {
    display: none;
  }

  .trainer-workout-screen .trainer-workout-table tbody,
  .trainer-progress-report .trainer-progress-history-table tbody,
  .trainer-workout-screen .trainer-workout-table tr,
  .trainer-progress-report .trainer-progress-history-table tr {
    display: grid;
    gap: 6px;
  }

  .trainer-workout-screen .trainer-workout-table tr,
  .trainer-progress-report .trainer-progress-history-table tr {
    border: 1px solid rgba(12, 30, 22, 0.12);
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
  }

  .trainer-workout-screen .trainer-workout-table td,
  .trainer-progress-report .trainer-progress-history-table td {
    border-bottom: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    color: #11271d;
    font-size: 0.84rem;
  }

  .trainer-workout-screen .trainer-workout-table td::before,
  .trainer-progress-report .trainer-progress-history-table td::before {
    content: attr(data-label);
    color: #5f786b;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    flex-shrink: 0;
  }

  .trainer-workout-screen .trainer-workout-table td.trainer-managed-workout-summary-cell::before {
    content: none;
  }

  .trainer-workout-screen .trainer-linked-exercises-table td::before {
    content: none;
  }

  .trainer-workout-screen .trainer-linked-exercises-table td {
    justify-content: flex-start;
    align-items: center;
    font-size: 1.02rem;
  }

  .trainer-workout-screen .trainer-workout-table tr.trainer-managed-workout-row:not(.is-expanded) td {
    display: none;
  }

  .trainer-workout-screen .trainer-workout-table tr.trainer-managed-workout-row:not(.is-expanded) td.trainer-managed-workout-summary-cell {
    display: block;
  }

  .trainer-workout-screen .trainer-workout-table tr.trainer-managed-workout-row:not(.is-expanded) {
    gap: 0;
  }

  .trainer-workout-screen .trainer-workout-table td[data-label="Ações"] {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .trainer-workout-screen .trainer-table-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .trainer-workout-screen .trainer-table-actions .student-progress-action-btn {
    flex: 1 1 112px;
    min-height: 32px;
  }

  .trainer-workout-screen .trainer-workout-table td[colspan],
  .trainer-progress-report .trainer-progress-history-table td[colspan] {
    display: block;
    text-align: center;
    color: #4f6d5e;
  }

  .trainer-workout-screen .trainer-workout-table td[colspan]::before,
  .trainer-progress-report .trainer-progress-history-table td[colspan]::before {
    content: none;
  }

  .trainer-workout-screen .trainer-linked-exercises-table.is-empty tr {
    border: 0;
    background: transparent;
    padding: 0;
  }

  .trainer-workout-screen .trainer-linked-exercises-table.is-empty td[colspan] {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
  }

  body.theme-dark .trainer-workout-screen .trainer-workout-table tr,
  body.theme-dark .trainer-progress-report .trainer-progress-history-table tr {
    border-color: rgba(103, 154, 128, 0.28);
    background: linear-gradient(165deg, rgba(15, 29, 23, 0.96), rgba(12, 24, 19, 0.95));
  }

  body.theme-dark .trainer-workout-screen .trainer-workout-table td,
  body.theme-dark .trainer-progress-report .trainer-progress-history-table td {
    color: #e3f2ea;
  }

  body.theme-dark .trainer-workout-screen .trainer-workout-table td::before,
  body.theme-dark .trainer-progress-report .trainer-progress-history-table td::before {
    color: rgba(194, 214, 202, 0.86);
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] {
    min-width: 0;
    overflow-x: hidden;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-screen,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-screen > * {
    min-width: 0;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-head {
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-head h4 {
    font-size: clamp(1.1rem, 5.2vw, 1.36rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-head p {
    font-size: 0.86rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    margin-left: auto;
    margin-right: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-head-actions {
    justify-content: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-refresh {
    justify-self: stretch;
    width: 100%;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-head-actions .trainer-workout-refresh,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-head-actions .trainer-workout-open-library {
    justify-self: auto;
    width: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-create-card,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-definition-card,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-create-card {
    margin-top: 0;
    padding: 12px;
    border-radius: 12px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-create-card .admin-overview-table-head,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-definition-card .admin-overview-table-head,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-create-card .admin-overview-table-head {
    justify-items: center;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-create-card .admin-overview-table-head h5,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-definition-card .admin-overview-table-head h5,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-create-card .admin-overview-table-head h5 {
    font-size: clamp(1.02rem, 4.6vw, 1.2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-card-subtitle {
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-required-chip {
    margin-left: 0;
    padding: 1px 6px;
    font-size: 0.58rem;
    line-height: 1.1;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model label span,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model .trainer-weekdays-fieldset legend {
    font-size: 0.86rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model {
    gap: 10px 12px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model .trainer-weekdays-fieldset legend {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model > label {
    justify-items: center;
    text-align: center;
    gap: 4px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model .trainer-student-field,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model .trainer-instructor-field {
    gap: 4px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model > label > span {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.18;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-definition-card .trainer-predefined-workout-field > span {
    font-size: 0.86rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model input,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model textarea,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model select {
    min-height: 44px;
    font-size: 0.95rem;
    padding: 9px 11px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-definition-card .trainer-predefined-workout-field select {
    min-height: 44px;
    font-size: 0.95rem;
    padding: 9px 11px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model > label select,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-definition-card .trainer-predefined-workout-field select {
    width: min(100%, 262px);
    min-height: 36px;
    padding: 6px 30px 6px 10px;
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: center;
    text-align-last: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model > label select option,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-definition-card .trainer-predefined-workout-field select option {
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-workout-form-grid--model {
    justify-items: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-workout-form-grid--model > label {
    width: min(100%, 262px);
    margin-left: auto;
    margin-right: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-workout-form-grid--model > label > span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-workout-form-grid--model > label select,
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-workout-form-grid--model > label input,
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-workout-form-grid--model > label textarea {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-align-last: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-student-field .trainer-select-search,
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-instructor-field .trainer-select-search {
    width: min(100%, 262px);
    margin-left: auto;
    margin-right: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-student-field .trainer-select-search input[type="search"],
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-student-field .trainer-select-search input[type="text"],
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-instructor-field .trainer-select-search input[type="search"],
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-form] .trainer-instructor-field .trainer-select-search input[type="text"] {
    text-align: left;
    text-align-last: left;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-predefined] {
    font-size: 0.82rem;
    letter-spacing: 0;
    text-align: center;
    text-align-last: center;
    padding-left: 10px;
    padding-right: 30px;
    width: min(100%, 262px);
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-form-grid--model textarea {
    min-height: 84px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-workout-description] {
    width: min(100%, 262px);
    min-height: 64px;
    margin-left: auto;
    margin-right: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-description-field {
    margin-top: 0;
    margin-bottom: 12px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-details {
    justify-items: center;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-section-title {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.92rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-details .trainer-exercise-metrics,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-details > label {
    width: min(100%, 290px);
    margin-left: auto;
    margin-right: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-details .trainer-metric-field {
    justify-items: center;
    text-align: center;
    gap: 0;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-details .trainer-metric-field > span,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-details > label > span {
    width: 100%;
    text-align: center;
    line-height: 1.02;
    margin-bottom: -3px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-details .trainer-metric-field input,
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-observation] {
    width: 100%;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-details .trainer-metric-field input {
    min-height: 30px !important;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-top: -2px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-observation] {
    width: min(100%, 260px);
    min-height: 58px;
    padding: 6px 10px;
    font-size: 0.86rem;
    line-height: 1.2;
    margin-top: -2px;
    margin-left: auto;
    margin-right: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises {
    padding: 10px;
    border-radius: 12px;
    margin-top: 4px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-filter {
    justify-items: center;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-filter > span {
    width: 100%;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-filter select {
    width: min(100%, 262px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-align-last: center;
    padding-left: 10px;
    padding-right: 34px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-filter select option {
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-weekday-assignment-wrap {
    justify-items: center;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-weekday-assignment-wrap strong {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-weekday-assignment-list {
    width: min(100%, 320px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-weekday-assignment-field {
    justify-items: center;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-weekday-assignment-field > span {
    width: 100%;
    text-align: center;
    font-size: 0.96rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-weekday-assignment-field select {
    width: 100%;
    min-height: 46px;
    text-align: center;
    text-align-last: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-actions {
    justify-content: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-actions [data-trainer-exercise-submit] {
    width: min(100%, 160px);
    min-height: 34px;
    padding: 0 10px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.84rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-summary {
    width: min(100%, 262px);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    justify-content: center;
    padding-right: 46px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-summary strong {
    width: 100%;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-summary .trainer-linked-exercises-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises h6 {
    font-size: 0.94rem;
    width: 100%;
    text-align: center;
  }

  /* Ajuste fino exclusivo do bloco "Treino em construção" */
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-exercise-editor-head {
    justify-content: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-exercise-editor-head h6 {
    width: 100%;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-form-grid--model {
    gap: 12px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-form-grid--model > label {
    gap: 5px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-form-grid--model > label > span {
    margin-bottom: 0;
    line-height: 1.16;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-form-grid--model > label select {
    width: min(100%, 250px);
    min-height: 36px;
    padding: 6px 30px 6px 10px;
    margin-top: 0;
    font-size: 0.86rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-builder {
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-stage,
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-stage-copy {
    min-height: 168px;
    border-radius: 14px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-stage-copy {
    padding: 12px;
    gap: 5px;
    text-align: left;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-stage-copy strong {
    font-size: 1.06rem;
    line-height: 1.12;
    text-align: left;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-stage-copy span {
    font-size: 0.82rem;
    text-align: left;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-upload-zone {
    min-height: 106px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-workout-cover-feedback {
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-exercise-details .trainer-exercise-metrics,
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-exercise-details > label {
    width: min(100%, 250px);
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-exercise-details .trainer-metric-field {
    gap: 4px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-exercise-details .trainer-metric-field > span,
  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-exercise-details > label > span {
    margin-bottom: 0;
    line-height: 1.12;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-form] .trainer-exercise-details .trainer-metric-field input {
    min-height: 34px !important;
    padding-top: 6px;
    padding-bottom: 6px;
    margin-top: 0;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] [data-trainer-exercise-observation] {
    width: min(100%, 250px);
    min-height: 64px;
    margin-top: 0;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-table td,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-progress-history-table td {
    gap: 8px;
    align-items: flex-start;
    font-size: 0.8rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-table td {
    font-size: 0.95rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-table tr {
    padding: 8px 10px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-table .trainer-linked-exercise-item {
    gap: 8px;
    min-height: 32px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-table .trainer-linked-exercise-name {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-table .trainer-linked-exercise-video-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-linked-exercises-table .trainer-linked-exercise-video-btn svg {
    width: 16px;
    height: 16px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-table td::before,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-progress-history-table td::before {
    min-width: 92px;
    max-width: 46%;
    overflow-wrap: anywhere;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-table td,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-table td a {
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: right;
  }
}

@media (max-width: 460px) {
  .admin-overview-head-actions {
    grid-template-columns: 1fr;
  }

  .student-app-panel[data-student-app-panel="biblioteca"] .student-panel-head {
    padding-left: 34px;
    padding-right: 34px;
  }

  .student-app-panel[data-student-app-panel="biblioteca"] .student-panel-head h4 {
    font-size: clamp(0.84rem, 4.25vw, 0.98rem);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 560px) {
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-metrics-row {
    grid-template-columns: 1fr;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-table td,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-progress-history-table td {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-table td::before,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-progress-history-table td::before {
    min-width: 0;
    max-width: none;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-table td,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-workout-table td a {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .student-app-shell.is-trainer-mode .student-app-main,
  .student-app-shell.is-admin-geral-mode .student-app-main {
    padding: 22px 26px 26px;
  }

  .student-app-shell.is-trainer-mode .student-app-bottom-nav,
  .student-app-shell.is-admin-geral-mode .student-app-bottom-nav {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    box-shadow: none;
    border-top: 1px solid rgba(7, 20, 13, 0.12);
    padding: 10px 14px 14px;
  }

  body.theme-dark .student-app-shell.is-trainer-mode .student-app-bottom-nav,
  body.theme-dark .student-app-shell.is-admin-geral-mode .student-app-bottom-nav {
    border-top-color: rgba(146, 184, 163, 0.2);
  }

  .student-app-shell.is-trainer-mode .student-app-panel[data-student-app-panel="admin-treinos"] {
    width: min(100%, 1420px);
    margin: 0 auto;
  }

  .student-app-shell.is-trainer-mode .trainer-workout-screen {
    gap: 18px;
  }

  .student-app-shell.is-trainer-mode .trainer-workout-head {
    justify-items: center;
    text-align: center;
  }

  .student-app-shell.is-trainer-mode .trainer-workout-head p {
    margin-left: auto;
    margin-right: auto;
  }

  .student-app-shell.is-trainer-mode .trainer-workout-head-actions {
    justify-content: center;
  }

  .student-app-shell.is-trainer-mode .trainer-workout-refresh {
    justify-self: center;
  }

  .student-app-shell.is-trainer-mode .trainer-workout-create-card,
  .student-app-shell.is-trainer-mode .trainer-workout-definition-card,
  .student-app-shell.is-trainer-mode .trainer-exercise-create-card {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 20px;
  }

  .student-app-shell.is-trainer-mode .trainer-workout-form-grid--model {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .student-app-shell.is-trainer-mode .trainer-exercise-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Biblioteca de exercicios: visual no padrao do seletor escuro (mantendo olho e +) */
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 8, 12, 0.72);
  cursor: pointer;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-card {
  position: relative;
  width: min(100%, 940px);
  max-height: min(88vh, 780px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-radius: 24px;
  border: 1px solid rgba(95, 134, 155, 0.52);
  background: linear-gradient(180deg, rgba(9, 24, 36, 0.98) 0%, rgba(8, 21, 33, 0.98) 100%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  text-align: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
  padding: 16px 114px 14px;
  border-bottom: 1px solid rgba(95, 134, 155, 0.34);
  background: rgba(10, 27, 41, 0.96);
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head strong {
  grid-column: 1 / -1;
  justify-self: center;
  color: #ecf6f3;
  font-size: clamp(1.1rem, 2.4vw, 1.25rem);
  line-height: 1.2;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head small {
  color: rgba(198, 216, 210, 0.88);
  font-size: 0.9rem;
  line-height: 1.3;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head small:not(.trainer-exercise-library-picker-group):not(.trainer-exercise-library-picker-pending) {
  grid-column: 1 / -1;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-group,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-pending {
  grid-column: auto;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(95, 134, 155, 0.38);
  background: rgba(17, 40, 57, 0.84);
  color: #d8ebe4;
  font-size: 0.95rem;
  font-weight: 700;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-pending {
  border-color: rgba(33, 203, 113, 0.42);
  color: #9cf0c4;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-close {
  position: absolute;
  top: 12px;
  right: 14px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(95, 134, 155, 0.38);
  background: rgba(22, 50, 40, 0.78);
  color: #ecf6f3;
  padding: 0 12px;
  font-size: 0.92rem;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid rgba(95, 134, 155, 0.18);
  border-bottom: 1px solid rgba(95, 134, 155, 0.28);
  background: rgba(9, 26, 39, 0.94);
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search > span {
  color: #d9ece5;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search input {
  min-height: 58px;
  border: 1px solid rgba(95, 134, 155, 0.38);
  border-radius: 14px;
  background: rgba(14, 34, 49, 0.88);
  color: #e8f5f0;
  padding: 0 14px;
  font-size: 0.99rem;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-list {
  max-height: none;
  min-height: 0;
  height: 100%;
  overflow: auto;
  display: grid;
  gap: 0;
  background: rgba(8, 21, 33, 0.96);
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item {
  border: 0;
  border-bottom: 1px solid rgba(95, 134, 155, 0.3);
  border-radius: 0;
  background: transparent;
  padding: 18px 18px;
  gap: 12px;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item:last-child {
  border-bottom: 0;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy {
  gap: 6px;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy strong {
  color: #eef8f5;
  font-size: 1.05rem;
  font-weight: 700;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy small {
  color: rgba(198, 216, 210, 0.9);
  font-size: 0.95rem;
  line-height: 1.3;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-actions {
  gap: 10px;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-view,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-add--circle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-view {
  border-color: rgba(156, 185, 177, 0.5);
  background: rgba(15, 34, 49, 0.9);
  color: #d8ebe4;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-add--circle {
  border-color: rgba(33, 203, 113, 0.55);
  background: linear-gradient(180deg, #20d06a 0%, #17b65a 100%);
  color: #ffffff;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-remove--circle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-empty {
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid rgba(95, 134, 155, 0.24);
  color: rgba(198, 216, 210, 0.86);
  background: rgba(8, 21, 33, 0.96);
}

body.trainer-exercise-library-picker-open {
  overflow: hidden;
}

.student-app-shell.is-trainer-exercise-library-picker-open .student-app-bottom-nav {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 700px) {
  .trainer-exercise-library-picker.is-floating {
    align-items: center;
    padding: 8px;
    justify-items: center;
    overflow-x: hidden;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-card {
    box-sizing: border-box;
    width: min(100%, 520px);
    max-width: calc(100vw - 16px);
    max-height: min(88dvh, 720px);
    border-radius: 18px;
    margin-inline: auto;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    justify-items: center;
    column-gap: 8px;
    row-gap: 6px;
    padding: 52px 12px 12px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head strong,
  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head small:not(.trainer-exercise-library-picker-group):not(.trainer-exercise-library-picker-pending) {
    grid-column: 1 / -1;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-group,
  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-pending {
    grid-column: auto;
    max-width: 100%;
    min-height: 34px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    padding: 0 10px;
    font-size: 0.76rem;
    border-radius: 10px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-close {
    top: 10px;
    right: 10px;
    min-height: 30px;
    min-width: 74px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search {
    padding: 12px 14px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search input {
    min-height: 52px;
    font-size: 0.96rem;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item {
    padding: 14px 14px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-copy strong {
    font-size: 0.98rem;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-copy small {
    font-size: 0.9rem;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-view,
  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-add--circle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-remove--circle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker {
    align-items: center;
    padding: 8px;
    justify-items: center;
    overflow-x: hidden;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-card {
    box-sizing: border-box;
    width: min(100%, 520px);
    max-width: calc(100vw - 16px);
    max-height: min(88dvh, 720px);
    border-radius: 18px;
    margin-inline: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    justify-items: center;
    column-gap: 8px;
    row-gap: 6px;
    padding: 52px 12px 12px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head strong,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head small:not(.trainer-exercise-library-picker-group):not(.trainer-exercise-library-picker-pending) {
    grid-column: 1 / -1;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-group,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-pending {
    grid-column: auto;
    max-width: 100%;
    min-height: 34px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    padding: 0 10px;
    font-size: 0.76rem;
    border-radius: 10px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-close {
    top: 10px;
    right: 10px;
    min-height: 30px;
    min-width: 74px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search {
    padding: 12px 14px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search input {
    min-height: 52px;
    font-size: 0.96rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item {
    padding: 14px 14px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy strong {
    font-size: 0.98rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy small {
    font-size: 0.9rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-view,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-add--circle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-remove--circle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }
}

@media (max-width: 520px) {
  .trainer-exercise-library-picker.is-floating {
    align-items: center;
    padding: 6px;
    justify-items: center;
    overflow-x: hidden;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-card {
    box-sizing: border-box;
    width: min(100%, 420px);
    max-width: calc(100vw - 12px);
    max-height: 89dvh;
    border-radius: 16px;
    margin-inline: auto;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head {
    grid-template-columns: 1fr;
    padding: 48px 10px 10px;
    row-gap: 7px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head strong {
    font-size: 0.98rem;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head small {
    font-size: 0.84rem;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-group,
  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-pending {
    width: auto;
    max-width: min(94%, 260px);
    min-height: 28px;
    font-size: 0.68rem;
    padding: 2px 10px;
    justify-self: center;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-close {
    top: 8px;
    right: 8px;
    min-height: 28px;
    min-width: 66px;
    font-size: 0.78rem;
    padding: 0 8px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search {
    padding: 10px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search input {
    min-height: 46px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item {
    padding: 12px 10px;
    gap: 8px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-actions {
    gap: 6px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-copy strong {
    font-size: 0.92rem;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-item-copy small {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-view,
  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-add--circle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-workout-modal-library-remove--circle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker {
    align-items: center;
    padding: 6px;
    justify-items: center;
    overflow-x: hidden;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-card {
    box-sizing: border-box;
    width: min(100%, 420px);
    max-width: calc(100vw - 12px);
    max-height: 89dvh;
    border-radius: 16px;
    margin-inline: auto;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head {
    grid-template-columns: 1fr;
    padding: 48px 10px 10px;
    row-gap: 7px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head strong {
    font-size: 0.98rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head small {
    font-size: 0.84rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-group,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-pending {
    width: auto;
    max-width: min(94%, 260px);
    min-height: 28px;
    font-size: 0.68rem;
    padding: 2px 10px;
    justify-self: center;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-close {
    top: 8px;
    right: 8px;
    min-height: 28px;
    min-width: 66px;
    font-size: 0.78rem;
    padding: 0 8px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search {
    padding: 10px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search input {
    min-height: 46px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item {
    padding: 12px 10px;
    gap: 8px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-actions {
    gap: 6px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy strong {
    font-size: 0.92rem;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-item-copy small {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-view,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-add--circle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker .trainer-workout-modal-library-remove--circle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }
}

/* Picker mobile no layout do site apenas no seletor de Progresso (instrutor) */
.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-scrim {
  background: rgba(2, 10, 8, 0.74);
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-card {
  border: 1px solid rgba(95, 134, 155, 0.46);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 24, 36, 0.98) 0%, rgba(8, 21, 33, 0.98) 100%);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.4);
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-head {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(95, 134, 155, 0.32);
  background: rgba(10, 27, 41, 0.94);
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-head strong {
  color: #ecf7f1;
  font-size: 1.05rem;
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-head button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(95, 134, 155, 0.4);
  background: rgba(22, 50, 40, 0.76);
  color: #ebf7f0;
  font-size: 0.9rem;
  padding: 0 12px;
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-list {
  background: rgba(8, 21, 33, 0.98);
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-option {
  min-height: 64px;
  border-bottom: 1px solid rgba(95, 134, 155, 0.24);
  color: #e3f2ea;
  font-size: 0.95rem;
  padding: 0 14px;
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-option.is-selected {
  background: rgba(18, 52, 41, 0.34);
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-radio {
  border-color: rgba(194, 214, 202, 0.88);
}

.student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-option.is-selected .student-mobile-select-picker-radio {
  border-color: #2acf73;
  box-shadow: inset 0 0 0 4px rgba(8, 21, 33, 0.98), inset 0 0 0 8px #2acf73;
}

.student-mobile-select-picker.is-trainer-progress-select.is-multiple .student-mobile-select-picker-option.is-selected .student-mobile-select-picker-radio {
  border-color: #2acf73;
  background: #2acf73;
  box-shadow: none;
}

body.theme-dark .student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-card {
  border-color: rgba(95, 134, 155, 0.46);
  background: linear-gradient(180deg, rgba(9, 24, 36, 0.98) 0%, rgba(8, 21, 33, 0.98) 100%);
}

body.theme-dark .student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-head {
  border-bottom-color: rgba(95, 134, 155, 0.32);
  background: rgba(10, 27, 41, 0.94);
}

body.theme-dark .student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-head button {
  border-color: rgba(95, 134, 155, 0.4);
  background: rgba(22, 50, 40, 0.76);
  color: #ebf7f0;
}

body.theme-dark .student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-list {
  background: rgba(8, 21, 33, 0.98);
}

body.theme-dark .student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-option {
  border-bottom-color: rgba(95, 134, 155, 0.24);
  color: #e3f2ea;
}

body.theme-dark .student-mobile-select-picker.is-trainer-progress-select .student-mobile-select-picker-option.is-selected {
  background: rgba(18, 52, 41, 0.34);
}

/* Forca layout mobile atualizado */
@media (max-width: 760px) {
  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-toolbar small {
    order: 1 !important;
  }

  .student-app-panel[data-student-app-panel="progresso"] .trainer-progress-toolbar label {
    order: 2 !important;
  }
}

/* Ajuste final do campo de busca da biblioteca (remove icone gigante/bola preta) */
.trainer-exercise-library-picker-search,
.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trainer-exercise-library-picker-search > span,
.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search > span,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search > span {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
}

.trainer-exercise-library-picker-search > span svg,
.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search > span svg,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search > span svg {
  width: 18px;
  height: 18px;
  display: block;
}

.trainer-exercise-library-picker-search > span svg *,
.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search > span svg *,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search > span svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-exercise-library-picker-search input,
.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-search input,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-search input {
  flex: 1;
  min-width: 0;
}

/* Ajuste de cabecalho da biblioteca (titulo em cima, descricao embaixo e chips lado a lado) */
.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head {
  position: relative;
  display: block;
  padding: 12px 14px;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head > div,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head > div {
  width: 100%;
  max-width: calc(100% - 92px);
  margin: 0 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 8px;
  row-gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head > div > strong,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head > div > strong {
  grid-column: 1 / -1;
  display: block;
  margin: 0;
  text-align: center;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head > div > small:not(.trainer-exercise-library-picker-group):not(.trainer-exercise-library-picker-pending),
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head > div > small:not(.trainer-exercise-library-picker-group):not(.trainer-exercise-library-picker-pending) {
  grid-column: 1 / -1;
  display: block;
  margin: 0;
  text-align: center;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head .trainer-exercise-library-picker-group,
.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head .trainer-exercise-library-picker-pending,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head .trainer-exercise-library-picker-group,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head .trainer-exercise-library-picker-pending {
  width: auto;
  max-width: none;
  min-height: 28px;
  padding: 2px 10px;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  justify-self: center;
}

.trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head .trainer-exercise-library-picker-close,
.student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head .trainer-exercise-library-picker-close {
  position: absolute;
  right: 14px;
  top: 12px;
  margin: 0;
}

@media (max-width: 520px) {
  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head > div,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head > div {
    max-width: calc(100% - 84px);
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 6px;
  }

  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head .trainer-exercise-library-picker-group,
  .trainer-exercise-library-picker.is-floating .trainer-exercise-library-picker-head .trainer-exercise-library-picker-pending,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head .trainer-exercise-library-picker-group,
  .student-app-panel[data-student-app-panel="admin-treinos"] .trainer-exercise-library-picker-head .trainer-exercise-library-picker-pending {
    min-height: 26px;
    font-size: 0.68rem;
    padding: 2px 8px;
  }
}


/* Respeita preferencia do usuario para reduzir animacoes */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
  }
}
