/*
 * Regras essenciais carregadas por último para proteger layout e logo.
 * Use este arquivo apenas para correções transversais que precisam prevalecer
 * sobre app.css; prefira manter estilos da tela no arquivo de origem.
 */
* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.app-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  background: var(--bg, #f4f9f7);
  color: var(--ink, #173a34);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 255px;
  height: 100vh;
  height: 100dvh;
  padding: 26px 20px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--brand-dark, #0b3b31);
  color: #fff;
}

.sidebar .brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.sidebar .brand img,
.sidebar .brand img.official-logo {
  display: block;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 5px;
  border-radius: 11px;
  object-fit: contain;
  background: #fff;
  flex: 0 0 44px;
}

.sidebar .brand > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar .brand.official-sidebar-brand {
  width: 100%;
  height: 82px;
  overflow: hidden;
  gap: 0;
}

.sidebar .brand img.sidebar-pulse-wordmark {
  width: 214px !important;
  min-width: 214px !important;
  max-width: 214px !important;
  height: 82px !important;
  min-height: 82px !important;
  max-height: 82px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  object-position: center;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 0 214px;
}

.sidebar .brand strong,
.sidebar .brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar .brand small {
  color: #d0e2dc;
}

.sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: 28px;
}

.sidebar nav a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar nav i {
  text-align: center;
  font-style: normal;
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 18px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-foot small,
.sidebar-foot span {
  color: #c8ddd7;
}

.app-main {
  grid-column: 2;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 90px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line, #dbe7e2);
}

.topbar > div:first-of-type {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d8f46b;
  color: #21473c;
  font-weight: 800;
}

.menu-toggle {
  display: none;
}

.content {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 50px;
  flex: 1;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.page-user {
  display: none !important;
}

.panel,
.student-hero,
.editor-head,
.session-hero,
.finish-box {
  padding: 28px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 72, 61, 0.08);
}

.panel {
  margin-bottom: 22px;
}

.panel-head,
.editor-head,
.session-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-head small {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome {
  padding: 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 23px;
  background: linear-gradient(
    125deg,
    var(--brand-dark, #0b3b31),
    var(--brand, #16765f)
  );
  color: #fff;
}

.welcome h2,
.welcome p,
.welcome small {
  color: #fff;
}

.student-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.home-plan {
  min-width: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 72, 61, 0.08);
}

.home-plan .button {
  width: 100%;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--brand-soft, #eaf4f1);
  color: var(--brand-dark, #0b3b31);
  font-weight: 800;
}

.home-plan.workout .button {
  background: var(--brand, #16765f);
  color: #fff;
}

.weight-strip {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 72, 61, 0.08);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.metric {
  min-width: 0;
  padding: 22px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 72, 61, 0.08);
}

.metric > span:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft, #e9f5f0);
}

.metric strong {
  font-size: 1.55rem;
}

.quick-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-grid a,
.content-card {
  padding: 18px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 15px;
  background: #fff;
}

.quick-grid a {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.two-col.wide-main {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.7fr);
}

.sticky {
  position: sticky;
  top: 98px;
}

.stack {
  display: grid;
  gap: 15px;
}

.stack label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.fields-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #cfded8;
  border-radius: 11px;
  outline: none;
  background: #fbfdfc;
  color: var(--ink, #173a34);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand, #16765f);
  box-shadow: 0 0 0 3px rgba(22, 118, 95, 0.14);
}

textarea {
  resize: vertical;
}

.primary,
.secondary,
.ghost,
.danger,
.button {
  min-height: 44px;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  background: var(--brand, #16765f);
  color: #fff;
}

.secondary,
.ghost {
  background: var(--brand-soft, #eaf4f0);
  color: var(--brand-dark, #0b3b31);
}

.danger {
  background: #fff0f0;
  color: #a84242;
}

.pill,
.status {
  width: max-content;
  padding: 6px 10px;
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-soft, #edf5f2);
  color: var(--brand, #16765f);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.student-list {
  display: grid;
}

.student-list > a,
.student-list > article {
  padding: 15px 4px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line, #dbe7e2);
}

.student-list > a > div,
.student-list > article > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.student-list > a > b,
.student-list > article > .status {
  margin-left: auto;
}

.student-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.student-hero > div:nth-child(2) {
  flex: 1;
}

.hero-stats {
  display: flex !important;
  gap: 28px;
}

.hero-stats span {
  display: flex;
  flex-direction: column;
}

.tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line, #dbe7e2);
}

.tabs a {
  padding: 14px 18px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-weight: 700;
}

.tabs a.active {
  border-color: var(--brand, #16765f);
  color: var(--brand, #16765f);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar {
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 15px;
  background: #fff;
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.exercise-grid,
.workout-list,
.meal-list,
.timeline {
  display: grid;
  gap: 12px;
}

.exercise-grid > article {
  padding: 14px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 17px;
  background: #fff;
}

.exercise-grid img,
.exercise-placeholder {
  width: 140px;
  height: 128px;
  border-radius: 13px;
  object-fit: cover;
}

.exercise-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #624cac, #8b74d9);
  color: #fff;
}

.pricing-grid,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-grid > article,
.plans-grid > article {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 18px;
  background: #fff;
}

.alert,
.notice {
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid #d6e3de;
  border-radius: 12px;
  background: #fff;
}

.alert.success {
  border-color: #b6e3cf;
  background: #e4f5ed;
  color: #176d57;
}

.alert.error {
  border-color: #efc4c4;
  background: #fff0f0;
  color: #983939;
}

.pdf-icon {
  position: relative;
  width: 27px;
  height: 32px;
  margin-right: 4px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  border-radius: 4px;
  background: #e5252a;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.pdf-icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 8px solid #fff;
  border-left: 8px solid rgba(255, 255, 255, 0.5);
}

.branded-reset .auth-brand img {
  width: 54px;
  height: 54px;
  padding: 5px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 55, 46, 0.12);
}

.branded-reset .auth-brand > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.branded-reset .auth-brand small {
  color: #758982;
}

.branded-reset .primary {
  background: var(--reset-brand, #16765f);
}

.demo-page {
  width: min(1180px, calc(100% - 32px));
  margin: 45px auto 70px;
}

.guest-body:has(.demo-page) {
  display: block;
  min-height: 100vh;
  background: var(--bg, #f4f9f7);
}

.guest-body:has(.demo-page) .guest-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.guest-body:has(.demo-page) .guest-footer {
  width: 100%;
}

.demo-hero {
  max-width: 800px;
  margin-bottom: 32px;
}

.demo-carousel {
  overflow: hidden;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(18, 67, 55, 0.14);
}
.demo-carousel-head {
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line, #dbe7e2);
}
.demo-carousel-head > div {
  display: grid;
  gap: 3px;
}
.demo-carousel-head small,
.demo-explanation > span {
  color: var(--brand, #16765f);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.demo-carousel-head > span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf6f2;
  color: #41675d;
  font-size: 0.8rem;
  font-weight: 800;
}
.demo-track {
  position: relative;
}
.demo-slide {
  display: none;
  min-height: 540px;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.6fr);
  align-items: stretch;
}
.demo-slide.is-active {
  display: grid;
  animation: demo-slide-in 0.38s ease both;
}
@keyframes demo-slide-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.demo-explanation {
  padding: 42px 34px;
  align-self: center;
}
.demo-explanation h2 {
  margin: 10px 0 14px;
}
.demo-explanation p {
  color: #607770;
  line-height: 1.65;
}
.demo-explanation ul {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}
.demo-explanation li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
}
.demo-explanation li:before {
  content: "";
  color: var(--brand, #16765f);
  font-weight: 900;
}
.demo-slide .demo-dashboard {
  margin: 28px 28px 28px 0;
  min-height: 480px;
  border-radius: 22px;
  box-shadow: none;
}
.demo-side span.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}
.demo-student-list {
  display: grid;
  gap: 12px;
}
.demo-student-list article {
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 15px;
  background: #fff;
}
.demo-student-list article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d4f35c;
  font-weight: 900;
}
.demo-student-list article > div {
  display: grid;
  gap: 3px;
}
.demo-student-list small {
  color: #6c817a;
}
.demo-student-list em {
  color: var(--brand, #16765f);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}
.demo-phone {
  width: min(390px, calc(100% - 56px));
  margin: 28px auto;
  padding: 27px;
  align-self: center;
  border: 8px solid #123d34;
  border-radius: 38px;
  background: #f4f9f7;
  box-shadow: 0 22px 50px rgba(18, 67, 55, 0.18);
}
.demo-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.demo-phone-top span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d4f35c;
  font-weight: 900;
}
.demo-phone > small {
  color: #6c817a;
  font-weight: 800;
}
.demo-phone h2 {
  margin: 6px 0 20px;
}
.demo-progress-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b493c, #20866f);
  color: #fff;
}
.demo-progress-card small {
  grid-column: 1/-1;
}
.demo-progress-card strong {
  font-size: 2rem;
}
.demo-progress-card span {
  align-self: end;
  font-size: 0.8rem;
}
.demo-phone-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.demo-phone-grid article {
  padding: 15px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 15px;
  background: #fff;
}
.demo-phone-grid article > span {
  color: #7755d7;
}
.demo-phone-grid small {
  color: #71857e;
}
.demo-content-preview {
  margin: 28px 28px 28px 0;
  padding: 30px;
  align-self: center;
  border-radius: 22px;
  background: #f4f9f7;
}
.demo-preview-head {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.demo-preview-head h2 {
  margin: 4px 0 0;
}
.demo-preview-head > span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #dff2e9;
  color: #12624f;
  font-weight: 800;
}
.demo-content-preview article {
  margin-bottom: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 15px;
  background: #fff;
}
.demo-content-preview article > span {
  color: #687f77;
  font-weight: 800;
}
.demo-content-preview article > div {
  display: grid;
  gap: 4px;
}
.demo-content-preview article small {
  color: #6c817a;
}
.demo-content-preview article em {
  color: var(--brand, #16765f);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}
.demo-content-preview > button {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 0;
  border-radius: 13px;
  background: #72005d;
  color: #fff;
  font-weight: 900;
}
.demo-content-preview > button span {
  margin-right: 8px;
  padding: 4px 6px;
  border-radius: 5px;
  background: #e5212b;
  font-size: 0.7rem;
}
.demo-controls {
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid var(--line, #dbe7e2);
}
.demo-controls > button {
  width: 43px;
  height: 43px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 50%;
  background: #fff;
  color: #123d34;
  font-size: 1.3rem;
  cursor: pointer;
}
.demo-controls > button:hover {
  background: #0b493c;
  color: #fff;
}
.demo-dots {
  display: flex;
  gap: 9px;
}
.demo-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd9d4;
  cursor: pointer;
  transition: 0.2s;
}
.demo-dots button.is-active {
  width: 30px;
  background: var(--brand, #16765f);
}

.demo-hero > span,
.referral-card > div:first-child > small {
  color: var(--brand, #16765f);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.demo-dashboard {
  min-height: 510px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(18, 67, 55, 0.14);
}

.demo-side {
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0b493c;
  color: #fff;
}

.demo-side b {
  margin-bottom: 22px;
  font-size: 1.15rem;
}

.demo-side span {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-main {
  padding: 38px;
  background: #f4f9f7;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demo-cards article {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 16px;
  background: #fff;
}

.demo-cards em {
  color: var(--brand, #16765f);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
}

.referral-card {
  margin: 22px 0;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf8f4, #fff);
  border: 1px solid var(--line, #dbe7e2);
}

.referral-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.cancel-box {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #efcece;
  border-radius: 15px;
  background: #fffafa;
}

.cancel-box summary {
  cursor: pointer;
  color: #983939;
  font-weight: 800;
}

@media (max-width: 820px) {
  .demo-dashboard,
  .referral-card {
    grid-template-columns: 1fr;
  }

  .demo-side {
    display: none;
  }

  .demo-main {
    padding: 22px;
  }

  .demo-cards {
    grid-template-columns: 1fr;
  }

  .demo-main .metric-grid {
    grid-template-columns: 1fr;
  }

  .demo-slide.is-active {
    grid-template-columns: 1fr;
  }
  .demo-slide {
    min-height: 0;
  }
  .demo-explanation {
    padding: 28px 24px 8px;
  }
  .demo-explanation ul {
    display: none;
  }
  .demo-slide .demo-dashboard,
  .demo-content-preview {
    margin: 20px;
  }
  .demo-phone {
    margin: 20px auto;
  }
}

@media (max-width: 520px) {
  .demo-page {
    width: calc(100% - 20px);
    margin-top: 24px;
  }
  .demo-carousel-head {
    padding: 16px 18px;
  }
  .demo-carousel-head strong {
    font-size: 0.9rem;
  }
  .demo-slide .demo-main {
    padding: 18px;
  }
  .demo-student-list article {
    grid-template-columns: 42px 1fr;
  }
  .demo-student-list em {
    grid-column: 2;
  }
  .demo-content-preview {
    padding: 18px;
  }
  .demo-content-preview article {
    grid-template-columns: 50px 1fr;
  }
  .demo-content-preview article em {
    grid-column: 2;
  }
  .demo-phone {
    width: calc(100% - 40px);
    padding: 20px;
    border-width: 6px;
  }
  .demo-phone-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-slide.is-active {
    animation: none;
  }
}

.footer {
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line, #dbe7e2);
  background: #fff;
}

.footer nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .app-body {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 -280px;
    left: -280px;
    width: 255px;
    transition: left 0.25s ease;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.18);
  }

  .sidebar.open {
    inset: 0 auto 0 0;
    left: 0;
  }

  .app-main {
    width: 100%;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #edf5f2;
    color: var(--brand, #16765f);
    font-size: 1.2rem;
  }

  .topbar {
    min-height: 72px;
    padding: 0 14px;
  }

  .content {
    width: min(760px, calc(100% - 28px));
    padding: 24px 0 38px;
  }

  .welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-home-grid {
    grid-template-columns: 1fr;
  }

  .two-col,
  .two-col.wide-main,
  .metric-grid,
  .pricing-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .sticky {
    position: static;
  }

  .card-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .student-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .weight-strip {
    flex-wrap: wrap;
  }

  .footer {
    padding: 20px 14px;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topbar > div:first-of-type {
    display: none;
  }

  .content {
    width: calc(100% - 22px);
  }

  .page-head {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .page-user {
    display: none !important;
  }

  .fields-2 {
    grid-template-columns: 1fr;
  }

  .exercise-grid > article {
    grid-template-columns: 1fr;
  }

  .exercise-grid img,
  .exercise-placeholder {
    width: 100%;
    height: 180px;
  }

  .welcome,
  .home-plan,
  .weight-strip {
    padding: 20px;
    border-radius: 18px;
  }

  .help-float {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }

  .footer nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}
.primary,
.secondary,
.ghost,
.danger,
.button {
  max-width: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.primary:focus-visible,
.secondary:focus-visible,
.ghost:focus-visible,
.danger:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(22, 118, 95, 0.45);
  outline-offset: 2px;
}

.primary:active,
.secondary:active,
.ghost:active,
.danger:active,
.button:active {
  transform: scale(0.97);
}

@media (max-width: 700px) {
  .fields-2 {
    grid-template-columns: 1fr;
  }
}

.fields-2 label {
  min-width: 0;
  max-width: 100%;
}

input[type="date"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.primary,
.secondary,
.ghost,
.danger,
.button {
  max-width: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.primary:focus-visible,
.secondary:focus-visible,
.ghost:focus-visible,
.danger:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(22, 118, 95, 0.45);
  outline-offset: 2px;
}

.primary:active,
.secondary:active,
.ghost:active,
.danger:active,
.button:active {
  transform: scale(0.97);
}

@media (max-width: 700px) {
  .fields-2 {
    grid-template-columns: 1fr;
  }
}

.fields-2 label {
  min-width: 0;
  max-width: 100%;
}

input[type="date"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.trial-callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #d8f46b;
  border-radius: 12px;
  background: rgba(216, 244, 107, 0.12);
  margin-bottom: 14px;
}

.trial-badge {
  align-self: flex-start;
  background: #d8f46b;
  color: #0b3b31;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

.trial-callout p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #173a34;
}

.trial-micro {
  font-size: 0.82rem;
  text-align: center;
  color: #5b7a72;
  margin-top: 10px;
}

.billing-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.billing-choice label {
  cursor: pointer;
  border: 1.5px solid #d7e5df;
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}

.billing-choice label:has(input:checked) {
  border-color: var(--brand, #16765f);
  background: rgba(22, 118, 95, 0.06);
}

.billing-choice input {
  width: auto;
  margin-right: 6px;
}

.billing-choice b {
  display: block;
  font-size: 0.92rem;
}

.billing-choice small {
  color: #5b7a72;
}

@media (max-width: 700px) {
  .billing-choice {
    grid-template-columns: 1fr;
  }
}
